File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ use log::debug;
22
22
23
23
use rustc_data_structures:: sync:: Lrc ;
24
24
use rustc_driver:: Compilation ;
25
- use rustc_hir:: { self as hir, def_id :: LOCAL_CRATE , Node } ;
25
+ use rustc_hir:: { self as hir, Node } ;
26
26
use rustc_interface:: interface:: Config ;
27
27
use rustc_middle:: {
28
28
middle:: exported_symbols:: {
@@ -107,8 +107,7 @@ impl rustc_driver::Callbacks for MiriBeRustCompilerCalls {
107
107
config. override_queries = Some ( |_, local_providers, _| {
108
108
// `exported_symbols` and `reachable_non_generics` provided by rustc always returns
109
109
// an empty result if `tcx.sess.opts.output_types.should_codegen()` is false.
110
- local_providers. exported_symbols = |tcx, cnum| {
111
- assert_eq ! ( cnum, LOCAL_CRATE ) ;
110
+ local_providers. exported_symbols = |tcx, ( ) | {
112
111
let reachable_set = tcx. with_stable_hashing_context ( |hcx| {
113
112
tcx. reachable_set ( ( ) ) . to_sorted ( & hcx, true )
114
113
} ) ;
You can’t perform that action at this time.
0 commit comments