about summary refs log tree commit diff
path: root/src/liballoc/string.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2018-05-07 12:44:26 +0200
committerRalf Jung <post@ralfj.de>2018-05-07 12:44:26 +0200
commit9f26376281035fde5bf332a4326fadcdb48b7ef7 (patch)
tree5f19cca1a9f52c2e00d4007b48fbc25471df194b /src/liballoc/string.rs
parent9b97705f9edb9aef64f417952c02b01dbf16bcea (diff)
downloadrust-9f26376281035fde5bf332a4326fadcdb48b7ef7.tar.gz
rust-9f26376281035fde5bf332a4326fadcdb48b7ef7.zip
Rename Pin to PinMut
As discussed at [1] ยง3 and [2] and [3], a formal look at pinning requires considering a
distinguished "shared pinned" mode/typestate.  Given that, it seems desirable to
at least eventually actually expose that typestate as a reference type.  This
renames Pin to PinMut, freeing the name Pin in case we want to use it for a
shared pinned reference later on.

[1] https://www.ralfj.de/blog/2018/04/10/safe-intrusive-collections-with-pinning.html
[2] https://github.com/rust-lang/rfcs/pull/2349#issuecomment-379250361
[3] https://github.com/rust-lang/rust/issues/49150#issuecomment-380488275
Diffstat (limited to 'src/liballoc/string.rs')
0 files changed, 0 insertions, 0 deletions