diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-11-25 12:57:53 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-11-25 12:57:53 +0000 |
commit | 1a9717b07241eb8f7610f1ff600b55cf5eaaf75f (patch) | |
tree | 6dd5653f77a3eabb015c5a9172e32e83eb0e6039 /crates/ra_ide_api/src/completion | |
parent | c46cea2ad8239315d51952bfb1dad65c200dae7c (diff) | |
parent | 5f39c5794ec2521e9bb4c108771a1644269859ab (diff) |
Merge #2400
2400: Use GenericDefIdMore r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_ide_api/src/completion')
-rw-r--r-- | crates/ra_ide_api/src/completion/presentation.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/completion/presentation.rs b/crates/ra_ide_api/src/completion/presentation.rs index bac3f7582..85b053a6e 100644 --- a/crates/ra_ide_api/src/completion/presentation.rs +++ b/crates/ra_ide_api/src/completion/presentation.rs | |||
@@ -292,7 +292,7 @@ fn is_deprecated(node: impl HasAttrs, db: &impl HirDatabase) -> bool { | |||
292 | } | 292 | } |
293 | 293 | ||
294 | fn has_non_default_type_params(def: hir::GenericDef, db: &db::RootDatabase) -> bool { | 294 | fn has_non_default_type_params(def: hir::GenericDef, db: &db::RootDatabase) -> bool { |
295 | let subst = db.generic_defaults(def); | 295 | let subst = db.generic_defaults(def.into()); |
296 | subst.iter().any(|ty| ty == &Ty::Unknown) | 296 | subst.iter().any(|ty| ty == &Ty::Unknown) |
297 | } | 297 | } |
298 | 298 | ||