|
1 | 1 | error[E0412]: cannot find type `MissingType` in this scope
|
2 |
| - --> $DIR/auxiliary/span-from-proc-macro.rs:33:20 |
| 2 | + --> $DIR/auxiliary/span-from-proc-macro.rs:21:1 |
3 | 3 | |
|
4 | 4 | LL | pub fn error_from_attribute(_args: TokenStream, _input: TokenStream) -> TokenStream {
|
5 |
| - | ----------------------------------------------------------------------------------- in this expansion of `#[error_from_attribute]` |
6 |
| -... |
7 |
| -LL | field: MissingType |
8 |
| - | ^^^^^^^^^^^ not found in this scope |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 6 | + | | |
| 7 | + | not found in this scope |
| 8 | + | in this expansion of `#[error_from_attribute]` |
9 | 9 | |
|
10 |
| - ::: $DIR/span-from-proc-macro.rs:8:1 |
| 10 | + ::: $DIR/span-from-proc-macro.rs:7:1 |
11 | 11 | |
|
12 | 12 | LL | #[error_from_attribute]
|
13 | 13 | | ----------------------- in this procedural macro expansion
|
14 | 14 |
|
15 | 15 | error[E0412]: cannot find type `OtherMissingType` in this scope
|
16 |
| - --> $DIR/auxiliary/span-from-proc-macro.rs:42:21 |
| 16 | + --> $DIR/auxiliary/span-from-proc-macro.rs:30:1 |
17 | 17 | |
|
18 | 18 | LL | pub fn error_from_derive(_input: TokenStream) -> TokenStream {
|
19 |
| - | ------------------------------------------------------------ in this expansion of `#[derive(ErrorFromDerive)]` |
20 |
| -... |
21 |
| -LL | Variant(OtherMissingType) |
22 |
| - | ^^^^^^^^^^^^^^^^ not found in this scope |
| 19 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 20 | + | | |
| 21 | + | not found in this scope |
| 22 | + | in this expansion of `#[derive(ErrorFromDerive)]` |
23 | 23 | |
|
24 |
| - ::: $DIR/span-from-proc-macro.rs:11:10 |
| 24 | + ::: $DIR/span-from-proc-macro.rs:10:10 |
25 | 25 | |
|
26 | 26 | LL | #[derive(ErrorFromDerive)]
|
27 | 27 | | --------------- in this derive macro expansion
|
28 | 28 |
|
29 |
| -error[E0425]: cannot find value `my_ident` in this scope |
30 |
| - --> $DIR/auxiliary/span-from-proc-macro.rs:25:9 |
31 |
| - | |
32 |
| -LL | pub fn other_error_from_bang(_input: TokenStream) -> TokenStream { |
33 |
| - | ---------------------------------------------------------------- in this expansion of `other_error_from_bang!` |
34 |
| -LL | custom_quote::custom_quote! { |
35 |
| -LL | my_ident |
36 |
| - | ^^^^^^^^ not found in this scope |
37 |
| - | |
38 |
| - ::: $DIR/span-from-proc-macro.rs:16:5 |
39 |
| - | |
40 |
| -LL | other_error_from_bang!(); |
41 |
| - | ------------------------ in this macro invocation |
42 |
| - |
43 | 29 | error[E0308]: mismatched types
|
44 |
| - --> $DIR/auxiliary/span-from-proc-macro.rs:12:36 |
| 30 | + --> $DIR/auxiliary/span-from-proc-macro.rs:16:1 |
45 | 31 | |
|
46 |
| -LL | let bang_error: bool = 25; |
47 |
| - | ---- ^^ expected `bool`, found integer |
48 |
| - | | |
49 |
| - | expected due to this |
50 |
| -... |
51 | 32 | LL | pub fn error_from_bang(_input: TokenStream) -> TokenStream {
|
52 |
| - | ---------------------------------------------------------- in this expansion of `error_from_bang!` |
| 33 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 34 | + | | |
| 35 | + | expected `bool`, found integer |
| 36 | + | expected due to this |
| 37 | + | in this expansion of `error_from_bang!` |
53 | 38 | |
|
54 |
| - ::: $DIR/span-from-proc-macro.rs:15:5 |
| 39 | + ::: $DIR/span-from-proc-macro.rs:14:5 |
55 | 40 | |
|
56 | 41 | LL | error_from_bang!();
|
57 | 42 | | ------------------ in this macro invocation
|
58 | 43 |
|
59 |
| -error: aborting due to 4 previous errors |
| 44 | +error: aborting due to 3 previous errors |
60 | 45 |
|
61 |
| -Some errors have detailed explanations: E0308, E0412, E0425. |
| 46 | +Some errors have detailed explanations: E0308, E0412. |
62 | 47 | For more information about an error, try `rustc --explain E0308`.
|
0 commit comments