diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-09-07 20:01:44 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-07 20:01:44 +0200 |
| commit | 89a69fd76d275ddd2c81fdbae02a966d24658aaa (patch) | |
| tree | b191b0475521f0d20bf4aaad612c28a4d9a8d952 /src/libsyntax_ext | |
| parent | 3c4a58622128887778c6fd7c35de66f3fa463708 (diff) | |
| parent | 5153db136e8419beb217340500a97db553ddabbe (diff) | |
| download | rust-89a69fd76d275ddd2c81fdbae02a966d24658aaa.tar.gz rust-89a69fd76d275ddd2c81fdbae02a966d24658aaa.zip | |
Rollup merge of #64139 - Mark-Simulacrum:strip-legacy-proc-macro, r=petrochenkov
Migrate internal diagnostic registration to macro_rules Review is best done commit-by-commit. Fixes #64132.
Diffstat (limited to 'src/libsyntax_ext')
| -rw-r--r-- | src/libsyntax_ext/error_codes.rs | 9 | ||||
| -rw-r--r-- | src/libsyntax_ext/lib.rs | 1 |
2 files changed, 4 insertions, 6 deletions
diff --git a/src/libsyntax_ext/error_codes.rs b/src/libsyntax_ext/error_codes.rs index 5982a4df226..2bc990574f7 100644 --- a/src/libsyntax_ext/error_codes.rs +++ b/src/libsyntax_ext/error_codes.rs @@ -1,9 +1,8 @@ -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. diff --git a/src/libsyntax_ext/lib.rs b/src/libsyntax_ext/lib.rs index 5c0a63ebbe7..631ab7a3310 100644 --- a/src/libsyntax_ext/lib.rs +++ b/src/libsyntax_ext/lib.rs @@ -9,7 +9,6 @@ #![feature(nll)] #![feature(proc_macro_internals)] #![feature(proc_macro_quote)] -#![feature(rustc_diagnostic_macros)] extern crate proc_macro; |
