Turn on ConstDebugInfo pass.

This commit is contained in:
Wesley Wiser 2022-10-28 15:01:05 -04:00 committed by Camille GILLOT
parent 4ad04ad841
commit 4e8b642646
11 changed files with 69 additions and 75 deletions

View file

@ -16,7 +16,7 @@ pub struct ConstDebugInfo;
impl<'tcx> MirPass<'tcx> for ConstDebugInfo {
fn is_enabled(&self, sess: &rustc_session::Session) -> bool {
sess.opts.unstable_opts.unsound_mir_opts && sess.mir_opt_level() > 0
sess.mir_opt_level() > 0
}
fn run_pass(&self, _tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {