Skip to content

Commit 5726ed7

Browse files
committed
same thing in const-prop-lint
1 parent d10dccf commit 5726ed7

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

compiler/rustc_mir_transform/src/const_prop_lint.rs

-5
Original file line numberDiff line numberDiff line change
@@ -514,11 +514,6 @@ impl<'mir, 'tcx> ConstPropagator<'mir, 'tcx> {
514514
| Rvalue::NullaryOp(..) => {}
515515
}
516516

517-
// FIXME we need to revisit this for #67176
518-
if rvalue.needs_subst() {
519-
return None;
520-
}
521-
522517
self.use_ecx(source_info, |this| this.ecx.eval_rvalue_into_place(rvalue, place))
523518
}
524519
}

0 commit comments

Comments
 (0)