4

fix: deduplicate fields and types in completion by lowr · Pull Request #15026 ·...

 1 year ago
source link: https://github.com/rust-lang/rust-analyzer/pull/15026
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Contributor

@lowr lowr

commented

Jun 11, 2023

edited

Fixes #15024

  • hir_ty::autoderef() (which is only meant to be used outside hir-ty) now deduplicates types and completely resolves inference variables within.
  • field completion now deduplicates fields of the same name and only picks such field of the first type in the deref chain.

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK