File tree 4 files changed +9
-0
lines changed
4 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -858,6 +858,9 @@ It is also possible to manually transmute:
858
858
```
859
859
ptr::read(&v as *const _ as *const SomeType) // `v` transmuted to `SomeType`
860
860
```
861
+
862
+ Note that this does not move `v` (unlike `transmute`), and may need a
863
+ call to `mem::forget(v)` in case you want to avoid destructors being called.
861
864
"## ,
862
865
863
866
E0152 : r##"
Original file line number Diff line number Diff line change @@ -907,6 +907,8 @@ pub fn diagnostics_registry() -> diagnostics::registry::Registry {
907
907
all_errors. push_all ( & rustc_typeck:: DIAGNOSTICS ) ;
908
908
all_errors. push_all ( & rustc_borrowck:: DIAGNOSTICS ) ;
909
909
all_errors. push_all ( & rustc_resolve:: DIAGNOSTICS ) ;
910
+ all_errors. push_all ( & rustc_privacy:: DIAGNOSTICS ) ;
911
+ all_errors. push_all ( & rustc_trans:: DIAGNOSTICS ) ;
910
912
911
913
Registry :: new ( & * all_errors)
912
914
}
Original file line number Diff line number Diff line change @@ -1505,3 +1505,5 @@ pub fn check_crate(tcx: &ty::ctxt,
1505
1505
1506
1506
access_levels
1507
1507
}
1508
+
1509
+ __build_diagnostic_array ! { librustc_privacy, DIAGNOSTICS }
Original file line number Diff line number Diff line change @@ -89,3 +89,5 @@ pub mod save;
89
89
pub mod lib {
90
90
pub use llvm;
91
91
}
92
+
93
+ __build_diagnostic_array ! { librustc_trans, DIAGNOSTICS }
You can’t perform that action at this time.
0 commit comments