diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_hir/src/semantics.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/crates/ra_hir/src/semantics.rs b/crates/ra_hir/src/semantics.rs index 4677eb561..0d877e44e 100644 --- a/crates/ra_hir/src/semantics.rs +++ b/crates/ra_hir/src/semantics.rs | |||
@@ -25,7 +25,7 @@ use crate::{ | |||
25 | semantics::source_to_def::{ChildContainer, SourceToDefCache, SourceToDefCtx}, | 25 | semantics::source_to_def::{ChildContainer, SourceToDefCache, SourceToDefCtx}, |
26 | source_analyzer::{resolve_hir_path, resolve_hir_path_qualifier, SourceAnalyzer}, | 26 | source_analyzer::{resolve_hir_path, resolve_hir_path_qualifier, SourceAnalyzer}, |
27 | AssocItem, Field, Function, HirFileId, ImplDef, InFile, Local, MacroDef, Module, ModuleDef, | 27 | AssocItem, Field, Function, HirFileId, ImplDef, InFile, Local, MacroDef, Module, ModuleDef, |
28 | Name, Origin, Path, ScopeDef, Trait, Type, TypeAlias, TypeParam, | 28 | Name, Origin, Path, ScopeDef, Trait, Type, TypeAlias, TypeParam, VariantDef, |
29 | }; | 29 | }; |
30 | use resolver::TypeNs; | 30 | use resolver::TypeNs; |
31 | 31 | ||
@@ -220,9 +220,8 @@ impl<'db, DB: HirDatabase> Semantics<'db, DB> { | |||
220 | self.imp.resolve_path(path) | 220 | self.imp.resolve_path(path) |
221 | } | 221 | } |
222 | 222 | ||
223 | // TODO: id | 223 | pub fn resolve_variant(&self, record_lit: ast::RecordLit) -> Option<VariantDef> { |
224 | pub fn resolve_variant(&self, record_lit: ast::RecordLit) -> Option<VariantId> { | 224 | self.imp.resolve_variant(record_lit).map(VariantDef::from) |
225 | self.imp.resolve_variant(record_lit) | ||
226 | } | 225 | } |
227 | 226 | ||
228 | pub fn lower_path(&self, path: &ast::Path) -> Option<Path> { | 227 | pub fn lower_path(&self, path: &ast::Path) -> Option<Path> { |