@@ -349,6 +349,12 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
349
349
) ,
350
350
351
351
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
+ ) ,
352
358
353
359
// ==========================================================================
354
360
// Internal attributes: Stability, deprecation, and unsafe:
@@ -470,11 +476,6 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
470
476
471
477
rustc_attr ! ( rustc_promotable, AssumedUsed , template!( Word ) , IMPL_DETAIL ) ,
472
478
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
- ) ,
478
479
479
480
// ==========================================================================
480
481
// Internal attributes, Layout related:
0 commit comments