]> git.lizzy.rs Git - rust.git/blobdiff - crates/ra_hir/src/lib.rs
Hover for associated items in patterns
[rust.git] / crates / ra_hir / src / lib.rs
index 905c53c7dd4bdfacdb5e14ba0e77bfba1fc57182..74c718e724fd2367a974a614fb1c6b6931db15a5 100644 (file)
@@ -18,9 +18,8 @@ fn from(it: $v) -> $e {
 }
 
 pub mod db;
-#[cfg(test)]
-mod mock;
-mod query_definitions;
+#[macro_use]
+pub mod mock;
 mod path;
 pub mod source_binder;
 
@@ -30,12 +29,14 @@ fn from(it: $v) -> $e {
 mod module_tree;
 mod nameres;
 mod adt;
+mod type_alias;
 mod type_ref;
 mod ty;
 mod impl_block;
 mod expr;
 mod generics;
 mod docs;
+mod resolve;
 
 mod code_model_api;
 mod code_model_impl;
@@ -54,12 +55,13 @@ fn from(it: $v) -> $e {
     name::Name,
     ids::{HirFileId, MacroCallId, MacroCallLoc, HirInterner},
     macros::{MacroDef, MacroInput, MacroExpansion},
-    nameres::{ItemMap, PerNs, Namespace, Resolution},
-    ty::Ty,
+    nameres::{ItemMap, PerNs, Namespace},
+    ty::{Ty, Substs},
     impl_block::{ImplBlock, ImplItem},
     docs::{Docs, Documentation},
     adt::AdtDef,
-    expr::{ExprScopes, ScopesWithSyntaxMapping},
+    expr::{ExprScopes, ScopesWithSourceMap, ScopeEntryWithSyntax, Pat},
+    resolve::{Resolver, Resolution},
 };
 
 pub use self::code_model_api::{
@@ -67,8 +69,8 @@ fn from(it: $v) -> $e {
     Def,
     Module, ModuleDef, ModuleSource, Problem,
     Struct, Enum, EnumVariant,
-    Function, FnSignature, ScopeEntryWithSyntax,
+    Function, FnSignature,
     StructField, FieldSource,
-    Static, Const,
-    Trait, Type,
+    Static, Const, ConstSignature,
+    Trait, TypeAlias,
 };