Skip to content

Commit 282a992

Browse files
authored
Merge pull request #235 from JOE1994/patch-1
add link to Miri for Stacked Borrows
2 parents 53ba56a + 0415af2 commit 282a992

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

wip/stacked-borrows.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,11 +340,12 @@ After that is done, we additionally check all protectors remaining in the stack:
340340

341341
## Adjustments to libstd
342342

343-
libstd needed/needs some patches to comply with this model. These provide a good opportunity to review if we are okay with the requirements that Stacked Borrows places onto unsafe code.
343+
libstd needed/needs some patches to comply with this model. These provide a good opportunity to review if we are okay with the requirements that Stacked Borrows places onto unsafe code. For an up-to-date list of **"violations of Stacked Borrows"**, please refer to [this list maintained in the Miri repo](https://github.com/rust-lang/miri#bugs-found-by-miri).
344344

345345
* [`VecDeque` creating overlapping mutable references](https://github.com/rust-lang/rust/pull/56161)
346346
* [Futures turning a shared reference into a mutable one](https://github.com/rust-lang/rust/pull/56319)
347347
* [`str` turning a shared reference into a mutable one](https://github.com/rust-lang/rust/pull/58200)
348348
* [`BTreeMap` creating mutable references that overlap with shared references](https://github.com/rust-lang/rust/pull/58431)
349349
* [`LinkedList` creating overlapping mutable references](https://github.com/rust-lang/rust/pull/60072)
350350
* [`VecDeque` invalidates a protected shared reference](https://github.com/rust-lang/rust/issues/60076)
351+

0 commit comments

Comments
 (0)