@@ -21,13 +21,13 @@ LL | #[cfg_attr]
2121 = note: for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg_attr-attribute>
2222
2323error[E0463]: can't find crate for `wloop`
24- --> $DIR/malformed-attrs.rs:217 :1
24+ --> $DIR/malformed-attrs.rs:215 :1
2525 |
2626LL | extern crate wloop;
2727 | ^^^^^^^^^^^^^^^^^^^ can't find crate
2828
2929error: malformed `allow` attribute input
30- --> $DIR/malformed-attrs.rs:183 :1
30+ --> $DIR/malformed-attrs.rs:181 :1
3131 |
3232LL | #[allow]
3333 | ^^^^^^^^
@@ -43,7 +43,7 @@ LL | #[allow(lint1, lint2, lint3, reason = "...")]
4343 | +++++++++++++++++++++++++++++++++++++
4444
4545error: malformed `expect` attribute input
46- --> $DIR/malformed-attrs.rs:185 :1
46+ --> $DIR/malformed-attrs.rs:183 :1
4747 |
4848LL | #[expect]
4949 | ^^^^^^^^^
@@ -59,7 +59,7 @@ LL | #[expect(lint1, lint2, lint3, reason = "...")]
5959 | +++++++++++++++++++++++++++++++++++++
6060
6161error: malformed `warn` attribute input
62- --> $DIR/malformed-attrs.rs:187 :1
62+ --> $DIR/malformed-attrs.rs:185 :1
6363 |
6464LL | #[warn]
6565 | ^^^^^^^
@@ -75,7 +75,7 @@ LL | #[warn(lint1, lint2, lint3, reason = "...")]
7575 | +++++++++++++++++++++++++++++++++++++
7676
7777error: malformed `deny` attribute input
78- --> $DIR/malformed-attrs.rs:189 :1
78+ --> $DIR/malformed-attrs.rs:187 :1
7979 |
8080LL | #[deny]
8181 | ^^^^^^^
@@ -91,7 +91,7 @@ LL | #[deny(lint1, lint2, lint3, reason = "...")]
9191 | +++++++++++++++++++++++++++++++++++++
9292
9393error: malformed `forbid` attribute input
94- --> $DIR/malformed-attrs.rs:191 :1
94+ --> $DIR/malformed-attrs.rs:189 :1
9595 |
9696LL | #[forbid]
9797 | ^^^^^^^^^
@@ -125,7 +125,7 @@ LL | #[proc_macro_derive]
125125 | ^^^^^^^^^^^^^^^^^^^^
126126
127127error[E0658]: allow_internal_unsafe side-steps the unsafe_code lint
128- --> $DIR/malformed-attrs.rs:222 :1
128+ --> $DIR/malformed-attrs.rs:220 :1
129129 |
130130LL | #[allow_internal_unsafe = 1]
131131 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -541,7 +541,7 @@ LL | #[cfi_encoding = ""]
541541 | help: must be of the form: `#[cfi_encoding = "encoding"]`
542542
543543error[E0565]: malformed `marker` attribute input
544- --> $DIR/malformed-attrs.rs:160 :1
544+ --> $DIR/malformed-attrs.rs:158 :1
545545 |
546546LL | #[marker = 3]
547547 | ^^^^^^^^^---^
@@ -550,7 +550,7 @@ LL | #[marker = 3]
550550 | help: must be of the form: `#[marker]`
551551
552552error[E0565]: malformed `fundamental` attribute input
553- --> $DIR/malformed-attrs.rs:162 :1
553+ --> $DIR/malformed-attrs.rs:160 :1
554554 |
555555LL | #[fundamental()]
556556 | ^^^^^^^^^^^^^--^
@@ -559,7 +559,7 @@ LL | #[fundamental()]
559559 | help: must be of the form: `#[fundamental]`
560560
561561error[E0565]: malformed `ffi_pure` attribute input
562- --> $DIR/malformed-attrs.rs:170 :5
562+ --> $DIR/malformed-attrs.rs:168 :5
563563 |
564564LL | #[unsafe(ffi_pure = 1)]
565565 | ^^^^^^^^^^^^^^^^^^---^^
@@ -568,7 +568,7 @@ LL | #[unsafe(ffi_pure = 1)]
568568 | help: must be of the form: `#[ffi_pure]`
569569
570570error[E0539]: malformed `link_ordinal` attribute input
571- --> $DIR/malformed-attrs.rs:172 :5
571+ --> $DIR/malformed-attrs.rs:170 :5
572572 |
573573LL | #[link_ordinal]
574574 | ^^^^^^^^^^^^^^^
@@ -579,7 +579,7 @@ LL | #[link_ordinal]
579579 = note: for more information, visit <https://doc.rust-lang.org/reference/items/external-blocks.html#the-link_ordinal-attribute>
580580
581581error[E0565]: malformed `ffi_const` attribute input
582- --> $DIR/malformed-attrs.rs:176 :5
582+ --> $DIR/malformed-attrs.rs:174 :5
583583 |
584584LL | #[unsafe(ffi_const = 1)]
585585 | ^^^^^^^^^^^^^^^^^^^---^^
@@ -588,13 +588,13 @@ LL | #[unsafe(ffi_const = 1)]
588588 | help: must be of the form: `#[ffi_const]`
589589
590590error[E0539]: malformed `linkage` attribute input
591- --> $DIR/malformed-attrs.rs:178 :5
591+ --> $DIR/malformed-attrs.rs:176 :5
592592 |
593593LL | #[linkage]
594594 | ^^^^^^^^^^ expected this to be of the form `linkage = "..."`
595595
596596error[E0539]: malformed `debugger_visualizer` attribute input
597- --> $DIR/malformed-attrs.rs:193 :1
597+ --> $DIR/malformed-attrs.rs:191 :1
598598 |
599599LL | #[debugger_visualizer]
600600 | ^^^^^^^^^^^^^^^^^^^^^^
@@ -605,7 +605,7 @@ LL | #[debugger_visualizer]
605605 = note: for more information, visit <https://doc.rust-lang.org/reference/attributes/debugger.html#the-debugger_visualizer-attribute>
606606
607607error[E0565]: malformed `automatically_derived` attribute input
608- --> $DIR/malformed-attrs.rs:195 :1
608+ --> $DIR/malformed-attrs.rs:193 :1
609609 |
610610LL | #[automatically_derived = 18]
611611 | ^^^^^^^^^^^^^^^^^^^^^^^^----^
@@ -614,7 +614,7 @@ LL | #[automatically_derived = 18]
614614 | help: must be of the form: `#[automatically_derived]`
615615
616616error[E0565]: malformed `non_exhaustive` attribute input
617- --> $DIR/malformed-attrs.rs:203 :1
617+ --> $DIR/malformed-attrs.rs:201 :1
618618 |
619619LL | #[non_exhaustive = 1]
620620 | ^^^^^^^^^^^^^^^^^---^
@@ -623,7 +623,7 @@ LL | #[non_exhaustive = 1]
623623 | help: must be of the form: `#[non_exhaustive]`
624624
625625error[E0565]: malformed `thread_local` attribute input
626- --> $DIR/malformed-attrs.rs:209 :1
626+ --> $DIR/malformed-attrs.rs:207 :1
627627 |
628628LL | #[thread_local()]
629629 | ^^^^^^^^^^^^^^--^
@@ -632,7 +632,7 @@ LL | #[thread_local()]
632632 | help: must be of the form: `#[thread_local]`
633633
634634error[E0565]: malformed `no_link` attribute input
635- --> $DIR/malformed-attrs.rs:213 :1
635+ --> $DIR/malformed-attrs.rs:211 :1
636636 |
637637LL | #[no_link()]
638638 | ^^^^^^^^^--^
@@ -641,7 +641,7 @@ LL | #[no_link()]
641641 | help: must be of the form: `#[no_link]`
642642
643643error[E0539]: malformed `macro_use` attribute input
644- --> $DIR/malformed-attrs.rs:215 :1
644+ --> $DIR/malformed-attrs.rs:213 :1
645645 |
646646LL | #[macro_use = 1]
647647 | ^^^^^^^^^^^^---^
@@ -659,7 +659,7 @@ LL + #[macro_use]
659659 |
660660
661661error[E0539]: malformed `macro_export` attribute input
662- --> $DIR/malformed-attrs.rs:220 :1
662+ --> $DIR/malformed-attrs.rs:218 :1
663663 |
664664LL | #[macro_export = 18]
665665 | ^^^^^^^^^^^^^^^----^
@@ -676,23 +676,14 @@ LL + #[macro_export]
676676 |
677677
678678error[E0565]: malformed `allow_internal_unsafe` attribute input
679- --> $DIR/malformed-attrs.rs:222 :1
679+ --> $DIR/malformed-attrs.rs:220 :1
680680 |
681681LL | #[allow_internal_unsafe = 1]
682682 | ^^^^^^^^^^^^^^^^^^^^^^^^---^
683683 | | |
684684 | | didn't expect any arguments here
685685 | help: must be of the form: `#[allow_internal_unsafe]`
686686
687- error[E0565]: malformed `type_const` attribute input
688- --> $DIR/malformed-attrs.rs:148:5
689- |
690- LL | #[type_const = 1]
691- | ^^^^^^^^^^^^^---^
692- | | |
693- | | didn't expect any arguments here
694- | help: must be of the form: `#[type_const]`
695-
696687error: attribute should be applied to `const fn`
697688 --> $DIR/malformed-attrs.rs:32:1
698689 |
@@ -820,13 +811,13 @@ LL | #[no_implicit_prelude = 23]
820811 = help: `#[no_implicit_prelude]` can be applied to crates and modules
821812
822813warning: `#[diagnostic::do_not_recommend]` does not expect any arguments
823- --> $DIR/malformed-attrs.rs:154 :1
814+ --> $DIR/malformed-attrs.rs:152 :1
824815 |
825816LL | #[diagnostic::do_not_recommend()]
826817 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
827818
828819warning: `#[automatically_derived]` attribute cannot be used on modules
829- --> $DIR/malformed-attrs.rs:195 :1
820+ --> $DIR/malformed-attrs.rs:193 :1
830821 |
831822LL | #[automatically_derived = 18]
832823 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -835,7 +826,7 @@ LL | #[automatically_derived = 18]
835826 = help: `#[automatically_derived]` can only be applied to trait impl blocks
836827
837828error: valid forms for the attribute are `#[ignore = "reason"]` and `#[ignore]`
838- --> $DIR/malformed-attrs.rs:229 :1
829+ --> $DIR/malformed-attrs.rs:227 :1
839830 |
840831LL | #[ignore = 1]
841832 | ^^^^^^^^^^^^^
@@ -854,7 +845,7 @@ LL | #[coroutine = 63] || {}
854845 = note: expected unit type `()`
855846 found coroutine `{coroutine@$DIR/malformed-attrs.rs:116:23: 116:25}`
856847
857- error: aborting due to 76 previous errors; 8 warnings emitted
848+ error: aborting due to 75 previous errors; 8 warnings emitted
858849
859850Some errors have detailed explanations: E0308, E0463, E0539, E0565, E0658, E0805.
860851For more information about an error, try `rustc --explain E0308`.
@@ -882,7 +873,7 @@ LL | #[ignore()]
882873
883874Future breakage diagnostic:
884875error: valid forms for the attribute are `#[ignore = "reason"]` and `#[ignore]`
885- --> $DIR/malformed-attrs.rs:229 :1
876+ --> $DIR/malformed-attrs.rs:227 :1
886877 |
887878LL | #[ignore = 1]
888879 | ^^^^^^^^^^^^^
0 commit comments