diff options
Diffstat (limited to 'gcc/rust/parse/rust-parse-impl.h')
-rw-r--r-- | gcc/rust/parse/rust-parse-impl.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/gcc/rust/parse/rust-parse-impl.h b/gcc/rust/parse/rust-parse-impl.h index c48c71f..e636252 100644 --- a/gcc/rust/parse/rust-parse-impl.h +++ b/gcc/rust/parse/rust-parse-impl.h @@ -8219,8 +8219,8 @@ Parser<ManagedTokenSource>::parse_if_let_expr (AST::AttrVec outer_attrs, return nullptr; } - return std::unique_ptr<AST::IfLetExprConseqIfLet> ( - new AST::IfLetExprConseqIfLet ( + return std::unique_ptr<AST::IfLetExprConseqElse> ( + new AST::IfLetExprConseqElse ( std::move (match_arm_patterns), std::move (scrutinee_expr), std::move (if_let_body), std::move (if_let_expr), std::move (outer_attrs), locus)); @@ -8240,12 +8240,11 @@ Parser<ManagedTokenSource>::parse_if_let_expr (AST::AttrVec outer_attrs, return nullptr; } - return std::unique_ptr<AST::IfLetExprConseqIf> ( - new AST::IfLetExprConseqIf (std::move (match_arm_patterns), - std::move (scrutinee_expr), - std::move (if_let_body), - std::move (if_expr), - std::move (outer_attrs), locus)); + return std::unique_ptr<AST::IfLetExprConseqElse> ( + new AST::IfLetExprConseqElse ( + std::move (match_arm_patterns), std::move (scrutinee_expr), + std::move (if_let_body), std::move (if_expr), + std::move (outer_attrs), locus)); } } default: |