]> git.lizzy.rs Git - rust.git/commit
Detect match statement intended to be tail expression
authorEsteban Küber <esteban@kuber.com.ar>
Thu, 28 Jan 2021 02:27:13 +0000 (18:27 -0800)
committerEsteban Küber <esteban@kuber.com.ar>
Thu, 25 Feb 2021 17:16:48 +0000 (09:16 -0800)
commit1d24f07271f7be9f67c7ba7edb7071f58995e294
tree17cf52f03dd11b16df8734862fbfaf6df179a9e9
parenta8486b64b0c87dabd045453b6c81500015d122d6
Detect match statement intended to be tail expression

CC #24157
compiler/rustc_typeck/src/check/_match.rs
compiler/rustc_typeck/src/check/coercion.rs
compiler/rustc_typeck/src/check/expectation.rs
compiler/rustc_typeck/src/check/fn_ctxt/checks.rs
src/test/ui/suggestions/match-with-different-arm-types-as-stmt-instead-of-expr.rs [new file with mode: 0644]
src/test/ui/suggestions/match-with-different-arm-types-as-stmt-instead-of-expr.stderr [new file with mode: 0644]