Merge pull request #4217 from shepmaster/tree-borrows-anchor

Add an anchor to directly link to the -Zmiri-tree-borrows docs
This commit is contained in:
Ralf Jung 2025-03-03 19:08:07 +00:00 committed by GitHub
commit 1d7cd1e003
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -432,7 +432,8 @@ to Miri failing to detect cases of undefined behavior in a program.
* `-Zmiri-track-weak-memory-loads` shows a backtrace when weak memory emulation returns an outdated
value from a load. This can help diagnose problems that disappear under
`-Zmiri-disable-weak-memory-emulation`.
* `-Zmiri-tree-borrows` replaces [Stacked Borrows] with the [Tree Borrows] rules.
* <a name="-Zmiri-tree-borrows"><!-- The playground links here --></a>
`-Zmiri-tree-borrows` replaces [Stacked Borrows] with the [Tree Borrows] rules.
Tree Borrows is even more experimental than Stacked Borrows. While Tree Borrows
is still sound in the sense of catching all aliasing violations that current versions
of the compiler might exploit, it is likely that the eventual final aliasing model