about summary refs log tree commit diff
path: root/src/libsyntax_ext/error_codes.rs
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2019-09-03 21:25:06 -0400
committerMark Rousskov <mark.simulacrum@gmail.com>2019-09-05 12:34:44 -0400
commit74563b41666228e46f892e795108e06306b2b514 (patch)
treeb0345b028de2540b5a14b146d6d9381ad75afb85 /src/libsyntax_ext/error_codes.rs
parent618768492f0c731fcb770dc2d178abe840846419 (diff)
downloadrust-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.rs7
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.