Skip to content

Commit 19422fc

Browse files
committed
attempt to clarify what the backtrace belongs to when there could be ambiguity
1 parent f4165be commit 19422fc

File tree

90 files changed

+93
-90
lines changed

Some content is hidden

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

90 files changed

+93
-90
lines changed

src/tools/miri/src/diagnostics.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,23 +362,26 @@ fn report_msg<'tcx>(
362362
}
363363

364364
// Show note and help messages.
365+
let mut extra_span = false;
365366
for (span_data, note) in &notes {
366367
if let Some(span_data) = span_data {
367368
err.span_note(span_data.span(), note);
369+
extra_span = true;
368370
} else {
369371
err.note(note);
370372
}
371373
}
372374
for (span_data, help) in &helps {
373375
if let Some(span_data) = span_data {
374376
err.span_help(span_data.span(), help);
377+
extra_span = true;
375378
} else {
376379
err.help(help);
377380
}
378381
}
379382
if notes.len() + helps.len() > 0 {
380383
// Add visual separator before backtrace.
381-
err.note("BACKTRACE:");
384+
err.note(if extra_span { "BACKTRACE (of the first span):" } else { "BACKTRACE:" });
382385
}
383386
// Add backtrace
384387
for (idx, frame_info) in stacktrace.iter().enumerate() {

src/tools/miri/tests/fail/box-cell-alias.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x1] by a Unique retag
1919
|
2020
LL | let res = helper(val, ptr);
2121
| ^^^
22-
= note: BACKTRACE:
22+
= note: BACKTRACE (of the first span):
2323
= note: inside `helper` at $DIR/box-cell-alias.rs:LL:CC
2424
note: inside `main`
2525
--> $DIR/box-cell-alias.rs:LL:CC

src/tools/miri/tests/fail/data_race/alloc_read_race.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ LL | pointer.store(Box::into_raw(Box::new_uninit()), Ordering::Relax
1111
| ^^^^^^^^^^^^^^^^^
1212
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
1313
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
14-
= note: BACKTRACE:
14+
= note: BACKTRACE (of the first span):
1515
= note: inside closure at $DIR/alloc_read_race.rs:LL:CC
1616

1717
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

src/tools/miri/tests/fail/data_race/alloc_write_race.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ LL | .store(Box::into_raw(Box::<usize>::new_uninit()) as *mut us
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
1212
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
1313
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
14-
= note: BACKTRACE:
14+
= note: BACKTRACE (of the first span):
1515
= note: inside closure at $DIR/alloc_write_race.rs:LL:CC
1616

1717
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

src/tools/miri/tests/fail/data_race/atomic_read_na_write_race1.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ LL | *(c.0 as *mut usize) = 32;
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^^
1212
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
1313
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
14-
= note: BACKTRACE:
14+
= note: BACKTRACE (of the first span):
1515
= note: inside closure at $DIR/atomic_read_na_write_race1.rs:LL:CC
1616

1717
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

src/tools/miri/tests/fail/data_race/atomic_read_na_write_race2.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ LL | atomic_ref.load(Ordering::SeqCst)
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1212
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
1313
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
14-
= note: BACKTRACE:
14+
= note: BACKTRACE (of the first span):
1515
= note: inside closure at $DIR/atomic_read_na_write_race2.rs:LL:CC
1616

1717
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

src/tools/miri/tests/fail/data_race/atomic_write_na_read_race1.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ LL | atomic_ref.store(32, Ordering::SeqCst)
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1212
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
1313
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
14-
= note: BACKTRACE:
14+
= note: BACKTRACE (of the first span):
1515
= note: inside closure at $DIR/atomic_write_na_read_race1.rs:LL:CC
1616

1717
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

src/tools/miri/tests/fail/data_race/atomic_write_na_read_race2.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ LL | let _val = *(c.0 as *mut usize);
1111
| ^^^^^^^^^^^^^^^^^^^^
1212
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
1313
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
14-
= note: BACKTRACE:
14+
= note: BACKTRACE (of the first span):
1515
= note: inside closure at $DIR/atomic_write_na_read_race2.rs:LL:CC
1616

1717
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

src/tools/miri/tests/fail/data_race/atomic_write_na_write_race1.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ LL | *(c.0 as *mut usize) = 32;
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^^
1212
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
1313
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
14-
= note: BACKTRACE:
14+
= note: BACKTRACE (of the first span):
1515
= note: inside closure at $DIR/atomic_write_na_write_race1.rs:LL:CC
1616

1717
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

src/tools/miri/tests/fail/data_race/atomic_write_na_write_race2.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ LL | atomic_ref.store(64, Ordering::SeqCst);
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1212
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
1313
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
14-
= note: BACKTRACE:
14+
= note: BACKTRACE (of the first span):
1515
= note: inside closure at $DIR/atomic_write_na_write_race2.rs:LL:CC
1616

1717
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

src/tools/miri/tests/fail/data_race/dangling_thread_async_race.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ LL | *c.0 = 32;
1111
| ^^^^^^^^^
1212
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
1313
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
14-
= note: BACKTRACE:
14+
= note: BACKTRACE (of the first span):
1515
= note: inside closure at $DIR/dangling_thread_async_race.rs:LL:CC
1616

1717
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

src/tools/miri/tests/fail/data_race/dangling_thread_race.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ LL | *c.0 = 32;
1111
| ^^^^^^^^^
1212
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
1313
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
14-
= note: BACKTRACE:
14+
= note: BACKTRACE (of the first span):
1515
= note: inside `main` at $DIR/dangling_thread_race.rs:LL:CC
1616

1717
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

src/tools/miri/tests/fail/data_race/dealloc_read_race1.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ LL | let _val = *ptr.0;
1616
| ^^^^^^
1717
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
1818
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
19-
= note: BACKTRACE:
19+
= note: BACKTRACE (of the first span):
2020
= note: inside closure at $DIR/dealloc_read_race1.rs:LL:CC
2121

2222
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

src/tools/miri/tests/fail/data_race/dealloc_read_race_stack.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ LL | *pointer.load(Ordering::Acquire)
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1212
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
1313
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
14-
= note: BACKTRACE:
14+
= note: BACKTRACE (of the first span):
1515
= note: inside closure at $DIR/dealloc_read_race_stack.rs:LL:CC
1616

1717
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

src/tools/miri/tests/fail/data_race/dealloc_write_race1.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ LL | *ptr.0 = 2;
1616
| ^^^^^^^^^^
1717
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
1818
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
19-
= note: BACKTRACE:
19+
= note: BACKTRACE (of the first span):
2020
= note: inside closure at $DIR/dealloc_write_race1.rs:LL:CC
2121

2222
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

src/tools/miri/tests/fail/data_race/dealloc_write_race_stack.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ LL | *pointer.load(Ordering::Acquire) = 3;
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1212
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
1313
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
14-
= note: BACKTRACE:
14+
= note: BACKTRACE (of the first span):
1515
= note: inside closure at $DIR/dealloc_write_race_stack.rs:LL:CC
1616

1717
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

src/tools/miri/tests/fail/data_race/enable_after_join_to_main.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ LL | *c.0 = 32;
1111
| ^^^^^^^^^
1212
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
1313
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
14-
= note: BACKTRACE:
14+
= note: BACKTRACE (of the first span):
1515
= note: inside closure at $DIR/enable_after_join_to_main.rs:LL:CC
1616

1717
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

src/tools/miri/tests/fail/data_race/fence_after_load.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ LL | unsafe { V = 1 }
1111
| ^^^^^
1212
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
1313
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
14-
= note: BACKTRACE:
14+
= note: BACKTRACE (of the first span):
1515
= note: inside `main` at $DIR/fence_after_load.rs:LL:CC
1616

1717
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

src/tools/miri/tests/fail/data_race/read_write_race.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ LL | let _val = *c.0;
1111
| ^^^^
1212
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
1313
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
14-
= note: BACKTRACE:
14+
= note: BACKTRACE (of the first span):
1515
= note: inside closure at $DIR/read_write_race.rs:LL:CC
1616

1717
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

src/tools/miri/tests/fail/data_race/read_write_race_stack.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ LL | *pointer.load(Ordering::Acquire) = 3;
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1212
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
1313
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
14-
= note: BACKTRACE:
14+
= note: BACKTRACE (of the first span):
1515
= note: inside closure at $DIR/read_write_race_stack.rs:LL:CC
1616

1717
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

src/tools/miri/tests/fail/data_race/relax_acquire_race.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ LL | *c.0 = 1;
1111
| ^^^^^^^^
1212
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
1313
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
14-
= note: BACKTRACE:
14+
= note: BACKTRACE (of the first span):
1515
= note: inside closure at $DIR/relax_acquire_race.rs:LL:CC
1616

1717
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

src/tools/miri/tests/fail/data_race/release_seq_race.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ LL | *c.0 = 1;
1111
| ^^^^^^^^
1212
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
1313
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
14-
= note: BACKTRACE:
14+
= note: BACKTRACE (of the first span):
1515
= note: inside closure at $DIR/release_seq_race.rs:LL:CC
1616

1717
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

src/tools/miri/tests/fail/data_race/release_seq_race_same_thread.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ LL | *c.0 = 1;
1111
| ^^^^^^^^
1212
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
1313
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
14-
= note: BACKTRACE:
14+
= note: BACKTRACE (of the first span):
1515
= note: inside closure at $DIR/release_seq_race_same_thread.rs:LL:CC
1616

1717
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

src/tools/miri/tests/fail/data_race/rmw_race.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ LL | *c.0 = 1;
1111
| ^^^^^^^^
1212
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
1313
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
14-
= note: BACKTRACE:
14+
= note: BACKTRACE (of the first span):
1515
= note: inside closure at $DIR/rmw_race.rs:LL:CC
1616

1717
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

src/tools/miri/tests/fail/data_race/stack_pop_race.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ LL | let _val = unsafe { *ptr.0 };
1111
| ^^^^^^
1212
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
1313
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
14-
= note: BACKTRACE:
14+
= note: BACKTRACE (of the first span):
1515
= note: inside `race` at $DIR/stack_pop_race.rs:LL:CC
1616
note: inside `main`
1717
--> $DIR/stack_pop_race.rs:LL:CC

src/tools/miri/tests/fail/data_race/write_write_race.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ LL | *c.0 = 32;
1111
| ^^^^^^^^^
1212
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
1313
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
14-
= note: BACKTRACE:
14+
= note: BACKTRACE (of the first span):
1515
= note: inside closure at $DIR/write_write_race.rs:LL:CC
1616

1717
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

src/tools/miri/tests/fail/data_race/write_write_race_stack.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ LL | *pointer.load(Ordering::Acquire) = 3;
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1212
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
1313
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
14-
= note: BACKTRACE:
14+
= note: BACKTRACE (of the first span):
1515
= note: inside closure at $DIR/write_write_race_stack.rs:LL:CC
1616

1717
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

src/tools/miri/tests/fail/function_calls/exported_symbol_clashing.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ help: then it's defined here again, in crate `exported_symbol_clashing`
1414
|
1515
LL | fn bar() {}
1616
| ^^^^^^^^
17-
= note: BACKTRACE:
17+
= note: BACKTRACE (of the first span):
1818
= note: inside `main` at $DIR/exported_symbol_clashing.rs:LL:CC
1919

2020
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

src/tools/miri/tests/fail/function_calls/exported_symbol_shim_clashing.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ LL | |
1212
LL | | unreachable!()
1313
LL | | }
1414
| |_^
15-
= note: BACKTRACE:
15+
= note: BACKTRACE (of the first span):
1616
= note: inside `main` at $DIR/exported_symbol_shim_clashing.rs:LL:CC
1717

1818
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x4] by a write access
1919
|
2020
LL | *target = 13;
2121
| ^^^^^^^^^^^^
22-
= note: BACKTRACE:
22+
= note: BACKTRACE (of the first span):
2323
= note: inside `main` at $DIR/alias_through_mutation.rs:LL:CC
2424

2525
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ help: <TAG> is this argument
1616
|
1717
LL | pub fn safe(_x: &mut i32, _y: &mut i32) {}
1818
| ^^
19-
= note: BACKTRACE:
19+
= note: BACKTRACE (of the first span):
2020
= note: inside `safe` at $DIR/aliasing_mut1.rs:LL:CC
2121
note: inside `main`
2222
--> $DIR/aliasing_mut1.rs:LL:CC

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ help: <TAG> is this argument
1616
|
1717
LL | pub fn safe(_x: &i32, _y: &mut i32) {}
1818
| ^^
19-
= note: BACKTRACE:
19+
= note: BACKTRACE (of the first span):
2020
= note: inside `safe` at $DIR/aliasing_mut2.rs:LL:CC
2121
note: inside `main`
2222
--> $DIR/aliasing_mut2.rs:LL:CC

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x4] by a Unique FnEntry reta
1919
|
2020
LL | safe_raw(xraw, xshr);
2121
| ^^^^^^^^^^^^^^^^^^^^
22-
= note: BACKTRACE:
22+
= note: BACKTRACE (of the first span):
2323
= note: inside `safe` at $DIR/aliasing_mut3.rs:LL:CC
2424
note: inside `main`
2525
--> $DIR/aliasing_mut3.rs:LL:CC

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ help: <TAG> is this argument
1616
|
1717
LL | pub fn safe(_x: &i32, _y: &mut Cell<i32>) {}
1818
| ^^
19-
= note: BACKTRACE:
19+
= note: BACKTRACE (of the first span):
2020
= note: inside `safe` at $DIR/aliasing_mut4.rs:LL:CC
2121
note: inside `main`
2222
--> $DIR/aliasing_mut4.rs:LL:CC

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x4] by a write access
1919
|
2020
LL | *our = 5;
2121
| ^^^^^^^^
22-
= note: BACKTRACE:
22+
= note: BACKTRACE (of the first span):
2323
= note: inside `unknown_code_2` at $DIR/box_exclusive_violation1.rs:LL:CC
2424
note: inside `demo_box_advanced_unique`
2525
--> $DIR/box_exclusive_violation1.rs:LL:CC

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ help: <TAG> is this argument
1616
|
1717
LL | unsafe fn test(mut x: Box<i32>, y: *const i32) -> i32 {
1818
| ^^^^^
19-
= note: BACKTRACE:
19+
= note: BACKTRACE (of the first span):
2020
= note: inside `test` at $DIR/box_noalias_violation.rs:LL:CC
2121
note: inside `main`
2222
--> $DIR/box_noalias_violation.rs:LL:CC

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0xc] by a Unique retag
1919
|
2020
LL | unsafe { from_raw_parts_mut(self_.as_ptr() as *mut T, self_.len()) }
2121
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
22-
= note: BACKTRACE:
22+
= note: BACKTRACE (of the first span):
2323
= note: inside `main` at $DIR/buggy_as_mut_slice.rs:LL:CC
2424

2525
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x10] by a Unique retag
1919
|
2020
LL | from_raw_parts_mut(ptr.offset(mid as isize), len - mid),
2121
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
22-
= note: BACKTRACE:
22+
= note: BACKTRACE (of the first span):
2323
= note: inside `main` at $DIR/buggy_split_at_mut.rs:LL:CC
2424

2525
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x4] by a write access
1919
|
2020
LL | *base = 1;
2121
| ^^^^^^^^^
22-
= note: BACKTRACE:
22+
= note: BACKTRACE (of the first span):
2323
= note: inside `main` at $DIR/disable_mut_does_not_merge_srw.rs:LL:CC
2424

2525
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x4] by a Unique FnEntry reta
1919
|
2020
LL | x.do_bad();
2121
| ^^^^^^^^^^
22-
= note: BACKTRACE:
22+
= note: BACKTRACE (of the first span):
2323
= note: inside `main` at $DIR/fnentry_invalidation.rs:LL:CC
2424

2525
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

0 commit comments

Comments
 (0)