@@ -113,6 +113,10 @@ pub fn for_each_expr_with_closures<'tcx, B, C: Continue>(
113113 f : F ,
114114 res : Option < B > ,
115115 }
116+ // FIXME: more details in #106930
117+ impl < ' tcx , B , F > !Send for V < ' tcx , B , F > { }
118+ impl < ' tcx , B , F > !Sync for V < ' tcx , B , F > { }
119+
116120 impl < ' tcx , B , C : Continue , F : FnMut ( & ' tcx Expr < ' tcx > ) -> ControlFlow < B , C > > Visitor < ' tcx > for V < ' tcx , B , F > {
117121 type NestedFilter = nested_filter:: OnlyBodies ;
118122 fn nested_visit_map ( & mut self ) -> Self :: Map {
@@ -513,6 +517,10 @@ pub fn for_each_local_use_after_expr<'tcx, B>(
513517 res : ControlFlow < B > ,
514518 f : F ,
515519 }
520+ // FIXME: more details in #106930
521+ impl < ' cx , ' tcx , B , F > !Send for V < ' cx , ' tcx , B , F > { }
522+ impl < ' cx , ' tcx , B , F > !Sync for V < ' cx , ' tcx , B , F > { }
523+
516524 impl < ' cx , ' tcx , F : FnMut ( & ' tcx Expr < ' tcx > ) -> ControlFlow < B > , B > Visitor < ' tcx > for V < ' cx , ' tcx , F , B > {
517525 type NestedFilter = nested_filter:: OnlyBodies ;
518526 fn nested_visit_map ( & mut self ) -> Self :: Map {
@@ -694,6 +702,10 @@ pub fn for_each_local_assignment<'tcx, B>(
694702 res : ControlFlow < B > ,
695703 f : F ,
696704 }
705+ // FIXME: more details in #106930
706+ impl < ' cx , ' tcx , F , B > !Send for V < ' cx , ' tcx , F , B > { }
707+ impl < ' cx , ' tcx , F , B > !Sync for V < ' cx , ' tcx , F , B > { }
708+
697709 impl < ' cx , ' tcx , F : FnMut ( & ' tcx Expr < ' tcx > ) -> ControlFlow < B > , B > Visitor < ' tcx > for V < ' cx , ' tcx , F , B > {
698710 type NestedFilter = nested_filter:: OnlyBodies ;
699711 fn nested_visit_map ( & mut self ) -> Self :: Map {
0 commit comments