about summary refs log tree commit diff
diff options
context:
space:
mode:
authorb-naber <bn263@gmx.de>2022-09-19 19:46:53 +0200
committerb-naber <bn263@gmx.de>2022-09-22 12:35:28 +0200
commitadc7e3e679ff18653fe646326ff0f27eaccd5f70 (patch)
tree00071de0bd4b3d9242f77d32f40bfc1880cd6eba
parent4d015293d1cb7ebdd0972e620c3e0f1763ad2ec8 (diff)
downloadrust-adc7e3e679ff18653fe646326ff0f27eaccd5f70.tar.gz
rust-adc7e3e679ff18653fe646326ff0f27eaccd5f70.zip
introduce mir::Unevaluated
-rw-r--r--clippy_lints/src/non_copy_const.rs2
-rw-r--r--clippy_utils/src/consts.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/non_copy_const.rs b/clippy_lints/src/non_copy_const.rs
index 72c86f28bbc..85024b0b05c 100644
--- a/clippy_lints/src/non_copy_const.rs
+++ b/clippy_lints/src/non_copy_const.rs
@@ -195,7 +195,7 @@ fn is_value_unfrozen_expr<'tcx>(cx: &LateContext<'tcx>, hir_id: HirId, def_id: D
 
     let result = cx.tcx.const_eval_resolve(
         cx.param_env,
-        ty::Unevaluated::new(ty::WithOptConstParam::unknown(def_id), substs),
+        mir::Unevaluated::new(ty::WithOptConstParam::unknown(def_id), substs),
         None,
     );
     is_value_unfrozen_raw(cx, result, ty)
diff --git a/clippy_utils/src/consts.rs b/clippy_utils/src/consts.rs
index 1b8a9c05559..ac5bac3714f 100644
--- a/clippy_utils/src/consts.rs
+++ b/clippy_utils/src/consts.rs
@@ -424,7 +424,7 @@ impl<'a, 'tcx> ConstEvalLateContext<'a, 'tcx> {
                     .tcx
                     .const_eval_resolve(
                         self.param_env,
-                        ty::Unevaluated::new(ty::WithOptConstParam::unknown(def_id), substs),
+                        mir::Unevaluated::new(ty::WithOptConstParam::unknown(def_id), substs),
                         None,
                     )
                     .ok()