Skip to content

Commit 55664bc

Browse files
committed
Auto merge of #1802 - RalfJung:rustup, r=RalfJung
rustup Cc rust-lang/rust#85397
2 parents c6fefa5 + cf3376e commit 55664bc

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

benches/helpers/miri_helper.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ extern crate rustc_hir;
33
extern crate rustc_interface;
44

55
use rustc_driver::Compilation;
6-
use rustc_hir::def_id::LOCAL_CRATE;
76
use rustc_interface::{interface, Queries};
87

98
use 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();

rust-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
c6dd87a6b4a62cf5d2cb6207b1dcea652ea1aa60
1+
3396a383bb1d1fdad8ceeb74f16cf08e0bd62a1b

src/bin/miri.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ use log::debug;
1616

1717
use rustc_driver::Compilation;
1818
use rustc_errors::emitter::{ColorConfig, HumanReadableErrorType};
19-
use rustc_hir::def_id::LOCAL_CRATE;
2019
use rustc_middle::ty::TyCtxt;
2120
use 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(

0 commit comments

Comments
 (0)