]> git.lizzy.rs Git - rust.git/blobdiff - tests/fail/stacked_borrows/invalidate_against_barrier2.stderr
Rearrange and document the new implementation
[rust.git] / tests / fail / stacked_borrows / invalidate_against_barrier2.stderr
index 15bc91e869f9d987b1c20e0c386e4cb6d9f49114..c6f158316f51294cee00729f48ff85a0f938b198 100644 (file)
@@ -1,8 +1,8 @@
-error: Undefined Behavior: not granting access to tag <TAG> because incompatible item is protected: [SharedReadOnly for <TAG> (call ID)]
+error: Undefined Behavior: not granting access to tag <TAG> because incompatible item [SharedReadOnly for <TAG>] is protected by call ID
   --> $DIR/invalidate_against_barrier2.rs:LL:CC
    |
 LL |     unsafe { *x = 0 };
-   |              ^^^^^^ not granting access to tag <TAG> because incompatible item is protected: [SharedReadOnly for <TAG> (call ID)]
+   |              ^^^^^^ not granting access to tag <TAG> because incompatible item [SharedReadOnly for <TAG>] is protected by call ID
    |
    = help: this indicates a potential bug in the program: it performed an invalid operation, but the Stacked Borrows rules it violated are still experimental
    = help: see https://github.com/rust-lang/unsafe-code-guidelines/blob/master/wip/stacked-borrows.md for further information