rust/compiler/rustc_mir_build
Dylan DPC 38e3f523c0
Rollup merge of #93313 - tmiasko:uninhabited, r=tmandry
Check if call return type is visibly uninhabited when building MIR

The main motivation behind the change is to expose information about diverging
calls to the generator transform and match the precision of drop range tracking
which already understands that call expressions with visibly uninhabited types
diverges.

This change should also accept strictly more programs than before. That is
programs that were previously rejected due to errors raised by control-flow
sensitive checks in a code that is no longer considered reachable.

Fixes #93161.
2022-04-20 18:26:01 +02:00
..
src Rollup merge of #93313 - tmiasko:uninhabited, r=tmandry 2022-04-20 18:26:01 +02:00
Cargo.toml Migrate to 2021 2021-09-20 22:21:42 -04:00