Factor out conservative_is_privately_uninhabited
This commit is contained in:
parent
34cbe72780
commit
cc8dddbac9
11 changed files with 25 additions and 81 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue