Skip to content

Commit c1607f8

Browse files
committed
Add E0589 to the error index
1 parent 0d8321b commit c1607f8

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/libsyntax/diagnostic_list.rs

+12-1
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,18 @@ fn main() {
244244
```
245245
"##,
246246

247+
E0589: r##"
248+
The value of `N` that was specified for `repr(align(N))` was not a power
249+
of two, or was greater than 2^29.
250+
251+
```compile_fail,E0589
252+
#[repr(align(15))] // error: invalid `repr(align)` attribute: not a power of two
253+
enum Foo {
254+
Bar(u64),
255+
}
256+
```
257+
"##,
258+
247259
E0658: r##"
248260
An unstable feature was used.
249261
@@ -321,7 +333,6 @@ register_diagnostics! {
321333
E0555, // malformed feature attribute, expected #![feature(...)]
322334
E0556, // malformed feature, expected just one word
323335
E0584, // file for module `..` found at both .. and ..
324-
E0589, // invalid `repr(align)` attribute
325336
E0629, // missing 'feature' (rustc_const_unstable)
326337
E0630, // rustc_const_unstable attribute must be paired with stable/unstable attribute
327338
E0693, // incorrect `repr(align)` attribute format

0 commit comments

Comments
 (0)