1
Fork 0

Keep ctxt in encoded span representation.

This commit is contained in:
Camille GILLOT 2022-07-03 12:20:40 +02:00
parent 75b7e52e92
commit b2a17e9bd1
2 changed files with 23 additions and 12 deletions

View file

@ -533,9 +533,6 @@ impl Span {
self.data().with_hi(hi)
}
#[inline]
pub fn ctxt(self) -> SyntaxContext {
self.data_untracked().ctxt
}
pub fn eq_ctxt(self, other: Span) -> bool {
self.data_untracked().ctxt == other.data_untracked().ctxt
}