Files
rust/compiler/rustc_parse
Jacob Pratt 3c50d990c9 Rollup merge of #160303 - petrochenkov:ambattr3, r=chenyukang
rustc_parse: A few cleanups to expression parsing next to attributes

- The `_with` suffix is removed from `parse_expr_assoc_with` and `parse_expr_assoc_rest_with`. There's no version with `with`, the precedence is always specified.
- `parse_expr_res` and `parse_expr_assoc` are split into two versions taking pre-parsed attributes and not taking pre-parsed attributes. The latter versions are more common and can have simpler return type.
- "Dead" `parse_outer_attributes` is removed from `parse_expr_prefix_range`, it can never parse anything because the current token is a range separator.
- `bump` is moved out of `parse_expr_prefix_common`, it allows reusing `parse_expr_prefix_common` in one more place.
- A test covering some previously uncovered attribute parsing cases is added.
2026-08-08 03:10:08 -04:00
..
2026-07-27 10:33:18 +02:00