Skip to content

Commit

Permalink
Register diagnostics for rustc_privacy and rustc_trans properly
Browse files Browse the repository at this point in the history
fixes #29665
  • Loading branch information
Manishearth committed Nov 22, 2015
1 parent eb19d02 commit 352853c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/librustc_driver/lib.rs
Expand Up @@ -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)
}
Expand Down
2 changes: 2 additions & 0 deletions src/librustc_privacy/lib.rs
Expand Up @@ -1505,3 +1505,5 @@ pub fn check_crate(tcx: &ty::ctxt,

access_levels
}

__build_diagnostic_array! { librustc_privacy, DIAGNOSTICS }
2 changes: 2 additions & 0 deletions src/librustc_trans/lib.rs
Expand Up @@ -89,3 +89,5 @@ pub mod save;
pub mod lib {
pub use llvm;
}

__build_diagnostic_array! { librustc_trans, DIAGNOSTICS }

0 comments on commit 352853c

Please sign in to comment.