@@ -992,7 +992,7 @@ pub macro ConstParamTy($item:item) {
992992 /* compiler built-in */
993993}
994994
995- #[ cfg_attr ( not ( bootstrap ) , lang = "unsized_const_param_ty" ) ]
995+ #[ lang = "unsized_const_param_ty" ]
996996#[ unstable( feature = "unsized_const_params" , issue = "95174" ) ]
997997#[ diagnostic:: on_unimplemented( message = "`{Self}` can't be used as a const parameter type" ) ]
998998/// A marker for types which can be used as types of `const` generic parameters.
@@ -1002,10 +1002,9 @@ pub macro ConstParamTy($item:item) {
10021002pub trait UnsizedConstParamTy : StructuralPartialEq + Eq { }
10031003
10041004/// Derive macro generating an impl of the trait `ConstParamTy`.
1005- #[ cfg( not( bootstrap) ) ]
1006- #[ cfg_attr( not( bootstrap) , rustc_builtin_macro) ]
1007- #[ cfg_attr( not( bootstrap) , allow_internal_unstable( unsized_const_params) ) ]
1008- #[ cfg_attr( not( bootstrap) , unstable( feature = "unsized_const_params" , issue = "95174" ) ) ]
1005+ #[ rustc_builtin_macro]
1006+ #[ allow_internal_unstable( unsized_const_params) ]
1007+ #[ unstable( feature = "unsized_const_params" , issue = "95174" ) ]
10091008pub macro UnsizedConstParamTy ( $item: item) {
10101009 /* compiler built-in */
10111010}
@@ -1021,14 +1020,6 @@ marker_impls! {
10211020 ( ) ,
10221021 { T : ConstParamTy_ , const N : usize } [ T ; N ] ,
10231022}
1024- #[ cfg( bootstrap) ]
1025- marker_impls ! {
1026- #[ unstable( feature = "adt_const_params" , issue = "95174" ) ]
1027- ConstParamTy_ for
1028- str ,
1029- { T : ConstParamTy_ } [ T ] ,
1030- { T : ConstParamTy_ + ?Sized } & T ,
1031- }
10321023
10331024marker_impls ! {
10341025 #[ unstable( feature = "unsized_const_params" , issue = "95174" ) ]
0 commit comments