rust/compiler/rustc_hir
Dylan DPC 5d90e89c36
Rollup merge of #81769 - estebank:tail-expr-as-potential-return, r=lcnr
Suggest `return`ing tail expressions that match return type

Some newcomers are confused by the behavior of tail expressions,
interpreting that "leaving out the `;` makes it the return value".
To help them go in the right direction, suggest using `return` instead
when applicable.
2021-02-23 02:51:46 +01:00
..
src Rollup merge of #81769 - estebank:tail-expr-as-potential-return, r=lcnr 2021-02-23 02:51:46 +01:00
Cargo.toml bumped smallvec deps 2021-02-14 18:03:11 +03:00