|
1 | 1 | error[E0552]: incorrect `repr(packed)` attribute format: `packed` takes exactly one parenthesized argument, or no parentheses at all |
2 | | - --> $DIR/issue-83921-ice.rs:6:8 |
| 2 | + --> $DIR/malformed-repr-hints.rs:6:8 |
3 | 3 | | |
4 | 4 | LL | #[repr(packed())] |
5 | 5 | | ^^^^^^^^ |
6 | 6 |
|
7 | 7 | error[E0589]: invalid `repr(align)` attribute: `align` needs an argument |
8 | | - --> $DIR/issue-83921-ice.rs:10:8 |
| 8 | + --> $DIR/malformed-repr-hints.rs:10:8 |
9 | 9 | | |
10 | 10 | LL | #[repr(align)] |
11 | 11 | | ^^^^^ help: supply an argument here: `align(...)` |
12 | 12 |
|
13 | 13 | error[E0693]: incorrect `repr(align)` attribute format: `align` takes exactly one argument in parentheses |
14 | | - --> $DIR/issue-83921-ice.rs:14:8 |
| 14 | + --> $DIR/malformed-repr-hints.rs:14:8 |
15 | 15 | | |
16 | 16 | LL | #[repr(align(2, 4))] |
17 | 17 | | ^^^^^^^^^^^ |
18 | 18 |
|
19 | 19 | error[E0693]: incorrect `repr(align)` attribute format: `align` takes exactly one argument in parentheses |
20 | | - --> $DIR/issue-83921-ice.rs:18:8 |
| 20 | + --> $DIR/malformed-repr-hints.rs:18:8 |
21 | 21 | | |
22 | 22 | LL | #[repr(align())] |
23 | 23 | | ^^^^^^^ |
24 | 24 |
|
| 25 | +error[E0552]: invalid representation hint: `Rust` does not take a parenthesized argument list |
| 26 | + --> $DIR/malformed-repr-hints.rs:23:8 |
| 27 | + | |
| 28 | +LL | #[repr(Rust(u8))] |
| 29 | + | ^^^^^^^^ |
| 30 | + |
| 31 | +error[E0552]: invalid representation hint: `Rust` does not take a parenthesized argument list |
| 32 | + --> $DIR/malformed-repr-hints.rs:25:8 |
| 33 | + | |
| 34 | +LL | #[repr(Rust(0))] |
| 35 | + | ^^^^^^^ |
| 36 | + |
| 37 | +error[E0552]: invalid representation hint: `Rust` does not take a value |
| 38 | + --> $DIR/malformed-repr-hints.rs:27:8 |
| 39 | + | |
| 40 | +LL | #[repr(Rust = 0)] |
| 41 | + | ^^^^^^^^ |
| 42 | + |
25 | 43 | error[E0552]: invalid representation hint: `i8` does not take a parenthesized argument list |
26 | | - --> $DIR/issue-83921-ice.rs:22:8 |
| 44 | + --> $DIR/malformed-repr-hints.rs:31:8 |
27 | 45 | | |
28 | 46 | LL | #[repr(i8())] |
29 | 47 | | ^^^^ |
30 | 48 |
|
31 | 49 | error[E0552]: invalid representation hint: `u32` does not take a parenthesized argument list |
32 | | - --> $DIR/issue-83921-ice.rs:26:8 |
| 50 | + --> $DIR/malformed-repr-hints.rs:35:8 |
33 | 51 | | |
34 | 52 | LL | #[repr(u32(42))] |
35 | 53 | | ^^^^^^^ |
36 | 54 |
|
37 | 55 | error[E0552]: invalid representation hint: `i64` does not take a value |
38 | | - --> $DIR/issue-83921-ice.rs:30:8 |
| 56 | + --> $DIR/malformed-repr-hints.rs:39:8 |
39 | 57 | | |
40 | 58 | LL | #[repr(i64 = 2)] |
41 | 59 | | ^^^^^^^ |
42 | 60 |
|
43 | | -error: aborting due to 7 previous errors |
| 61 | +error: aborting due to 10 previous errors |
44 | 62 |
|
45 | 63 | Some errors have detailed explanations: E0552, E0589, E0693. |
46 | 64 | For more information about an error, try `rustc --explain E0552`. |
0 commit comments