@@ -321,14 +321,14 @@ macro_rules! rustc_attr {
321
321
$tpl,
322
322
$duplicate,
323
323
$encode_cross_crate,
324
- [ concat!(
324
+ concat!(
325
325
"the `#[" ,
326
326
stringify!( $attr) ,
327
327
"]` attribute is used for rustc unit tests"
328
- ) ] ,
328
+ ) ,
329
329
)
330
330
} ;
331
- ( $attr: ident, $typ: expr, $tpl: expr, $duplicates: expr, $encode_cross_crate: expr, [ $( $notes: expr) ,* ] $( , ) ?) => {
331
+ ( $attr: ident, $typ: expr, $tpl: expr, $duplicates: expr, $encode_cross_crate: expr, $( $notes: expr) ,* $( , ) ?) => {
332
332
BuiltinAttribute {
333
333
name: sym:: $attr,
334
334
encode_cross_crate: $encode_cross_crate,
@@ -350,16 +350,6 @@ macro_rules! rustc_attr {
350
350
} ,
351
351
}
352
352
} ;
353
- ( $attr: ident, $typ: expr, $tpl: expr, $duplicates: expr, $encode_cross_crate: expr, $( $note: expr) ? $( , ) ?) => {
354
- rustc_attr!(
355
- $attr,
356
- $typ,
357
- $tpl,
358
- $duplicates,
359
- $encode_cross_crate,
360
- [ $( $note) ?]
361
- )
362
- } ;
363
353
}
364
354
365
355
macro_rules! experimental {
@@ -650,7 +640,7 @@ pub static BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
650
640
) ,
651
641
652
642
// Probably temporary component of min_generic_const_args.
653
- // `#[type_const]` const ASSOC: usize;`
643
+ // `#[type_const]` const ASSOC: usize;
654
644
gated ! (
655
645
type_const, Normal , template!( Word ) , ErrorFollowing ,
656
646
EncodeCrossCrate :: Yes , min_generic_const_args, experimental!( type_const) ,
@@ -954,10 +944,10 @@ pub static BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
954
944
rustc_attr ! (
955
945
rustc_nonnull_optimization_guaranteed, Normal , template!( Word ) , WarnFollowing ,
956
946
EncodeCrossCrate :: Yes ,
957
- [ "the `#[rustc_nonnull_optimization_guaranteed]` attribute is just used to document \
947
+ "the `#[rustc_nonnull_optimization_guaranteed]` attribute is just used to document \
958
948
guaranteed niche optimizations in the standard library",
959
949
"the compiler does not even check whether the type indeed is being non-null-optimized; \
960
- it is your responsibility to ensure that the attribute is only used on types that are optimized"] ,
950
+ it is your responsibility to ensure that the attribute is only used on types that are optimized",
961
951
) ,
962
952
963
953
// ==========================================================================
0 commit comments