diff --git a/gcc/rust/typecheck/rust-hir-type-check-path.cc b/gcc/rust/typecheck/rust-hir-type-check-path.cc index 8cf8c9ccac8..e3264e56d1c 100644 --- a/gcc/rust/typecheck/rust-hir-type-check-path.cc +++ b/gcc/rust/typecheck/rust-hir-type-check-path.cc @@ -224,6 +224,8 @@ TypeCheckExpr::visit (HIR::PathInExpression &expr) rust_assert (resolved); + query_type(*hir_id, &infered); + infered = SubstMapper::InferSubst (resolved, expr.get_locus ()); }