diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-12-19 18:24:07 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-02-27 09:53:17 +1100 |
| commit | c79a7ed0687c771b5baeb781ea81917d35780533 (patch) | |
| tree | 1133dcfdb2206db719afb912ee97901b6b4f2ad0 /tests/codegen-llvm/src-hash-algorithm/src-hash-algorithm-md5.rs | |
| parent | 8f001eaf62ca469887db7c9b47b6feb94cef597c (diff) | |
| download | rust-c79a7ed0687c771b5baeb781ea81917d35780533.tar.gz rust-c79a7ed0687c771b5baeb781ea81917d35780533.zip | |
Introduce `AssocOp::Binary`.
It mirrors `ExprKind::Binary`, and contains a `BinOpKind`. This makes `AssocOp` more like `ExprKind`. Note that the variants removed from `AssocOp` are all named differently to `BinOpToken`, e.g. `Multiply` instead of `Mul`, so that's an inconsistency removed. The commit adds `precedence` and `fixity` methods to `BinOpKind`, and calls them from the corresponding methods in `AssocOp`. This avoids the need to create an `AssocOp` from a `BinOpKind` in a bunch of places, and `AssocOp::from_ast_binop` is removed. `AssocOp::to_ast_binop` is also no longer needed. Overall things are shorter and nicer.
Diffstat (limited to 'tests/codegen-llvm/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions
