Skip to content

Commit 2f57d3e

Browse files
committed
Forbid implementing Freeze even if the trait is stabilized
1 parent de4cd3e commit 2f57d3e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

core/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@
203203
// Language features:
204204
// tidy-alphabetical-start
205205
#![cfg_attr(bootstrap, feature(platform_intrinsics))]
206+
#![cfg_attr(not(bootstrap), feature(freeze_impls))]
206207
#![feature(abi_unadjusted)]
207208
#![feature(adt_const_params)]
208209
#![feature(allow_internal_unsafe)]

core/src/marker.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -818,13 +818,13 @@ pub trait DiscriminantKind {
818818
/// will not contain interior mutability, and subsequently allow
819819
/// placing the constant behind references.
820820
#[lang = "freeze"]
821-
#[unstable(feature = "freeze", issue = "60715")]
821+
#[unstable(feature = "freeze", issue = "121675")]
822822
pub unsafe auto trait Freeze {}
823823

824-
#[unstable(feature = "freeze", issue = "60715")]
824+
#[unstable(feature = "freeze", issue = "121675")]
825825
impl<T: ?Sized> !Freeze for UnsafeCell<T> {}
826826
marker_impls! {
827-
#[unstable(feature = "freeze", issue = "60715")]
827+
#[unstable(feature = "freeze", issue = "121675")]
828828
unsafe Freeze for
829829
{T: ?Sized} PhantomData<T>,
830830
{T: ?Sized} *const T,

0 commit comments

Comments
 (0)