We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4738807 commit 887f385Copy full SHA for 887f385
compiler/rustc_const_eval/src/const_eval/eval_queries.rs
@@ -350,7 +350,6 @@ pub fn eval_to_allocation_raw_provider<'tcx>(
350
if let ty::InstanceKind::Item(def_id) = key.value.instance.def
351
&& matches!(tcx.def_kind(def_id), DefKind::Const | DefKind::AssocConst)
352
{
353
- let ct = tcx.const_of_item(def_id).instantiate(tcx, key.value.instance.args);
354
match ct.kind() {
355
ty::ConstKind::Unevaluated(uv) => {
356
assert_eq!(tcx.def_kind(uv.def), DefKind::AnonConst);
0 commit comments