aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-10-29 13:19:08 +0000
committerAleksey Kladov <[email protected]>2019-10-29 13:19:08 +0000
commitbca708ba4c5eb474448ef2f2882a66ec935f2fee (patch)
tree14d0a0de9eabc0197156594b032764f6171b2765 /crates/ra_hir
parent99b6ecfab061396613c5f459fae43ea17b5675b8 (diff)
cleanup
Diffstat (limited to 'crates/ra_hir')
-rw-r--r--crates/ra_hir/src/debug.rs6
-rw-r--r--crates/ra_hir/src/lib.rs7
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
45pub trait HirDebugHelper: HirDatabase { 39pub 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)]
60mod marks; 60mod marks;
61 61
62use hir_expand::{ast_id_map::FileAstId, AstId}; 62use hir_expand::{
63 ast_id_map::{AstIdMap, FileAstId},
64 AstId,
65};
63 66
64use crate::{ids::MacroFileKind, name::AsName, resolve::Resolver}; 67use crate::{ids::MacroFileKind, name::AsName, resolve::Resolver};
65 68
66use hir_expand::ast_id_map::AstIdMap;
67
68pub use crate::{ 69pub use crate::{
69 adt::VariantDef, 70 adt::VariantDef,
70 either::Either, 71 either::Either,