mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
Address comments: fix docs, add completion test for Self
.
This commit is contained in:
parent
6bad638928
commit
b043358be9
4 changed files with 32 additions and 5 deletions
|
@ -465,7 +465,7 @@ impl Enum {
|
|||
// ...and add generic params, if present
|
||||
let p = self.generic_params(db);
|
||||
let r = if !p.params.is_empty() { r.push_generic_params_scope(p) } else { r };
|
||||
r.push_scope(Scope::AdtScope(From::from(self)))
|
||||
r.push_scope(Scope::AdtScope(self.into()))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue