summaryrefslogtreecommitdiffstats
path: root/compiler/rustc_span/src/edition.rs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/rustc_span/src/edition.rs')
-rw-r--r--compiler/rustc_span/src/edition.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_span/src/edition.rs b/compiler/rustc_span/src/edition.rs
index f16db69aa..608b8c24b 100644
--- a/compiler/rustc_span/src/edition.rs
+++ b/compiler/rustc_span/src/edition.rs
@@ -82,17 +82,17 @@ impl Edition {
}
/// Are we allowed to use features from the Rust 2018 edition?
- pub fn rust_2018(self) -> bool {
+ pub fn at_least_rust_2018(self) -> bool {
self >= Edition::Edition2018
}
/// Are we allowed to use features from the Rust 2021 edition?
- pub fn rust_2021(self) -> bool {
+ pub fn at_least_rust_2021(self) -> bool {
self >= Edition::Edition2021
}
/// Are we allowed to use features from the Rust 2024 edition?
- pub fn rust_2024(self) -> bool {
+ pub fn at_least_rust_2024(self) -> bool {
self >= Edition::Edition2024
}
}