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
error: valid forms for the attribute are `#[doc(hidden|inline|...)]` and `#[doc = "string"]`
772
+
error: valid forms for the attribute are `#[doc(hidden)]`, `#[doc(inline)]`, and `#[doc = "string"]`
773
773
--> $DIR/malformed-attrs.rs:40:1
774
774
|
775
775
LL | #[doc]
776
776
| ^^^^^^
777
777
|
778
778
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
779
779
= note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
780
+
= note: for more information, visit <https://doc.rust-lang.org/rustdoc/write-documentation/the-doc-attribute.html>
780
781
= note: `#[deny(ill_formed_attribute_input)]` on by default
781
782
782
783
Future breakage diagnostic:
783
-
error: valid forms for the attribute are `#[doc(hidden|inline|...)]` and `#[doc = "string"]`
784
+
error: valid forms for the attribute are `#[doc(hidden)]`, `#[doc(inline)]`, and `#[doc = "string"]`
784
785
--> $DIR/malformed-attrs.rs:73:1
785
786
|
786
787
LL | #[doc]
787
788
| ^^^^^^
788
789
|
789
790
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
790
791
= note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
792
+
= note: for more information, visit <https://doc.rust-lang.org/rustdoc/write-documentation/the-doc-attribute.html>
791
793
= note: `#[deny(ill_formed_attribute_input)]` on by default
792
794
793
795
Future breakage diagnostic:
794
-
error: attribute must be of the form `#[link(name = "...", /*opt*/ kind = "dylib|static|...", /*opt*/ wasm_import_module = "...", /*opt*/ import_name_type = "decorated|noprefix|undecorated")]`
796
+
error: valid forms for the attribute are `#[link(name = "...")]`, `#[link(name = "...", kind = "dylib|static|...")]`, `#[link(name = "...", wasm_import_module = "...")]`, `#[link(name = "...", import_name_type = "decorated|noprefix|undecorated")]`, and `#[link(name = "...", kind = "dylib|static|...", wasm_import_module = "...", import_name_type = "decorated|noprefix|undecorated")]`
795
797
--> $DIR/malformed-attrs.rs:80:1
796
798
|
797
799
LL | #[link]
798
800
| ^^^^^^^
799
801
|
800
802
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
801
803
= note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
804
+
= note: for more information, visit <https://doc.rust-lang.org/reference/items/external-blocks.html#the-link-attribute>
802
805
= note: `#[deny(ill_formed_attribute_input)]` on by default
803
806
804
807
Future breakage diagnostic:
805
-
error: valid forms for the attribute are `#[inline(always|never)]` and `#[inline]`
808
+
error: valid forms for the attribute are `#[inline(always)]`, `#[inline(never)]`, and `#[inline]`
error: attribute must be of the form `#[link(name = "...", /*opt*/ kind = "dylib|static|...", /*opt*/ wasm_import_module = "...", /*opt*/ import_name_type = "decorated|noprefix|undecorated")]`
25
+
error: valid forms for the attribute are `#[link(name = "...")]`, `#[link(name = "...", kind = "dylib|static|...")]`, `#[link(name = "...", wasm_import_module = "...")]`, `#[link(name = "...", import_name_type = "decorated|noprefix|undecorated")]`, and `#[link(name = "...", kind = "dylib|static|...", wasm_import_module = "...", import_name_type = "decorated|noprefix|undecorated")]`
26
26
--> $DIR/link-attr-validation-early.rs:2:1
27
27
|
28
28
LL | #[link]
29
29
| ^^^^^^^
30
30
|
31
31
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
32
32
= note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
33
+
= note: for more information, visit <https://doc.rust-lang.org/reference/items/external-blocks.html#the-link-attribute>
33
34
= note: `#[deny(ill_formed_attribute_input)]` on by default
34
35
35
36
Future breakage diagnostic:
36
-
error: attribute must be of the form `#[link(name = "...", /*opt*/ kind = "dylib|static|...", /*opt*/ wasm_import_module = "...", /*opt*/ import_name_type = "decorated|noprefix|undecorated")]`
37
+
error: valid forms for the attribute are `#[link(name = "...")]`, `#[link(name = "...", kind = "dylib|static|...")]`, `#[link(name = "...", wasm_import_module = "...")]`, `#[link(name = "...", import_name_type = "decorated|noprefix|undecorated")]`, and `#[link(name = "...", kind = "dylib|static|...", wasm_import_module = "...", import_name_type = "decorated|noprefix|undecorated")]`
37
38
--> $DIR/link-attr-validation-early.rs:4:1
38
39
|
39
40
LL | #[link = "foo"]
40
41
| ^^^^^^^^^^^^^^^
41
42
|
42
43
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
43
44
= note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
45
+
= note: for more information, visit <https://doc.rust-lang.org/reference/items/external-blocks.html#the-link-attribute>
44
46
= note: `#[deny(ill_formed_attribute_input)]` on by default
error: valid forms for the attribute are `#[doc(hidden|inline|...)]` and `#[doc = "string"]`
53
+
error: valid forms for the attribute are `#[doc(hidden)]`, `#[doc(inline)]`, and `#[doc = "string"]`
54
54
--> $DIR/malformed-regressions.rs:1:1
55
55
|
56
56
LL | #[doc]
57
57
| ^^^^^^
58
58
|
59
59
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
60
60
= note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
61
+
= note: for more information, visit <https://doc.rust-lang.org/rustdoc/write-documentation/the-doc-attribute.html>
61
62
= note: `#[deny(ill_formed_attribute_input)]` on by default
62
63
63
64
Future breakage diagnostic:
64
-
error: attribute must be of the form `#[link(name = "...", /*opt*/ kind = "dylib|static|...", /*opt*/ wasm_import_module = "...", /*opt*/ import_name_type = "decorated|noprefix|undecorated")]`
65
+
error: valid forms for the attribute are `#[link(name = "...")]`, `#[link(name = "...", kind = "dylib|static|...")]`, `#[link(name = "...", wasm_import_module = "...")]`, `#[link(name = "...", import_name_type = "decorated|noprefix|undecorated")]`, and `#[link(name = "...", kind = "dylib|static|...", wasm_import_module = "...", import_name_type = "decorated|noprefix|undecorated")]`
65
66
--> $DIR/malformed-regressions.rs:7:1
66
67
|
67
68
LL | #[link]
68
69
| ^^^^^^^
69
70
|
70
71
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
71
72
= note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
73
+
= note: for more information, visit <https://doc.rust-lang.org/reference/items/external-blocks.html#the-link-attribute>
72
74
= note: `#[deny(ill_formed_attribute_input)]` on by default
73
75
74
76
Future breakage diagnostic:
75
-
error: attribute must be of the form `#[link(name = "...", /*opt*/ kind = "dylib|static|...", /*opt*/ wasm_import_module = "...", /*opt*/ import_name_type = "decorated|noprefix|undecorated")]`
77
+
error: valid forms for the attribute are `#[link(name = "...")]`, `#[link(name = "...", kind = "dylib|static|...")]`, `#[link(name = "...", wasm_import_module = "...")]`, `#[link(name = "...", import_name_type = "decorated|noprefix|undecorated")]`, and `#[link(name = "...", kind = "dylib|static|...", wasm_import_module = "...", import_name_type = "decorated|noprefix|undecorated")]`
76
78
--> $DIR/malformed-regressions.rs:9:1
77
79
|
78
80
LL | #[link = ""]
79
81
| ^^^^^^^^^^^^
80
82
|
81
83
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
82
84
= note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
85
+
= note: for more information, visit <https://doc.rust-lang.org/reference/items/external-blocks.html#the-link-attribute>
83
86
= note: `#[deny(ill_formed_attribute_input)]` on by default
84
87
85
88
Future breakage diagnostic:
@@ -94,7 +97,7 @@ LL | #[ignore()]
94
97
= note: `#[deny(ill_formed_attribute_input)]` on by default
95
98
96
99
Future breakage diagnostic:
97
-
error: valid forms for the attribute are `#[inline(always|never)]` and `#[inline]`
100
+
error: valid forms for the attribute are `#[inline(always)]`, `#[inline(never)]`, and `#[inline]`
0 commit comments