rust/compiler/rustc_parse
Nicholas Nethercote 2ef0479568 Simplify attribute handling in parse_bottom_expr.
`Parser::parse_bottom_expr` currently constructs an empty `attrs` and
then passes it to a large number of other functions. This makes the code
harder to read than it should be, because it's not clear that many
`attrs` arguments are always empty.

This commit removes `attrs` and the passing, simplifying a lot of
functions. The commit also renames `Parser::mk_expr` (which takes an
`attrs` argument) as `mk_expr_with_attrs`, and introduces a new
`mk_expr` which creates an expression with no attributes, which is the
more common case.
2022-08-15 13:29:28 +10:00
..
src Simplify attribute handling in parse_bottom_expr. 2022-08-15 13:29:28 +10:00
Cargo.toml migrate ambiguous plus diagnostic 2022-04-25 22:55:15 +02:00