diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:02:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:02:58 +0000 |
commit | 698f8c2f01ea549d77d7dc3338a12e04c11057b9 (patch) | |
tree | 173a775858bd501c378080a10dca74132f05bc50 /src/test/ui/proc-macro/parent-source-spans.stderr | |
parent | Initial commit. (diff) | |
download | rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.tar.xz rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.zip |
Adding upstream version 1.64.0+dfsg1.upstream/1.64.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/proc-macro/parent-source-spans.stderr | 189 |
1 files changed, 189 insertions, 0 deletions
diff --git a/src/test/ui/proc-macro/parent-source-spans.stderr b/src/test/ui/proc-macro/parent-source-spans.stderr new file mode 100644 index 000000000..65ce24e55 --- /dev/null +++ b/src/test/ui/proc-macro/parent-source-spans.stderr @@ -0,0 +1,189 @@ +error: first final: "hello" + --> $DIR/parent-source-spans.rs:16:12 + | +LL | three!($a, $b); + | ^^ +... +LL | one!("hello", "world"); + | ---------------------- in this macro invocation + | + = note: this error originates in the macro `two` which comes from the expansion of the macro `one` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: second final: "world" + --> $DIR/parent-source-spans.rs:16:16 + | +LL | three!($a, $b); + | ^^ +... +LL | one!("hello", "world"); + | ---------------------- in this macro invocation + | + = note: this error originates in the macro `two` which comes from the expansion of the macro `one` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: first parent: "hello" + --> $DIR/parent-source-spans.rs:10:5 + | +LL | two!($a, $b); + | ^^^^^^^^^^^^ +... +LL | one!("hello", "world"); + | ---------------------- in this macro invocation + | + = note: this error originates in the macro `one` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: second parent: "world" + --> $DIR/parent-source-spans.rs:10:5 + | +LL | two!($a, $b); + | ^^^^^^^^^^^^ +... +LL | one!("hello", "world"); + | ---------------------- in this macro invocation + | + = note: this error originates in the macro `one` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: first grandparent: "hello" + --> $DIR/parent-source-spans.rs:36:5 + | +LL | one!("hello", "world"); + | ^^^^^^^^^^^^^^^^^^^^^^ + +error: second grandparent: "world" + --> $DIR/parent-source-spans.rs:36:5 + | +LL | one!("hello", "world"); + | ^^^^^^^^^^^^^^^^^^^^^^ + +error: first source: "hello" + --> $DIR/parent-source-spans.rs:36:5 + | +LL | one!("hello", "world"); + | ^^^^^^^^^^^^^^^^^^^^^^ + +error: second source: "world" + --> $DIR/parent-source-spans.rs:36:5 + | +LL | one!("hello", "world"); + | ^^^^^^^^^^^^^^^^^^^^^^ + +error: first final: "yay" + --> $DIR/parent-source-spans.rs:16:12 + | +LL | three!($a, $b); + | ^^ +... +LL | two!("yay", "rust"); + | ------------------- in this macro invocation + | + = note: this error originates in the macro `two` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: second final: "rust" + --> $DIR/parent-source-spans.rs:16:16 + | +LL | three!($a, $b); + | ^^ +... +LL | two!("yay", "rust"); + | ------------------- in this macro invocation + | + = note: this error originates in the macro `two` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: first parent: "yay" + --> $DIR/parent-source-spans.rs:42:5 + | +LL | two!("yay", "rust"); + | ^^^^^^^^^^^^^^^^^^^ + +error: second parent: "rust" + --> $DIR/parent-source-spans.rs:42:5 + | +LL | two!("yay", "rust"); + | ^^^^^^^^^^^^^^^^^^^ + +error: first source: "yay" + --> $DIR/parent-source-spans.rs:42:5 + | +LL | two!("yay", "rust"); + | ^^^^^^^^^^^^^^^^^^^ + +error: second source: "rust" + --> $DIR/parent-source-spans.rs:42:5 + | +LL | two!("yay", "rust"); + | ^^^^^^^^^^^^^^^^^^^ + +error: first final: "hip" + --> $DIR/parent-source-spans.rs:48:12 + | +LL | three!("hip", "hop"); + | ^^^^^ + +error: second final: "hop" + --> $DIR/parent-source-spans.rs:48:19 + | +LL | three!("hip", "hop"); + | ^^^^^ + +error: first source: "hip" + --> $DIR/parent-source-spans.rs:48:12 + | +LL | three!("hip", "hop"); + | ^^^^^ + +error: second source: "hop" + --> $DIR/parent-source-spans.rs:48:19 + | +LL | three!("hip", "hop"); + | ^^^^^ + +error[E0425]: cannot find value `ok` in this scope + --> $DIR/parent-source-spans.rs:29:5 + | +LL | parent_source_spans!($($tokens)*); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a tuple variant with a similar name exists: `Ok` +... +LL | one!("hello", "world"); + | ---------------------- in this macro invocation + | + ::: $SRC_DIR/core/src/result.rs:LL:COL + | +LL | Ok(#[stable(feature = "rust1", since = "1.0.0")] T), + | -- similarly named tuple variant `Ok` defined here + | + = note: this error originates in the macro `parent_source_spans` which comes from the expansion of the macro `one` (in Nightly builds, run with -Z macro-backtrace for more info) + +error[E0425]: cannot find value `ok` in this scope + --> $DIR/parent-source-spans.rs:29:5 + | +LL | parent_source_spans!($($tokens)*); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a tuple variant with a similar name exists: `Ok` +... +LL | two!("yay", "rust"); + | ------------------- in this macro invocation + | + ::: $SRC_DIR/core/src/result.rs:LL:COL + | +LL | Ok(#[stable(feature = "rust1", since = "1.0.0")] T), + | -- similarly named tuple variant `Ok` defined here + | + = note: this error originates in the macro `parent_source_spans` which comes from the expansion of the macro `two` (in Nightly builds, run with -Z macro-backtrace for more info) + +error[E0425]: cannot find value `ok` in this scope + --> $DIR/parent-source-spans.rs:29:5 + | +LL | parent_source_spans!($($tokens)*); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a tuple variant with a similar name exists: `Ok` +... +LL | three!("hip", "hop"); + | -------------------- in this macro invocation + | + ::: $SRC_DIR/core/src/result.rs:LL:COL + | +LL | Ok(#[stable(feature = "rust1", since = "1.0.0")] T), + | -- similarly named tuple variant `Ok` defined here + | + = note: this error originates in the macro `parent_source_spans` which comes from the expansion of the macro `three` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: aborting due to 21 previous errors + +For more information about this error, try `rustc --explain E0425`. |