]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/miri/tests/fail/stacked_borrows/pointer_smuggling.stderr
attempt to clarify what the backtrace belongs to when there could be ambiguity
[rust.git] / src / tools / miri / tests / fail / stacked_borrows / pointer_smuggling.stderr
index 6415af1e18bbff221179930289e7bc9837cb8c49..e20b5b89a2fca5e27fe17237a1408e91ce6b394a 100644 (file)
@@ -19,9 +19,9 @@ 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` at $DIR/pointer_smuggling.rs:LL:CC
+note: inside `main`
   --> $DIR/pointer_smuggling.rs:LL:CC
    |
 LL |     fun2(); // if they now use a raw ptr they break our reference