rust/compiler/rustc_typeck
Dylan DPC 38d8167d2e
Rollup merge of #97371 - ChayimFriedman2:closure-non-block-add-semicolon, r=oli-obk
Suggest adding a semicolon to a closure without block

This transforms `|| expr` into `|| { expr; }`.

Closes #97359.
2022-05-31 07:57:34 +02:00
..

For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.