Initial UnsafePinned
/UnsafeUnpin
impl [Part 1: Libs]
This commit is contained in:
parent
ae06b79dcb
commit
21b7360a9a
11 changed files with 290 additions and 8 deletions
|
@ -864,8 +864,8 @@ fn ty_is_known_nonnull<'tcx>(
|
|||
return true;
|
||||
}
|
||||
|
||||
// `UnsafeCell` has its niche hidden.
|
||||
if def.is_unsafe_cell() {
|
||||
// `UnsafeCell` and `UnsafePinned` have their niche hidden.
|
||||
if def.is_unsafe_cell() || def.is_unsafe_pinned() {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue