about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/post_drop_elaboration.rs
blob: 75721d4607626e5f6fc84529c0c6d52283679919 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
use rustc_const_eval::check_consts;
use rustc_middle::mir::*;
use rustc_middle::ty::TyCtxt;

use crate::MirLint;

pub(super) struct CheckLiveDrops;

impl<'tcx> MirLint<'tcx> for CheckLiveDrops {
    fn run_lint(&self, tcx: TyCtxt<'tcx>, body: &Body<'tcx>) {
        check_consts::post_drop_elaboration::check_live_drops(tcx, body);
    }
}