Fill in def_span
when creating def ids.
This makes sure that ICEing because of def ids created outside of ast lowering will be able to produce a query backtrace and not cause a double panic because of trying to call the `def_span` query
This commit is contained in:
parent
a0bdb4b498
commit
ab75d777de
6 changed files with 29 additions and 8 deletions
|
@ -1109,6 +1109,7 @@ rustc_queries! {
|
|||
desc { |tcx| "looking up span for `{}`", tcx.def_path_str(def_id) }
|
||||
cache_on_disk_if { def_id.is_local() }
|
||||
separate_provide_extern
|
||||
feedable
|
||||
}
|
||||
|
||||
/// Gets the span for the identifier of the definition.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue