@@ -16,24 +16,36 @@ error[E0589]: invalid `repr(align)` attribute: larger than 2^29
16
16
LL | #[repr(align(4294967296))]
17
17
| ^^^^^^^^^^
18
18
19
- error[E0589]: invalid `repr(align)` attribute: not an unsuffixed integer
19
+ error[E0589]: invalid `repr(align)` attribute: not a power of two
20
20
--> $DIR/repr-align.rs:18:14
21
21
|
22
+ LL | #[repr(align(0))]
23
+ | ^
24
+
25
+ error[E0589]: invalid `repr(align)` attribute: not an unsuffixed integer
26
+ --> $DIR/repr-align.rs:22:14
27
+ |
22
28
LL | #[repr(align(16.0))]
23
29
| ^^^^
24
30
25
31
error[E0589]: invalid `repr(align)` attribute: not a power of two
26
- --> $DIR/repr-align.rs:22 :14
32
+ --> $DIR/repr-align.rs:26 :14
27
33
|
28
34
LL | #[repr(align(15))]
29
35
| ^^
30
36
31
37
error[E0589]: invalid `repr(align)` attribute: larger than 2^29
32
- --> $DIR/repr-align.rs:26 :14
38
+ --> $DIR/repr-align.rs:30 :14
33
39
|
34
40
LL | #[repr(align(4294967296))]
35
41
| ^^^^^^^^^^
36
42
43
+ error[E0589]: invalid `repr(align)` attribute: not a power of two
44
+ --> $DIR/repr-align.rs:37:14
45
+ |
46
+ LL | #[repr(align(0))]
47
+ | ^
48
+
37
49
error[E0589]: invalid `repr(align)` attribute: not an unsuffixed integer
38
50
--> $DIR/repr-align.rs:3:14
39
51
|
@@ -58,30 +70,46 @@ LL | #[repr(align(4294967296))]
58
70
|
59
71
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
60
72
61
- error[E0589]: invalid `repr(align)` attribute: not an unsuffixed integer
73
+ error[E0589]: invalid `repr(align)` attribute: not a power of two
62
74
--> $DIR/repr-align.rs:18:14
63
75
|
76
+ LL | #[repr(align(0))]
77
+ | ^
78
+ |
79
+ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
80
+
81
+ error[E0589]: invalid `repr(align)` attribute: not an unsuffixed integer
82
+ --> $DIR/repr-align.rs:22:14
83
+ |
64
84
LL | #[repr(align(16.0))]
65
85
| ^^^^
66
86
|
67
87
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
68
88
69
89
error[E0589]: invalid `repr(align)` attribute: not a power of two
70
- --> $DIR/repr-align.rs:22 :14
90
+ --> $DIR/repr-align.rs:26 :14
71
91
|
72
92
LL | #[repr(align(15))]
73
93
| ^^
74
94
|
75
95
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
76
96
77
97
error[E0589]: invalid `repr(align)` attribute: larger than 2^29
78
- --> $DIR/repr-align.rs:26 :14
98
+ --> $DIR/repr-align.rs:30 :14
79
99
|
80
100
LL | #[repr(align(4294967296))]
81
101
| ^^^^^^^^^^
82
102
|
83
103
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
84
104
85
- error: aborting due to 12 previous errors
105
+ error[E0589]: invalid `repr(align)` attribute: not a power of two
106
+ --> $DIR/repr-align.rs:37:14
107
+ |
108
+ LL | #[repr(align(0))]
109
+ | ^
110
+ |
111
+ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
112
+
113
+ error: aborting due to 16 previous errors
86
114
87
115
For more information about this error, try `rustc --explain E0589`.
0 commit comments