Skip to content

Commit

Permalink
same thing in const-prop-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
b-naber committed Aug 4, 2022
1 parent d10dccf commit 5726ed7
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions compiler/rustc_mir_transform/src/const_prop_lint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -514,11 +514,6 @@ impl<'mir, 'tcx> ConstPropagator<'mir, 'tcx> {
| Rvalue::NullaryOp(..) => {}
}

// FIXME we need to revisit this for #67176
if rvalue.needs_subst() {
return None;
}

self.use_ecx(source_info, |this| this.ecx.eval_rvalue_into_place(rvalue, place))
}
}
Expand Down

0 comments on commit 5726ed7

Please sign in to comment.