Skip to content

Commit e515d1c

Browse files
authored
Rollup merge of #99011 - oli-obk:UnsoundCell, r=eddyb
`UnsafeCell` blocks niches inside its nested type from being available outside fixes #87341 This implements the plan by `@eddyb` in rust-lang/rust#87341 (comment) Somewhat related PR (not strictly necessary, but that cleanup made this PR simpler): #94527
2 parents 3769a57 + 78fe1bd commit e515d1c

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

core/src/cell.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1856,7 +1856,6 @@ impl<T: ?Sized + fmt::Display> fmt::Display for RefMut<'_, T> {
18561856
#[lang = "unsafe_cell"]
18571857
#[stable(feature = "rust1", since = "1.0.0")]
18581858
#[repr(transparent)]
1859-
#[repr(no_niche)] // rust-lang/rust#68303.
18601859
pub struct UnsafeCell<T: ?Sized> {
18611860
value: T,
18621861
}

core/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@
191191
#![feature(never_type)]
192192
#![feature(no_core)]
193193
#![feature(no_coverage)] // rust-lang/rust#84605
194-
#![feature(no_niche)] // rust-lang/rust#68303
195194
#![feature(platform_intrinsics)]
196195
#![feature(prelude_import)]
197196
#![feature(repr_simd)]

0 commit comments

Comments
 (0)