about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2022-12-05 16:37:44 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-01-12 17:14:17 +0000
commit194b4a2adbda6809d9fd878bfbb4998f0a0e90bb (patch)
treefc28c3cee81ebe563e6ba2938fc262b728aca6b9 /compiler/rustc_interface/src
parent408ae0fcb9d154691470ce8fc644394c20a97405 (diff)
downloadrust-194b4a2adbda6809d9fd878bfbb4998f0a0e90bb.tar.gz
rust-194b4a2adbda6809d9fd878bfbb4998f0a0e90bb.zip
Feed `crate_name` query
Diffstat (limited to 'compiler/rustc_interface/src')
-rw-r--r--compiler/rustc_interface/src/passes.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs
index e8656e0dbc2..82327af65e2 100644
--- a/compiler/rustc_interface/src/passes.rs
+++ b/compiler/rustc_interface/src/passes.rs
@@ -823,7 +823,6 @@ pub fn create_global_ctxt<'tcx>(
                 queries.on_disk_cache.as_ref().map(OnDiskCache::as_dyn),
                 queries.as_dyn(),
                 rustc_query_impl::query_callbacks(arena),
-                crate_name,
                 outputs,
             )
         })
@@ -834,6 +833,8 @@ pub fn create_global_ctxt<'tcx>(
         let feed = tcx.feed_unit_query();
         feed.resolver_for_lowering(tcx.arena.alloc(Steal::new(untracked_resolver_for_lowering)));
         feed.resolutions(tcx.arena.alloc(untracked_resolutions));
+        let feed = tcx.feed_local_crate();
+        feed.crate_name(crate_name);
     });
     qcx
 }