about summary refs log tree commit diff
path: root/compiler/rustc_borrowck
diff options
context:
space:
mode:
authorCameron Steffen <cam.steffen94@gmail.com>2022-10-23 17:32:40 -0500
committerCameron Steffen <cam.steffen94@gmail.com>2022-11-20 19:04:11 -0600
commitcc8dddbac9e04f125c7e81dbe9fb6a01990e8b25 (patch)
treed3e9773b74566031a5d1baff33bba3e8906e38be /compiler/rustc_borrowck
parent34cbe727806429a8a034f492cff1b588e70c33dc (diff)
downloadrust-cc8dddbac9e04f125c7e81dbe9fb6a01990e8b25.tar.gz
rust-cc8dddbac9e04f125c7e81dbe9fb6a01990e8b25.zip
Factor out conservative_is_privately_uninhabited
Diffstat (limited to 'compiler/rustc_borrowck')
-rw-r--r--compiler/rustc_borrowck/src/type_check/mod.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/rustc_borrowck/src/type_check/mod.rs b/compiler/rustc_borrowck/src/type_check/mod.rs
index 7d36a63943c..9b6c7d27c79 100644
--- a/compiler/rustc_borrowck/src/type_check/mod.rs
+++ b/compiler/rustc_borrowck/src/type_check/mod.rs
@@ -1564,10 +1564,7 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
                 }
             }
             None => {
-                if !self
-                    .tcx()
-                    .conservative_is_privately_uninhabited(self.param_env.and(sig.output()))
-                {
+                if !sig.output().is_privately_uninhabited(self.tcx(), self.param_env) {
                     span_mirbug!(self, term, "call to converging function {:?} w/o dest", sig);
                 }
             }