@@ -992,7 +992,7 @@ pub macro ConstParamTy($item:item) {
992
992
/* compiler built-in */
993
993
}
994
994
995
- #[ cfg_attr ( not ( bootstrap ) , lang = "unsized_const_param_ty" ) ]
995
+ #[ lang = "unsized_const_param_ty" ]
996
996
#[ unstable( feature = "unsized_const_params" , issue = "95174" ) ]
997
997
#[ diagnostic:: on_unimplemented( message = "`{Self}` can't be used as a const parameter type" ) ]
998
998
/// A marker for types which can be used as types of `const` generic parameters.
@@ -1002,10 +1002,9 @@ pub macro ConstParamTy($item:item) {
1002
1002
pub trait UnsizedConstParamTy : StructuralPartialEq + Eq { }
1003
1003
1004
1004
/// 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" ) ]
1009
1008
pub macro UnsizedConstParamTy ( $item: item) {
1010
1009
/* compiler built-in */
1011
1010
}
@@ -1021,14 +1020,6 @@ marker_impls! {
1021
1020
( ) ,
1022
1021
{ T : ConstParamTy_ , const N : usize } [ T ; N ] ,
1023
1022
}
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
- }
1032
1023
1033
1024
marker_impls ! {
1034
1025
#[ unstable( feature = "unsized_const_params" , issue = "95174" ) ]
0 commit comments