]> git.lizzy.rs Git - rust.git/commitdiff
attempt to clarify what the backtrace belongs to when there could be ambiguity
authorRalf Jung <post@ralfj.de>
Fri, 23 Dec 2022 14:39:14 +0000 (15:39 +0100)
committerRalf Jung <post@ralfj.de>
Fri, 23 Dec 2022 14:39:14 +0000 (15:39 +0100)
90 files changed:
src/tools/miri/src/diagnostics.rs
src/tools/miri/tests/fail/box-cell-alias.stderr
src/tools/miri/tests/fail/data_race/alloc_read_race.stderr
src/tools/miri/tests/fail/data_race/alloc_write_race.stderr
src/tools/miri/tests/fail/data_race/atomic_read_na_write_race1.stderr
src/tools/miri/tests/fail/data_race/atomic_read_na_write_race2.stderr
src/tools/miri/tests/fail/data_race/atomic_write_na_read_race1.stderr
src/tools/miri/tests/fail/data_race/atomic_write_na_read_race2.stderr
src/tools/miri/tests/fail/data_race/atomic_write_na_write_race1.stderr
src/tools/miri/tests/fail/data_race/atomic_write_na_write_race2.stderr
src/tools/miri/tests/fail/data_race/dangling_thread_async_race.stderr
src/tools/miri/tests/fail/data_race/dangling_thread_race.stderr
src/tools/miri/tests/fail/data_race/dealloc_read_race1.stderr
src/tools/miri/tests/fail/data_race/dealloc_read_race_stack.stderr
src/tools/miri/tests/fail/data_race/dealloc_write_race1.stderr
src/tools/miri/tests/fail/data_race/dealloc_write_race_stack.stderr
src/tools/miri/tests/fail/data_race/enable_after_join_to_main.stderr
src/tools/miri/tests/fail/data_race/fence_after_load.stderr
src/tools/miri/tests/fail/data_race/read_write_race.stderr
src/tools/miri/tests/fail/data_race/read_write_race_stack.stderr
src/tools/miri/tests/fail/data_race/relax_acquire_race.stderr
src/tools/miri/tests/fail/data_race/release_seq_race.stderr
src/tools/miri/tests/fail/data_race/release_seq_race_same_thread.stderr
src/tools/miri/tests/fail/data_race/rmw_race.stderr
src/tools/miri/tests/fail/data_race/stack_pop_race.stderr
src/tools/miri/tests/fail/data_race/write_write_race.stderr
src/tools/miri/tests/fail/data_race/write_write_race_stack.stderr
src/tools/miri/tests/fail/function_calls/exported_symbol_clashing.stderr
src/tools/miri/tests/fail/function_calls/exported_symbol_shim_clashing.stderr
src/tools/miri/tests/fail/stacked_borrows/alias_through_mutation.stderr
src/tools/miri/tests/fail/stacked_borrows/aliasing_mut1.stderr
src/tools/miri/tests/fail/stacked_borrows/aliasing_mut2.stderr
src/tools/miri/tests/fail/stacked_borrows/aliasing_mut3.stderr
src/tools/miri/tests/fail/stacked_borrows/aliasing_mut4.stderr
src/tools/miri/tests/fail/stacked_borrows/box_exclusive_violation1.stderr
src/tools/miri/tests/fail/stacked_borrows/box_noalias_violation.stderr
src/tools/miri/tests/fail/stacked_borrows/buggy_as_mut_slice.stderr
src/tools/miri/tests/fail/stacked_borrows/buggy_split_at_mut.stderr
src/tools/miri/tests/fail/stacked_borrows/disable_mut_does_not_merge_srw.stderr
src/tools/miri/tests/fail/stacked_borrows/fnentry_invalidation.stderr
src/tools/miri/tests/fail/stacked_borrows/fnentry_invalidation2.stderr
src/tools/miri/tests/fail/stacked_borrows/illegal_dealloc1.stderr
src/tools/miri/tests/fail/stacked_borrows/illegal_read1.stderr
src/tools/miri/tests/fail/stacked_borrows/illegal_read2.stderr
src/tools/miri/tests/fail/stacked_borrows/illegal_read3.stderr
src/tools/miri/tests/fail/stacked_borrows/illegal_read4.stderr
src/tools/miri/tests/fail/stacked_borrows/illegal_read5.stderr
src/tools/miri/tests/fail/stacked_borrows/illegal_read6.stderr
src/tools/miri/tests/fail/stacked_borrows/illegal_read7.stderr
src/tools/miri/tests/fail/stacked_borrows/illegal_read8.stderr
src/tools/miri/tests/fail/stacked_borrows/illegal_read_despite_exposed1.stderr
src/tools/miri/tests/fail/stacked_borrows/illegal_read_despite_exposed2.stderr
src/tools/miri/tests/fail/stacked_borrows/illegal_write1.stderr
src/tools/miri/tests/fail/stacked_borrows/illegal_write2.stderr
src/tools/miri/tests/fail/stacked_borrows/illegal_write3.stderr
src/tools/miri/tests/fail/stacked_borrows/illegal_write4.stderr
src/tools/miri/tests/fail/stacked_borrows/illegal_write5.stderr
src/tools/miri/tests/fail/stacked_borrows/illegal_write6.stderr
src/tools/miri/tests/fail/stacked_borrows/illegal_write_despite_exposed1.stderr
src/tools/miri/tests/fail/stacked_borrows/interior_mut1.stderr
src/tools/miri/tests/fail/stacked_borrows/interior_mut2.stderr
src/tools/miri/tests/fail/stacked_borrows/invalidate_against_protector1.stderr
src/tools/miri/tests/fail/stacked_borrows/invalidate_against_protector2.stderr
src/tools/miri/tests/fail/stacked_borrows/invalidate_against_protector3.stderr
src/tools/miri/tests/fail/stacked_borrows/load_invalid_mut.stderr
src/tools/miri/tests/fail/stacked_borrows/load_invalid_shr.stderr
src/tools/miri/tests/fail/stacked_borrows/mut_exclusive_violation1.stderr
src/tools/miri/tests/fail/stacked_borrows/mut_exclusive_violation2.stderr
src/tools/miri/tests/fail/stacked_borrows/newtype_pair_retagging.stderr
src/tools/miri/tests/fail/stacked_borrows/newtype_retagging.stderr
src/tools/miri/tests/fail/stacked_borrows/outdated_local.stderr
src/tools/miri/tests/fail/stacked_borrows/pass_invalid_mut.stderr
src/tools/miri/tests/fail/stacked_borrows/pass_invalid_shr.stderr
src/tools/miri/tests/fail/stacked_borrows/pointer_smuggling.stderr
src/tools/miri/tests/fail/stacked_borrows/raw_tracking.stderr
src/tools/miri/tests/fail/stacked_borrows/retag_data_race_read.stderr
src/tools/miri/tests/fail/stacked_borrows/retag_data_race_write.stderr
src/tools/miri/tests/fail/stacked_borrows/return_invalid_mut.stderr
src/tools/miri/tests/fail/stacked_borrows/return_invalid_mut_option.stderr
src/tools/miri/tests/fail/stacked_borrows/return_invalid_mut_tuple.stderr
src/tools/miri/tests/fail/stacked_borrows/return_invalid_shr.stderr
src/tools/miri/tests/fail/stacked_borrows/return_invalid_shr_option.stderr
src/tools/miri/tests/fail/stacked_borrows/return_invalid_shr_tuple.stderr
src/tools/miri/tests/fail/stacked_borrows/shared_rw_borrows_are_weak1.stderr
src/tools/miri/tests/fail/stacked_borrows/shared_rw_borrows_are_weak2.stderr
src/tools/miri/tests/fail/stacked_borrows/shr_frozen_violation1.stderr
src/tools/miri/tests/fail/stacked_borrows/track_caller.stderr
src/tools/miri/tests/fail/stacked_borrows/transmute-is-no-escape.stderr
src/tools/miri/tests/fail/stacked_borrows/unescaped_static.stderr
src/tools/miri/tests/fail/stacked_borrows/zst_slice.stderr

index 6f94d57bcc03614c7cf175f3d05e58e6ab2a465e..2087d0cb548fd4119aab10ea20a1896afc130a42 100644 (file)
@@ -362,9 +362,11 @@ fn report_msg<'tcx>(
     }
 
     // Show note and help messages.
+    let mut extra_span = false;
     for (span_data, note) in &notes {
         if let Some(span_data) = span_data {
             err.span_note(span_data.span(), note);
+            extra_span = true;
         } else {
             err.note(note);
         }
@@ -372,13 +374,14 @@ fn report_msg<'tcx>(
     for (span_data, help) in &helps {
         if let Some(span_data) = span_data {
             err.span_help(span_data.span(), help);
+            extra_span = true;
         } else {
             err.help(help);
         }
     }
     if notes.len() + helps.len() > 0 {
         // Add visual separator before backtrace.
-        err.note("BACKTRACE:");
+        err.note(if extra_span { "BACKTRACE (of the first span):" } else { "BACKTRACE:" });
     }
     // Add backtrace
     for (idx, frame_info) in stacktrace.iter().enumerate() {
index f57b52c4bda7a14943ba15cc87f305851f85c4d6..fc946d6d39b3ef58a6823138c1bf8a180e328944 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x1] by a Unique retag
    |
 LL |     let res = helper(val, ptr);
    |                      ^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `helper` at $DIR/box-cell-alias.rs:LL:CC
 note: inside `main`
   --> $DIR/box-cell-alias.rs:LL:CC
index 38b1ad3cfef3b46581d28759bd447cd4632d6be3..59b3802416103a32e4a72bcc9b3f0c213eae0ed9 100644 (file)
@@ -11,7 +11,7 @@ LL |             pointer.store(Box::into_raw(Box::new_uninit()), Ordering::Relax
    |                                         ^^^^^^^^^^^^^^^^^
    = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
    = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside closure at $DIR/alloc_read_race.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index 473a69452268dbd117520692bb1efe700c7046c1..0564e4b5bf5080224dafcc1a8e2b67878d95f809 100644 (file)
@@ -11,7 +11,7 @@ LL |                 .store(Box::into_raw(Box::<usize>::new_uninit()) as *mut us
    |                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
    = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
    = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside closure at $DIR/alloc_write_race.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index 565fba328085abf1051e2bf1ad300d19a5651643..ab7a6178102d5271f2f44a13c0511f897b3ebeb9 100644 (file)
@@ -11,7 +11,7 @@ LL |             *(c.0 as *mut usize) = 32;
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^
    = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
    = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside closure at $DIR/atomic_read_na_write_race1.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index 753a2961b49ff8788fa8f3746d66895b02ea32e9..cd8e095a6e2cd0fe8cff486bf714aff663331ef4 100644 (file)
@@ -11,7 +11,7 @@ LL |             atomic_ref.load(Ordering::SeqCst)
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
    = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside closure at $DIR/atomic_read_na_write_race2.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index 5be597b7f5661c6f63655429be4d04f342e9ff58..b339e5adf8f8a4d65d2221de9c03615fb832b141 100644 (file)
@@ -11,7 +11,7 @@ LL |             atomic_ref.store(32, Ordering::SeqCst)
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
    = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside closure at $DIR/atomic_write_na_read_race1.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index 2c21337029acd6831c5190378ffbe569e43ad6d1..39686203491c0d98549655efa2ed5be8dcc0985d 100644 (file)
@@ -11,7 +11,7 @@ LL |             let _val = *(c.0 as *mut usize);
    |                        ^^^^^^^^^^^^^^^^^^^^
    = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
    = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside closure at $DIR/atomic_write_na_read_race2.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index b10724aa67e705a9441afc1cf067c97c732ae0b5..fd360797d344cd265220b54d60fb00defd5d7a4c 100644 (file)
@@ -11,7 +11,7 @@ LL |             *(c.0 as *mut usize) = 32;
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^
    = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
    = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside closure at $DIR/atomic_write_na_write_race1.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index 63393a2a8bd27a97d51e3053b0ad21422cebee0b..4e2494cf57b83fa442ebbe58279524586e1e476d 100644 (file)
@@ -11,7 +11,7 @@ LL |             atomic_ref.store(64, Ordering::SeqCst);
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
    = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside closure at $DIR/atomic_write_na_write_race2.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index 26ab3c16735ec961d4bffe447b9c5f80071ee698..aba051a2b63e26b482a3f98799b9a0104d21ce36 100644 (file)
@@ -11,7 +11,7 @@ LL |             *c.0 = 32;
    |             ^^^^^^^^^
    = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
    = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside closure at $DIR/dangling_thread_async_race.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index 23ccb33e9a9a760a0af2f11f0950a375f37d3086..dc35ccf3545f3075c4affec2bae91392210abae8 100644 (file)
@@ -11,7 +11,7 @@ LL |             *c.0 = 32;
    |             ^^^^^^^^^
    = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
    = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `main` at $DIR/dangling_thread_race.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index baf3f852164c5058f866e88106a3b60961a88f70..fbeab37e17f66a1fa4a00e70a1db2b8a59ac597f 100644 (file)
@@ -16,7 +16,7 @@ LL |             let _val = *ptr.0;
    |                        ^^^^^^
    = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
    = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside closure at $DIR/dealloc_read_race1.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index 94d95d44ac8a3785fbeadcc3ecab8a121711429a..9ef9bf35ae756110d7bbd72151f0d19a1695da7f 100644 (file)
@@ -11,7 +11,7 @@ LL |             *pointer.load(Ordering::Acquire)
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
    = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside closure at $DIR/dealloc_read_race_stack.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index cce2701a03c4ea241ab4600492a2dba84f58d3bf..75a98cc5d7d9b6f0ddd8c6c56659c06bed37b911 100644 (file)
@@ -16,7 +16,7 @@ LL |             *ptr.0 = 2;
    |             ^^^^^^^^^^
    = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
    = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside closure at $DIR/dealloc_write_race1.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index 0f60926fb5b4d382580828bb75db447de274c5ce..f2fc338b33f33bb42f56d2cefd28d82668a36879 100644 (file)
@@ -11,7 +11,7 @@ LL |             *pointer.load(Ordering::Acquire) = 3;
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
    = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside closure at $DIR/dealloc_write_race_stack.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index e608342f8d7ca692240e1c9a491414ddf4607526..620cb37859cdf59d6b778ea09db12e92bf1cd310 100644 (file)
@@ -11,7 +11,7 @@ LL |             *c.0 = 32;
    |             ^^^^^^^^^
    = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
    = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside closure at $DIR/enable_after_join_to_main.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index 9c1d92d14f8d483742445d737594033fdcee108c..0bd36067d95b98b65bc84bd971311c5a22bd9685 100644 (file)
@@ -11,7 +11,7 @@ LL |         unsafe { V = 1 }
    |                  ^^^^^
    = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
    = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `main` at $DIR/fence_after_load.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index e31bc5fbb4a15b4782911803da3e4e936b17700a..0c0d2fa32c32fe800e23e2d7071a4648b6a8a541 100644 (file)
@@ -11,7 +11,7 @@ LL |             let _val = *c.0;
    |                        ^^^^
    = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
    = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside closure at $DIR/read_write_race.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index 09b704e0631f69bea9870b37078f8fb212c891ea..e1d0a52d42acd923ce384e2ce28a1010cf592028 100644 (file)
@@ -11,7 +11,7 @@ LL |             *pointer.load(Ordering::Acquire) = 3;
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
    = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside closure at $DIR/read_write_race_stack.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index a996fc350023bdcb25b7cfa6787b85462abc906f..fdf0e4917df813da602b0e21149659de92337f3a 100644 (file)
@@ -11,7 +11,7 @@ LL |             *c.0 = 1;
    |             ^^^^^^^^
    = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
    = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside closure at $DIR/relax_acquire_race.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index 8b27a1885636335a7944ff26aaf66d43a7a9152f..234ce48e76a5008f4f01892be8959e548ae00951 100644 (file)
@@ -11,7 +11,7 @@ LL |             *c.0 = 1;
    |             ^^^^^^^^
    = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
    = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside closure at $DIR/release_seq_race.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index a3561b1a269ec222ffd2cdd57816be0436cb2879..8e95d3593b09c5d3ccb18333f02453892aa3a0c3 100644 (file)
@@ -11,7 +11,7 @@ LL |             *c.0 = 1;
    |             ^^^^^^^^
    = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
    = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside closure at $DIR/release_seq_race_same_thread.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index 9448d9059bfd1ac4dfc20bc039c80b8cb0fd0882..6252cd5a71f9f0e9a953a4c38a5971cf9162f4e0 100644 (file)
@@ -11,7 +11,7 @@ LL |             *c.0 = 1;
    |             ^^^^^^^^
    = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
    = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside closure at $DIR/rmw_race.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index 0e2e202900914a7c983f63ca28c3dc9e217d196b..6cb0270b3dac3914b98bc75fc04529b85e0416de 100644 (file)
@@ -11,7 +11,7 @@ LL |         let _val = unsafe { *ptr.0 };
    |                             ^^^^^^
    = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
    = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `race` at $DIR/stack_pop_race.rs:LL:CC
 note: inside `main`
   --> $DIR/stack_pop_race.rs:LL:CC
index dcc94a9d255abd35724ee3fe6388cc5ac447dca1..e9055932c559128c657ef76636afa5db4ba11085 100644 (file)
@@ -11,7 +11,7 @@ LL |             *c.0 = 32;
    |             ^^^^^^^^^
    = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
    = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside closure at $DIR/write_write_race.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index 8b0250593d5f6476cfb3ec341d6722b9db11370c..d156ece4a1e31037cd71a8237fb8125a0418fc37 100644 (file)
@@ -11,7 +11,7 @@ LL |             *pointer.load(Ordering::Acquire) = 3;
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
    = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside closure at $DIR/write_write_race_stack.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index 8eb9fa4ff5c27d02828f11e6502355e012eebfac..09e4157b31f4fd7b2d74462076b8298195cd01e4 100644 (file)
@@ -14,7 +14,7 @@ help: then it's defined here again, in crate `exported_symbol_clashing`
    |
 LL | fn bar() {}
    | ^^^^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `main` at $DIR/exported_symbol_clashing.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index 58a996e64530e73fa8b38df66f175fce008e4367..0d0055bb85c8ced9b39e0087f35c6ca565011149 100644 (file)
@@ -12,7 +12,7 @@ LL | |
 LL | |     unreachable!()
 LL | | }
    | |_^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `main` at $DIR/exported_symbol_shim_clashing.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index 461275c3fa346a872a8f9b9d86f9657011b340e4..b22db3eb121ee0b09daaa136a768985692620808 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x4] by a write access
    |
 LL |     *target = 13;
    |     ^^^^^^^^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `main` at $DIR/alias_through_mutation.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index 4514abb4ab2e47900200bc4dde0ababfa159fe4a..3ce39968cbb139aaa5b9a737f57fa4e63c2eccb1 100644 (file)
@@ -16,7 +16,7 @@ help: <TAG> is this argument
    |
 LL | pub fn safe(_x: &mut i32, _y: &mut i32) {}
    |             ^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `safe` at $DIR/aliasing_mut1.rs:LL:CC
 note: inside `main`
   --> $DIR/aliasing_mut1.rs:LL:CC
index 9ca9743cbd929be46fb3418a504316321bb3cc9c..df4b6cf02561c3f5a33cbb48363f3bc529dc15f4 100644 (file)
@@ -16,7 +16,7 @@ help: <TAG> is this argument
    |
 LL | pub fn safe(_x: &i32, _y: &mut i32) {}
    |             ^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `safe` at $DIR/aliasing_mut2.rs:LL:CC
 note: inside `main`
   --> $DIR/aliasing_mut2.rs:LL:CC
index b504097a3c91f2541339f527e04e3edf93c545af..55aaed62f4f5f8d8c9939c335fcdf4efa8548f49 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x4] by a Unique FnEntry reta
    |
 LL |     safe_raw(xraw, xshr);
    |     ^^^^^^^^^^^^^^^^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `safe` at $DIR/aliasing_mut3.rs:LL:CC
 note: inside `main`
   --> $DIR/aliasing_mut3.rs:LL:CC
index 6fe0d70902930fe864390ec1e7c0f9914d77dc21..ddf197bc63955f8dd67c17416915323077fbaf18 100644 (file)
@@ -16,7 +16,7 @@ help: <TAG> is this argument
    |
 LL | pub fn safe(_x: &i32, _y: &mut Cell<i32>) {}
    |             ^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `safe` at $DIR/aliasing_mut4.rs:LL:CC
 note: inside `main`
   --> $DIR/aliasing_mut4.rs:LL:CC
index f114130f6fafdabece908fc8999b7a357ffc0d0e..76f4e81f71ba2bdc7a96a9c703bdd874faa09677 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x4] by a write access
    |
 LL |     *our = 5;
    |     ^^^^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `unknown_code_2` at $DIR/box_exclusive_violation1.rs:LL:CC
 note: inside `demo_box_advanced_unique`
   --> $DIR/box_exclusive_violation1.rs:LL:CC
index 139fcd0ca4583d67502bb5e41081831f0b902093..59377aeb971a83a42c530c4894a1dea5147e75ab 100644 (file)
@@ -16,7 +16,7 @@ help: <TAG> is this argument
    |
 LL | unsafe fn test(mut x: Box<i32>, y: *const i32) -> i32 {
    |                ^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `test` at $DIR/box_noalias_violation.rs:LL:CC
 note: inside `main`
   --> $DIR/box_noalias_violation.rs:LL:CC
index 6aa14361287e3824d15ee21e9683529cb968d34e..fa3d7ca367625514f3d6da82df12a7336a3dd38e 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0xc] by a Unique retag
    |
 LL |         unsafe { from_raw_parts_mut(self_.as_ptr() as *mut T, self_.len()) }
    |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `main` at $DIR/buggy_as_mut_slice.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index cdeccc0855a959c428bc8d7916e20e0644a8ce98..c75d8cab3fc85b947e417960c7deaea78afd6aa2 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x10] by a Unique retag
    |
 LL |                 from_raw_parts_mut(ptr.offset(mid as isize), len - mid),
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `main` at $DIR/buggy_split_at_mut.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index e05f44fac9d2fff578aba7d142a8700e00d20f8e..bd79b401f667f16f2593ab12e1ead2a210da3745 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x4] by a write access
    |
 LL |         *base = 1;
    |         ^^^^^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `main` at $DIR/disable_mut_does_not_merge_srw.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index e81411bbdd86cf86122907b831d9bf7fa4bedfff..e3bffde1f0176c337c1ca5fab767dcddb0291a18 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x4] by a Unique FnEntry reta
    |
 LL |     x.do_bad();
    |     ^^^^^^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `main` at $DIR/fnentry_invalidation.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index d6d0084fa2a77cf49dd6dad50fa703b9fa7aebb8..b104de4b8d94d2b02e6ea1257bbfa2ee8ee4a817 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0xc] by a Unique FnEntry reta
    |
 LL |     let _ = t.sli.as_mut_ptr();
    |             ^^^^^^^^^^^^^^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `main` at $DIR/fnentry_invalidation2.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index f2f13d0d5594ea1215bf7f43a95560e05325a390..7fff60f25fbbe60315c4e409a263095ddf1cab92 100644 (file)
@@ -16,7 +16,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x1] by a write access
    |
 LL |         ptr1.write(0);
    |         ^^^^^^^^^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `std::alloc::dealloc` at RUSTLIB/alloc/src/alloc.rs:LL:CC
 note: inside `main`
   --> $DIR/illegal_deALLOC.rs:LL:CC
index 95ff05d70c30ec5a5fa77a0e828c030eb926cd9f..7a159c9d3fefce8ebfebb3641501c3137b161c17 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x4] by a read access
    |
 LL |     let _val = unsafe { *xraw };
    |                         ^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `main` at $DIR/illegal_read1.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index 5cfdf77dee402f3190df136ae4c679e92877afc7..e3e79f6f0f05ef7bf5aa92f57c77881dd202794e 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x4] by a SharedReadOnly reta
    |
 LL |     let shr = unsafe { &*xraw };
    |                        ^^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `main` at $DIR/illegal_read2.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index dacf71fa3ee39a1da6d83727ad37ebae27337762..3a8687ad9aa19a98f9316e8487f22834fc90c73f 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x4] by a read access
    |
 LL |     let _val = unsafe { *xref1.r };
    |                         ^^^^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `main` at $DIR/illegal_read3.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index 5ce0cba617914d5d1d364c085e8d0498f2bea8d9..dcf37b26901542c79604ae9fc280f6fd219bce1f 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x4] by a read access
    |
 LL |     let _val = unsafe { *xraw }; // use the raw again, this invalidates xref2 *even* with the special read except for uniq refs
    |                         ^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `main` at $DIR/illegal_read4.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index 63532f87944eb7ab50ce406bdb543a55acbefc86..1793798d15f6af69f55f90f057444003d347f713 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [$HEX..$HEX] by a read access
    |
 LL |     mem::forget(unsafe { ptr::read(xshr) }); // but after reading through the shared ref
    |                          ^^^^^^^^^^^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `main` at $DIR/illegal_read5.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index 93a96ab601ea3e5f39431714c26c85cacce1679b..17b28dee3c7caf3868267d87189a165e71479f11 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x4] by a Unique retag
    |
 LL |         let x = &mut *x; // kill `raw`
    |                 ^^^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `main` at $DIR/illegal_read6.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index 2e8ac207beafb486a8512a4fe9567d9bdcef1563..b76446d60f6d2bb2fe142b7969527f77ad6c5166 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x4] by a read access
    |
 LL |         let _val = ptr::read(raw);
    |                    ^^^^^^^^^^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `main` at $DIR/illegal_read7.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index c34fa2d8955ddd6daf81eb781a4946ca7b7b7c63..b43079c3b7f3b9a9ea91618c2f9ae57f51525ab2 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x4] by a write access
    |
 LL |         *y2 += 1;
    |         ^^^^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `main` at $DIR/illegal_read8.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index 43b4ec2ba652b3b73e7aebbb580f9353f063b712..fbd5d8b956d9794d9df99c3d5387e7c2f172b423 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x4] by a write access
    |
 LL |         *exposed_ptr = 0;
    |         ^^^^^^^^^^^^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `main` at $DIR/illegal_read_despite_exposed1.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index 832320fc202e126558318553453d5bb538c8fa5f..19e4cbdb9385521d0af0177929e9cacb05e35271 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x4] by a read access
    |
 LL |         let _val = *exposed_ptr;
    |                    ^^^^^^^^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `main` at $DIR/illegal_read_despite_exposed2.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index 3bf27f4815e9a1da5aa60005614323b266fbf6c5..c1e4918146587c7b12f36830934bb8659bc81d6a 100644 (file)
@@ -14,7 +14,7 @@ help: <TAG> was created by a SharedReadOnly retag at offsets [0x0..0x4]
    |
 LL |         let x: *mut u32 = xref as *const _ as *mut _;
    |                           ^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `main` at $DIR/illegal_write1.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index a9fe8cb6ccc026efaf556d703f079436335528ae..3e11e86eb81b36f10837798621f2a87251401b58 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x4] by a Unique retag
    |
 LL |     drop(&mut *target); // reborrow
    |          ^^^^^^^^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `main` at $DIR/illegal_write2.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index d64f2ddd87670b9b83db185973620de1e35b1245..4053325821e75120ef533d18a60ef56c1d19a371 100644 (file)
@@ -14,7 +14,7 @@ help: <TAG> was created by a SharedReadOnly retag at offsets [0x0..0x4]
    |
 LL |     let ptr = r#ref as *const _ as *mut _; // raw ptr, with raw tag
    |               ^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `main` at $DIR/illegal_write3.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index e3b8621eb74f2daab17b197ca3448135abad0240..fceda8db4cef5a0962f1974f248c73b974fb1287 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x4] by a Unique retag
    |
 LL |     let _mut_ref: &mut i32 = unsafe { mem::transmute(raw) }; // &mut, with raw tag
    |                                       ^^^^^^^^^^^^^^^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `main` at $DIR/illegal_write4.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index bbeb81258bde6a0483fded5d174843e72b561e0e..c71780b7e03e0332067d998e1de1133572209a21 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x4] by a write access
    |
 LL |     unsafe { *xraw = 15 };
    |              ^^^^^^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `main` at $DIR/illegal_write5.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index 49d9050f3094771d1f44672fec01770dc6b0c89c..3d3d2a24c2852954ff89c193517beb40dcb5112f 100644 (file)
@@ -16,7 +16,7 @@ help: <TAG> is this argument
    |
 LL | fn foo(a: &mut u32, y: *mut u32) -> u32 {
    |        ^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `foo` at $DIR/illegal_write6.rs:LL:CC
 note: inside `main`
   --> $DIR/illegal_write6.rs:LL:CC
index 87ddf61d7586cfdd8d0ad68aac873412b1b4af6d..1bb3afe483ebad8c8546275e0d693ecc0fad57f8 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x4] by a write access
    |
 LL |         *exposed_ptr = 0;
    |         ^^^^^^^^^^^^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `main` at $DIR/illegal_write_despite_exposed1.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index 1d68727c82af4176c72d7d01f2e587a262dc3c3c..da55e724fd81e77d19f561f28bce40fa5806811b 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x4] by a write access
    |
 LL |         *c.get() = UnsafeCell::new(1); // invalidates inner_shr
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `main` at $DIR/interior_mut1.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index 8a3357142261b07a783ee6bfb82e03ec11c07854..8c8a96cbbbd639e7182cb8f868f6ca80f729eb25 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x4] by a write access
    |
 LL |         *c.get() = UnsafeCell::new(0); // now inner_shr gets invalidated
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `main` at $DIR/interior_mut2.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index a53c633c3813076df0bc1a336970017d5430fc5a..95fa4c51d12fdad7f3d783ffc2caefa13ad23ce6 100644 (file)
@@ -16,7 +16,7 @@ help: <TAG> is this argument
    |
 LL | fn inner(x: *mut i32, _y: &mut i32) {
    |                       ^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `inner` at $DIR/invalidate_against_protector1.rs:LL:CC
 note: inside `main`
   --> $DIR/invalidate_against_protector1.rs:LL:CC
index 6ee78d1aac682fd9c79e4286525f627dcf37e269..8f677bd547ce356ea7c79a058ff7f0557a130749 100644 (file)
@@ -16,7 +16,7 @@ help: <TAG> is this argument
    |
 LL | fn inner(x: *mut i32, _y: &i32) {
    |                       ^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `inner` at $DIR/invalidate_against_protector2.rs:LL:CC
 note: inside `main`
   --> $DIR/invalidate_against_protector2.rs:LL:CC
index 2b38dea9dbb719221b89285fd97ba785fd53fa6a..1648ca9e58bb11f2627dfa21ce4479876788d6dd 100644 (file)
@@ -16,7 +16,7 @@ help: <TAG> is this argument
    |
 LL | fn inner(x: *mut i32, _y: &i32) {
    |                       ^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `inner` at $DIR/invalidate_against_protector3.rs:LL:CC
 note: inside `main`
   --> $DIR/invalidate_against_protector3.rs:LL:CC
index 08dc171c9eef0150ef401b090d8672c857751bd7..7aca065ca0d701598803f6e46fe57ff056b23c38 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x4] by a read access
    |
 LL |     let _val = unsafe { *xraw }; // invalidate xref
    |                         ^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `main` at $DIR/load_invalid_mut.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index 50bbed2b295c925685fb7e14d9670eadc0ddb920..7eb973ae7f2af94732dd5a84749acc95ebd24a80 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x4] by a write access
    |
 LL |     unsafe { *xraw = 42 }; // unfreeze
    |              ^^^^^^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `main` at $DIR/load_invalid_shr.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index 2f3900c40d7261fd8f342e6ecc94d2eacc6e3f07..3e7fe11b5202a9595ad5c8b087552fbab827209f 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x4] by a write access
    |
 LL |     *our = 5;
    |     ^^^^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `unknown_code_2` at $DIR/mut_exclusive_violation1.rs:LL:CC
 note: inside `demo_mut_advanced_unique`
   --> $DIR/mut_exclusive_violation1.rs:LL:CC
index 43b5325fc541a77d18a8699a0e381503ad2e7635..30ce698761f3da570ae4d95e573a6d87f05eeec6 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x4] by a Unique retag
    |
 LL |         let _raw2 = ptr2.as_mut();
    |                     ^^^^^^^^^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `main` at $DIR/mut_exclusive_violation2.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index 90677dfaf555e4c8226919cb89f3d08cca536384..0cba380ea1a30db629bf4396115dae0ede3bf224 100644 (file)
@@ -16,7 +16,7 @@ help: <TAG> is this argument
    |
 LL | fn dealloc_while_running(_n: Newtype<'_>, dealloc: impl FnOnce()) {
    |                          ^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `std::boxed::Box::<i32>::from_raw_in` at RUSTLIB/alloc/src/boxed.rs:LL:CC
    = note: inside `std::boxed::Box::<i32>::from_raw` at RUSTLIB/alloc/src/boxed.rs:LL:CC
 note: inside closure
index f189d0483d12d9e459ed3862d1259375ff1cc5f6..f76b6a57eaca0662e81ac56ff6d55685f9f00a20 100644 (file)
@@ -16,7 +16,7 @@ help: <TAG> is this argument
    |
 LL | fn dealloc_while_running(_n: Newtype<'_>, dealloc: impl FnOnce()) {
    |                          ^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `std::boxed::Box::<i32>::from_raw_in` at RUSTLIB/alloc/src/boxed.rs:LL:CC
    = note: inside `std::boxed::Box::<i32>::from_raw` at RUSTLIB/alloc/src/boxed.rs:LL:CC
 note: inside closure
index 8c2bba53918885c1fb7e66772789b6b3d1a9bab2..ad366bdabcee668b98b8edb2517efe6838232439 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x4] by a write access
    |
 LL |     x = 1; // this invalidates y by reactivating the lowermost uniq borrow for this local
    |     ^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `main` at $DIR/outdated_local.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index d7ab930aa3785d7c0376b5b8a3991dbfb375788b..96cec327b9df53ddcf5dc461951bd58d53bafbfb 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x4] by a read access
    |
 LL |     let _val = unsafe { *xraw }; // invalidate xref
    |                         ^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `main` at $DIR/pass_invalid_mut.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index c14b35c75c83df75183032b2f4ecb8915f9865db..5243858a91a7deb9444cabc29bd1579c72989a15 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x4] by a write access
    |
 LL |     unsafe { *xraw = 42 }; // unfreeze
    |              ^^^^^^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `main` at $DIR/pass_invalid_shr.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index 7d58d1aebbecd6154df1cbb535942b3b4356f735..e20b5b89a2fca5e27fe17237a1408e91ce6b394a 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x1] by a write access
    |
 LL |     *val = 2; // this invalidates any raw ptrs `fun1` might have created.
    |     ^^^^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `fun2` at $DIR/pointer_smuggling.rs:LL:CC
 note: inside `main`
   --> $DIR/pointer_smuggling.rs:LL:CC
index d75934445e6d21de8dc1ea86450adf9b081326ea..9f7e7a058dfcfac5c406722e63c812d18fb04210 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x4] by a Unique retag
    |
 LL |     let raw2 = &mut l as *mut _; // invalidates raw1
    |                ^^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `main` at $DIR/raw_tracking.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index 790fd51ec371f3819d79ee71af7738acfa2b2197..26607e1a690df85a8809c6b36fe6602e80fd7670 100644 (file)
@@ -11,7 +11,7 @@ LL |         let _r = &*p;
    |                  ^^^
    = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
    = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `thread_2` at $DIR/retag_data_race_read.rs:LL:CC
 note: inside closure
   --> $DIR/retag_data_race_read.rs:LL:CC
index c5b8b4c41f50512844fbb94986728ec5da906ed6..33839d2647d6f99aa41cdfa84ef0b65b1eb7b098 100644 (file)
@@ -11,7 +11,7 @@ LL |         let _r = &mut *p;
    |                  ^^^^^^^
    = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
    = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `thread_2` at $DIR/retag_data_race_write.rs:LL:CC
 note: inside closure
   --> $DIR/retag_data_race_write.rs:LL:CC
index 1b28f780c1c544a63f0ca9d9850f4539d77f4c09..2bf91b676c4c0fe0e7245853bfa190346d03279b 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x8] by a read access
    |
 LL |     let _val = unsafe { *xraw }; // invalidate xref
    |                         ^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `foo` at $DIR/return_invalid_mut.rs:LL:CC
 note: inside `main`
   --> $DIR/return_invalid_mut.rs:LL:CC
index db14dcafa008445530d4629312495cc4629ff18d..ff00c54570cd30daea1f2140425ea2e04134d018 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x8] by a read access
    |
 LL |     let _val = unsafe { *xraw }; // invalidate xref
    |                         ^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `foo` at $DIR/return_invalid_mut_option.rs:LL:CC
 note: inside `main`
   --> $DIR/return_invalid_mut_option.rs:LL:CC
index 81ed4218aade789d54d5ad5598725c862ec98b04..61d041a8816d2d53879bf2bb2c8310054276aaa6 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x8] by a read access
    |
 LL |     let _val = unsafe { *xraw }; // invalidate xref
    |                         ^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `foo` at $DIR/return_invalid_mut_tuple.rs:LL:CC
 note: inside `main`
   --> $DIR/return_invalid_mut_tuple.rs:LL:CC
index 9c8cc50b2d7ac7b4c87399b9f1ecd4c99a6b34d0..d3a73a00fa60549853483c9179a4dcc0f80c07ff 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x8] by a write access
    |
 LL |     unsafe { *xraw = (42, 23) }; // unfreeze
    |              ^^^^^^^^^^^^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `foo` at $DIR/return_invalid_shr.rs:LL:CC
 note: inside `main`
   --> $DIR/return_invalid_shr.rs:LL:CC
index 00ce6f6cd5fe129e6f13fe9c26c32b1fcc2440e3..f14e8b8532f55a713a7550cb03d6d786d9b9459d 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x8] by a write access
    |
 LL |     unsafe { *xraw = (42, 23) }; // unfreeze
    |              ^^^^^^^^^^^^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `foo` at $DIR/return_invalid_shr_option.rs:LL:CC
 note: inside `main`
   --> $DIR/return_invalid_shr_option.rs:LL:CC
index bbd17b1284c5e6b9508cf5e55de49edd544771a5..9ddaad4d1be30647f6715217f0c092d5c11954f9 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x8] by a write access
    |
 LL |     unsafe { *xraw = (42, 23) }; // unfreeze
    |              ^^^^^^^^^^^^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `foo` at $DIR/return_invalid_shr_tuple.rs:LL:CC
 note: inside `main`
   --> $DIR/return_invalid_shr_tuple.rs:LL:CC
index 3a139c3ab2120ec1b4a6a610537ae592ec19533f..589e1291ba731123f467dd0193ea7175bc81913c 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x4] by a Unique retag
    |
 LL |         shr_rw.set(1);
    |         ^^^^^^^^^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `main` at $DIR/shared_rw_borrows_are_weak1.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index 0609a73e793157563668915d0c67a57bfbe909be..0e37c4ffb394c7e4167c4d2100752af0cc8c99e3 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [$HEX..$HEX] by a Unique retag
    |
 LL |         shr_rw.replace(1);
    |         ^^^^^^^^^^^^^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `main` at $DIR/shared_rw_borrows_are_weak2.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index fe0ac211318aac832bd587bf2a4a69fbc3b1fbcf..a69116f2afae73aeb3340edcd9f0412a5a7e8b3d 100644 (file)
@@ -14,7 +14,7 @@ help: <TAG> was created by a SharedReadOnly retag at offsets [0x0..0x4]
    |
 LL |         *(x as *const i32 as *mut i32) = 7;
    |           ^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `unknown_code` at $DIR/shr_frozen_violation1.rs:LL:CC
 note: inside `foo`
   --> $DIR/shr_frozen_violation1.rs:LL:CC
index 6f1d0ccd348eca056820b4486be47686891cf83e..05be0d3f1e98a4cfc1db53c830f835cde85471f2 100644 (file)
@@ -19,7 +19,7 @@ help: <TAG> was later invalidated at offsets [0x0..0x4] by a read access
    |
 LL |     callee(xraw);
    |     ^^^^^^^^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `main` at $DIR/track_caller.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index a2ecb07fd3117179c2eb372ec9ceac4c70d68e7f..ac962311d42600f78f7def596ee8b75176fa51b9 100644 (file)
@@ -14,7 +14,7 @@ help: <TAG> was created by a SharedReadWrite retag at offsets [0x4..0x8]
    |
 LL |     let raw = (&mut x[1] as *mut i32).wrapping_offset(-1);
    |                ^^^^^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `main` at $DIR/transmute-is-no-escape.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index 01a4bf4340c78faf8aa446b829ab7a033d1bdb9e..7a40d1078b3b74768f04e3b9a4ab443f890dcbd8 100644 (file)
@@ -14,7 +14,7 @@ help: <TAG> was created by a SharedReadOnly retag at offsets [0x0..0x1]
    |
 LL |     let ptr_to_first = &ARRAY[0] as *const u8;
    |                        ^^^^^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `main` at $DIR/unescaped_static.rs:LL:CC
 
 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
index e134ee2845d05ea1871bdb3a23b3d1490cd09846..950abc4cbcf92fefae4579f24a72e57512a476e0 100644 (file)
@@ -14,7 +14,7 @@ help: <TAG> would have been created here, but this is a zero-size retag ([0x0..0
    |
 LL |         assert_eq!(*s.get_unchecked(1), 2);
    |                     ^^^^^^^^^^^^^^^^^^
-   = note: BACKTRACE:
+   = note: BACKTRACE (of the first span):
    = note: inside `core::slice::<impl [i32]>::get_unchecked::<usize>` at RUSTLIB/core/src/slice/mod.rs:LL:CC
 note: inside `main`
   --> $DIR/zst_slice.rs:LL:CC