diff options
author | Lukas Wirth <[email protected]> | 2021-05-08 22:30:19 +0100 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2021-05-08 22:35:18 +0100 |
commit | 3a346412cf8ce2f04e123195452bf1b1c86211a7 (patch) | |
tree | 4e7fffadda89c9eb111d0ec313ee9f138c448ab0 /crates/ide_db/src | |
parent | 04717b9bd2decfee70a6fbde90540d3dc16bb76f (diff) |
Don't handle Self as a usage for TraitDefs
Diffstat (limited to 'crates/ide_db/src')
-rw-r--r-- | crates/ide_db/src/search.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/crates/ide_db/src/search.rs b/crates/ide_db/src/search.rs index d8abef491..67840602b 100644 --- a/crates/ide_db/src/search.rs +++ b/crates/ide_db/src/search.rs | |||
@@ -548,7 +548,6 @@ fn def_to_ty(sema: &Semantics<RootDatabase>, def: &Definition) -> Option<hir::Ty | |||
548 | let module = sema.to_module_def(root_file)?; | 548 | let module = sema.to_module_def(root_file)?; |
549 | Some(it.ty(sema.db, module)) | 549 | Some(it.ty(sema.db, module)) |
550 | } | 550 | } |
551 | ModuleDef::Trait(_it) => None, // FIXME turn trait into its self-type | ||
552 | _ => None, | 551 | _ => None, |
553 | }, | 552 | }, |
554 | Definition::SelfType(it) => Some(it.self_ty(sema.db)), | 553 | Definition::SelfType(it) => Some(it.self_ty(sema.db)), |