@@ -52,12 +52,6 @@ error: malformed `export_stable` attribute input
52
52
LL | #[export_stable = 1]
53
53
| ^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[export_stable]`
54
54
55
- error: malformed `link_section` attribute input
56
- --> $DIR/malformed-attrs.rs:86:1
57
- |
58
- LL | #[link_section]
59
- | ^^^^^^^^^^^^^^^ help: must be of the form: `#[link_section = "name"]`
60
-
61
55
error: malformed `coverage` attribute input
62
56
--> $DIR/malformed-attrs.rs:88:1
63
57
|
@@ -119,18 +113,6 @@ error: malformed `proc_macro_derive` attribute input
119
113
LL | #[proc_macro_derive]
120
114
| ^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[proc_macro_derive(TraitName, /*opt*/ attributes(name1, name2, ...))]`
121
115
122
- error: malformed `rustc_layout_scalar_valid_range_start` attribute input
123
- --> $DIR/malformed-attrs.rs:126:1
124
- |
125
- LL | #[rustc_layout_scalar_valid_range_start]
126
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[rustc_layout_scalar_valid_range_start(value)]`
127
-
128
- error: malformed `rustc_layout_scalar_valid_range_end` attribute input
129
- --> $DIR/malformed-attrs.rs:128:1
130
- |
131
- LL | #[rustc_layout_scalar_valid_range_end]
132
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[rustc_layout_scalar_valid_range_end(value)]`
133
-
134
116
error: malformed `must_not_suspend` attribute input
135
117
--> $DIR/malformed-attrs.rs:130:1
136
118
|
@@ -523,6 +505,12 @@ error[E0539]: malformed `link_name` attribute input
523
505
LL | #[link_name]
524
506
| ^^^^^^^^^^^^ help: must be of the form: `#[link_name = "name"]`
525
507
508
+ error[E0539]: malformed `link_section` attribute input
509
+ --> $DIR/malformed-attrs.rs:86:1
510
+ |
511
+ LL | #[link_section]
512
+ | ^^^^^^^^^^^^^^^ help: must be of the form: `#[link_section = "name"]`
513
+
526
514
error[E0539]: malformed `must_use` attribute input
527
515
--> $DIR/malformed-attrs.rs:117:1
528
516
|
@@ -540,6 +528,24 @@ LL - #[must_use = 1]
540
528
LL + #[must_use]
541
529
|
542
530
531
+ error[E0539]: malformed `rustc_layout_scalar_valid_range_start` attribute input
532
+ --> $DIR/malformed-attrs.rs:126:1
533
+ |
534
+ LL | #[rustc_layout_scalar_valid_range_start]
535
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
536
+ | |
537
+ | expected this to be a list
538
+ | help: must be of the form: `#[rustc_layout_scalar_valid_range_start(start)]`
539
+
540
+ error[E0539]: malformed `rustc_layout_scalar_valid_range_end` attribute input
541
+ --> $DIR/malformed-attrs.rs:128:1
542
+ |
543
+ LL | #[rustc_layout_scalar_valid_range_end]
544
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
545
+ | |
546
+ | expected this to be a list
547
+ | help: must be of the form: `#[rustc_layout_scalar_valid_range_end(end)]`
548
+
543
549
warning: `#[diagnostic::do_not_recommend]` does not expect any arguments
544
550
--> $DIR/malformed-attrs.rs:147:1
545
551
|
0 commit comments