File tree 3 files changed +3
-5
lines changed
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;
3
3
extern crate rustc_interface;
4
4
5
5
use rustc_driver:: Compilation ;
6
- use rustc_hir:: def_id:: LOCAL_CRATE ;
7
6
use rustc_interface:: { interface, Queries } ;
8
7
9
8
use crate :: test:: Bencher ;
@@ -22,7 +21,7 @@ impl rustc_driver::Callbacks for MiriCompilerCalls<'_> {
22
21
23
22
queries. global_ctxt ( ) . unwrap ( ) . peek_mut ( ) . enter ( |tcx| {
24
23
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" ) ;
26
25
27
26
self . bencher . iter ( || {
28
27
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;
16
16
17
17
use rustc_driver:: Compilation ;
18
18
use rustc_errors:: emitter:: { ColorConfig , HumanReadableErrorType } ;
19
- use rustc_hir:: def_id:: LOCAL_CRATE ;
20
19
use rustc_middle:: ty:: TyCtxt ;
21
20
use rustc_session:: { config:: ErrorOutputType , CtfeBacktrace } ;
22
21
@@ -34,7 +33,7 @@ impl rustc_driver::Callbacks for MiriCompilerCalls {
34
33
35
34
queries. global_ctxt ( ) . unwrap ( ) . peek_mut ( ) . enter ( |tcx| {
36
35
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 ( ( ) ) {
38
37
( entry_def, x)
39
38
} else {
40
39
let output_ty = ErrorOutputType :: HumanReadable ( HumanReadableErrorType :: Default (
You can’t perform that action at this time.
0 commit comments