about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-11-28 20:40:51 +0000
committerbors <bors@rust-lang.org>2017-11-28 20:40:51 +0000
commit73bca2b9fa9399751e432734f7f12bd6a37fc167 (patch)
tree6629bc4f07a160bf15548781b88a4971c28b1bf5 /src/libstd/sys/unix/stack_overflow.rs
parent71340ca4e181b824bcefa887f1be60dd0b7352ce (diff)
parente0f58c6a11c7990a302b47c488dc2f13fab7b9a1 (diff)
downloadrust-73bca2b9fa9399751e432734f7f12bd6a37fc167.tar.gz
rust-73bca2b9fa9399751e432734f7f12bd6a37fc167.zip
Auto merge of #46094 - dtolnay:is_null, r=alexcrichton
Remove `T: Sized` on `ptr::is_null()`

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 https://github.com/rust-lang/rfcs/issues/433#issuecomment-345495505 for why this is the right way to implement `is_null` for trait objects. And the behavior for slices makes sense to me as well.

```diff
  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;
  }
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions