Auto merge of #29980 - Manishearth:missing-diag, r=eddyb

None
This commit is contained in:
bors
2015-11-22 06:42:56 +00:00
4 changed files with 9 additions and 0 deletions
+3
View File
@@ -858,6 +858,9 @@ fn foo<T: MyTransmutableType>(x: Vec<T>) {
```
ptr::read(&v as *const _ as *const SomeType) // `v` transmuted to `SomeType`
```
Note that this does not move `v` (unlike `transmute`), and may need a
call to `mem::forget(v)` in case you want to avoid destructors being called.
"##,
E0152: r##"
+2
View File
@@ -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)
}
+2
View File
@@ -1505,3 +1505,5 @@ pub fn check_crate(tcx: &ty::ctxt,
access_levels
}
__build_diagnostic_array! { librustc_privacy, DIAGNOSTICS }
+2
View File
@@ -89,3 +89,5 @@ pub mod back {
pub mod lib {
pub use llvm;
}
__build_diagnostic_array! { librustc_trans, DIAGNOSTICS }