Revert "Reduce the amount of untracked state in TyCtxt"
This commit is contained in:
parent
c9c1f8be3f
commit
0f0f3138cb
49 changed files with 255 additions and 234 deletions
|
@ -2030,7 +2030,7 @@ pub fn provide(providers: &mut Providers) {
|
|||
|
||||
fn visibility(tcx: TyCtxt<'_>, def_id: DefId) -> ty::Visibility {
|
||||
let def_id = def_id.expect_local();
|
||||
match tcx.resolutions(()).visibilities.get(&def_id) {
|
||||
match tcx.visibilities.get(&def_id) {
|
||||
Some(vis) => *vis,
|
||||
None => {
|
||||
let hir_id = tcx.hir().local_def_id_to_hir_id(def_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue