Address comments: fix docs, add completion test for Self.

This commit is contained in:
ice1000 2019-10-08 07:25:37 -04:00
parent 6bad638928
commit b043358be9
4 changed files with 32 additions and 5 deletions

View file

@ -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()))
}
}