fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
4.6 KiB171 linesraw
1error: first final: "hello"
2  --> $DIR/parent-source-spans.rs:19:12
3   |
4LL |     three!($a, $b);
5   |            ^^
6...
7LL |     one!("hello", "world");
8   |     ----------------------- in this macro invocation
9
10error: second final: "world"
11  --> $DIR/parent-source-spans.rs:19:16
12   |
13LL |     three!($a, $b);
14   |                ^^
15...
16LL |     one!("hello", "world");
17   |     ----------------------- in this macro invocation
18
19error: first parent: "hello"
20  --> $DIR/parent-source-spans.rs:13:5
21   |
22LL |     two!($a, $b);
23   |     ^^^^^^^^^^^^^
24...
25LL |     one!("hello", "world");
26   |     ----------------------- in this macro invocation
27
28error: second parent: "world"
29  --> $DIR/parent-source-spans.rs:13:5
30   |
31LL |     two!($a, $b);
32   |     ^^^^^^^^^^^^^
33...
34LL |     one!("hello", "world");
35   |     ----------------------- in this macro invocation
36
37error: first grandparent: "hello"
38  --> $DIR/parent-source-spans.rs:39:5
39   |
40LL |     one!("hello", "world");
41   |     ^^^^^^^^^^^^^^^^^^^^^^^
42
43error: second grandparent: "world"
44  --> $DIR/parent-source-spans.rs:39:5
45   |
46LL |     one!("hello", "world");
47   |     ^^^^^^^^^^^^^^^^^^^^^^^
48
49error: first source: "hello"
50  --> $DIR/parent-source-spans.rs:39:5
51   |
52LL |     one!("hello", "world");
53   |     ^^^^^^^^^^^^^^^^^^^^^^^
54
55error: second source: "world"
56  --> $DIR/parent-source-spans.rs:39:5
57   |
58LL |     one!("hello", "world");
59   |     ^^^^^^^^^^^^^^^^^^^^^^^
60
61error: first final: "yay"
62  --> $DIR/parent-source-spans.rs:19:12
63   |
64LL |     three!($a, $b);
65   |            ^^
66...
67LL |     two!("yay", "rust");
68   |     -------------------- in this macro invocation
69
70error: second final: "rust"
71  --> $DIR/parent-source-spans.rs:19:16
72   |
73LL |     three!($a, $b);
74   |                ^^
75...
76LL |     two!("yay", "rust");
77   |     -------------------- in this macro invocation
78
79error: first parent: "yay"
80  --> $DIR/parent-source-spans.rs:45:5
81   |
82LL |     two!("yay", "rust");
83   |     ^^^^^^^^^^^^^^^^^^^^
84
85error: second parent: "rust"
86  --> $DIR/parent-source-spans.rs:45:5
87   |
88LL |     two!("yay", "rust");
89   |     ^^^^^^^^^^^^^^^^^^^^
90
91error: first source: "yay"
92  --> $DIR/parent-source-spans.rs:45:5
93   |
94LL |     two!("yay", "rust");
95   |     ^^^^^^^^^^^^^^^^^^^^
96
97error: second source: "rust"
98  --> $DIR/parent-source-spans.rs:45:5
99   |
100LL |     two!("yay", "rust");
101   |     ^^^^^^^^^^^^^^^^^^^^
102
103error: first final: "hip"
104  --> $DIR/parent-source-spans.rs:51:12
105   |
106LL |     three!("hip", "hop");
107   |            ^^^^^
108
109error: second final: "hop"
110  --> $DIR/parent-source-spans.rs:51:19
111   |
112LL |     three!("hip", "hop");
113   |                   ^^^^^
114
115error: first source: "hip"
116  --> $DIR/parent-source-spans.rs:51:12
117   |
118LL |     three!("hip", "hop");
119   |            ^^^^^
120
121error: second source: "hop"
122  --> $DIR/parent-source-spans.rs:51:19
123   |
124LL |     three!("hip", "hop");
125   |                   ^^^^^
126
127error[E0425]: cannot find value `ok` in this scope
128  --> $DIR/parent-source-spans.rs:32:5
129   |
130LL |     parent_source_spans!($($tokens)*);
131   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a tuple variant with a similar name exists: `Ok`
132...
133LL |     one!("hello", "world");
134   |     ----------------------- in this macro invocation
135   | 
136  ::: $SRC_DIR/libcore/result.rs:LL:COL
137   |
138LL |     Ok(#[stable(feature = "rust1", since = "1.0.0")] T),
139   |     --------------------------------------------------- similarly named tuple variant `Ok` defined here
140
141error[E0425]: cannot find value `ok` in this scope
142  --> $DIR/parent-source-spans.rs:32:5
143   |
144LL |     parent_source_spans!($($tokens)*);
145   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a tuple variant with a similar name exists: `Ok`
146...
147LL |     two!("yay", "rust");
148   |     -------------------- in this macro invocation
149   | 
150  ::: $SRC_DIR/libcore/result.rs:LL:COL
151   |
152LL |     Ok(#[stable(feature = "rust1", since = "1.0.0")] T),
153   |     --------------------------------------------------- similarly named tuple variant `Ok` defined here
154
155error[E0425]: cannot find value `ok` in this scope
156  --> $DIR/parent-source-spans.rs:32:5
157   |
158LL |     parent_source_spans!($($tokens)*);
159   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a tuple variant with a similar name exists: `Ok`
160...
161LL |     three!("hip", "hop");
162   |     --------------------- in this macro invocation
163   | 
164  ::: $SRC_DIR/libcore/result.rs:LL:COL
165   |
166LL |     Ok(#[stable(feature = "rust1", since = "1.0.0")] T),
167   |     --------------------------------------------------- similarly named tuple variant `Ok` defined here
168
169error: aborting due to 21 previous errors
170
171For more information about this error, try `rustc --explain E0425`.