We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c93b17d commit 5143221Copy full SHA for 5143221
library/core/src/marker.rs
@@ -817,6 +817,11 @@ pub trait DiscriminantKind {
817
/// This can be used to declare that a constant with a generic type
818
/// will not contain interior mutability, and subsequently allow
819
/// placing the constant behind references.
820
+///
821
+/// This trait is a core part of the language, it just just expressed as a trait in libcore for
822
+/// convenience. Do *not* implement it for other types.
823
+// FIXME: Eventually this trait should become `#[rustc_deny_explicit_impl]`.
824
+// That requires porting the impls below to native internal impls.
825
#[lang = "freeze"]
826
#[unstable(feature = "freeze", issue = "121675")]
827
pub unsafe auto trait Freeze {}
0 commit comments