Suppress unnecessary outlives
This commit is contained in:
parent
9295817bad
commit
1c35634efe
4 changed files with 11 additions and 22 deletions
|
@ -942,6 +942,10 @@ impl<'cx, 'tcx> LexicalResolver<'cx, 'tcx> {
|
|||
generic_ty: Ty<'tcx>,
|
||||
min: ty::Region<'tcx>,
|
||||
) -> bool {
|
||||
if let ty::ReError(_) = *min {
|
||||
return true;
|
||||
}
|
||||
|
||||
match bound {
|
||||
VerifyBound::IfEq(verify_if_eq_b) => {
|
||||
let verify_if_eq_b = var_values.normalize(self.region_rels.tcx, *verify_if_eq_b);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue