From c4702ba22ce383ba1c0189f90acf388df714d47e Mon Sep 17 00:00:00 2001 From: Liam Naddell Date: Sun, 12 Jan 2025 15:36:37 -0500 Subject: [PATCH] it compiles --- gcc/rust/typecheck/rust-hir-type-check-path.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/rust/typecheck/rust-hir-type-check-path.cc b/gcc/rust/typecheck/rust-hir-type-check-path.cc index cb084b3e47c..7050dfda546 100644 --- a/gcc/rust/typecheck/rust-hir-type-check-path.cc +++ b/gcc/rust/typecheck/rust-hir-type-check-path.cc @@ -212,6 +212,8 @@ TypeCheckExpr::visit (HIR::PathInExpression &expr) context->insert_variant_definition (expr.get_mappings ().get_hirid (), vde->get_id()); bl = SubstMapper::InferSubst (bl, expr.get_locus ()); + resolver->insert_resolved_misc (expr.get_mappings ().get_nodeid (), + expr.get_mappings ().get_nodeid ()); infered = bl; assert(bl != nullptr); return;