summary refs log tree commit diff
path: root/src/librustc_codegen_ssa
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2019-09-03 21:15:18 -0400
committerMark Rousskov <mark.simulacrum@gmail.com>2019-09-05 12:35:15 -0400
commitb437240ceefaad3cdf92ad7e9d1255b8da88dbb3 (patch)
treead724c143dc6cf6b20b214fa00e4572571e87399 /src/librustc_codegen_ssa
parent74563b41666228e46f892e795108e06306b2b514 (diff)
downloadrust-b437240ceefaad3cdf92ad7e9d1255b8da88dbb3.tar.gz
rust-b437240ceefaad3cdf92ad7e9d1255b8da88dbb3.zip
Replace diagnostic plugins with macro_rules
Diffstat (limited to 'src/librustc_codegen_ssa')
-rw-r--r--src/librustc_codegen_ssa/error_codes.rs2
-rw-r--r--src/librustc_codegen_ssa/lib.rs4
2 files changed, 1 insertions, 5 deletions
diff --git a/src/librustc_codegen_ssa/error_codes.rs b/src/librustc_codegen_ssa/error_codes.rs
index 8d46dcb7c09..8ff41c275a8 100644
--- a/src/librustc_codegen_ssa/error_codes.rs
+++ b/src/librustc_codegen_ssa/error_codes.rs
@@ -1,4 +1,4 @@
-register_long_diagnostics! {
+syntax::register_diagnostics! {
 
 E0668: r##"
 Malformed inline assembly rejected by LLVM.
diff --git a/src/librustc_codegen_ssa/lib.rs b/src/librustc_codegen_ssa/lib.rs
index 68640abb043..0f98310722e 100644
--- a/src/librustc_codegen_ssa/lib.rs
+++ b/src/librustc_codegen_ssa/lib.rs
@@ -35,8 +35,6 @@ use rustc_data_structures::svh::Svh;
 use rustc::middle::cstore::{LibSource, CrateSource, NativeLibrary};
 use syntax_pos::symbol::Symbol;
 
-// N.B., this module needs to be declared first so diagnostics are
-// registered before they are used.
 mod error_codes;
 
 pub mod common;
@@ -158,5 +156,3 @@ pub struct CodegenResults {
     pub linker_info: back::linker::LinkerInfo,
     pub crate_info: CrateInfo,
 }
-
-__build_diagnostic_array! { librustc_codegen_ssa, DIAGNOSTICS }