Skip to content

Commit 7b5fc97

Browse files
committed
Adapt miri.
1 parent 4cdb3d5 commit 7b5fc97

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

src/tools/miri/src/eval.rs

-1
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,6 @@ pub fn create_ecx<'mir, 'tcx: 'mir>(
279279
EntryFnType::Main { .. } => {
280280
let start_id = tcx.lang_items().start_fn().unwrap();
281281
let main_ret_ty = tcx.fn_sig(entry_id).output();
282-
let main_ret_ty = main_ret_ty.no_bound_vars().unwrap();
283282
let start_instance = ty::Instance::resolve(
284283
tcx,
285284
ty::ParamEnv::reveal_all(),

src/tools/miri/tests/fail/shims/fs/isolated_file.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ LL | let fd = cvt_r(|| unsafe { open64(path.as_ptr(), flags, opts.mode a
1111
= note: inside `std::sys::PLATFORM::cvt_r::<i32, [closure@std::sys::PLATFORM::fs::File::open_c::{closure#0}]>` at RUSTLIB/std/src/sys/PLATFORM/mod.rs:LL:CC
1212
= note: inside `std::sys::PLATFORM::fs::File::open_c` at RUSTLIB/std/src/sys/PLATFORM/fs.rs:LL:CC
1313
= note: inside closure at RUSTLIB/std/src/sys/PLATFORM/fs.rs:LL:CC
14-
= note: inside `std::sys::PLATFORM::small_c_string::run_with_cstr::<std::sys::PLATFORM::fs::File, [closure@std::sys::PLATFORM::fs::File::open::{closure#0}]>` at RUSTLIB/std/src/sys/PLATFORM/small_c_string.rs:LL:CC
15-
= note: inside `std::sys::PLATFORM::small_c_string::run_path_with_cstr::<std::sys::PLATFORM::fs::File, [closure@std::sys::PLATFORM::fs::File::open::{closure#0}]>` at RUSTLIB/std/src/sys/PLATFORM/small_c_string.rs:LL:CC
14+
= note: inside `std::sys::PLATFORM::small_c_string::run_with_cstr::<std::sys::PLATFORM::fs::File, [closure@std::sys::PLATFORM::fs::File::open::{closure#0}], '_>` at RUSTLIB/std/src/sys/PLATFORM/small_c_string.rs:LL:CC
15+
= note: inside `std::sys::PLATFORM::small_c_string::run_path_with_cstr::<std::sys::PLATFORM::fs::File, [closure@std::sys::PLATFORM::fs::File::open::{closure#0}], '_>` at RUSTLIB/std/src/sys/PLATFORM/small_c_string.rs:LL:CC
1616
= note: inside `std::sys::PLATFORM::fs::File::open` at RUSTLIB/std/src/sys/PLATFORM/fs.rs:LL:CC
1717
= note: inside `std::fs::OpenOptions::_open` at RUSTLIB/std/src/fs.rs:LL:CC
18-
= note: inside `std::fs::OpenOptions::open::<&std::path::Path>` at RUSTLIB/std/src/fs.rs:LL:CC
18+
= note: inside `std::fs::OpenOptions::open::<&std::path::Path, '_>` at RUSTLIB/std/src/fs.rs:LL:CC
1919
= note: inside `std::fs::File::open::<&str>` at RUSTLIB/std/src/fs.rs:LL:CC
2020
note: inside `main` at $DIR/isolated_file.rs:LL:CC
2121
--> $DIR/isolated_file.rs:LL:CC

src/tools/miri/tests/fail/stacked_borrows/newtype_retagging.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ note: inside closure at $DIR/newtype_retagging.rs:LL:CC
2424
|
2525
LL | || drop(Box::from_raw(ptr)),
2626
| ^^^^^^^^^^^^^^^^^^
27-
note: inside `dealloc_while_running::<[closure@$DIR/newtype_retagging.rs:LL:CC]>` at $DIR/newtype_retagging.rs:LL:CC
27+
note: inside `dealloc_while_running::<[closure@$DIR/newtype_retagging.rs:LL:CC], '_>` at $DIR/newtype_retagging.rs:LL:CC
2828
--> $DIR/newtype_retagging.rs:LL:CC
2929
|
3030
LL | dealloc();

src/tools/miri/tests/fail/stacked_borrows/zst_slice.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ help: <TAG> would have been created here, but this is a zero-size retag ([0x0..0
1515
LL | assert_eq!(*s.get_unchecked(1), 2);
1616
| ^^^^^^^^^^^^^^^^^^
1717
= note: BACKTRACE:
18-
= note: inside `core::slice::<impl [i32]>::get_unchecked::<usize>` at RUSTLIB/core/src/slice/mod.rs:LL:CC
18+
= note: inside `core::slice::<impl [i32]>::get_unchecked::<usize, '_>` at RUSTLIB/core/src/slice/mod.rs:LL:CC
1919
note: inside `main` at $DIR/zst_slice.rs:LL:CC
2020
--> $DIR/zst_slice.rs:LL:CC
2121
|

0 commit comments

Comments
 (0)