@@ -212,7 +212,7 @@ note: the lint level is defined here
212
212
LL | #![warn(unused_attributes, unknown_lints)]
213
213
| ^^^^^^^^^^^^^^^^^
214
214
215
- warning: `#[automatically_derived]` only has an effect on items
215
+ warning: `#[automatically_derived]` only has an effect on implementation blocks
216
216
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:266:1
217
217
|
218
218
LL | #[automatically_derived]
@@ -515,25 +515,25 @@ warning: `#[path]` only has an effect on modules
515
515
LL | #[path = "3800"] impl S { }
516
516
| ^^^^^^^^^^^^^^^^
517
517
518
- warning: `#[automatically_derived]` only has an effect on items
518
+ warning: `#[automatically_derived]` only has an effect on implementation blocks
519
519
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:269:17
520
520
|
521
521
LL | mod inner { #![automatically_derived] }
522
522
| ^^^^^^^^^^^^^^^^^^^^^^^^^
523
523
524
- warning: `#[automatically_derived]` only has an effect on items
524
+ warning: `#[automatically_derived]` only has an effect on implementation blocks
525
525
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:272:5
526
526
|
527
527
LL | #[automatically_derived] fn f() { }
528
528
| ^^^^^^^^^^^^^^^^^^^^^^^^
529
529
530
- warning: `#[automatically_derived]` only has an effect on items
530
+ warning: `#[automatically_derived]` only has an effect on implementation blocks
531
531
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:275:5
532
532
|
533
533
LL | #[automatically_derived] struct S;
534
534
| ^^^^^^^^^^^^^^^^^^^^^^^^
535
535
536
- warning: `#[automatically_derived]` only has an effect on items
536
+ warning: `#[automatically_derived]` only has an effect on implementation blocks
537
537
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:278:5
538
538
|
539
539
LL | #[automatically_derived] type T = S;
@@ -923,7 +923,7 @@ warning: `#[must_use]` has no effect when applied to a type alias
923
923
LL | #[must_use] type T = S;
924
924
| ^^^^^^^^^^^
925
925
926
- warning: `#[must_use]` has no effect when applied to an item
926
+ warning: `#[must_use]` has no effect when applied to an implementation block
927
927
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:614:5
928
928
|
929
929
LL | #[must_use] impl S { }
0 commit comments