Avoid using feed_unit_query from within queries
This commit is contained in:
parent
c696d4c323
commit
ef00fae46d
9 changed files with 22 additions and 18 deletions
|
@ -243,7 +243,7 @@ impl<'ast, 'tcx> LanguageItemCollector<'ast, 'tcx> {
|
|||
|
||||
/// Traverses and collects all the lang items in all crates.
|
||||
fn get_lang_items(tcx: TyCtxt<'_>, (): ()) -> LanguageItems {
|
||||
let resolver = tcx.resolver_for_lowering(()).borrow();
|
||||
let resolver = tcx.resolver_for_lowering().borrow();
|
||||
let (resolver, krate) = &*resolver;
|
||||
|
||||
// Initialize the collector.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue