fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
1.5 KiB50 linesraw
1error: no rules expected the token `bcd`
2  --> $DIR/trace_faulty_macros.rs:7:26
3   |
4LL | macro_rules! my_faulty_macro {
5   | ---------------------------- when calling this macro
6LL |     () => {
7LL |         my_faulty_macro!(bcd);
8   |                          ^^^ no rules expected this token in macro call
9...
10LL |     my_faulty_macro!();
11   |     ------------------- in this macro invocation
12
13note: trace_macro
14  --> $DIR/trace_faulty_macros.rs:33:5
15   |
16LL |     my_faulty_macro!();
17   |     ^^^^^^^^^^^^^^^^^^^
18   |
19   = note: expanding `my_faulty_macro! {  }`
20   = note: to `my_faulty_macro ! (bcd) ;`
21   = note: expanding `my_faulty_macro! { bcd }`
22
23error: recursion limit reached while expanding the macro `my_recursive_macro`
24  --> $DIR/trace_faulty_macros.rs:22:9
25   |
26LL |         my_recursive_macro!();
27   |         ^^^^^^^^^^^^^^^^^^^^^^
28...
29LL |     my_recursive_macro!();
30   |     ---------------------- in this macro invocation
31   |
32   = help: consider adding a `#![recursion_limit="8"]` attribute to your crate
33
34note: trace_macro
35  --> $DIR/trace_faulty_macros.rs:34:5
36   |
37LL |     my_recursive_macro!();
38   |     ^^^^^^^^^^^^^^^^^^^^^^
39   |
40   = note: expanding `my_recursive_macro! {  }`
41   = note: to `my_recursive_macro ! () ;`
42   = note: expanding `my_recursive_macro! {  }`
43   = note: to `my_recursive_macro ! () ;`
44   = note: expanding `my_recursive_macro! {  }`
45   = note: to `my_recursive_macro ! () ;`
46   = note: expanding `my_recursive_macro! {  }`
47   = note: to `my_recursive_macro ! () ;`
48
49error: aborting due to 2 previous errors
50