Skip to content

Commit 887f385

Browse files
committed
dont one-step resolve const items in eval_to_allocation
1 parent 4738807 commit 887f385

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

compiler/rustc_const_eval/src/const_eval/eval_queries.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,6 @@ pub fn eval_to_allocation_raw_provider<'tcx>(
350350
if let ty::InstanceKind::Item(def_id) = key.value.instance.def
351351
&& matches!(tcx.def_kind(def_id), DefKind::Const | DefKind::AssocConst)
352352
{
353-
let ct = tcx.const_of_item(def_id).instantiate(tcx, key.value.instance.args);
354353
match ct.kind() {
355354
ty::ConstKind::Unevaluated(uv) => {
356355
assert_eq!(tcx.def_kind(uv.def), DefKind::AnonConst);

0 commit comments

Comments
 (0)