|
| 1 | +error: name `cfg` is reserved in macro namespace |
| 2 | + --> $DIR/ambiguous-builtin-attrs.rs:12:7 |
| 3 | + | |
| 4 | +LL | macro cfg() {} //~ ERROR name `cfg` is reserved in macro namespace |
| 5 | + | ^^^ |
| 6 | + |
| 7 | +error: name `cfg_attr` is reserved in macro namespace |
| 8 | + --> $DIR/ambiguous-builtin-attrs.rs:19:7 |
| 9 | + | |
| 10 | +LL | macro cfg_attr() {} //~ ERROR name `cfg_attr` is reserved in macro namespace |
| 11 | + | ^^^^^^^^ |
| 12 | + |
| 13 | +error: name `derive` is reserved in macro namespace |
| 14 | + --> $DIR/ambiguous-builtin-attrs.rs:26:7 |
| 15 | + | |
| 16 | +LL | macro derive() {} //~ ERROR name `derive` is reserved in macro namespace |
| 17 | + | ^^^^^^ |
| 18 | + |
1 | 19 | error[E0659]: `repr` is ambiguous |
2 | | - --> $DIR/ambiguous-builtin-attrs.rs:5:3 |
| 20 | + --> $DIR/ambiguous-builtin-attrs.rs:7:3 |
3 | 21 | | |
4 | 22 | LL | #[repr(C)] //~ ERROR `repr` is ambiguous |
5 | 23 | | ^^^^ |
6 | 24 | | |
7 | 25 | note: `repr` could refer to the name defined here |
8 | | - --> $DIR/ambiguous-builtin-attrs.rs:3:1 |
| 26 | + --> $DIR/ambiguous-builtin-attrs.rs:5:1 |
9 | 27 | | |
10 | 28 | LL | macro repr() {} |
11 | 29 | | ^^^^^^^^^^^^^^^ |
12 | 30 | note: `repr` could also refer to the name defined here |
13 | | - --> $DIR/ambiguous-builtin-attrs.rs:5:3 |
| 31 | + --> $DIR/ambiguous-builtin-attrs.rs:7:3 |
14 | 32 | | |
15 | 33 | LL | #[repr(C)] //~ ERROR `repr` is ambiguous |
16 | 34 | | ^^^^ |
17 | 35 |
|
18 | 36 | error[E0659]: `repr` is ambiguous |
19 | | - --> $DIR/ambiguous-builtin-attrs.rs:7:19 |
| 37 | + --> $DIR/ambiguous-builtin-attrs.rs:9:19 |
20 | 38 | | |
21 | 39 | LL | #[cfg_attr(all(), repr(C))] //~ ERROR `repr` is ambiguous |
22 | 40 | | ^^^^ |
23 | 41 | | |
24 | 42 | note: `repr` could refer to the name defined here |
25 | | - --> $DIR/ambiguous-builtin-attrs.rs:3:1 |
| 43 | + --> $DIR/ambiguous-builtin-attrs.rs:5:1 |
26 | 44 | | |
27 | 45 | LL | macro repr() {} |
28 | 46 | | ^^^^^^^^^^^^^^^ |
29 | 47 | note: `repr` could also refer to the name defined here |
30 | | - --> $DIR/ambiguous-builtin-attrs.rs:7:19 |
| 48 | + --> $DIR/ambiguous-builtin-attrs.rs:9:19 |
31 | 49 | | |
32 | 50 | LL | #[cfg_attr(all(), repr(C))] //~ ERROR `repr` is ambiguous |
33 | 51 | | ^^^^ |
34 | 52 |
|
35 | 53 | error[E0659]: `cfg` is ambiguous |
36 | | - --> $DIR/ambiguous-builtin-attrs.rs:12:3 |
| 54 | + --> $DIR/ambiguous-builtin-attrs.rs:14:3 |
37 | 55 | | |
38 | 56 | LL | #[cfg(all())] //~ ERROR `cfg` is ambiguous |
39 | 57 | | ^^^ |
40 | 58 | | |
41 | 59 | note: `cfg` could refer to the name defined here |
42 | | - --> $DIR/ambiguous-builtin-attrs.rs:10:1 |
| 60 | + --> $DIR/ambiguous-builtin-attrs.rs:12:1 |
43 | 61 | | |
44 | | -LL | macro cfg() {} |
| 62 | +LL | macro cfg() {} //~ ERROR name `cfg` is reserved in macro namespace |
45 | 63 | | ^^^^^^^^^^^^^^ |
46 | 64 | note: `cfg` could also refer to the name defined here |
47 | | - --> $DIR/ambiguous-builtin-attrs.rs:12:3 |
| 65 | + --> $DIR/ambiguous-builtin-attrs.rs:14:3 |
48 | 66 | | |
49 | 67 | LL | #[cfg(all())] //~ ERROR `cfg` is ambiguous |
50 | 68 | | ^^^ |
51 | 69 |
|
52 | 70 | error[E0659]: `inline` is ambiguous |
53 | | - --> $DIR/ambiguous-builtin-attrs.rs:41:3 |
| 71 | + --> $DIR/ambiguous-builtin-attrs.rs:43:3 |
54 | 72 | | |
55 | 73 | LL | #[inline] //~ ERROR `inline` is ambiguous |
56 | 74 | | ^^^^^^ |
57 | 75 | | |
58 | 76 | note: `inline` could refer to the name defined here |
59 | | - --> $DIR/ambiguous-builtin-attrs.rs:39:1 |
| 77 | + --> $DIR/ambiguous-builtin-attrs.rs:41:1 |
60 | 78 | | |
61 | 79 | LL | macro_rules! inline { () => () } |
62 | 80 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
63 | 81 | note: `inline` could also refer to the name defined here |
64 | | - --> $DIR/ambiguous-builtin-attrs.rs:41:3 |
| 82 | + --> $DIR/ambiguous-builtin-attrs.rs:43:3 |
65 | 83 | | |
66 | 84 | LL | #[inline] //~ ERROR `inline` is ambiguous |
67 | 85 | | ^^^^^^ |
68 | 86 |
|
69 | 87 | error[E0659]: `inline` is ambiguous |
70 | | - --> $DIR/ambiguous-builtin-attrs.rs:43:19 |
| 88 | + --> $DIR/ambiguous-builtin-attrs.rs:45:19 |
71 | 89 | | |
72 | 90 | LL | #[cfg_attr(all(), inline)] //~ ERROR `inline` is ambiguous |
73 | 91 | | ^^^^^^ |
74 | 92 | | |
75 | 93 | note: `inline` could refer to the name defined here |
76 | | - --> $DIR/ambiguous-builtin-attrs.rs:39:1 |
| 94 | + --> $DIR/ambiguous-builtin-attrs.rs:41:1 |
77 | 95 | | |
78 | 96 | LL | macro_rules! inline { () => () } |
79 | 97 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
80 | 98 | note: `inline` could also refer to the name defined here |
81 | | - --> $DIR/ambiguous-builtin-attrs.rs:43:19 |
| 99 | + --> $DIR/ambiguous-builtin-attrs.rs:45:19 |
82 | 100 | | |
83 | 101 | LL | #[cfg_attr(all(), inline)] //~ ERROR `inline` is ambiguous |
84 | 102 | | ^^^^^^ |
85 | 103 |
|
86 | | -error: aborting due to 5 previous errors |
| 104 | +error[E0659]: `inline` is ambiguous |
| 105 | + --> $DIR/ambiguous-builtin-attrs.rs:48:34 |
| 106 | + | |
| 107 | +LL | fn non_macro_expanded_location<#[inline] T>() { //~ ERROR `inline` is ambiguous |
| 108 | + | ^^^^^^ |
| 109 | + | |
| 110 | +note: `inline` could refer to the name defined here |
| 111 | + --> $DIR/ambiguous-builtin-attrs.rs:41:1 |
| 112 | + | |
| 113 | +LL | macro_rules! inline { () => () } |
| 114 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 115 | +note: `inline` could also refer to the name defined here |
| 116 | + --> $DIR/ambiguous-builtin-attrs.rs:48:34 |
| 117 | + | |
| 118 | +LL | fn non_macro_expanded_location<#[inline] T>() { //~ ERROR `inline` is ambiguous |
| 119 | + | ^^^^^^ |
| 120 | + |
| 121 | +error[E0659]: `repr` is ambiguous |
| 122 | + --> $DIR/ambiguous-builtin-attrs.rs:50:11 |
| 123 | + | |
| 124 | +LL | #[repr(C)] //~ ERROR `repr` is ambiguous |
| 125 | + | ^^^^ |
| 126 | + | |
| 127 | +note: `repr` could refer to the name defined here |
| 128 | + --> $DIR/ambiguous-builtin-attrs.rs:5:1 |
| 129 | + | |
| 130 | +LL | macro repr() {} |
| 131 | + | ^^^^^^^^^^^^^^^ |
| 132 | +note: `repr` could also refer to the name defined here |
| 133 | + --> $DIR/ambiguous-builtin-attrs.rs:50:11 |
| 134 | + | |
| 135 | +LL | #[repr(C)] //~ ERROR `repr` is ambiguous |
| 136 | + | ^^^^ |
| 137 | + |
| 138 | +error[E0659]: `feature` is ambiguous |
| 139 | + --> $DIR/ambiguous-builtin-attrs.rs:1:4 |
| 140 | + | |
| 141 | +LL | #![feature(decl_macro)] //~ ERROR `feature` is ambiguous |
| 142 | + | ^^^^^^^ |
| 143 | + | |
| 144 | +note: `feature` could refer to the name defined here |
| 145 | + --> $DIR/ambiguous-builtin-attrs.rs:3:1 |
| 146 | + | |
| 147 | +LL | macro feature() {} |
| 148 | + | ^^^^^^^^^^^^^^^^^^ |
| 149 | +note: `feature` could also refer to the name defined here |
| 150 | + --> $DIR/ambiguous-builtin-attrs.rs:1:4 |
| 151 | + | |
| 152 | +LL | #![feature(decl_macro)] //~ ERROR `feature` is ambiguous |
| 153 | + | ^^^^^^^ |
| 154 | + |
| 155 | +error: aborting due to 11 previous errors |
87 | 156 |
|
88 | 157 | For more information about this error, try `rustc --explain E0659`. |
0 commit comments