|
| 1 | +error: cannot use a derive helper attribute through an import |
| 2 | + --> $DIR/derive-helper-shadowing.rs:40:15 |
| 3 | + | |
| 4 | +LL | #[renamed] |
| 5 | + | ^^^^^^^ |
| 6 | + | |
| 7 | +note: the derive helper attribute imported here |
| 8 | + --> $DIR/derive-helper-shadowing.rs:39:17 |
| 9 | + | |
| 10 | +LL | use empty_helper as renamed; |
| 11 | + | ^^^^^^^^^^^^^^^^^^^^^^^ |
| 12 | + |
| 13 | +error: cannot find attribute `empty_helper` in this scope |
| 14 | + --> $DIR/derive-helper-shadowing.rs:36:22 |
| 15 | + | |
| 16 | +LL | #[derive(GenHelperUse)] |
| 17 | + | ^^^^^^^^^^^^ |
| 18 | + |
| 19 | +error: cannot find attribute `empty_helper` in this scope |
| 20 | + --> $DIR/derive-helper-shadowing.rs:14:11 |
| 21 | + | |
| 22 | +LL | #[empty_helper] |
| 23 | + | ^^^^^^^^^^^^ |
| 24 | +... |
| 25 | +LL | gen_helper_use!(); |
| 26 | + | ------------------ in this macro invocation |
| 27 | + |
1 | 28 | error[E0659]: `empty_helper` is ambiguous (name vs any other name during import resolution) |
2 | | - --> $DIR/derive-helper-shadowing.rs:14:13 |
| 29 | + --> $DIR/derive-helper-shadowing.rs:24:13 |
3 | 30 | | |
4 | 31 | LL | use empty_helper; |
5 | 32 | | ^^^^^^^^^^^^ ambiguous name |
6 | 33 | | |
7 | 34 | note: `empty_helper` could refer to the derive helper attribute defined here |
8 | | - --> $DIR/derive-helper-shadowing.rs:10:10 |
| 35 | + --> $DIR/derive-helper-shadowing.rs:20:10 |
9 | 36 | | |
10 | 37 | LL | #[derive(Empty)] |
11 | 38 | | ^^^^^ |
12 | 39 | note: `empty_helper` could also refer to the attribute macro imported here |
13 | | - --> $DIR/derive-helper-shadowing.rs:7:5 |
| 40 | + --> $DIR/derive-helper-shadowing.rs:10:5 |
14 | 41 | | |
15 | 42 | LL | use test_macros::empty_attr as empty_helper; |
16 | 43 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
17 | 44 | = help: use `crate::empty_helper` to refer to this attribute macro unambiguously |
18 | 45 |
|
19 | 46 | error[E0659]: `empty_helper` is ambiguous (derive helper attribute vs any other name) |
20 | | - --> $DIR/derive-helper-shadowing.rs:9:3 |
| 47 | + --> $DIR/derive-helper-shadowing.rs:19:3 |
21 | 48 | | |
22 | 49 | LL | #[empty_helper] |
23 | 50 | | ^^^^^^^^^^^^ ambiguous name |
24 | 51 | | |
25 | 52 | note: `empty_helper` could refer to the derive helper attribute defined here |
26 | | - --> $DIR/derive-helper-shadowing.rs:10:10 |
| 53 | + --> $DIR/derive-helper-shadowing.rs:20:10 |
27 | 54 | | |
28 | 55 | LL | #[derive(Empty)] |
29 | 56 | | ^^^^^ |
30 | 57 | note: `empty_helper` could also refer to the attribute macro imported here |
31 | | - --> $DIR/derive-helper-shadowing.rs:7:5 |
| 58 | + --> $DIR/derive-helper-shadowing.rs:10:5 |
32 | 59 | | |
33 | 60 | LL | use test_macros::empty_attr as empty_helper; |
34 | 61 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
35 | 62 | = help: use `crate::empty_helper` to refer to this attribute macro unambiguously |
36 | 63 |
|
37 | 64 | error[E0659]: `empty_helper` is ambiguous (derive helper attribute vs any other name) |
38 | | - --> $DIR/derive-helper-shadowing.rs:12:7 |
| 65 | + --> $DIR/derive-helper-shadowing.rs:22:7 |
39 | 66 | | |
40 | 67 | LL | #[empty_helper] |
41 | 68 | | ^^^^^^^^^^^^ ambiguous name |
42 | 69 | | |
43 | 70 | note: `empty_helper` could refer to the derive helper attribute defined here |
44 | | - --> $DIR/derive-helper-shadowing.rs:10:10 |
| 71 | + --> $DIR/derive-helper-shadowing.rs:20:10 |
45 | 72 | | |
46 | 73 | LL | #[derive(Empty)] |
47 | 74 | | ^^^^^ |
48 | 75 | note: `empty_helper` could also refer to the attribute macro imported here |
49 | | - --> $DIR/derive-helper-shadowing.rs:7:5 |
| 76 | + --> $DIR/derive-helper-shadowing.rs:10:5 |
50 | 77 | | |
51 | 78 | LL | use test_macros::empty_attr as empty_helper; |
52 | 79 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
53 | 80 | = help: use `crate::empty_helper` to refer to this attribute macro unambiguously |
54 | 81 |
|
55 | 82 | error[E0659]: `empty_helper` is ambiguous (derive helper attribute vs any other name) |
56 | | - --> $DIR/derive-helper-shadowing.rs:16:11 |
| 83 | + --> $DIR/derive-helper-shadowing.rs:26:11 |
57 | 84 | | |
58 | 85 | LL | #[empty_helper] |
59 | 86 | | ^^^^^^^^^^^^ ambiguous name |
60 | 87 | | |
61 | 88 | note: `empty_helper` could refer to the derive helper attribute defined here |
62 | | - --> $DIR/derive-helper-shadowing.rs:10:10 |
| 89 | + --> $DIR/derive-helper-shadowing.rs:20:10 |
63 | 90 | | |
64 | 91 | LL | #[derive(Empty)] |
65 | 92 | | ^^^^^ |
66 | 93 | note: `empty_helper` could also refer to the attribute macro imported here |
67 | | - --> $DIR/derive-helper-shadowing.rs:7:5 |
| 94 | + --> $DIR/derive-helper-shadowing.rs:10:5 |
68 | 95 | | |
69 | 96 | LL | use test_macros::empty_attr as empty_helper; |
70 | 97 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
71 | 98 | = help: use `crate::empty_helper` to refer to this attribute macro unambiguously |
72 | 99 |
|
73 | | -error: aborting due to 4 previous errors |
| 100 | +error: aborting due to 7 previous errors |
74 | 101 |
|
75 | 102 | For more information about this error, try `rustc --explain E0659`. |
0 commit comments