Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upRFC to remove some special treatment of Box by borrow checker #130
Conversation
This comment has been minimized.
This comment has been minimized.
anasazi
commented
Jun 30, 2014
|
I don't understand the motivation for doing this (but then I've never understood the obsession everyone else has with treating unique pointers just like non-unique pointers) especially when the proposed design still special cases I really just don't understand why we would want to make our type system more restrictive just because we can exploit information about |
This comment has been minimized.
This comment has been minimized.
|
As discussed in this week's Rust meeting, I went ahead and implemented this change to see what the fallout would be like. There are only two changes required in the Rust distribution (I'm not including tests, since they are designed to test all of the edge cases): https://gist.github.com/zwarich/348d5726d1ef42f109ee I'll finish going through tests and double-check that I implemented everything correctly, but this looks like minimal impact on any real-world code. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
I went through and wrote a bunch of new test cases, and found one place I missed, which resulted in a few more changes: https://gist.github.com/zwarich/348d5726d1ef42f109ee |
brson
referenced this pull request
Jul 30, 2014
Closed
Remove special borrowck treatment of Box #16094
brson
merged commit 7fabfeb
into
rust-lang:master
Jul 30, 2014
This comment has been minimized.
This comment has been minimized.
|
Discussed in https://github.com/rust-lang/meeting-minutes/blob/master/weekly-meetings/2014-07-29.md. Accepted as RFC 43. Tracking: rust-lang/rust#16094. |
pnkfelix
referenced this pull request
Sep 25, 2014
Merged
fix PR number for RFC 43 (box-not-special). #321
eefriedman
referenced this pull request
May 10, 2016
Closed
Can't directly destructure boxed values #33550
mbrubeck
referenced this pull request
Jan 11, 2017
Closed
Dereferencing boxed tuple doesn't compile properly. #30564
withoutboats
pushed a commit
to withoutboats/rfcs
that referenced
this pull request
Jan 15, 2017
arielb1
referenced this pull request
Oct 31, 2017
Open
Destructuring boxes into multiple mutable references seems broken #30104
This comment has been minimized.
This comment has been minimized.
|
At some point we should document the fact that NLL has gone back to adding (more) special treatment of |
This comment has been minimized.
This comment has been minimized.
|
See e.g. this snippet of conversation regarding the special treatment of |
nikomatsakis commentedJun 19, 2014
•
edited by mbrubeck
Rendered