This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit 7b56336
authored
Unrolled build for rust-lang#141059
Rollup merge of rust-lang#141059 - samueltardieu:push-trvpulpskwwp, r=compiler-errors
HIR: explain in comment why `ExprKind::If` "then" is an `Expr`
One could be tempted to replace the "then" `hir::Expr` with kind `hir::ExprKind::Block` by a `hir::Block`. Explain why this would not be a good idea.
I've been there.
r? ``@compiler-errors``1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2744 | 2744 | | |
2745 | 2745 | | |
2746 | 2746 | | |
| 2747 | + | |
| 2748 | + | |
2747 | 2749 | | |
2748 | 2750 | | |
2749 | 2751 | | |
| |||
0 commit comments