mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
7297: Propose trait associated items and autoimport traits on completion r=matklad a=SomeoneToIgnore  Closes #7248 7338: Parse `impl const Trait` r=Veykril a=Veykril Closes #7313 bors r+ Co-authored-by: Kirill Bulatov <mail4score@gmail.com> Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
This commit is contained in:
commit
342bf41022
22 changed files with 885 additions and 288 deletions
|
@ -478,6 +478,7 @@ impl Analysis {
|
|||
position: FilePosition,
|
||||
full_import_path: &str,
|
||||
imported_name: String,
|
||||
import_for_trait_assoc_item: bool,
|
||||
) -> Cancelable<Vec<TextEdit>> {
|
||||
Ok(self
|
||||
.with_db(|db| {
|
||||
|
@ -487,6 +488,7 @@ impl Analysis {
|
|||
position,
|
||||
full_import_path,
|
||||
imported_name,
|
||||
import_for_trait_assoc_item,
|
||||
)
|
||||
})?
|
||||
.unwrap_or_default())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue