diff options
| author | bors <bors@rust-lang.org> | 2022-07-06 05:48:11 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-07-06 05:48:11 +0000 |
| commit | 5b8cf49c51833ee5d27ae2e8e179337dbb9f14d7 (patch) | |
| tree | a088622340541cbdb4ca3528a3db1d972c1e886d /compiler/rustc_const_eval/src/interpret | |
| parent | f342bea9d19f14616c6559312552e6d0ee529cfd (diff) | |
| parent | 4f0a64736b94a84da4272867366b8679b585e603 (diff) | |
| download | rust-5b8cf49c51833ee5d27ae2e8e179337dbb9f14d7.tar.gz rust-5b8cf49c51833ee5d27ae2e8e179337dbb9f14d7.zip | |
Auto merge of #98206 - eggyal:align-to-chalk-folding-api, r=jackh726
Split TypeVisitable from TypeFoldable Impl of rust-lang/compiler-team#520 following MCP approval. 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 9d7905ed9a8..2bc521d5bbe 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, TypeSuperFoldable, TypeVisitor}; +use rustc_middle::ty::{self, Ty, TyCtxt, TypeSuperVisitable, TypeVisitable, TypeVisitor}; use std::convert::TryInto; use std::ops::ControlFlow; @@ -10,7 +10,7 @@ use std::ops::ControlFlow; /// case these parameters are unused. pub(crate) fn ensure_monomorphic_enough<'tcx, T>(tcx: TyCtxt<'tcx>, ty: T) -> InterpResult<'tcx> where - T: TypeFoldable<'tcx>, + T: TypeVisitable<'tcx>, { debug!("ensure_monomorphic_enough: ty={:?}", ty); if !ty.needs_subst() { |
