@@ -349,6 +349,12 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
349349 ) ,
350350
351351 gated ! ( cmse_nonsecure_entry, AssumedUsed , template!( Word ) , experimental!( cmse_nonsecure_entry) ) ,
352+ // RFC 2632
353+ gated ! (
354+ default_method_body_is_const, AssumedUsed , template!( Word ) , const_trait_impl,
355+ "`default_method_body_is_const` is a temporary placeholder for declaring default bodies \
356+ as `const`, which may be removed or renamed in the future."
357+ ) ,
352358
353359 // ==========================================================================
354360 // Internal attributes: Stability, deprecation, and unsafe:
@@ -470,11 +476,6 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
470476
471477 rustc_attr ! ( rustc_promotable, AssumedUsed , template!( Word ) , IMPL_DETAIL ) ,
472478 rustc_attr ! ( rustc_legacy_const_generics, AssumedUsed , template!( List : "N" ) , INTERNAL_UNSTABLE ) ,
473- gated ! (
474- default_method_body_is_const, AssumedUsed , template!( Word ) , const_trait_impl,
475- "the `#[default_method_body_is_const]` attribute marks a default method of a trait \
476- as const, so it does not need to be duplicated by a const impl."
477- ) ,
478479
479480 // ==========================================================================
480481 // Internal attributes, Layout related:
0 commit comments