about summary refs log tree commit diff
path: root/compiler/rustc_span/src
diff options
context:
space:
mode:
authorMaybe Waffle <waffle.lapkin@gmail.com>2023-01-31 09:50:56 +0000
committerMaybe Waffle <waffle.lapkin@gmail.com>2023-01-31 10:09:22 +0000
commitfd5774a4d7093bf65309fc69e23c57f298b94526 (patch)
treeb436e10705285d42c9ac542e4c9e7955a23c37ff /compiler/rustc_span/src
parentdc3e59cb3fe05ebd752d3a2269f501c00327be22 (diff)
downloadrust-fd5774a4d7093bf65309fc69e23c57f298b94526.tar.gz
rust-fd5774a4d7093bf65309fc69e23c57f298b94526.zip
Use `Edition` methods a bit more
Diffstat (limited to 'compiler/rustc_span/src')
-rw-r--r--compiler/rustc_span/src/lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_span/src/lib.rs b/compiler/rustc_span/src/lib.rs
index 7e61f2f9f73..006102a5f2f 100644
--- a/compiler/rustc_span/src/lib.rs
+++ b/compiler/rustc_span/src/lib.rs
@@ -706,22 +706,22 @@ impl Span {
 
     #[inline]
     pub fn rust_2015(self) -> bool {
-        self.edition() == edition::Edition::Edition2015
+        self.edition().rust_2015()
     }
 
     #[inline]
     pub fn rust_2018(self) -> bool {
-        self.edition() >= edition::Edition::Edition2018
+        self.edition().rust_2018()
     }
 
     #[inline]
     pub fn rust_2021(self) -> bool {
-        self.edition() >= edition::Edition::Edition2021
+        self.edition().rust_2021()
     }
 
     #[inline]
     pub fn rust_2024(self) -> bool {
-        self.edition() >= edition::Edition::Edition2024
+        self.edition().rust_2024()
     }
 
     /// Returns the source callee.