about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2017-09-23 15:10:00 +0200
committerbjorn3 <bjorn3@users.noreply.github.com>2017-09-23 15:10:00 +0200
commit793c02db7fb982a6e158438137aeccf9a9074bd3 (patch)
treed46d30bc204de7b092c6b4ea892c41956b59ee5d
parent43bfd4cd545348836f0739dcfa2d47dcc3569d96 (diff)
downloadrust-793c02db7fb982a6e158438137aeccf9a9074bd3.tar.gz
rust-793c02db7fb982a6e158438137aeccf9a9074bd3.zip
Remove build_diagnostic_array hack
-rw-r--r--src/librustc_driver/lib.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/librustc_driver/lib.rs b/src/librustc_driver/lib.rs
index e7520858c67..6bdad0b212c 100644
--- a/src/librustc_driver/lib.rs
+++ b/src/librustc_driver/lib.rs
@@ -177,8 +177,6 @@ mod rustc_trans {
             pub const CODE_GEN_MODEL_ARGS: [(&'static str, ()); 0] = [];
         }
     }
-
-    __build_diagnostic_array! { librustc_trans, DIAGNOSTICS }
 }
 
 // Parse args and run the compiler. This is the primary entry point for rustc.
@@ -1264,6 +1262,7 @@ pub fn diagnostics_registry() -> errors::registry::Registry {
     all_errors.extend_from_slice(&rustc_borrowck::DIAGNOSTICS);
     all_errors.extend_from_slice(&rustc_resolve::DIAGNOSTICS);
     all_errors.extend_from_slice(&rustc_privacy::DIAGNOSTICS);
+    #[cfg(feature="llvm")]
     all_errors.extend_from_slice(&rustc_trans::DIAGNOSTICS);
     all_errors.extend_from_slice(&rustc_const_eval::DIAGNOSTICS);
     all_errors.extend_from_slice(&rustc_metadata::DIAGNOSTICS);