Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add link to Miri for Stacked Borrows
add link to up-to-date list of "violations of Stacked Borrows"
(list is maintained in the Miri repo)
  • Loading branch information
JOE1994 authored Jun 9, 2020
commit 0415af2af95b9af851112aa838643404ccc7672f
3 changes: 2 additions & 1 deletion wip/stacked-borrows.md
Original file line number Diff line number Diff line change
Expand Up @@ -340,11 +340,12 @@ After that is done, we additionally check all protectors remaining in the stack:

## Adjustments to libstd

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.
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).

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