summaryrefslogtreecommitdiffstats
path: root/tests/ui/proc-macro/proc-macro-attributes.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:03 +0000
commit64d98f8ee037282c35007b64c2649055c56af1db (patch)
tree5492bcf97fce41ee1c0b1cc2add283f3e66cdab0 /tests/ui/proc-macro/proc-macro-attributes.stderr
parentAdding debian version 1.67.1+dfsg1-1. (diff)
downloadrustc-64d98f8ee037282c35007b64c2649055c56af1db.tar.xz
rustc-64d98f8ee037282c35007b64c2649055c56af1db.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/ui/proc-macro/proc-macro-attributes.stderr')
-rw-r--r--tests/ui/proc-macro/proc-macro-attributes.stderr130
1 files changed, 130 insertions, 0 deletions
diff --git a/tests/ui/proc-macro/proc-macro-attributes.stderr b/tests/ui/proc-macro/proc-macro-attributes.stderr
new file mode 100644
index 000000000..140d87906
--- /dev/null
+++ b/tests/ui/proc-macro/proc-macro-attributes.stderr
@@ -0,0 +1,130 @@
+error: cannot find attribute `C` in this scope
+ --> $DIR/proc-macro-attributes.rs:9:3
+ |
+LL | #[C]
+ | ^ help: a derive helper attribute with a similar name exists: `B`
+
+error[E0659]: `B` is ambiguous
+ --> $DIR/proc-macro-attributes.rs:6:3
+ |
+LL | #[B]
+ | ^ ambiguous name
+ |
+ = note: ambiguous because of a name conflict with a derive helper attribute
+note: `B` could refer to the derive helper attribute defined here
+ --> $DIR/proc-macro-attributes.rs:19:10
+ |
+LL | #[derive(B)]
+ | ^
+note: `B` could also refer to the derive macro imported here
+ --> $DIR/proc-macro-attributes.rs:3:1
+ |
+LL | #[macro_use]
+ | ^^^^^^^^^^^^
+
+error[E0659]: `B` is ambiguous
+ --> $DIR/proc-macro-attributes.rs:10:3
+ |
+LL | #[B(D)]
+ | ^ ambiguous name
+ |
+ = note: ambiguous because of a name conflict with a derive helper attribute
+note: `B` could refer to the derive helper attribute defined here
+ --> $DIR/proc-macro-attributes.rs:19:10
+ |
+LL | #[derive(B)]
+ | ^
+note: `B` could also refer to the derive macro imported here
+ --> $DIR/proc-macro-attributes.rs:3:1
+ |
+LL | #[macro_use]
+ | ^^^^^^^^^^^^
+
+error[E0659]: `B` is ambiguous
+ --> $DIR/proc-macro-attributes.rs:13:3
+ |
+LL | #[B(E = "foo")]
+ | ^ ambiguous name
+ |
+ = note: ambiguous because of a name conflict with a derive helper attribute
+note: `B` could refer to the derive helper attribute defined here
+ --> $DIR/proc-macro-attributes.rs:19:10
+ |
+LL | #[derive(B)]
+ | ^
+note: `B` could also refer to the derive macro imported here
+ --> $DIR/proc-macro-attributes.rs:3:1
+ |
+LL | #[macro_use]
+ | ^^^^^^^^^^^^
+
+error[E0659]: `B` is ambiguous
+ --> $DIR/proc-macro-attributes.rs:16:3
+ |
+LL | #[B(arbitrary tokens)]
+ | ^ ambiguous name
+ |
+ = note: ambiguous because of a name conflict with a derive helper attribute
+note: `B` could refer to the derive helper attribute defined here
+ --> $DIR/proc-macro-attributes.rs:19:10
+ |
+LL | #[derive(B)]
+ | ^
+note: `B` could also refer to the derive macro imported here
+ --> $DIR/proc-macro-attributes.rs:3:1
+ |
+LL | #[macro_use]
+ | ^^^^^^^^^^^^
+
+warning: derive helper attribute is used before it is introduced
+ --> $DIR/proc-macro-attributes.rs:6:3
+ |
+LL | #[B]
+ | ^
+...
+LL | #[derive(B)]
+ | - the attribute is introduced here
+ |
+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
+ = note: for more information, see issue #79202 <https://github.com/rust-lang/rust/issues/79202>
+ = note: `#[warn(legacy_derive_helpers)]` on by default
+
+warning: derive helper attribute is used before it is introduced
+ --> $DIR/proc-macro-attributes.rs:10:3
+ |
+LL | #[B(D)]
+ | ^
+...
+LL | #[derive(B)]
+ | - the attribute is introduced here
+ |
+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
+ = note: for more information, see issue #79202 <https://github.com/rust-lang/rust/issues/79202>
+
+warning: derive helper attribute is used before it is introduced
+ --> $DIR/proc-macro-attributes.rs:13:3
+ |
+LL | #[B(E = "foo")]
+ | ^
+...
+LL | #[derive(B)]
+ | - the attribute is introduced here
+ |
+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
+ = note: for more information, see issue #79202 <https://github.com/rust-lang/rust/issues/79202>
+
+warning: derive helper attribute is used before it is introduced
+ --> $DIR/proc-macro-attributes.rs:16:3
+ |
+LL | #[B(arbitrary tokens)]
+ | ^
+...
+LL | #[derive(B)]
+ | - the attribute is introduced here
+ |
+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
+ = note: for more information, see issue #79202 <https://github.com/rust-lang/rust/issues/79202>
+
+error: aborting due to 5 previous errors; 4 warnings emitted
+
+For more information about this error, try `rustc --explain E0659`.