]> git.lizzy.rs Git - rust.git/commit
typeck: use NoExpectation to check return type of diverging fn
authorAlex Burka <durka42@gmail.com>
Sun, 21 Aug 2016 22:45:25 +0000 (22:45 +0000)
committerAlex Burka <durka42@gmail.com>
Tue, 23 Aug 2016 16:58:49 +0000 (16:58 +0000)
commit702ea7169cc20f3e572576e68339edc0b8fc5939
tree083d15b4b9930ba795403c0de5970421442e9f12
parent490189634b656dcca9e41e6b52093569c03bd4df
typeck: use NoExpectation to check return type of diverging fn

This fixes #35849, a regression introduced by the typeck refactoring
around TyNever/!.
src/librustc/middle/liveness.rs
src/librustc_typeck/check/mod.rs
src/test/compile-fail/diverging-fn-tail-35849.rs [new file with mode: 0644]
src/test/run-fail/call-fn-never-arg.rs
src/test/run-pass/diverging-fn-tail-35849.rs [new file with mode: 0644]