Skip to content

Commit 8d9f609

Browse files
committed
Comment update
1 parent 2a899dc commit 8d9f609

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/rustc_lint/src/types.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -703,8 +703,7 @@ fn ty_is_known_nonnull<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>, mode: CItemKi
703703
return true;
704704
}
705705

706-
// Types with a `#[repr(no_niche)]` attribute have their niche hidden.
707-
// The attribute is used by the UnsafeCell for example (the only use so far).
706+
// `UnsafeCell` has its niche hidden.
708707
if def.is_unsafe_cell() {
709708
return false;
710709
}

0 commit comments

Comments
 (0)