@@ -212,7 +212,7 @@ note: the lint level is defined here
212212LL | #![warn(unused_attributes, unknown_lints)]
213213 | ^^^^^^^^^^^^^^^^^
214214
215- warning: `#[automatically_derived]` only has an effect on items
215+ warning: `#[automatically_derived]` only has an effect on implementation blocks
216216 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:266:1
217217 |
218218LL | #[automatically_derived]
@@ -515,25 +515,25 @@ warning: `#[path]` only has an effect on modules
515515LL | #[path = "3800"] impl S { }
516516 | ^^^^^^^^^^^^^^^^
517517
518- warning: `#[automatically_derived]` only has an effect on items
518+ warning: `#[automatically_derived]` only has an effect on implementation blocks
519519 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:269:17
520520 |
521521LL | mod inner { #![automatically_derived] }
522522 | ^^^^^^^^^^^^^^^^^^^^^^^^^
523523
524- warning: `#[automatically_derived]` only has an effect on items
524+ warning: `#[automatically_derived]` only has an effect on implementation blocks
525525 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:272:5
526526 |
527527LL | #[automatically_derived] fn f() { }
528528 | ^^^^^^^^^^^^^^^^^^^^^^^^
529529
530- warning: `#[automatically_derived]` only has an effect on items
530+ warning: `#[automatically_derived]` only has an effect on implementation blocks
531531 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:275:5
532532 |
533533LL | #[automatically_derived] struct S;
534534 | ^^^^^^^^^^^^^^^^^^^^^^^^
535535
536- warning: `#[automatically_derived]` only has an effect on items
536+ warning: `#[automatically_derived]` only has an effect on implementation blocks
537537 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:278:5
538538 |
539539LL | #[automatically_derived] type T = S;
@@ -923,7 +923,7 @@ warning: `#[must_use]` has no effect when applied to a type alias
923923LL | #[must_use] type T = S;
924924 | ^^^^^^^^^^^
925925
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
927927 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:614:5
928928 |
929929LL | #[must_use] impl S { }
0 commit comments