]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_mir/borrow_check/nll/type_check/mod.rs
Check for uninhabitedness instead of never
[rust.git] / src / librustc_mir / borrow_check / nll / type_check / mod.rs
index 4807abe2bdd19c08dbedbb476ad9b884c2e3311c..39019b35beb184517e8bacddcfa6990746587853 100644 (file)
@@ -1546,8 +1546,7 @@ fn check_call_dest(
                 }
             }
             None => {
-                // FIXME(canndrew): This is_never should probably be an is_uninhabited
-                if !sig.output().is_never() {
+                if !sig.output().conservative_is_uninhabited() {
                     span_mirbug!(self, term, "call to converging function {:?} w/o dest", sig);
                 }
             }