diff options
Diffstat (limited to 'crates/ra_hir/src/debug.rs')
-rw-r--r-- | crates/ra_hir/src/debug.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/ra_hir/src/debug.rs b/crates/ra_hir/src/debug.rs index 4f3e922c3..7a2810f71 100644 --- a/crates/ra_hir/src/debug.rs +++ b/crates/ra_hir/src/debug.rs | |||
@@ -1,3 +1,5 @@ | |||
1 | //! XXX: This does not work at the moment. | ||
2 | //! | ||
1 | //! printf debugging infrastructure for rust-analyzer. | 3 | //! printf debugging infrastructure for rust-analyzer. |
2 | //! | 4 | //! |
3 | //! When you print a hir type, like a module, using `eprintln!("{:?}", module)`, | 5 | //! When you print a hir type, like a module, using `eprintln!("{:?}", module)`, |
@@ -20,9 +22,10 @@ | |||
20 | 22 | ||
21 | use std::fmt; | 23 | use std::fmt; |
22 | 24 | ||
25 | use hir_expand::HirFileId; | ||
23 | use ra_db::{CrateId, FileId}; | 26 | use ra_db::{CrateId, FileId}; |
24 | 27 | ||
25 | use crate::{db::HirDatabase, Crate, HirFileId, Module, Name}; | 28 | use crate::{db::HirDatabase, Crate, Module, Name}; |
26 | 29 | ||
27 | impl Crate { | 30 | impl Crate { |
28 | pub fn debug(self, db: &impl HirDebugDatabase) -> impl fmt::Debug + '_ { | 31 | pub fn debug(self, db: &impl HirDebugDatabase) -> impl fmt::Debug + '_ { |