aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_ty/src/tests/never_type.rs
Commit message (Collapse)AuthorAgeFilesLines
* Handle break somewhat betterFlorian Diebold2020-05-081-1/+71
| | | | | Still no break-with-value or labels, but at least we know that `loop { break; }` doesn't diverge.
* Implement better handling of divergenceFlorian Diebold2020-05-081-1/+106
| | | | | | | | Divergence here means that for some reason, the end of a block will not be reached. We tried to model this just using the never type, but that doesn't work fully (e.g. in `let x = { loop {}; "foo" };` x should still have type `&str`); so this introduces a `diverges` flag that the type checker keeps track of, like rustc does.
* Don't let unknown match arms fall back to !Florian Diebold2020-02-111-0/+17
|
* Move TyAleksey Kladov2019-11-271-0/+246