Skip to content

Commit 168aec6

Browse files
LocalCrate key
1 parent b6055a4 commit 168aec6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin/miri.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ use rustc_middle::{
2929
ExportedSymbol, SymbolExportInfo, SymbolExportKind, SymbolExportLevel,
3030
},
3131
ty::{query::ExternProviders, TyCtxt},
32+
query::LocalCrate,
3233
};
3334
use rustc_session::{config::CrateType, search_paths::PathKind, CtfeBacktrace};
3435

@@ -107,7 +108,7 @@ impl rustc_driver::Callbacks for MiriBeRustCompilerCalls {
107108
config.override_queries = Some(|_, local_providers, _| {
108109
// `exported_symbols` and `reachable_non_generics` provided by rustc always returns
109110
// an empty result if `tcx.sess.opts.output_types.should_codegen()` is false.
110-
local_providers.exported_symbols = |tcx, ()| {
111+
local_providers.exported_symbols = |tcx, LocalCrate| {
111112
let reachable_set = tcx.with_stable_hashing_context(|hcx| {
112113
tcx.reachable_set(()).to_sorted(&hcx, true)
113114
});

0 commit comments

Comments
 (0)