Skip to content

Commit d6b6ba2

Browse files
committed
Check for LEFT_PAREN is now redundant
gcc/rust/ChangeLog: * parse/rust-parse-impl.h: (parse_bare_function_type) remove redundancy Signed-off-by: Lúcio Boari Fleury <[email protected]>
1 parent 8376309 commit d6b6ba2

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

gcc/rust/parse/rust-parse-impl.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9653,9 +9653,6 @@ Parser<ManagedTokenSource>::parse_bare_function_type (
96539653
return nullptr;
96549654
}
96559655

9656-
if (!skip_token (LEFT_PAREN))
9657-
return nullptr;
9658-
96599656
// parse function params, if they exist
96609657
std::vector<AST::MaybeNamedParam> params;
96619658
bool is_variadic = false;

0 commit comments

Comments
 (0)