mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Rename static_method_target -> assoc_fn_target
This commit is contained in:
parent
39d17efde7
commit
d39677c1eb
1 changed files with 3 additions and 3 deletions
|
@ -78,11 +78,11 @@ fn gen_fn(acc: &mut Assists, ctx: &AssistContext<'_>) -> Option<()> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static_method_target(ctx, &call, adt, &mut target_module, fn_name, &mut adt_name)?
|
assoc_fn_target(ctx, &call, adt, &mut target_module, fn_name, &mut adt_name)?
|
||||||
}
|
}
|
||||||
Some(hir::PathResolution::SelfType(impl_)) => {
|
Some(hir::PathResolution::SelfType(impl_)) => {
|
||||||
let adt = impl_.self_ty(ctx.db()).as_adt()?;
|
let adt = impl_.self_ty(ctx.db()).as_adt()?;
|
||||||
static_method_target(ctx, &call, adt, &mut target_module, fn_name, &mut adt_name)?
|
assoc_fn_target(ctx, &call, adt, &mut target_module, fn_name, &mut adt_name)?
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
return None;
|
return None;
|
||||||
|
@ -394,7 +394,7 @@ fn get_method_target(
|
||||||
Some((target.clone(), get_insert_offset(&target)))
|
Some((target.clone(), get_insert_offset(&target)))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn static_method_target(
|
fn assoc_fn_target(
|
||||||
ctx: &AssistContext<'_>,
|
ctx: &AssistContext<'_>,
|
||||||
call: &CallExpr,
|
call: &CallExpr,
|
||||||
adt: hir::Adt,
|
adt: hir::Adt,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue