rustc_mir_transform/post_drop_elaboration.rs
1use rustc_const_eval::check_consts;
2use rustc_middle::mir::*;
3use rustc_middle::ty::TyCtxt;
4
5use crate::MirLint;
6
7pub(super) struct CheckLiveDrops;
8
9impl<'tcx> MirLint<'tcx> for CheckLiveDrops {
10 fn run_lint(&self, tcx: TyCtxt<'tcx>, body: &Body<'tcx>) {
11 check_consts::post_drop_elaboration::check_live_drops(tcx, body);
12 }
13}