about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src/errors.rs
diff options
context:
space:
mode:
authordianne <diannes.gm@gmail.com>2025-06-29 21:24:25 -0700
committerdianne <diannes.gm@gmail.com>2025-06-29 21:25:53 -0700
commit390d1be1c7eb500672f9c982e7de13ed27506aea (patch)
tree4d38631cdace8d252671f08cb165199aaadead8c /compiler/rustc_pattern_analysis/src/errors.rs
parent56283410f26472ec72a6673a1cbb2d8c4efdff15 (diff)
downloadrust-390d1be1c7eb500672f9c982e7de13ed27506aea.tar.gz
rust-390d1be1c7eb500672f9c982e7de13ed27506aea.zip
update AST-to-HIR lowering examples for conditionals and loops
- `for` loops now use two `match`es for all of their bindings. I'm not
sure this is the most helpful way of conveying that, but it's about as
informative as before while staying brief.

- `while let` and `if let` don't use `match`; they use `let` expressions
in their conditions. Since `if let` no longer has significantly
different desugaring and having a whole bullet point for `while` would
feel redundant with `for`, I've removed those examples.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/errors.rs')
0 files changed, 0 insertions, 0 deletions