mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
fix: handle aliased pattern and simplify testcase
This commit is contained in:
parent
cf5f1e8620
commit
962d340460
2 changed files with 32 additions and 23 deletions
|
@ -294,7 +294,7 @@ pub(crate) fn render_resolution_with_import_pat(
|
|||
import_edit: LocatedImport,
|
||||
) -> Option<Builder> {
|
||||
let resolution = ScopeDef::from(import_edit.original_item);
|
||||
let local_name = scope_def_to_name(resolution, &ctx, &import_edit)?;
|
||||
let local_name = get_import_name(resolution, &ctx, &import_edit)?;
|
||||
Some(render_resolution_pat(ctx, pattern_ctx, local_name, Some(import_edit), resolution))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue