Skip to content

Commit ac7a752

Browse files
committed
Auto merge of #2723 - RalfJung:rustup, r=RalfJung
Rustup
2 parents a64c1fd + 69214c6 commit ac7a752

File tree

67 files changed

+83
-81
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+83
-81
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7701a7e7d4eed74a106f39fa64899dffd1e1025f
1+
e1c91213ff80af5b87a197b784b40bcbc8cf3add

src/diagnostics.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,9 @@ fn report_msg<'tcx>(
364364
if is_local && idx > 0 {
365365
err.span_note(frame_info.span, &frame_info.to_string());
366366
} else {
367-
err.note(&frame_info.to_string());
367+
let sm = sess.source_map();
368+
let span = sm.span_to_embeddable_string(frame_info.span);
369+
err.note(format!("{frame_info} at {span}"));
368370
}
369371
}
370372

tests/fail/abort-terminator.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ LL | | }
1010
| |_^ the program aborted execution
1111
|
1212
= note: inside `panic_abort` at $DIR/abort-terminator.rs:LL:CC
13-
note: inside `main` at $DIR/abort-terminator.rs:LL:CC
13+
note: inside `main`
1414
--> $DIR/abort-terminator.rs:LL:CC
1515
|
1616
LL | panic_abort();

tests/fail/alloc/deallocate-bad-alignment.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ LL | unsafe { __rust_dealloc(ptr, layout.size(), layout.align()) }
88
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
99
= note: BACKTRACE:
1010
= note: inside `std::alloc::dealloc` at RUSTLIB/alloc/src/alloc.rs:LL:CC
11-
note: inside `main` at $DIR/deallocate-bad-alignment.rs:LL:CC
11+
note: inside `main`
1212
--> $DIR/deallocate-bad-alignment.rs:LL:CC
1313
|
1414
LL | dealloc(x, Layout::from_size_align_unchecked(1, 2));

tests/fail/alloc/deallocate-bad-size.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ LL | unsafe { __rust_dealloc(ptr, layout.size(), layout.align()) }
88
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
99
= note: BACKTRACE:
1010
= note: inside `std::alloc::dealloc` at RUSTLIB/alloc/src/alloc.rs:LL:CC
11-
note: inside `main` at $DIR/deallocate-bad-size.rs:LL:CC
11+
note: inside `main`
1212
--> $DIR/deallocate-bad-size.rs:LL:CC
1313
|
1414
LL | dealloc(x, Layout::from_size_align_unchecked(2, 1));

tests/fail/alloc/deallocate-twice.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ LL | unsafe { __rust_dealloc(ptr, layout.size(), layout.align()) }
88
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
99
= note: BACKTRACE:
1010
= note: inside `std::alloc::dealloc` at RUSTLIB/alloc/src/alloc.rs:LL:CC
11-
note: inside `main` at $DIR/deallocate-twice.rs:LL:CC
11+
note: inside `main`
1212
--> $DIR/deallocate-twice.rs:LL:CC
1313
|
1414
LL | dealloc(x, Layout::from_size_align_unchecked(1, 1));

tests/fail/alloc/global_system_mixup.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ LL | FREE();
99
= note: BACKTRACE:
1010
= note: inside `std::sys::PLATFORM::alloc::<impl std::alloc::GlobalAlloc for std::alloc::System>::dealloc` at RUSTLIB/std/src/sys/PLATFORM/alloc.rs:LL:CC
1111
= note: inside `<std::alloc::System as std::alloc::Allocator>::deallocate` at RUSTLIB/std/src/alloc.rs:LL:CC
12-
note: inside `main` at $DIR/global_system_mixup.rs:LL:CC
12+
note: inside `main`
1313
--> $DIR/global_system_mixup.rs:LL:CC
1414
|
1515
LL | System.deallocate(ptr, l);

tests/fail/alloc/reallocate-bad-size.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ LL | unsafe { __rust_realloc(ptr, layout.size(), layout.align(), new_size) }
88
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
99
= note: BACKTRACE:
1010
= note: inside `std::alloc::realloc` at RUSTLIB/alloc/src/alloc.rs:LL:CC
11-
note: inside `main` at $DIR/reallocate-bad-size.rs:LL:CC
11+
note: inside `main`
1212
--> $DIR/reallocate-bad-size.rs:LL:CC
1313
|
1414
LL | let _y = realloc(x, Layout::from_size_align_unchecked(2, 1), 1);

tests/fail/alloc/reallocate-dangling.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ LL | unsafe { __rust_realloc(ptr, layout.size(), layout.align(), new_size) }
88
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
99
= note: BACKTRACE:
1010
= note: inside `std::alloc::realloc` at RUSTLIB/alloc/src/alloc.rs:LL:CC
11-
note: inside `main` at $DIR/reallocate-dangling.rs:LL:CC
11+
note: inside `main`
1212
--> $DIR/reallocate-dangling.rs:LL:CC
1313
|
1414
LL | let _z = realloc(x, Layout::from_size_align_unchecked(1, 1), 1);

tests/fail/alloc/stack_free.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ LL | unsafe { __rust_dealloc(ptr, layout.size(), layout.align()) }
1212
= note: inside `alloc::alloc::box_free::<i32, std::alloc::Global>` at RUSTLIB/alloc/src/alloc.rs:LL:CC
1313
= note: inside `std::ptr::drop_in_place::<std::boxed::Box<i32>> - shim(Some(std::boxed::Box<i32>))` at RUSTLIB/core/src/ptr/mod.rs:LL:CC
1414
= note: inside `std::mem::drop::<std::boxed::Box<i32>>` at RUSTLIB/core/src/mem/mod.rs:LL:CC
15-
note: inside `main` at $DIR/stack_free.rs:LL:CC
15+
note: inside `main`
1616
--> $DIR/stack_free.rs:LL:CC
1717
|
1818
LL | drop(bad_box);

tests/fail/box-cell-alias.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ LL | let res = helper(val, ptr);
2121
| ^^^
2222
= note: BACKTRACE:
2323
= note: inside `helper` at $DIR/box-cell-alias.rs:LL:CC
24-
note: inside `main` at $DIR/box-cell-alias.rs:LL:CC
24+
note: inside `main`
2525
--> $DIR/box-cell-alias.rs:LL:CC
2626
|
2727
LL | let res = helper(val, ptr);

tests/fail/concurrency/windows_join_detached.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ LL | let rc = unsafe { c::WaitForSingleObject(self.handle.as_raw_handle(
1010
= note: inside `std::sys::PLATFORM::thread::Thread::join` at RUSTLIB/std/src/sys/PLATFORM/thread.rs:LL:CC
1111
= note: inside `std::thread::JoinInner::<'_, ()>::join` at RUSTLIB/std/src/thread/mod.rs:LL:CC
1212
= note: inside `std::thread::JoinHandle::<()>::join` at RUSTLIB/std/src/thread/mod.rs:LL:CC
13-
note: inside `main` at $DIR/windows_join_detached.rs:LL:CC
13+
note: inside `main`
1414
--> $DIR/windows_join_detached.rs:LL:CC
1515
|
1616
LL | thread.join().unwrap();

tests/fail/crates/tokio_mvp.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LL | let res = syscall!(epoll_create1(libc::EPOLL_CLOEXEC));
66
|
77
= help: this is likely not a bug in the program; it indicates that the program performed an operation that the interpreter does not support
88
= note: BACKTRACE:
9-
note: inside `main` at $DIR/tokio_mvp.rs:LL:CC
9+
note: inside `main`
1010
--> $DIR/tokio_mvp.rs:LL:CC
1111
|
1212
LL | #[tokio::main]

tests/fail/dangling_pointers/storage_dead_dangling.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ LL | unsafe { &mut *(LEAK as *mut i32) };
88
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
99
= note: BACKTRACE:
1010
= note: inside `evil` at $DIR/storage_dead_dangling.rs:LL:CC
11-
note: inside `main` at $DIR/storage_dead_dangling.rs:LL:CC
11+
note: inside `main`
1212
--> $DIR/storage_dead_dangling.rs:LL:CC
1313
|
1414
LL | evil();

tests/fail/data_race/stack_pop_race.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ LL | }
88
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
99
= note: BACKTRACE:
1010
= note: inside `race` at $DIR/stack_pop_race.rs:LL:CC
11-
note: inside `main` at $DIR/stack_pop_race.rs:LL:CC
11+
note: inside `main`
1212
--> $DIR/stack_pop_race.rs:LL:CC
1313
|
1414
LL | race(0);

tests/fail/function_calls/exported_symbol_bad_unwind2.both.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ LL | | }
1111
| |_^ the program aborted execution
1212
|
1313
= note: inside `nounwind` at $DIR/exported_symbol_bad_unwind2.rs:LL:CC
14-
note: inside `main` at $DIR/exported_symbol_bad_unwind2.rs:LL:CC
14+
note: inside `main`
1515
--> $DIR/exported_symbol_bad_unwind2.rs:LL:CC
1616
|
1717
LL | unsafe { nounwind() }

tests/fail/function_calls/exported_symbol_bad_unwind2.definition.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ LL | | }
1111
| |_^ the program aborted execution
1212
|
1313
= note: inside `nounwind` at $DIR/exported_symbol_bad_unwind2.rs:LL:CC
14-
note: inside `main` at $DIR/exported_symbol_bad_unwind2.rs:LL:CC
14+
note: inside `main`
1515
--> $DIR/exported_symbol_bad_unwind2.rs:LL:CC
1616
|
1717
LL | unsafe { nounwind() }

tests/fail/generator-pinned-moved.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ LL | *num += 1;
88
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
99
= note: BACKTRACE:
1010
= note: inside closure at $DIR/generator-pinned-moved.rs:LL:CC
11-
note: inside `<GeneratorIteratorAdapter<[static generator@$DIR/generator-pinned-moved.rs:LL:CC]> as std::iter::Iterator>::next` at $DIR/generator-pinned-moved.rs:LL:CC
11+
note: inside `<GeneratorIteratorAdapter<[static generator@$DIR/generator-pinned-moved.rs:LL:CC]> as std::iter::Iterator>::next`
1212
--> $DIR/generator-pinned-moved.rs:LL:CC
1313
|
1414
LL | match me.resume(()) {
1515
| ^^^^^^^^^^^^^
1616
= note: inside `<std::boxed::Box<GeneratorIteratorAdapter<[static generator@$DIR/generator-pinned-moved.rs:LL:CC]>> as std::iter::Iterator>::next` at RUSTLIB/alloc/src/boxed.rs:LL:CC
17-
note: inside `main` at $DIR/generator-pinned-moved.rs:LL:CC
17+
note: inside `main`
1818
--> $DIR/generator-pinned-moved.rs:LL:CC
1919
|
2020
LL | generator_iterator_2.next(); // and use moved value

tests/fail/intrinsics/simd-float-to-int.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ LL | unsafe { intrinsics::simd_cast(self) }
88
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
99
= note: BACKTRACE:
1010
= note: inside `std::simd::Simd::<f32, 2>::to_int_unchecked::<i32>` at RUSTLIB/core/src/../../portable-simd/crates/core_simd/src/vector.rs:LL:CC
11-
note: inside `main` at $DIR/simd-float-to-int.rs:LL:CC
11+
note: inside `main`
1212
--> $DIR/simd-float-to-int.rs:LL:CC
1313
|
1414
LL | let _x: i32x2 = f32x2::from_array([f32::MAX, f32::MIN]).to_int_unchecked();

tests/fail/intrinsics/simd-gather.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ LL | unsafe { intrinsics::simd_gather(or, ptrs, enable.to_int()) }
88
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
99
= note: BACKTRACE:
1010
= note: inside `std::simd::Simd::<i8, 4>::gather_select_unchecked` at RUSTLIB/core/src/../../portable-simd/crates/core_simd/src/vector.rs:LL:CC
11-
note: inside `main` at $DIR/simd-gather.rs:LL:CC
11+
note: inside `main`
1212
--> $DIR/simd-gather.rs:LL:CC
1313
|
1414
LL | let _result = Simd::gather_select_unchecked(&vec, Mask::splat(true), idxs, Simd::splat(0));

tests/fail/intrinsics/simd-scatter.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ LL | intrinsics::simd_scatter(self, ptrs, enable.to_int())
88
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
99
= note: BACKTRACE:
1010
= note: inside `std::simd::Simd::<i8, 4>::scatter_select_unchecked` at RUSTLIB/core/src/../../portable-simd/crates/core_simd/src/vector.rs:LL:CC
11-
note: inside `main` at $DIR/simd-scatter.rs:LL:CC
11+
note: inside `main`
1212
--> $DIR/simd-scatter.rs:LL:CC
1313
|
1414
LL | / Simd::from_array([-27, 82, -41, 124]).scatter_select_unchecked(

tests/fail/issue-miri-1112.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ LL | let obj = std::mem::transmute::<FatPointer, *mut FunnyPointer>(obj)
88
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
99
= note: BACKTRACE:
1010
= note: inside `FunnyPointer::from_data_ptr` at $DIR/issue-miri-1112.rs:LL:CC
11-
note: inside `main` at $DIR/issue-miri-1112.rs:LL:CC
11+
note: inside `main`
1212
--> $DIR/issue-miri-1112.rs:LL:CC
1313
|
1414
LL | let _raw: &FunnyPointer = FunnyPointer::from_data_ptr(&hello, &meta as *const _);

tests/fail/never_transmute_void.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ LL | match v.0 {}
88
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
99
= note: BACKTRACE:
1010
= note: inside `m::f` at $DIR/never_transmute_void.rs:LL:CC
11-
note: inside `main` at $DIR/never_transmute_void.rs:LL:CC
11+
note: inside `main`
1212
--> $DIR/never_transmute_void.rs:LL:CC
1313
|
1414
LL | m::f(v);

tests/fail/panic/bad_unwind.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ LL | std::panic::catch_unwind(|| unwind()).unwrap_err();
1313
= note: inside `std::panicking::r#try::do_call::<[closure@$DIR/bad_unwind.rs:LL:CC], ()>` at RUSTLIB/std/src/panicking.rs:LL:CC
1414
= note: inside `std::panicking::r#try::<(), [closure@$DIR/bad_unwind.rs:LL:CC]>` at RUSTLIB/std/src/panicking.rs:LL:CC
1515
= note: inside `std::panic::catch_unwind::<[closure@$DIR/bad_unwind.rs:LL:CC], ()>` at RUSTLIB/std/src/panic.rs:LL:CC
16-
note: inside `main` at $DIR/bad_unwind.rs:LL:CC
16+
note: inside `main`
1717
--> $DIR/bad_unwind.rs:LL:CC
1818
|
1919
LL | std::panic::catch_unwind(|| unwind()).unwrap_err();

tests/fail/panic/double_panic.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@ LL | ABORT();
7575
= note: inside `std::panicking::rust_panic_with_hook` at RUSTLIB/std/src/panicking.rs:LL:CC
7676
= note: inside closure at RUSTLIB/std/src/panicking.rs:LL:CC
7777
= note: inside `std::sys_common::backtrace::__rust_end_short_backtrace::<[closure@std::rt::begin_panic<&str>::{closure#0}], !>` at RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC
78-
note: inside `<Foo as std::ops::Drop>::drop` at RUSTLIB/std/src/panic.rs:LL:CC
78+
note: inside `<Foo as std::ops::Drop>::drop`
7979
--> $DIR/double_panic.rs:LL:CC
8080
|
8181
LL | panic!("second");
8282
| ^
8383
= note: inside `std::ptr::drop_in_place::<Foo> - shim(Some(Foo))` at RUSTLIB/core/src/ptr/mod.rs:LL:CC
84-
note: inside `main` at $DIR/double_panic.rs:LL:CC
84+
note: inside `main`
8585
--> $DIR/double_panic.rs:LL:CC
8686
|
8787
LL | }

tests/fail/panic/no_std.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LL | core::intrinsics::abort();
66
| ^^^^^^^^^^^^^^^^^^^^^^^^^ the program aborted execution
77
|
88
= note: inside `panic_handler` at $DIR/no_std.rs:LL:CC
9-
note: inside `start` at RUSTLIB/core/src/panic.rs:LL:CC
9+
note: inside `start`
1010
--> $DIR/no_std.rs:LL:CC
1111
|
1212
LL | panic!("blarg I am dead")

tests/fail/panic/panic_abort1.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ LL | ABORT();
1212
= note: inside `std::panicking::rust_panic_with_hook` at RUSTLIB/std/src/panicking.rs:LL:CC
1313
= note: inside closure at RUSTLIB/std/src/panicking.rs:LL:CC
1414
= note: inside `std::sys_common::backtrace::__rust_end_short_backtrace::<[closure@std::rt::begin_panic<&str>::{closure#0}], !>` at RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC
15-
note: inside `main` at RUSTLIB/std/src/panic.rs:LL:CC
15+
note: inside `main`
1616
--> $DIR/panic_abort1.rs:LL:CC
1717
|
1818
LL | std::panic!("panicking from libstd");

tests/fail/panic/panic_abort2.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ LL | ABORT();
1313
= note: inside closure at RUSTLIB/std/src/panicking.rs:LL:CC
1414
= note: inside `std::sys_common::backtrace::__rust_end_short_backtrace::<[closure@std::panicking::begin_panic_handler::{closure#0}], !>` at RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC
1515
= note: inside `std::panicking::begin_panic_handler` at RUSTLIB/std/src/panicking.rs:LL:CC
16-
note: inside `main` at RUSTLIB/std/src/panic.rs:LL:CC
16+
note: inside `main`
1717
--> $DIR/panic_abort2.rs:LL:CC
1818
|
1919
LL | std::panic!("{}-panicking from libstd", 42);

tests/fail/panic/panic_abort3.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ LL | ABORT();
1313
= note: inside closure at RUSTLIB/std/src/panicking.rs:LL:CC
1414
= note: inside `std::sys_common::backtrace::__rust_end_short_backtrace::<[closure@std::panicking::begin_panic_handler::{closure#0}], !>` at RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC
1515
= note: inside `std::panicking::begin_panic_handler` at RUSTLIB/std/src/panicking.rs:LL:CC
16-
note: inside `main` at RUSTLIB/core/src/panic.rs:LL:CC
16+
note: inside `main`
1717
--> $DIR/panic_abort3.rs:LL:CC
1818
|
1919
LL | core::panic!("panicking from libcore");

tests/fail/panic/panic_abort4.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ LL | ABORT();
1313
= note: inside closure at RUSTLIB/std/src/panicking.rs:LL:CC
1414
= note: inside `std::sys_common::backtrace::__rust_end_short_backtrace::<[closure@std::panicking::begin_panic_handler::{closure#0}], !>` at RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC
1515
= note: inside `std::panicking::begin_panic_handler` at RUSTLIB/std/src/panicking.rs:LL:CC
16-
note: inside `main` at RUSTLIB/core/src/panic.rs:LL:CC
16+
note: inside `main`
1717
--> $DIR/panic_abort4.rs:LL:CC
1818
|
1919
LL | core::panic!("{}-panicking from libcore", 42);

tests/fail/provenance/provenance_transmute.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ LL | let _val = *left_ptr;
88
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
99
= note: BACKTRACE:
1010
= note: inside `deref` at $DIR/provenance_transmute.rs:LL:CC
11-
note: inside `main` at $DIR/provenance_transmute.rs:LL:CC
11+
note: inside `main`
1212
--> $DIR/provenance_transmute.rs:LL:CC
1313
|
1414
LL | deref(ptr1, ptr2.with_addr(ptr1.addr()));

tests/fail/shims/fs/isolated_file.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ LL | let fd = cvt_r(|| unsafe { open64(path.as_ptr(), flags, opts.mode a
1717
= note: inside `std::fs::OpenOptions::_open` at RUSTLIB/std/src/fs.rs:LL:CC
1818
= 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
20-
note: inside `main` at $DIR/isolated_file.rs:LL:CC
20+
note: inside `main`
2121
--> $DIR/isolated_file.rs:LL:CC
2222
|
2323
LL | let _file = std::fs::File::open("file.txt").unwrap();

tests/fail/shims/fs/mkstemp_immutable_arg.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ LL | let _fd = unsafe { libc::mkstemp(s) };
88
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
99
= note: BACKTRACE:
1010
= note: inside `test_mkstemp_immutable_arg` at $DIR/mkstemp_immutable_arg.rs:LL:CC
11-
note: inside `main` at $DIR/mkstemp_immutable_arg.rs:LL:CC
11+
note: inside `main`
1212
--> $DIR/mkstemp_immutable_arg.rs:LL:CC
1313
|
1414
LL | test_mkstemp_immutable_arg();

tests/fail/shims/fs/unix_open_missing_required_mode.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ LL | ...safe { libc::open(name_ptr, libc::O_CREAT) };
88
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
99
= note: BACKTRACE:
1010
= note: inside `test_file_open_missing_needed_mode` at $DIR/unix_open_missing_required_mode.rs:LL:CC
11-
note: inside `main` at $DIR/unix_open_missing_required_mode.rs:LL:CC
11+
note: inside `main`
1212
--> $DIR/unix_open_missing_required_mode.rs:LL:CC
1313
|
1414
LL | test_file_open_missing_needed_mode();

tests/fail/should-pass/cpp20_rwc_syncs.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ LL | std::hint::unreachable_unchecked();
88
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
99
= note: BACKTRACE:
1010
= note: inside `test_cpp20_rwc_syncs` at $DIR/cpp20_rwc_syncs.rs:LL:CC
11-
note: inside `main` at $DIR/cpp20_rwc_syncs.rs:LL:CC
11+
note: inside `main`
1212
--> $DIR/cpp20_rwc_syncs.rs:LL:CC
1313
|
1414
LL | test_cpp20_rwc_syncs();

tests/fail/stacked_borrows/aliasing_mut1.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ LL | pub fn safe(_x: &mut i32, _y: &mut i32) {}
1818
| ^^
1919
= note: BACKTRACE:
2020
= note: inside `safe` at $DIR/aliasing_mut1.rs:LL:CC
21-
note: inside `main` at $DIR/aliasing_mut1.rs:LL:CC
21+
note: inside `main`
2222
--> $DIR/aliasing_mut1.rs:LL:CC
2323
|
2424
LL | safe_raw(xraw, xraw);

tests/fail/stacked_borrows/aliasing_mut2.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ LL | pub fn safe(_x: &i32, _y: &mut i32) {}
1818
| ^^
1919
= note: BACKTRACE:
2020
= note: inside `safe` at $DIR/aliasing_mut2.rs:LL:CC
21-
note: inside `main` at $DIR/aliasing_mut2.rs:LL:CC
21+
note: inside `main`
2222
--> $DIR/aliasing_mut2.rs:LL:CC
2323
|
2424
LL | safe_raw(xshr, xraw);

tests/fail/stacked_borrows/aliasing_mut3.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ LL | safe_raw(xraw, xshr);
2121
| ^^^^^^^^^^^^^^^^^^^^
2222
= note: BACKTRACE:
2323
= note: inside `safe` at $DIR/aliasing_mut3.rs:LL:CC
24-
note: inside `main` at $DIR/aliasing_mut3.rs:LL:CC
24+
note: inside `main`
2525
--> $DIR/aliasing_mut3.rs:LL:CC
2626
|
2727
LL | safe_raw(xraw, xshr);

tests/fail/stacked_borrows/aliasing_mut4.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ LL | pub fn safe(_x: &i32, _y: &mut Cell<i32>) {}
1818
| ^^
1919
= note: BACKTRACE:
2020
= note: inside `safe` at $DIR/aliasing_mut4.rs:LL:CC
21-
note: inside `main` at $DIR/aliasing_mut4.rs:LL:CC
21+
note: inside `main`
2222
--> $DIR/aliasing_mut4.rs:LL:CC
2323
|
2424
LL | safe_raw(xshr, xraw as *mut _);

tests/fail/stacked_borrows/box_exclusive_violation1.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ LL | *our = 5;
2121
| ^^^^^^^^
2222
= note: BACKTRACE:
2323
= note: inside `unknown_code_2` at $DIR/box_exclusive_violation1.rs:LL:CC
24-
note: inside `demo_box_advanced_unique` at $DIR/box_exclusive_violation1.rs:LL:CC
24+
note: inside `demo_box_advanced_unique`
2525
--> $DIR/box_exclusive_violation1.rs:LL:CC
2626
|
2727
LL | unknown_code_2();
2828
| ^^^^^^^^^^^^^^^^
29-
note: inside `main` at $DIR/box_exclusive_violation1.rs:LL:CC
29+
note: inside `main`
3030
--> $DIR/box_exclusive_violation1.rs:LL:CC
3131
|
3232
LL | demo_box_advanced_unique(Box::new(0));

tests/fail/stacked_borrows/box_noalias_violation.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ LL | unsafe fn test(mut x: Box<i32>, y: *const i32) -> i32 {
1818
| ^^^^^
1919
= note: BACKTRACE:
2020
= note: inside `test` at $DIR/box_noalias_violation.rs:LL:CC
21-
note: inside `main` at $DIR/box_noalias_violation.rs:LL:CC
21+
note: inside `main`
2222
--> $DIR/box_noalias_violation.rs:LL:CC
2323
|
2424
LL | test(Box::from_raw(ptr), ptr);

0 commit comments

Comments
 (0)