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 441d781 commit e7f5681Copy full SHA for e7f5681
gcc/rust/ast/rust-ast.h
@@ -1318,6 +1318,7 @@ class Expr : public Visitable
1318
TypeCast,
1319
Assignment,
1320
CompoundAssignment,
1321
+ Try,
1322
};
1323
1324
virtual Kind get_expr_kind () const = 0;
gcc/rust/ast/rust-expr.h
@@ -3792,7 +3792,7 @@ class TryExpr : public ExprWithBlock
3792
outer_attrs = std::move (new_attrs);
3793
}
3794
3795
- Expr::Kind get_expr_kind () const override { return Expr::Kind::Return; }
+ Expr::Kind get_expr_kind () const override { return Expr::Kind::Try; }
3796
3797
protected:
3798
/* Use covariance to implement clone function as returning this object rather
0 commit comments