Skip to content

Commit a601990

Browse files
committed
IfLetExpr: Assign outer_attrs in constructor
1 parent de9af78 commit a601990

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gcc/rust/ast/rust-expr.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4374,11 +4374,11 @@ class IfLetExpr : public ExprWithBlock
43744374

43754375
IfLetExpr (std::vector<std::unique_ptr<Pattern> > match_arm_patterns,
43764376
std::unique_ptr<Expr> value, std::unique_ptr<BlockExpr> if_block,
4377-
std::vector<Attribute> /* outer_attrs */, Location locus)
4378-
: match_arm_patterns (std::move (match_arm_patterns)),
4377+
std::vector<Attribute> outer_attrs, Location locus)
4378+
: outer_attrs (std::move (outer_attrs)),
4379+
match_arm_patterns (std::move (match_arm_patterns)),
43794380
value (std::move (value)), if_block (std::move (if_block)), locus (locus)
43804381
{}
4381-
// outer attributes not allowed on if let exprs either
43824382

43834383
// copy constructor with clone
43844384
IfLetExpr (IfLetExpr const &other)

0 commit comments

Comments
 (0)