mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-03 13:23:25 +00:00
Use GenericArgList for make::impl{_trait}
`make::impl_` no longer merges generic params and args in order to be in line with `make::impl_`, which doesn't do it either.
This commit is contained in:
parent
13707845f7
commit
8c0661b2de
2 changed files with 11 additions and 19 deletions
|
|
@ -161,13 +161,13 @@ pub(crate) fn generate_delegate_methods(acc: &mut Assists, ctx: &AssistContext<'
|
|||
Some(impl_def) => edit.make_mut(impl_def),
|
||||
None => {
|
||||
let name = &strukt_name.to_string();
|
||||
let params = strukt.generic_param_list();
|
||||
let ty_params = params;
|
||||
let ty_params = strukt.generic_param_list();
|
||||
let ty_args = ty_params.as_ref().map(|it| it.to_generic_args());
|
||||
let where_clause = strukt.where_clause();
|
||||
|
||||
let impl_def = make::impl_(
|
||||
ty_params,
|
||||
None,
|
||||
ty_args,
|
||||
make::ty_path(make::ext::ident_path(name)),
|
||||
where_clause,
|
||||
None,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue