diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-12-19 15:16:24 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-04-03 10:18:56 +1100 |
| commit | 076cccd412ab7c40fcf83750a17c11417d5f65cd (patch) | |
| tree | 56931088f3739e9cac745533b2379a7eef0e7d34 /compiler/rustc_parse/src/parser/expr.rs | |
| parent | 4f0de4c81d80121ac7b576bc68d8016064f4d261 (diff) | |
| download | rust-076cccd412ab7c40fcf83750a17c11417d5f65cd.tar.gz rust-076cccd412ab7c40fcf83750a17c11417d5f65cd.zip | |
Remove `Op` type.
First, move the `lang_item_for_op` call from the top of
`lookup_op_method`'s body to its callsites. It makes those callsites a
little more verbose, but also means `lookup_op_method` no longer cares
whether it's handling a binop or unop. This lets us remove `Op` and
split `lang_item_for_op` into `lang_item_for_{bin,un}op`, which is a
little simpler.
This change is a prerequisite for adding the `ast::AssignOpKind` type in
a subsequent commit.
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
0 files changed, 0 insertions, 0 deletions
