mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-18 01:44:04 +00:00
Rollup merge of #56364 - dlrobertson:fix_55903, r=oli-obk
Fix panic with outlives in existential type Don't panic in determining the privacy of a type if a lifetime outlives generic exists in an existential type. r? @oli-obk Fixes: #55903
This commit is contained in:
commit
42bac05d72
@ -969,7 +969,7 @@ impl<'a, 'tcx> TypeVisitor<'tcx> for TypePrivacyVisitor<'a, 'tcx> {
|
||||
Some(poly_projection_predicate.skip_binder()
|
||||
.projection_ty.trait_ref(self.tcx))
|
||||
}
|
||||
ty::Predicate::TypeOutlives(..) => None,
|
||||
ty::Predicate::TypeOutlives(..) | ty::Predicate::RegionOutlives(..) => None,
|
||||
_ => bug!("unexpected predicate: {:?}", predicate),
|
||||
};
|
||||
if let Some(trait_ref) = trait_ref {
|
||||
|
Loading…
Reference in New Issue
Block a user