Remove __build_diagnostic_array! from cg_utils

This commit is contained in:
bjorn3 2018-11-24 14:19:35 +01:00
parent 2d46ee26fb
commit 8698f5c43d
2 changed files with 0 additions and 3 deletions

View File

@ -60,5 +60,3 @@ pub fn check_for_rustc_errors_attr(tcx: TyCtxt) {
}
}
}
__build_diagnostic_array! { librustc_codegen_utils, DIAGNOSTICS }

View File

@ -1697,7 +1697,6 @@ pub fn diagnostics_registry() -> errors::registry::Registry {
all_errors.extend_from_slice(&rustc_privacy::DIAGNOSTICS);
// FIXME: need to figure out a way to get these back in here
// all_errors.extend_from_slice(get_codegen_backend(sess).diagnostics());
all_errors.extend_from_slice(&rustc_codegen_utils::DIAGNOSTICS);
all_errors.extend_from_slice(&rustc_metadata::DIAGNOSTICS);
all_errors.extend_from_slice(&rustc_passes::DIAGNOSTICS);
all_errors.extend_from_slice(&rustc_plugin::DIAGNOSTICS);