File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ extern crate rustc_hir;
33extern crate rustc_interface;
44
55use rustc_driver:: Compilation ;
6- use rustc_hir:: def_id:: LOCAL_CRATE ;
76use rustc_interface:: { interface, Queries } ;
87
98use crate :: test:: Bencher ;
@@ -22,7 +21,7 @@ impl rustc_driver::Callbacks for MiriCompilerCalls<'_> {
2221
2322 queries. global_ctxt ( ) . unwrap ( ) . peek_mut ( ) . enter ( |tcx| {
2423 let ( entry_def_id, _) =
25- tcx. entry_fn ( LOCAL_CRATE ) . expect ( "no main or start function found" ) ;
24+ tcx. entry_fn ( ( ) ) . expect ( "no main or start function found" ) ;
2625
2726 self . bencher . iter ( || {
2827 let config = miri:: MiriConfig :: default ( ) ;
Original file line number Diff line number Diff line change 1- c6dd87a6b4a62cf5d2cb6207b1dcea652ea1aa60
1+ 3396a383bb1d1fdad8ceeb74f16cf08e0bd62a1b
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ use log::debug;
1616
1717use rustc_driver:: Compilation ;
1818use rustc_errors:: emitter:: { ColorConfig , HumanReadableErrorType } ;
19- use rustc_hir:: def_id:: LOCAL_CRATE ;
2019use rustc_middle:: ty:: TyCtxt ;
2120use rustc_session:: { config:: ErrorOutputType , CtfeBacktrace } ;
2221
@@ -34,7 +33,7 @@ impl rustc_driver::Callbacks for MiriCompilerCalls {
3433
3534 queries. global_ctxt ( ) . unwrap ( ) . peek_mut ( ) . enter ( |tcx| {
3635 init_late_loggers ( tcx) ;
37- let ( entry_def_id, _) = if let Some ( ( entry_def, x) ) = tcx. entry_fn ( LOCAL_CRATE ) {
36+ let ( entry_def_id, _) = if let Some ( ( entry_def, x) ) = tcx. entry_fn ( ( ) ) {
3837 ( entry_def, x)
3938 } else {
4039 let output_ty = ErrorOutputType :: HumanReadable ( HumanReadableErrorType :: Default (
You can’t perform that action at this time.
0 commit comments