Fix rebase fallout
This commit is contained in:
parent
9d2f97be78
commit
e6e08c666c
1 changed files with 1 additions and 1 deletions
|
|
@ -1166,7 +1166,7 @@ impl<'a, 'tcx> Visitor<'tcx> for Qualifier<'a, 'tcx, 'tcx> {
|
|||
if let (Mode::ConstFn, &Place::Local(index)) = (self.mode, dest) {
|
||||
if self.mir.local_kind(index) == LocalKind::Var &&
|
||||
self.const_fn_arg_vars.insert(index) &&
|
||||
!self.tcx.sess.features_untracked().const_let {
|
||||
!self.const_let_allowed() {
|
||||
// Direct use of an argument is permitted.
|
||||
match *rvalue {
|
||||
Rvalue::Use(Operand::Copy(Place::Local(local))) |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue