mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 13:05:18 +03:00
Register diagnostics for rustc_privacy and rustc_trans properly
fixes #29665
This commit is contained in:
@@ -907,6 +907,8 @@ pub fn diagnostics_registry() -> diagnostics::registry::Registry {
|
||||
all_errors.push_all(&rustc_typeck::DIAGNOSTICS);
|
||||
all_errors.push_all(&rustc_borrowck::DIAGNOSTICS);
|
||||
all_errors.push_all(&rustc_resolve::DIAGNOSTICS);
|
||||
all_errors.push_all(&rustc_privacy::DIAGNOSTICS);
|
||||
all_errors.push_all(&rustc_trans::DIAGNOSTICS);
|
||||
|
||||
Registry::new(&*all_errors)
|
||||
}
|
||||
|
||||
@@ -1505,3 +1505,5 @@ pub fn check_crate(tcx: &ty::ctxt,
|
||||
|
||||
access_levels
|
||||
}
|
||||
|
||||
__build_diagnostic_array! { librustc_privacy, DIAGNOSTICS }
|
||||
|
||||
@@ -89,3 +89,5 @@ pub mod back {
|
||||
pub mod lib {
|
||||
pub use llvm;
|
||||
}
|
||||
|
||||
__build_diagnostic_array! { librustc_trans, DIAGNOSTICS }
|
||||
|
||||
Reference in New Issue
Block a user