resolve: Scope visiting doesn't need an Ident
This commit is contained in:
parent
bf5f30684a
commit
3ff866ed7c
6 changed files with 90 additions and 57 deletions
|
@ -300,6 +300,10 @@ pub struct SpanData {
|
|||
}
|
||||
|
||||
impl SpanData {
|
||||
#[inline]
|
||||
pub fn span(&self) -> Span {
|
||||
Span::new(self.lo, self.hi, self.ctxt)
|
||||
}
|
||||
#[inline]
|
||||
pub fn with_lo(&self, lo: BytePos) -> Span {
|
||||
Span::new(lo, self.hi, self.ctxt)
|
||||
|
@ -468,7 +472,7 @@ impl Span {
|
|||
|
||||
/// Edition of the crate from which this span came.
|
||||
pub fn edition(self) -> edition::Edition {
|
||||
self.ctxt().outer_expn_data().edition
|
||||
self.ctxt().edition()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue