@@ -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
@@ -615,6 +613,8 @@ declare_features! (
615
613
( accepted, macro_lifetime_matcher, "1.27.0" , Some ( 34303 ) , None ) ,
616
614
// Termination trait in tests (RFC 1937)
617
615
( accepted, termination_trait_test, "1.27.0" , Some ( 48854 ) , None ) ,
616
+ // The #[global_allocator] attribute
617
+ ( accepted, global_allocator, "1.28.0" , Some ( 27389 ) , None ) ,
618
618
) ;
619
619
620
620
// If you change this, please modify src/doc/unstable-book as well. You must
@@ -776,11 +776,7 @@ pub const BUILTIN_ATTRIBUTES: &'static [(&'static str, AttributeType, AttributeG
776
776
"the `#[rustc_const_unstable]` attribute \
777
777
is an internal feature",
778
778
cfg_fn ! ( rustc_const_unstable) ) ) ,
779
- ( "global_allocator" , Normal , Gated ( Stability :: Unstable ,
780
- "global_allocator" ,
781
- "the `#[global_allocator]` attribute is \
782
- an experimental feature",
783
- cfg_fn ! ( global_allocator) ) ) ,
779
+ ( "global_allocator" , Normal , Ungated ) ,
784
780
( "default_lib_allocator" , Whitelisted , Gated ( Stability :: Unstable ,
785
781
"allocator_internals" ,
786
782
"the `#[default_lib_allocator]` \
0 commit comments