@@ -54,7 +54,7 @@ use crate::pin::UnsafePinned;
5454/// ```
5555#[ unstable( feature = "internal_impls_macro" , issue = "none" ) ]
5656// Allow implementations of `UnsizedConstParamTy` even though std cannot use that feature.
57- #[ allow_internal_unstable( unsized_const_params ) ]
57+ #[ allow_internal_unstable( const_param_ty_trait ) ]
5858macro marker_impls {
5959 ( $( #[ $( $meta: tt) * ] ) * $Trait: ident for $( { $( $bounds: tt) * } ) ? $T: ty $( , $( $rest: tt) * ) ? ) => {
6060 $( #[ $( $meta) * ] ) * impl< $( $( $bounds) * ) ? > $Trait for $T { }
@@ -1080,7 +1080,7 @@ pub trait Tuple {}
10801080/// that all fields are also `ConstParamTy`, which implies that recursively, all fields
10811081/// are `StructuralPartialEq`.
10821082#[ lang = "const_param_ty" ]
1083- #[ unstable( feature = "unsized_const_params " , issue = "95174" ) ]
1083+ #[ unstable( feature = "const_param_ty_trait " , issue = "95174" , implied_by = "unsized_const_params ") ]
10841084#[ diagnostic:: on_unimplemented( message = "`{Self}` can't be used as a const parameter type" ) ]
10851085#[ allow( multiple_supertrait_upcastable) ]
10861086// We name this differently than the derive macro so that the `adt_const_params` can
@@ -1090,7 +1090,7 @@ pub trait ConstParamTy_: StructuralPartialEq + Eq {}
10901090
10911091/// Derive macro generating an impl of the trait `ConstParamTy`.
10921092#[ rustc_builtin_macro]
1093- #[ allow_internal_unstable( unsized_const_params ) ]
1093+ #[ allow_internal_unstable( const_param_ty_trait ) ]
10941094#[ unstable( feature = "adt_const_params" , issue = "95174" ) ]
10951095pub macro ConstParamTy ( $item: item) {
10961096 /* compiler built-in */
0 commit comments