diff options
| author | varkor <github@varkor.com> | 2018-05-01 21:44:37 +0100 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2018-05-01 22:01:55 +0100 |
| commit | c1607f80b3d57b66386c1cab4b2b6ae069d4caba (patch) | |
| tree | fc0b53ee2c391db1374f1833d2966001a1fe0ac1 /src | |
| parent | 0d8321b5e87c87aa4dbea729b4dd722740fac645 (diff) | |
| download | rust-c1607f80b3d57b66386c1cab4b2b6ae069d4caba.tar.gz rust-c1607f80b3d57b66386c1cab4b2b6ae069d4caba.zip | |
Add E0589 to the error index
Diffstat (limited to 'src')
| -rw-r--r-- | src/libsyntax/diagnostic_list.rs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/libsyntax/diagnostic_list.rs b/src/libsyntax/diagnostic_list.rs index c9cac1b1142..d1f123f6f6c 100644 --- a/src/libsyntax/diagnostic_list.rs +++ b/src/libsyntax/diagnostic_list.rs @@ -244,6 +244,18 @@ fn main() { ``` "##, +E0589: r##" +The value of `N` that was specified for `repr(align(N))` was not a power +of two, or was greater than 2^29. + +```compile_fail,E0589 +#[repr(align(15))] // error: invalid `repr(align)` attribute: not a power of two +enum Foo { + Bar(u64), +} +``` +"##, + E0658: r##" An unstable feature was used. @@ -321,7 +333,6 @@ register_diagnostics! { E0555, // malformed feature attribute, expected #![feature(...)] E0556, // malformed feature, expected just one word E0584, // file for module `..` found at both .. and .. - E0589, // invalid `repr(align)` attribute E0629, // missing 'feature' (rustc_const_unstable) E0630, // rustc_const_unstable attribute must be paired with stable/unstable attribute E0693, // incorrect `repr(align)` attribute format |
