You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #144544 - JonathanBrouwer:illformed-in-deps, r=traviscross
Start reporting future breakage for `ILL_FORMED_ATTRIBUTE_INPUT` in dependencies
This has been a warn lint since early 2019 and a deny-by-default lint since late 2019.
We're currently transitioning some of the cases where this lint is being produced to a hard error (#143607#143808 and more)
So let's report this lint in all dependencies for the remaining attributes
r? `@traviscross`
`@rustbot` labels +I-lang-nominated +T-lang -T-compiler
cc `@jdonszelmann`
(Separate question: Why does the "Future incompatibility report" only trigger if `report_in_deps` is true, even if the future incompatibility happens in the same crate, is this correct?)
This also needs a crater run, but I don't have permissions to trigger this
error: valid forms for the attribute are `#[doc(hidden|inline|...)]` and `#[doc = "string"]`
665
+
--> $DIR/malformed-attrs.rs:40:1
666
+
|
667
+
LL | #[doc]
668
+
| ^^^^^^
669
+
|
670
+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
671
+
= note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
672
+
= note: `#[deny(ill_formed_attribute_input)]` on by default
673
+
674
+
Future breakage diagnostic:
675
+
error: valid forms for the attribute are `#[doc(hidden|inline|...)]` and `#[doc = "string"]`
676
+
--> $DIR/malformed-attrs.rs:73:1
677
+
|
678
+
LL | #[doc]
679
+
| ^^^^^^
680
+
|
681
+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
682
+
= note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
683
+
= note: `#[deny(ill_formed_attribute_input)]` on by default
684
+
685
+
Future breakage diagnostic:
686
+
error: attribute must be of the form `#[link(name = "...", /*opt*/ kind = "dylib|static|...", /*opt*/ wasm_import_module = "...", /*opt*/ import_name_type = "decorated|noprefix|undecorated")]`
687
+
--> $DIR/malformed-attrs.rs:80:1
688
+
|
689
+
LL | #[link]
690
+
| ^^^^^^^
691
+
|
692
+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
693
+
= note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
694
+
= note: `#[deny(ill_formed_attribute_input)]` on by default
695
+
696
+
Future breakage diagnostic:
697
+
error: valid forms for the attribute are `#[inline(always|never)]` and `#[inline]`
698
+
--> $DIR/malformed-attrs.rs:50:1
699
+
|
700
+
LL | #[inline = 5]
701
+
| ^^^^^^^^^^^^^
702
+
|
703
+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
704
+
= note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
705
+
= note: `#[deny(ill_formed_attribute_input)]` on by default
706
+
707
+
Future breakage diagnostic:
708
+
error: valid forms for the attribute are `#[ignore = "reason"]` and `#[ignore]`
709
+
--> $DIR/malformed-attrs.rs:91:1
710
+
|
711
+
LL | #[ignore()]
712
+
| ^^^^^^^^^^^
713
+
|
714
+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
715
+
= note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
716
+
= note: `#[deny(ill_formed_attribute_input)]` on by default
717
+
718
+
Future breakage diagnostic:
719
+
error: valid forms for the attribute are `#[ignore = "reason"]` and `#[ignore]`
720
+
--> $DIR/malformed-attrs.rs:220:1
721
+
|
722
+
LL | #[ignore = 1]
723
+
| ^^^^^^^^^^^^^
724
+
|
725
+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
726
+
= note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
727
+
= note: `#[deny(ill_formed_attribute_input)]` on by default
error: attribute must be of the form `#[link(name = "...", /*opt*/ kind = "dylib|static|...", /*opt*/ wasm_import_module = "...", /*opt*/ import_name_type = "decorated|noprefix|undecorated")]`
24
+
--> $DIR/link-attr-validation-early.rs:2:1
25
+
|
26
+
LL | #[link]
27
+
| ^^^^^^^
28
+
|
29
+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
30
+
= note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
31
+
= note: `#[deny(ill_formed_attribute_input)]` on by default
32
+
33
+
Future breakage diagnostic:
34
+
error: attribute must be of the form `#[link(name = "...", /*opt*/ kind = "dylib|static|...", /*opt*/ wasm_import_module = "...", /*opt*/ import_name_type = "decorated|noprefix|undecorated")]`
35
+
--> $DIR/link-attr-validation-early.rs:4:1
36
+
|
37
+
LL | #[link = "foo"]
38
+
| ^^^^^^^^^^^^^^^
39
+
|
40
+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
41
+
= note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
42
+
= note: `#[deny(ill_formed_attribute_input)]` on by default
error: valid forms for the attribute are `#[doc(hidden|inline|...)]` and `#[doc = "string"]`
51
+
--> $DIR/malformed-regressions.rs:1:1
52
+
|
53
+
LL | #[doc]
54
+
| ^^^^^^
55
+
|
56
+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
57
+
= note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
58
+
= note: `#[deny(ill_formed_attribute_input)]` on by default
59
+
60
+
Future breakage diagnostic:
61
+
error: attribute must be of the form `#[link(name = "...", /*opt*/ kind = "dylib|static|...", /*opt*/ wasm_import_module = "...", /*opt*/ import_name_type = "decorated|noprefix|undecorated")]`
62
+
--> $DIR/malformed-regressions.rs:7:1
63
+
|
64
+
LL | #[link]
65
+
| ^^^^^^^
66
+
|
67
+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
68
+
= note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
69
+
= note: `#[deny(ill_formed_attribute_input)]` on by default
70
+
71
+
Future breakage diagnostic:
72
+
error: attribute must be of the form `#[link(name = "...", /*opt*/ kind = "dylib|static|...", /*opt*/ wasm_import_module = "...", /*opt*/ import_name_type = "decorated|noprefix|undecorated")]`
73
+
--> $DIR/malformed-regressions.rs:9:1
74
+
|
75
+
LL | #[link = ""]
76
+
| ^^^^^^^^^^^^
77
+
|
78
+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
79
+
= note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
80
+
= note: `#[deny(ill_formed_attribute_input)]` on by default
81
+
82
+
Future breakage diagnostic:
83
+
error: valid forms for the attribute are `#[ignore = "reason"]` and `#[ignore]`
84
+
--> $DIR/malformed-regressions.rs:3:1
85
+
|
86
+
LL | #[ignore()]
87
+
| ^^^^^^^^^^^
88
+
|
89
+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
90
+
= note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
91
+
= note: `#[deny(ill_formed_attribute_input)]` on by default
92
+
93
+
Future breakage diagnostic:
94
+
error: valid forms for the attribute are `#[inline(always|never)]` and `#[inline]`
95
+
--> $DIR/malformed-regressions.rs:5:1
96
+
|
97
+
LL | #[inline = ""]
98
+
| ^^^^^^^^^^^^^^
99
+
|
100
+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
101
+
= note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
102
+
= note: `#[deny(ill_formed_attribute_input)]` on by default
0 commit comments