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
@@ -18,7 +18,7 @@ error: `#[link_section]` attribute cannot be used on required trait methods
18
18
LL | #[link_section = "__TEXT,__text"]
19
19
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20
20
|
21
-
= help: `#[link_section]` can be applied to functions, inherent methods, provided trait methods, statics, and trait methods in impl blocks
21
+
= help: `#[link_section]` can be applied to functions with a body and statics
22
22
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
23
23
24
24
error: `#[linkage]` attribute cannot be used on required trait methods
@@ -27,7 +27,7 @@ error: `#[linkage]` attribute cannot be used on required trait methods
27
27
LL | #[linkage = "common"]
28
28
| ^^^^^^^^^^^^^^^^^^^^^
29
29
|
30
-
= help: `#[linkage]` can be applied to foreign functions, foreign statics, functions, inherent methods, provided trait methods, statics, and trait methods in impl blocks
30
+
= help: `#[linkage]` can be applied to foreign functions, foreign statics, functions with a body, and statics
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!
Copy file name to clipboardExpand all lines: tests/ui/coverage-attr/allowed-positions.stderr
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -46,15 +46,15 @@ error: `#[coverage]` attribute cannot be used on required trait methods
46
46
LL | #[coverage(off)]
47
47
| ^^^^^^^^^^^^^^^^
48
48
|
49
-
= help: `#[coverage]` can be applied to closures, crates, functions, impl blocks, inherent methods, modules, provided trait methods, and trait methods in impl blocks
49
+
= help: `#[coverage]` can be applied to crates, functions with a body, impl blocks, and modules
50
50
51
51
error: `#[coverage]` attribute cannot be used on required trait methods
52
52
--> $DIR/allowed-positions.rs:31:5
53
53
|
54
54
LL | #[coverage(off)]
55
55
| ^^^^^^^^^^^^^^^^
56
56
|
57
-
= help: `#[coverage]` can be applied to closures, crates, functions, impl blocks, inherent methods, modules, provided trait methods, and trait methods in impl blocks
57
+
= help: `#[coverage]` can be applied to crates, functions with a body, impl blocks, and modules
58
58
59
59
error: `#[coverage]` attribute cannot be used on associated types
60
60
--> $DIR/allowed-positions.rs:39:5
@@ -110,7 +110,7 @@ error: `#[coverage]` attribute cannot be used on foreign functions
110
110
LL | #[coverage(off)]
111
111
| ^^^^^^^^^^^^^^^^
112
112
|
113
-
= help: `#[coverage]` can be applied to closures, crates, functions, impl blocks, methods, and modules
113
+
= help: `#[coverage]` can be applied to crates, functions with a body, impl blocks, and modules
114
114
115
115
error: `#[coverage]` attribute cannot be used on statements
Copy file name to clipboardExpand all lines: tests/ui/sanitize-attr/valid-sanitize.stderr
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -44,15 +44,15 @@ error: `#[sanitize]` attribute cannot be used on required trait methods
44
44
LL | #[sanitize(address = "off")]
45
45
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
46
46
|
47
-
= help: `#[sanitize]` can be applied to closures, crates, functions, impl blocks, inherent methods, modules, provided trait methods, statics, and trait methods in impl blocks
47
+
= help: `#[sanitize]` can be applied to crates, functions with a body, impl blocks, modules, and statics
48
48
49
49
error: `#[sanitize]` attribute cannot be used on required trait methods
50
50
--> $DIR/valid-sanitize.rs:35:5
51
51
|
52
52
LL | #[sanitize(address = "off")]
53
53
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
54
54
|
55
-
= help: `#[sanitize]` can be applied to closures, crates, functions, impl blocks, inherent methods, modules, provided trait methods, statics, and trait methods in impl blocks
55
+
= help: `#[sanitize]` can be applied to crates, functions with a body, impl blocks, modules, and statics
56
56
57
57
error: `#[sanitize]` attribute cannot be used on associated types
58
58
--> $DIR/valid-sanitize.rs:43:5
@@ -108,7 +108,7 @@ error: `#[sanitize]` attribute cannot be used on foreign functions
108
108
LL | #[sanitize(address = "off", thread = "on")]
109
109
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
110
110
|
111
-
= help: `#[sanitize]` can be applied to closures, crates, functions, impl blocks, methods, modules, and statics
111
+
= help: `#[sanitize]` can be applied to crates, functions with a body, impl blocks, modules, and statics
112
112
113
113
error: `#[sanitize]` attribute cannot be used on statements
0 commit comments