Skip to content

Commit 0084ca2

Browse files
committed
keep track of what had to be changed in libstd to make it comply with Stacked Borrows
1 parent 4560459 commit 0084ca2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

wip/stacked-borrows.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,3 +365,12 @@ if kind == AccessKind::Dealloc {
365365
}
366366
}
367367
```
368+
369+
## Adjustments to libstd
370+
371+
libstd needed 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.
372+
373+
* [`VecDeque` creating overlapping mutable references](https://github.com/rust-lang/rust/pull/56161)
374+
* [Futures turning a shared reference into a mutable one](https://github.com/rust-lang/rust/pull/56319)
375+
* [`str` turning a shared reference into a mutable one](https://github.com/rust-lang/rust/pull/58200)
376+
* [`BTreeMap` creating mutable references that overlap with shared references](https://github.com/rust-lang/rust/pull/58431)

0 commit comments

Comments
 (0)