2024-09-03 15:01:46 +10:00
|
|
|
use rustc_middle::mir::Body;
|
|
|
|
|
use rustc_middle::ty::TyCtxt;
|
|
|
|
|
use rustc_mir_dataflow::rustc_peek::sanity_check;
|
|
|
|
|
|
|
|
|
|
pub(super) struct SanityCheck;
|
|
|
|
|
|
2024-09-03 15:45:27 +10:00
|
|
|
impl<'tcx> crate::MirLint<'tcx> for SanityCheck {
|
2024-09-03 15:01:46 +10:00
|
|
|
fn run_lint(&self, tcx: TyCtxt<'tcx>, body: &Body<'tcx>) {
|
|
|
|
|
sanity_check(tcx, body);
|
|
|
|
|
}
|
|
|
|
|
}
|