]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #29980 - Manishearth:missing-diag, r=eddyb
authorbors <bors@rust-lang.org>
Sun, 22 Nov 2015 06:42:56 +0000 (06:42 +0000)
committerbors <bors@rust-lang.org>
Sun, 22 Nov 2015 06:42:56 +0000 (06:42 +0000)
None

src/librustc/diagnostics.rs
src/librustc_driver/lib.rs
src/librustc_privacy/lib.rs
src/librustc_trans/lib.rs

index 7cb2de78e2c7dbdf1248b05ed9270c458ff90e13..361b8c531081a67b616f55602d51eb0acb27953b 100644 (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##"
index 63326c538c915be215e66302c068bdf0e3ae2648..6cbba235ff74ff11ca2f2c8b80299963017005f5 100644 (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)
 }
index 1ca8eeadfe5bb0a58bfc60dad26d807965fb87cb..fdd5add68f28750d04133c5b5b87696b3beb9229 100644 (file)
@@ -1505,3 +1505,5 @@ pub fn check_crate(tcx: &ty::ctxt,
 
     access_levels
 }
+
+__build_diagnostic_array! { librustc_privacy, DIAGNOSTICS }
index 84ce458ed14f7f4b62acfffd87453a2e12a0e0bb..6b465cf28f3f2dccdf961de1fdab74b786328179 100644 (file)
@@ -89,3 +89,5 @@ pub mod back {
 pub mod lib {
     pub use llvm;
 }
+
+__build_diagnostic_array! { librustc_trans, DIAGNOSTICS }