mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Reuse empty GenericParams
This saves back 15mb that went for typeref source maps.
This commit is contained in:
parent
1fae57fa55
commit
39747cb518
2 changed files with 19 additions and 6 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue