@@ -190,23 +190,15 @@ macro_rules! decl_engine_clear_module {
190
190
self . parents. write( ) . unwrap( ) . retain( |key, _| {
191
191
match key {
192
192
AssociatedItemDeclId :: TraitFn ( decl_id) => {
193
- // WARNING: Setting to true disables garbage collection for these cases.
194
- // This should be set back to false once this issue is solved: https://github.com/FuelLabs/sway/issues/5698
195
193
self . get_trait_fn( decl_id) . span( ) . source_id( ) . map_or( true , |src_id| & src_id. module_id( ) != module_id)
196
194
} ,
197
195
AssociatedItemDeclId :: Function ( decl_id) => {
198
- // WARNING: Setting to true disables garbage collection for these cases.
199
- // This should be set back to false once this issue is solved: https://github.com/FuelLabs/sway/issues/5698
200
196
self . get_function( decl_id) . span( ) . source_id( ) . map_or( true , |src_id| & src_id. module_id( ) != module_id)
201
197
} ,
202
198
AssociatedItemDeclId :: Type ( decl_id) => {
203
- // WARNING: Setting to true disables garbage collection for these cases.
204
- // This should be set back to false once this issue is solved: https://github.com/FuelLabs/sway/issues/5698
205
199
self . get_type( decl_id) . span( ) . source_id( ) . map_or( true , |src_id| & src_id. module_id( ) != module_id)
206
200
} ,
207
201
AssociatedItemDeclId :: Constant ( decl_id) => {
208
- // WARNING: Setting to true disables garbage collection for these cases.
209
- // This should be set back to false once this issue is solved: https://github.com/FuelLabs/sway/issues/5698
210
202
self . get_constant( decl_id) . span( ) . source_id( ) . map_or( true , |src_id| & src_id. module_id( ) != module_id)
211
203
} ,
212
204
}
@@ -215,8 +207,6 @@ macro_rules! decl_engine_clear_module {
215
207
$(
216
208
self . $slab. retain( |_k, ty| match ty. span( ) . source_id( ) {
217
209
Some ( source_id) => & source_id. module_id( ) != module_id,
218
- // WARNING: Setting to true disables garbage collection for these cases.
219
- // This should be set back to false once this issue is solved: https://github.com/FuelLabs/sway/issues/5698
220
210
None => true ,
221
211
} ) ;
222
212
) *
0 commit comments