diff options
Diffstat (limited to 'crates/ra_hir/src/code_model_impl')
-rw-r--r-- | crates/ra_hir/src/code_model_impl/module.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/code_model_impl/module.rs b/crates/ra_hir/src/code_model_impl/module.rs index 4ea649770..aa5e5d689 100644 --- a/crates/ra_hir/src/code_model_impl/module.rs +++ b/crates/ra_hir/src/code_model_impl/module.rs | |||
@@ -143,11 +143,11 @@ impl Module { | |||
143 | .find(|(n, _variant)| n == &segment.name); | 143 | .find(|(n, _variant)| n == &segment.name); |
144 | 144 | ||
145 | match matching_variant { | 145 | match matching_variant { |
146 | Some((_n, variant)) => PerNs::both(variant.def_id().into(), (*e).into()), | 146 | Some((_n, variant)) => PerNs::both(variant.into(), (*e).into()), |
147 | None => PerNs::none(), | 147 | None => PerNs::none(), |
148 | } | 148 | } |
149 | } | 149 | } |
150 | ModuleDef::Function(_) | ModuleDef::Struct(_) => { | 150 | ModuleDef::Function(_) | ModuleDef::Struct(_) | ModuleDef::EnumVariant(_) => { |
151 | // could be an inherent method call in UFCS form | 151 | // could be an inherent method call in UFCS form |
152 | // (`Struct::method`), or some other kind of associated | 152 | // (`Struct::method`), or some other kind of associated |
153 | // item... Which we currently don't handle (TODO) | 153 | // item... Which we currently don't handle (TODO) |