Skip to content

Commit 3e2028c

Browse files
committed
Improve ErrorPropagationExpr handling
gcc/rust/ChangeLog: * ast/rust-ast-pointer-visitor.cc (PointerVisitor::visit): Handle the expression contained in an ErrorPropagationExpr. * ast/rust-ast-visitor.cc (DefaultASTVisitor::visit): Likewise. Signed-off-by: Owen Avery <[email protected]>
1 parent 5b5945a commit 3e2028c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

gcc/rust/ast/rust-ast-pointer-visitor.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ void
220220
PointerVisitor::visit (AST::ErrorPropagationExpr &expr)
221221
{
222222
visit_outer_attrs (expr);
223+
reseat (expr.get_propagating_expr_ptr ());
223224
}
224225

225226
void

gcc/rust/ast/rust-ast-visitor.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ void
248248
DefaultASTVisitor::visit (AST::ErrorPropagationExpr &expr)
249249
{
250250
visit_outer_attrs (expr);
251+
visit (expr.get_propagating_expr ());
251252
}
252253

253254
void

0 commit comments

Comments
 (0)