Remove unnecessary Names from FunctionData::params

This commit is contained in:
Lukas Wirth 2023-04-06 20:14:51 +02:00
parent 3f5c9920d6
commit a1b96b1e00
6 changed files with 13 additions and 12 deletions

View file

@ -176,7 +176,7 @@ impl GenericParams {
// Don't create an `Expander` nor call `loc.source(db)` if not needed since this
// causes a reparse after the `ItemTree` has been created.
let mut expander = Lazy::new(|| Expander::new(db, loc.source(db).file_id, module));
for (_, param) in &func_data.params {
for param in &func_data.params {
generic_params.fill_implicit_impl_trait_args(db, &mut expander, param);
}