@@ -36,11 +36,17 @@ impl<'cx, 'tcx> VerifyBoundCx<'cx, 'tcx> {
3636 let mut visited = FxHashSet :: default ( ) ;
3737 match generic {
3838 GenericKind :: Param ( param_ty) => self . param_bound ( param_ty) ,
39- GenericKind :: Projection ( projection_ty) => self . projection_bound ( projection_ty, & mut visited) ,
39+ GenericKind :: Projection ( projection_ty) => {
40+ self . projection_bound ( projection_ty, & mut visited)
41+ }
4042 }
4143 }
4244
43- fn type_bound ( & self , ty : Ty < ' tcx > , visited : & mut FxHashSet < GenericArg < ' tcx > > ) -> VerifyBound < ' tcx > {
45+ fn type_bound (
46+ & self ,
47+ ty : Ty < ' tcx > ,
48+ visited : & mut FxHashSet < GenericArg < ' tcx > > ,
49+ ) -> VerifyBound < ' tcx > {
4450 match ty. kind {
4551 ty:: Param ( p) => self . param_bound ( p) ,
4652 ty:: Projection ( data) => self . projection_bound ( data, visited) ,
@@ -140,7 +146,11 @@ impl<'cx, 'tcx> VerifyBoundCx<'cx, 'tcx> {
140146 self . declared_projection_bounds_from_trait ( projection_ty)
141147 }
142148
143- pub fn projection_bound ( & self , projection_ty : ty:: ProjectionTy < ' tcx > , visited : & mut FxHashSet < GenericArg < ' tcx > > ) -> VerifyBound < ' tcx > {
149+ pub fn projection_bound (
150+ & self ,
151+ projection_ty : ty:: ProjectionTy < ' tcx > ,
152+ visited : & mut FxHashSet < GenericArg < ' tcx > > ,
153+ ) -> VerifyBound < ' tcx > {
144154 debug ! ( "projection_bound(projection_ty={:?})" , projection_ty) ;
145155
146156 let projection_ty_as_ty =
@@ -174,7 +184,11 @@ impl<'cx, 'tcx> VerifyBoundCx<'cx, 'tcx> {
174184 VerifyBound :: AnyBound ( env_bounds. chain ( trait_bounds) . collect ( ) ) . or ( recursive_bound)
175185 }
176186
177- fn recursive_bound ( & self , parent : GenericArg < ' tcx > , visited : & mut FxHashSet < GenericArg < ' tcx > > ) -> VerifyBound < ' tcx > {
187+ fn recursive_bound (
188+ & self ,
189+ parent : GenericArg < ' tcx > ,
190+ visited : & mut FxHashSet < GenericArg < ' tcx > > ,
191+ ) -> VerifyBound < ' tcx > {
178192 let mut bounds = parent
179193 . walk_shallow ( visited)
180194 . filter_map ( |child| match child. unpack ( ) {
0 commit comments