about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2021-04-30 20:16:09 +0200
committerCamille GILLOT <gillot.camille@gmail.com>2021-09-10 20:19:07 +0200
commit5e026eacb1eaa0e56bb2adcc3fa86ace8542866f (patch)
treec031b9122bc451e98ead41d67e03ced5175cd573
parentf84856cbb0bcba3fae1a74a7e913e1a42d7144f0 (diff)
downloadrust-5e026eacb1eaa0e56bb2adcc3fa86ace8542866f.tar.gz
rust-5e026eacb1eaa0e56bb2adcc3fa86ace8542866f.zip
Remove some span tracking.
-rw-r--r--compiler/rustc_span/src/lib.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/compiler/rustc_span/src/lib.rs b/compiler/rustc_span/src/lib.rs
index 4f69a59ab93..eb496140553 100644
--- a/compiler/rustc_span/src/lib.rs
+++ b/compiler/rustc_span/src/lib.rs
@@ -521,11 +521,11 @@ impl Span {
     }
     #[inline]
     pub fn ctxt(self) -> SyntaxContext {
-        self.data().ctxt
+        self.data_untracked().ctxt
     }
     #[inline]
     pub fn with_ctxt(self, ctxt: SyntaxContext) -> Span {
-        self.data().with_ctxt(ctxt)
+        self.data_untracked().with_ctxt(ctxt)
     }
     #[inline]
     pub fn parent(self) -> Option<LocalDefId> {
@@ -539,7 +539,7 @@ impl Span {
     /// Returns `true` if this is a dummy span with any hygienic context.
     #[inline]
     pub fn is_dummy(self) -> bool {
-        self.data().is_dummy()
+        self.data_untracked().is_dummy()
     }
 
     /// Returns `true` if this span comes from a macro or desugaring.
@@ -561,20 +561,20 @@ impl Span {
     /// Returns a new span representing an empty span at the beginning of this span.
     #[inline]
     pub fn shrink_to_lo(self) -> Span {
-        let span = self.data();
+        let span = self.data_untracked();
         span.with_hi(span.lo)
     }
     /// Returns a new span representing an empty span at the end of this span.
     #[inline]
     pub fn shrink_to_hi(self) -> Span {
-        let span = self.data();
+        let span = self.data_untracked();
         span.with_lo(span.hi)
     }
 
     #[inline]
     /// Returns `true` if `hi == lo`.
     pub fn is_empty(&self) -> bool {
-        let span = self.data();
+        let span = self.data_untracked();
         span.hi == span.lo
     }