Skip to content

Commit e6e08c6

Browse files
committed
Fix rebase fallout
1 parent 9d2f97b commit e6e08c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/transform/qualify_consts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1166,7 +1166,7 @@ impl<'a, 'tcx> Visitor<'tcx> for Qualifier<'a, 'tcx, 'tcx> {
11661166
if let (Mode::ConstFn, &Place::Local(index)) = (self.mode, dest) {
11671167
if self.mir.local_kind(index) == LocalKind::Var &&
11681168
self.const_fn_arg_vars.insert(index) &&
1169-
!self.tcx.sess.features_untracked().const_let {
1169+
!self.const_let_allowed() {
11701170
// Direct use of an argument is permitted.
11711171
match *rvalue {
11721172
Rvalue::Use(Operand::Copy(Place::Local(local))) |

0 commit comments

Comments
 (0)