Keep a parent LocalDefId in SpanData.
This commit is contained in:
parent
06f7ca307d
commit
00485e0c0e
22 changed files with 88 additions and 40 deletions
|
@ -745,7 +745,7 @@ impl server::Span for Rustc<'_> {
|
|||
self.sess.source_map().lookup_char_pos(span.lo()).file
|
||||
}
|
||||
fn parent(&mut self, span: Self::Span) -> Option<Self::Span> {
|
||||
span.parent()
|
||||
span.parent_callsite()
|
||||
}
|
||||
fn source(&mut self, span: Self::Span) -> Self::Span {
|
||||
span.source_callsite()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue