diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2017-09-23 15:10:00 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2017-09-23 15:10:00 +0200 |
| commit | 793c02db7fb982a6e158438137aeccf9a9074bd3 (patch) | |
| tree | d46d30bc204de7b092c6b4ea892c41956b59ee5d | |
| parent | 43bfd4cd545348836f0739dcfa2d47dcc3569d96 (diff) | |
| download | rust-793c02db7fb982a6e158438137aeccf9a9074bd3.tar.gz rust-793c02db7fb982a6e158438137aeccf9a9074bd3.zip | |
Remove build_diagnostic_array hack
| -rw-r--r-- | src/librustc_driver/lib.rs | 3 |
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); |
