diff options
| author | bors <bors@rust-lang.org> | 2022-06-08 05:36:40 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-06-08 05:36:40 +0000 |
| commit | 64a7aa7016de32f4d991c30bfa40d3911e18a213 (patch) | |
| tree | eb55803bf1359ae98f3e807f91655ca5395ed797 /compiler/rustc_const_eval/src/interpret | |
| parent | 47aee31b2a89cb7de97d779869a30b046632b6af (diff) | |
| parent | 90db033955eaa000f8eea5691ea4297687a4dbef (diff) | |
| download | rust-64a7aa7016de32f4d991c30bfa40d3911e18a213.tar.gz rust-64a7aa7016de32f4d991c30bfa40d3911e18a213.zip | |
Auto merge of #97447 - nnethercote:improve-folding, r=jackh726
Folding revamp r? `@ghost`
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/util.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/util.rs b/compiler/rustc_const_eval/src/interpret/util.rs index 1940b573db0..0fddafbee79 100644 --- a/compiler/rustc_const_eval/src/interpret/util.rs +++ b/compiler/rustc_const_eval/src/interpret/util.rs @@ -1,5 +1,5 @@ use rustc_middle::mir::interpret::InterpResult; -use rustc_middle::ty::{self, Ty, TyCtxt, TypeFoldable, TypeVisitor}; +use rustc_middle::ty::{self, Ty, TyCtxt, TypeFoldable, TypeSuperFoldable, TypeVisitor}; use std::convert::TryInto; use std::ops::ControlFlow; @@ -47,7 +47,7 @@ where match (is_used, subst.needs_subst()) { // Just in case there are closures or generators within this subst, // recurse. - (true, true) => return subst.super_visit_with(self), + (true, true) => return subst.visit_with(self), // Confirm that polymorphization replaced the parameter with // `ty::Param`/`ty::ConstKind::Param`. (false, true) if cfg!(debug_assertions) => match subst.unpack() { |
