From c638b4f52c652553bc1b0542cca306e1b1f73d10 Mon Sep 17 00:00:00 2001 From: Owen Avery Date: Tue, 4 Feb 2025 05:53:10 -0500 Subject: nr2.0: Run DefaultResolver::visit on PathInExpression gcc/rust/ChangeLog: * resolve/rust-late-name-resolver-2.0.cc (Late::visit): When visiting a PathInExpression instance, call into DefaultResolver::visit, ensuring generic arguments are visited. gcc/testsuite/ChangeLog: * rust/compile/nr2/exclude: Remove entries. Signed-off-by: Owen Avery --- gcc/rust/resolve/rust-late-name-resolver-2.0.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/rust/resolve') diff --git a/gcc/rust/resolve/rust-late-name-resolver-2.0.cc b/gcc/rust/resolve/rust-late-name-resolver-2.0.cc index 5f988a96..f7a36d8 100644 --- a/gcc/rust/resolve/rust-late-name-resolver-2.0.cc +++ b/gcc/rust/resolve/rust-late-name-resolver-2.0.cc @@ -284,6 +284,8 @@ Late::visit (AST::PathInExpression &expr) ctx.map_usage (Usage (expr.get_node_id ()), Definition (resolved->get_node_id ())); + + DefaultResolver::visit (expr); } void -- cgit v1.1