Skip to content

Commit 5e026ea

Browse files
committed
Remove some span tracking.
1 parent f84856c commit 5e026ea

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

compiler/rustc_span/src/lib.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -521,11 +521,11 @@ impl Span {
521521
}
522522
#[inline]
523523
pub fn ctxt(self) -> SyntaxContext {
524-
self.data().ctxt
524+
self.data_untracked().ctxt
525525
}
526526
#[inline]
527527
pub fn with_ctxt(self, ctxt: SyntaxContext) -> Span {
528-
self.data().with_ctxt(ctxt)
528+
self.data_untracked().with_ctxt(ctxt)
529529
}
530530
#[inline]
531531
pub fn parent(self) -> Option<LocalDefId> {
@@ -539,7 +539,7 @@ impl Span {
539539
/// Returns `true` if this is a dummy span with any hygienic context.
540540
#[inline]
541541
pub fn is_dummy(self) -> bool {
542-
self.data().is_dummy()
542+
self.data_untracked().is_dummy()
543543
}
544544

545545
/// Returns `true` if this span comes from a macro or desugaring.
@@ -561,20 +561,20 @@ impl Span {
561561
/// Returns a new span representing an empty span at the beginning of this span.
562562
#[inline]
563563
pub fn shrink_to_lo(self) -> Span {
564-
let span = self.data();
564+
let span = self.data_untracked();
565565
span.with_hi(span.lo)
566566
}
567567
/// Returns a new span representing an empty span at the end of this span.
568568
#[inline]
569569
pub fn shrink_to_hi(self) -> Span {
570-
let span = self.data();
570+
let span = self.data_untracked();
571571
span.with_lo(span.hi)
572572
}
573573

574574
#[inline]
575575
/// Returns `true` if `hi == lo`.
576576
pub fn is_empty(&self) -> bool {
577-
let span = self.data();
577+
let span = self.data_untracked();
578578
span.hi == span.lo
579579
}
580580

0 commit comments

Comments
 (0)