diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-09-03 21:25:06 -0400 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-09-05 12:34:44 -0400 |
| commit | 74563b41666228e46f892e795108e06306b2b514 (patch) | |
| tree | b0345b028de2540b5a14b146d6d9381ad75afb85 /src/libsyntax_ext/error_codes.rs | |
| parent | 618768492f0c731fcb770dc2d178abe840846419 (diff) | |
| download | rust-74563b41666228e46f892e795108e06306b2b514.tar.gz rust-74563b41666228e46f892e795108e06306b2b514.zip | |
Restrict error code length to 80 columns
The global restriction is 100, but since error codes are printed out via --explain we want to restrict them to just 80 columns.
Diffstat (limited to 'src/libsyntax_ext/error_codes.rs')
| -rw-r--r-- | src/libsyntax_ext/error_codes.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libsyntax_ext/error_codes.rs b/src/libsyntax_ext/error_codes.rs index 5982a4df226..49808fc0b60 100644 --- a/src/libsyntax_ext/error_codes.rs +++ b/src/libsyntax_ext/error_codes.rs @@ -1,9 +1,10 @@ use syntax::register_long_diagnostics; // Error messages for EXXXX errors. -// Each message should start and end with a new line, and be wrapped to 80 characters. -// In vim you can `:set tw=80` and use `gq` to wrap paragraphs. Use `:set tw=0` to disable. -register_long_diagnostics! { +// Each message should start and end with a new line, and be wrapped to 80 +// characters. In vim you can `:set tw=80` and use `gq` to wrap paragraphs. Use +// `:set tw=0` to disable. +syntax::register_diagnostics! { E0660: r##" The argument to the `asm` macro is not well-formed. |
