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 upRemove `T: Sized` on `ptr::is_null()` #46094
Conversation
dtolnay
added
the
T-libs
label
Nov 19, 2017
kennytm
added
the
S-waiting-on-review
label
Nov 19, 2017
bluss
added
the
relnotes
label
Nov 19, 2017
This comment has been minimized.
This comment has been minimized.
|
@rfcbot fcp merge |
This comment has been minimized.
This comment has been minimized.
rfcbot
commented
Nov 21, 2017
•
|
Team member @dtolnay has proposed to merge this. The next step is review by the rest of the tagged teams: No concerns currently listed. Once these reviewers reach consensus, this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
rfcbot
added
the
proposed-final-comment-period
label
Nov 21, 2017
This comment has been minimized.
This comment has been minimized.
|
Ping @BurntSushi, waiting on your ticky box here! |
This comment has been minimized.
This comment has been minimized.
rfcbot
commented
Nov 28, 2017
|
|
1 similar comment
This comment has been minimized.
This comment has been minimized.
rfcbot
commented
Nov 28, 2017
|
|
rfcbot
added
final-comment-period
and removed
proposed-final-comment-period
labels
Nov 28, 2017
This comment has been minimized.
This comment has been minimized.
|
@bors: r+ |
This comment has been minimized.
This comment has been minimized.
|
|
kennytm
added
S-waiting-on-bors
and removed
S-waiting-on-review
labels
Nov 28, 2017
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Nov 28, 2017
This comment has been minimized.
This comment has been minimized.
|
|
dtolnay commentedNov 19, 2017
Originally from #44932 -- this is purely a revert of the last commit of that PR, which was removing some changes from the previous commits in the PR. So a revert of a revert means this is code written by @cuviper!
@mikeyhew makes a compelling case in rust-lang/rfcs#433 (comment) for why this is the right way to implement
is_nullfor trait objects. And the behavior for slices makes sense to me as well.impl<T: ?Sized> *const T { - pub fn is_null(self) -> bool where T: Sized; + pub fn is_null(self) -> bool; } impl<T: ?Sized> *mut T { - pub fn is_null(self) -> bool where T: Sized; + pub fn is_null(self) -> bool; }