We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
drop_elaboration_and_check_consts
1 parent a43e486 commit 21ddf4dCopy full SHA for 21ddf4d
src/librustc_interface/passes.rs
@@ -847,7 +847,11 @@ fn analysis(tcx: TyCtxt<'_>, cnum: CrateNum) -> Result<()> {
847
848
sess.time("MIR_effect_checking", || {
849
for def_id in tcx.body_owners() {
850
- mir::transform::check_unsafety::check_unsafety(tcx, def_id)
+ mir::transform::check_unsafety::check_unsafety(tcx, def_id);
851
+
852
+ if tcx.hir().body_const_context(def_id).is_some() {
853
+ tcx.ensure().mir_drops_elaborated_and_const_checked(def_id);
854
+ }
855
}
856
});
857
0 commit comments