From 541387564483ee3a42a1969fd048f94e57599ca4 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 29 Oct 2019 14:55:39 +0300 Subject: move expansion-related code to a separate crate --- crates/ra_hir/src/debug.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'crates/ra_hir/src/debug.rs') diff --git a/crates/ra_hir/src/debug.rs b/crates/ra_hir/src/debug.rs index 48b69000b..c3f890ed4 100644 --- a/crates/ra_hir/src/debug.rs +++ b/crates/ra_hir/src/debug.rs @@ -36,11 +36,11 @@ impl Module { } } -impl HirFileId { - pub fn debug(self, db: &impl HirDebugDatabase) -> impl fmt::Debug + '_ { - debug_fn(move |fmt| db.debug_hir_file_id(self, fmt)) - } -} +// impl HirFileId { +// pub fn debug(self, db: &impl HirDebugDatabase) -> impl fmt::Debug + '_ { +// debug_fn(move |fmt| db.debug_hir_file_id(self, fmt)) +// } +// } pub trait HirDebugHelper: HirDatabase { fn crate_name(&self, _krate: CrateId) -> Option { -- cgit v1.2.3 From bca708ba4c5eb474448ef2f2882a66ec935f2fee Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 29 Oct 2019 16:19:08 +0300 Subject: cleanup --- crates/ra_hir/src/debug.rs | 6 ------ 1 file changed, 6 deletions(-) (limited to 'crates/ra_hir/src/debug.rs') 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 { } } -// impl HirFileId { -// pub fn debug(self, db: &impl HirDebugDatabase) -> impl fmt::Debug + '_ { -// debug_fn(move |fmt| db.debug_hir_file_id(self, fmt)) -// } -// } - pub trait HirDebugHelper: HirDatabase { fn crate_name(&self, _krate: CrateId) -> Option { None -- cgit v1.2.3