Turn on ConstDebugInfo pass.
This commit is contained in:
committed by
Camille GILLOT
parent
4ad04ad841
commit
4e8b642646
@@ -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>) {
|
||||
|
||||
Reference in New Issue
Block a user