@@ -357,8 +357,6 @@ declare_features! (
357
357
// Trait aliases
358
358
( active, trait_alias, "1.24.0" , Some ( 41517 ) , None ) ,
359
359
360
- // global allocators and their internals
361
- ( active, global_allocator, "1.20.0" , Some ( 27389 ) , None ) ,
362
360
// rustc internal
363
361
( active, allocator_internals, "1.20.0" , None , None ) ,
364
362
@@ -609,6 +607,8 @@ declare_features! (
609
607
( accepted, fn_must_use, "1.27.0" , Some ( 43302 ) , None ) ,
610
608
// Allows use of the :lifetime macro fragment specifier
611
609
( accepted, macro_lifetime_matcher, "1.27.0" , Some ( 34303 ) , None ) ,
610
+ // The #[global_allocator] attribute
611
+ ( accepted, global_allocator, "1.28.0" , Some ( 27389 ) , None ) ,
612
612
) ;
613
613
614
614
// If you change this, please modify src/doc/unstable-book as well. You must
@@ -770,11 +770,7 @@ pub const BUILTIN_ATTRIBUTES: &'static [(&'static str, AttributeType, AttributeG
770
770
"the `#[rustc_const_unstable]` attribute \
771
771
is an internal feature",
772
772
cfg_fn ! ( rustc_const_unstable) ) ) ,
773
- ( "global_allocator" , Normal , Gated ( Stability :: Unstable ,
774
- "global_allocator" ,
775
- "the `#[global_allocator]` attribute is \
776
- an experimental feature",
777
- cfg_fn ! ( global_allocator) ) ) ,
773
+ ( "global_allocator" , Normal , Ungated ) ,
778
774
( "default_lib_allocator" , Whitelisted , Gated ( Stability :: Unstable ,
779
775
"allocator_internals" ,
780
776
"the `#[default_lib_allocator]` \
0 commit comments