Reuse empty GenericParams

This saves back 15mb that went for typeref source maps.
This commit is contained in:
Chayim Refael Friedman 2024-10-18 16:38:20 +03:00
parent 1fae57fa55
commit 39747cb518
2 changed files with 19 additions and 6 deletions

View file

@ -895,7 +895,7 @@ impl<'a> Ctx<'a> {
generics.fill(&body_ctx, node, add_param_attrs);
let generics = generics.finish(types_map, &mut types_source_map);
(Arc::new(generics), types_source_map)
(generics, types_source_map)
}
fn lower_type_bounds(