Turn on ConstDebugInfo pass.
This commit is contained in:
parent
4ad04ad841
commit
4e8b642646
11 changed files with 69 additions and 75 deletions
|
@ -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>) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue