summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/interpret
diff options
context:
space:
mode:
authorlcnr <rust@lcnr.de>2022-11-15 13:42:14 +0100
committerlcnr <rust@lcnr.de>2022-11-15 13:50:13 +0100
commit6aa611a84c6f383e52ba4167dfda2910e122ef8f (patch)
tree52f457bda6d4ddc11a6d2be4b201c220a9e3d26f /compiler/rustc_const_eval/src/interpret
parent45f441a7b41d09bb78b0ba3e260d2c868ef6add7 (diff)
downloadrust-6aa611a84c6f383e52ba4167dfda2910e122ef8f.tar.gz
rust-6aa611a84c6f383e52ba4167dfda2910e122ef8f.zip
mv utility methods into separate module
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret')
-rw-r--r--compiler/rustc_const_eval/src/interpret/eval_context.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/eval_context.rs b/compiler/rustc_const_eval/src/interpret/eval_context.rs
index 753c1e87d21..b5df63790cb 100644
--- a/compiler/rustc_const_eval/src/interpret/eval_context.rs
+++ b/compiler/rustc_const_eval/src/interpret/eval_context.rs
@@ -23,7 +23,7 @@ use super::{
     MemPlaceMeta, Memory, MemoryKind, Operand, Place, PlaceTy, PointerArithmetic, Provenance,
     Scalar, StackPopJump,
 };
-use crate::transform::validate;
+use crate::util;
 
 pub struct InterpCx<'mir, 'tcx, M: Machine<'mir, 'tcx>> {
     /// Stores the `Machine` instance.
@@ -355,7 +355,7 @@ pub(super) fn mir_assign_valid_types<'tcx>(
     // all normal lifetimes are erased, higher-ranked types with their
     // late-bound lifetimes are still around and can lead to type
     // differences.
-    if validate::is_subtype(tcx, param_env, src.ty, dest.ty) {
+    if util::is_subtype(tcx, param_env, src.ty, dest.ty) {
         // Make sure the layout is equal, too -- just to be safe. Miri really
         // needs layout equality. For performance reason we skip this check when
         // the types are equal. Equal types *can* have different layouts when