Remove eval_always for HIR queries.
They depend on `hir_crate` and `index_hir`.
This commit is contained in:
parent
0157cc977f
commit
54c3299b3a
2 changed files with 1 additions and 11 deletions
|
@ -163,7 +163,7 @@ pub fn provide(providers: &mut Providers) {
|
|||
let index = tcx.index_hir(());
|
||||
index.parenting.get(&id).copied().unwrap_or(CRATE_HIR_ID)
|
||||
};
|
||||
providers.hir_attrs = |tcx, id| AttributeMap { map: &tcx.untracked_crate.attrs, prefix: id };
|
||||
providers.hir_attrs = |tcx, id| AttributeMap { map: &tcx.hir_crate(()).attrs, prefix: id };
|
||||
providers.source_span = |tcx, def_id| tcx.resolutions(()).definitions.def_span(def_id);
|
||||
providers.def_span = |tcx, def_id| tcx.hir().span_if_local(def_id).unwrap_or(DUMMY_SP);
|
||||
providers.fn_arg_names = |tcx, id| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue