diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-06-18 20:00:45 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-06-19 18:53:25 +1000 |
| commit | 1c28229ada005ed899f8ce71315baaa5420e1ed6 (patch) | |
| tree | 81fc5718d3fc84f9f1c4b0ba8af50fe0182ea30a /compiler/rustc_parse/src/errors.rs | |
| parent | 1fbb3eca67032721e6f286e2a6f20da1b5659cc5 (diff) | |
| download | rust-1c28229ada005ed899f8ce71315baaa5420e1ed6.tar.gz rust-1c28229ada005ed899f8ce71315baaa5420e1ed6.zip | |
Simplify `Parser::parse_expr_dot_or_call`.
The call in `parse_expr_prefix` for the `++` case passes an empty `attrs`, but it doesn' need to. This commit changes it to pass the parsed `attrs`, which doesn't change any behaviour. As a result, `parse_expr_dot_or_call` no longer needs an `Option` argument, and no longer needs to call `parse_or_use_outer_attributes`.
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
