Comment update

This commit is contained in:
Oli Scherer 2022-07-07 11:19:57 +00:00
parent 2a899dc1cf
commit 8d9f609d0d

View file

@ -703,8 +703,7 @@ fn ty_is_known_nonnull<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>, mode: CItemKi
return true;
}
// Types with a `#[repr(no_niche)]` attribute have their niche hidden.
// The attribute is used by the UnsafeCell for example (the only use so far).
// `UnsafeCell` has its niche hidden.
if def.is_unsafe_cell() {
return false;
}