Record tcx.def_span
instead of item.span
in crate metadata
This was missed in PR #75465. As a result, a few places have been using the full body span of functions, instead of just the header span.
This commit is contained in:
parent
4eff9b0b29
commit
e734733a9e
7 changed files with 20 additions and 42 deletions
|
@ -1300,7 +1300,7 @@ impl EncodeContext<'a, 'tcx> {
|
|||
});
|
||||
record!(self.tables.visibility[def_id] <-
|
||||
ty::Visibility::from_hir(&item.vis, item.hir_id, tcx));
|
||||
record!(self.tables.span[def_id] <- item.span);
|
||||
record!(self.tables.span[def_id] <- self.tcx.def_span(def_id));
|
||||
record!(self.tables.attributes[def_id] <- item.attrs);
|
||||
// FIXME(eddyb) there should be a nicer way to do this.
|
||||
match item.kind {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue