diff options
author | Aleksey Kladov <[email protected]> | 2019-01-24 20:32:41 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-24 20:32:41 +0000 |
commit | 4c514a3e02b019cdd3a17c9bcd78d93c210ab267 (patch) | |
tree | acd4a571cec5c44d1ccbc705578f47a898da4139 /crates/ra_hir/src/code_model_impl | |
parent | 11dda8a0fb905a1b41a64001d564632eb062b9aa (diff) |
move enum variant to the new API
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) |