diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-12-19 17:22:40 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-12-19 17:22:40 +0000 |
commit | 0000c7753ead95d71cb95ccc4929d4845f218ab2 (patch) | |
tree | b25ab818073492ff8c80176043b68ffe7a40ab3c /crates/ra_hir_ty/src/utils.rs | |
parent | 90f3b31efc1afe5de671fd6076fef3240f4151ab (diff) | |
parent | 9ccad60acca0d359f1fd9046c99952d0c1adc763 (diff) |
Merge #2600
2600: Plumbing for local items support r=matklad a=matklad
bors r+
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_hir_ty/src/utils.rs')
-rw-r--r-- | crates/ra_hir_ty/src/utils.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir_ty/src/utils.rs b/crates/ra_hir_ty/src/utils.rs index 29799a8cb..34defc1a2 100644 --- a/crates/ra_hir_ty/src/utils.rs +++ b/crates/ra_hir_ty/src/utils.rs | |||
@@ -157,6 +157,6 @@ fn parent_generic_def(db: &impl DefDatabase, def: GenericDefId) -> Option<Generi | |||
157 | match container { | 157 | match container { |
158 | ContainerId::ImplId(it) => Some(it.into()), | 158 | ContainerId::ImplId(it) => Some(it.into()), |
159 | ContainerId::TraitId(it) => Some(it.into()), | 159 | ContainerId::TraitId(it) => Some(it.into()), |
160 | ContainerId::ModuleId(_) => None, | 160 | ContainerId::ModuleId(_) | ContainerId::DefWithBodyId(_) => None, |
161 | } | 161 | } |
162 | } | 162 | } |