1
Fork 0

ResolverTree does not require access to the crate loader, only the store

This commit is contained in:
Oli Scherer 2022-12-07 13:34:05 +00:00
parent 14ca83a04b
commit 4b08fbaea8
2 changed files with 6 additions and 6 deletions

View file

@ -107,7 +107,7 @@ impl<'r, 'a> EffectiveVisibilitiesVisitor<'r, 'a> {
r.effective_visibilities.update_eff_vis(
r.local_def_id(node_id),
eff_vis,
ResolverTree(&r.definitions, &r.crate_loader),
ResolverTree(&r.definitions, r.crate_loader.cstore()),
)
}
}