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;
2222
2323use rustc_data_structures:: sync:: Lrc ;
2424use rustc_driver:: Compilation ;
25- use rustc_hir:: { self as hir, def_id :: LOCAL_CRATE , Node } ;
25+ use rustc_hir:: { self as hir, Node } ;
2626use rustc_interface:: interface:: Config ;
2727use rustc_middle:: {
2828 middle:: exported_symbols:: {
@@ -107,8 +107,7 @@ impl rustc_driver::Callbacks for MiriBeRustCompilerCalls {
107107 config. override_queries = Some ( |_, local_providers, _| {
108108 // `exported_symbols` and `reachable_non_generics` provided by rustc always returns
109109 // 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, ( ) | {
112111 let reachable_set = tcx. with_stable_hashing_context ( |hcx| {
113112 tcx. reachable_set ( ( ) ) . to_sorted ( & hcx, true )
114113 } ) ;
You can’t perform that action at this time.
0 commit comments