@@ -9,6 +9,8 @@ use crate::{
99 system:: { BoxedSystem , IntoSystem , System } ,
1010} ;
1111
12+ use super :: { BaseSystemSet , FreeSystemSet } ;
13+
1214/// A [`SystemSet`] with scheduling metadata.
1315pub struct SystemSetConfig {
1416 pub ( super ) set : BoxedSystemSet ,
@@ -86,10 +88,10 @@ pub trait IntoSystemSetConfig {
8688 fn into_config ( self ) -> SystemSetConfig ;
8789 /// Add to the provided `set`.
8890 #[ track_caller]
89- fn in_set ( self , set : impl SystemSet ) -> SystemSetConfig ;
91+ fn in_set ( self , set : impl FreeSystemSet ) -> SystemSetConfig ;
9092 /// Add to the provided "base" `set`. For more information on base sets, see [`SystemSet::is_base`].
9193 #[ track_caller]
92- fn in_base_set ( self , set : impl SystemSet ) -> SystemSetConfig ;
94+ fn in_base_set ( self , set : impl BaseSystemSet ) -> SystemSetConfig ;
9395 /// Add this set to the schedules's default base set.
9496 fn in_default_base_set ( self ) -> SystemSetConfig ;
9597 /// Run before all systems in `set`.
@@ -115,12 +117,12 @@ impl<S: SystemSet> IntoSystemSetConfig for S {
115117 }
116118
117119 #[ track_caller]
118- fn in_set ( self , set : impl SystemSet ) -> SystemSetConfig {
120+ fn in_set ( self , set : impl FreeSystemSet ) -> SystemSetConfig {
119121 self . into_config ( ) . in_set ( set)
120122 }
121123
122124 #[ track_caller]
123- fn in_base_set ( self , set : impl SystemSet ) -> SystemSetConfig {
125+ fn in_base_set ( self , set : impl BaseSystemSet ) -> SystemSetConfig {
124126 self . into_config ( ) . in_base_set ( set)
125127 }
126128
@@ -155,12 +157,12 @@ impl IntoSystemSetConfig for BoxedSystemSet {
155157 }
156158
157159 #[ track_caller]
158- fn in_set ( self , set : impl SystemSet ) -> SystemSetConfig {
160+ fn in_set ( self , set : impl FreeSystemSet ) -> SystemSetConfig {
159161 self . into_config ( ) . in_set ( set)
160162 }
161163
162164 #[ track_caller]
163- fn in_base_set ( self , set : impl SystemSet ) -> SystemSetConfig {
165+ fn in_base_set ( self , set : impl BaseSystemSet ) -> SystemSetConfig {
164166 self . into_config ( ) . in_base_set ( set)
165167 }
166168
@@ -277,10 +279,10 @@ pub trait IntoSystemConfig<Marker, Config = SystemConfig> {
277279 fn into_config ( self ) -> Config ;
278280 /// Add to `set` membership.
279281 #[ track_caller]
280- fn in_set ( self , set : impl SystemSet ) -> Config ;
282+ fn in_set ( self , set : impl FreeSystemSet ) -> Config ;
281283 /// Add to the provided "base" `set`. For more information on base sets, see [`SystemSet::is_base`].
282284 #[ track_caller]
283- fn in_base_set ( self , set : impl SystemSet ) -> Config ;
285+ fn in_base_set ( self , set : impl BaseSystemSet ) -> Config ;
284286 /// Don't add this system to the schedules's default set.
285287 fn no_default_base_set ( self ) -> Config ;
286288 /// Run before all systems in `set`.
@@ -309,12 +311,12 @@ where
309311 }
310312
311313 #[ track_caller]
312- fn in_set ( self , set : impl SystemSet ) -> SystemConfig {
314+ fn in_set ( self , set : impl FreeSystemSet ) -> SystemConfig {
313315 self . into_config ( ) . in_set ( set)
314316 }
315317
316318 #[ track_caller]
317- fn in_base_set ( self , set : impl SystemSet ) -> SystemConfig {
319+ fn in_base_set ( self , set : impl BaseSystemSet ) -> SystemConfig {
318320 self . into_config ( ) . in_base_set ( set)
319321 }
320322
@@ -349,12 +351,12 @@ impl IntoSystemConfig<()> for BoxedSystem<(), ()> {
349351 }
350352
351353 #[ track_caller]
352- fn in_set ( self , set : impl SystemSet ) -> SystemConfig {
354+ fn in_set ( self , set : impl FreeSystemSet ) -> SystemConfig {
353355 self . into_config ( ) . in_set ( set)
354356 }
355357
356358 #[ track_caller]
357- fn in_base_set ( self , set : impl SystemSet ) -> SystemConfig {
359+ fn in_base_set ( self , set : impl BaseSystemSet ) -> SystemConfig {
358360 self . into_config ( ) . in_base_set ( set)
359361 }
360362
@@ -471,13 +473,13 @@ where
471473
472474 /// Add these systems to the provided `set`.
473475 #[ track_caller]
474- fn in_set ( self , set : impl SystemSet ) -> SystemConfigs {
476+ fn in_set ( self , set : impl FreeSystemSet ) -> SystemConfigs {
475477 self . into_configs ( ) . in_set ( set)
476478 }
477479
478480 /// Add these systems to the provided "base" `set`. For more information on base sets, see [`SystemSet::is_base`].
479481 #[ track_caller]
480- fn in_base_set ( self , set : impl SystemSet ) -> SystemConfigs {
482+ fn in_base_set ( self , set : impl BaseSystemSet ) -> SystemConfigs {
481483 self . into_configs ( ) . in_base_set ( set)
482484 }
483485
@@ -657,13 +659,13 @@ where
657659
658660 /// Add these system sets to the provided `set`.
659661 #[ track_caller]
660- fn in_set ( self , set : impl SystemSet ) -> SystemSetConfigs {
662+ fn in_set ( self , set : impl FreeSystemSet ) -> SystemSetConfigs {
661663 self . into_configs ( ) . in_set ( set)
662664 }
663665
664666 /// Add these system sets to the provided "base" `set`. For more information on base sets, see [`SystemSet::is_base`].
665667 #[ track_caller]
666- fn in_base_set ( self , set : impl SystemSet ) -> SystemSetConfigs {
668+ fn in_base_set ( self , set : impl BaseSystemSet ) -> SystemSetConfigs {
667669 self . into_configs ( ) . in_base_set ( set)
668670 }
669671
0 commit comments