diff options
author | Aleksey Kladov <[email protected]> | 2019-10-29 13:19:08 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-10-29 13:19:08 +0000 |
commit | bca708ba4c5eb474448ef2f2882a66ec935f2fee (patch) | |
tree | 14d0a0de9eabc0197156594b032764f6171b2765 /crates/ra_hir | |
parent | 99b6ecfab061396613c5f459fae43ea17b5675b8 (diff) |
cleanup
Diffstat (limited to 'crates/ra_hir')
-rw-r--r-- | crates/ra_hir/src/debug.rs | 6 | ||||
-rw-r--r-- | crates/ra_hir/src/lib.rs | 7 |
2 files changed, 4 insertions, 9 deletions
diff --git a/crates/ra_hir/src/debug.rs b/crates/ra_hir/src/debug.rs index c3f890ed4..4f3e922c3 100644 --- a/crates/ra_hir/src/debug.rs +++ b/crates/ra_hir/src/debug.rs | |||
@@ -36,12 +36,6 @@ impl Module { | |||
36 | } | 36 | } |
37 | } | 37 | } |
38 | 38 | ||
39 | // impl HirFileId { | ||
40 | // pub fn debug(self, db: &impl HirDebugDatabase) -> impl fmt::Debug + '_ { | ||
41 | // debug_fn(move |fmt| db.debug_hir_file_id(self, fmt)) | ||
42 | // } | ||
43 | // } | ||
44 | |||
45 | pub trait HirDebugHelper: HirDatabase { | 39 | pub trait HirDebugHelper: HirDatabase { |
46 | fn crate_name(&self, _krate: CrateId) -> Option<String> { | 40 | fn crate_name(&self, _krate: CrateId) -> Option<String> { |
47 | None | 41 | None |
diff --git a/crates/ra_hir/src/lib.rs b/crates/ra_hir/src/lib.rs index 5762b9e52..0f2d233bb 100644 --- a/crates/ra_hir/src/lib.rs +++ b/crates/ra_hir/src/lib.rs | |||
@@ -59,12 +59,13 @@ pub mod from_source; | |||
59 | #[cfg(test)] | 59 | #[cfg(test)] |
60 | mod marks; | 60 | mod marks; |
61 | 61 | ||
62 | use hir_expand::{ast_id_map::FileAstId, AstId}; | 62 | use hir_expand::{ |
63 | ast_id_map::{AstIdMap, FileAstId}, | ||
64 | AstId, | ||
65 | }; | ||
63 | 66 | ||
64 | use crate::{ids::MacroFileKind, name::AsName, resolve::Resolver}; | 67 | use crate::{ids::MacroFileKind, name::AsName, resolve::Resolver}; |
65 | 68 | ||
66 | use hir_expand::ast_id_map::AstIdMap; | ||
67 | |||
68 | pub use crate::{ | 69 | pub use crate::{ |
69 | adt::VariantDef, | 70 | adt::VariantDef, |
70 | either::Either, | 71 | either::Either, |