Skip to content

Commit 793c02d

Browse files
committed
Remove build_diagnostic_array hack
1 parent 43bfd4c commit 793c02d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/librustc_driver/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,6 @@ mod rustc_trans {
177177
pub const CODE_GEN_MODEL_ARGS: [(&'static str, ()); 0] = [];
178178
}
179179
}
180-
181-
__build_diagnostic_array! { librustc_trans, DIAGNOSTICS }
182180
}
183181

184182
// 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 {
12641262
all_errors.extend_from_slice(&rustc_borrowck::DIAGNOSTICS);
12651263
all_errors.extend_from_slice(&rustc_resolve::DIAGNOSTICS);
12661264
all_errors.extend_from_slice(&rustc_privacy::DIAGNOSTICS);
1265+
#[cfg(feature="llvm")]
12671266
all_errors.extend_from_slice(&rustc_trans::DIAGNOSTICS);
12681267
all_errors.extend_from_slice(&rustc_const_eval::DIAGNOSTICS);
12691268
all_errors.extend_from_slice(&rustc_metadata::DIAGNOSTICS);

0 commit comments

Comments
 (0)