Skip to content

Commit 26861fb

Browse files
committed
rename Unevaluated to UnevaluatedConst
1 parent adc7e3e commit 26861fb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/non_copy_const.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ fn is_value_unfrozen_expr<'tcx>(cx: &LateContext<'tcx>, hir_id: HirId, def_id: D
195195

196196
let result = cx.tcx.const_eval_resolve(
197197
cx.param_env,
198-
mir::Unevaluated::new(ty::WithOptConstParam::unknown(def_id), substs),
198+
mir::UnevaluatedConst::new(ty::WithOptConstParam::unknown(def_id), substs),
199199
None,
200200
);
201201
is_value_unfrozen_raw(cx, result, ty)

clippy_utils/src/consts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ impl<'a, 'tcx> ConstEvalLateContext<'a, 'tcx> {
424424
.tcx
425425
.const_eval_resolve(
426426
self.param_env,
427-
mir::Unevaluated::new(ty::WithOptConstParam::unknown(def_id), substs),
427+
mir::UnevaluatedConst::new(ty::WithOptConstParam::unknown(def_id), substs),
428428
None,
429429
)
430430
.ok()

0 commit comments

Comments
 (0)