diff options
author | Aleksey Kladov <[email protected]> | 2019-11-03 21:11:37 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-11-03 21:23:14 +0000 |
commit | 8922a44395482896fec0c0a47a7fac4612112d45 (patch) | |
tree | c37d38f9313f54ea71580f6bd005f554388a57ab /crates | |
parent | f0eb9cc6e66a65d2df42c662499ebd77ea980de5 (diff) |
Add small module-level docs
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_hir/src/from_id.rs | 5 | ||||
-rw-r--r-- | crates/ra_hir_def/src/diagnostics.rs | 2 | ||||
-rw-r--r-- | crates/ra_hir_def/src/test_db.rs | 2 |
3 files changed, 9 insertions, 0 deletions
diff --git a/crates/ra_hir/src/from_id.rs b/crates/ra_hir/src/from_id.rs index c08203bca..089dbc908 100644 --- a/crates/ra_hir/src/from_id.rs +++ b/crates/ra_hir/src/from_id.rs | |||
@@ -1,3 +1,8 @@ | |||
1 | //! Utility module for converting between hir_def ids and code_model wrappers. | ||
2 | //! | ||
3 | //! It's unclear if we need this long-term, but it's definitelly useful while we | ||
4 | //! are splitting the hir. | ||
5 | |||
1 | use hir_def::{AdtId, EnumVariantId, ModuleDefId}; | 6 | use hir_def::{AdtId, EnumVariantId, ModuleDefId}; |
2 | 7 | ||
3 | use crate::{Adt, EnumVariant, ModuleDef}; | 8 | use crate::{Adt, EnumVariant, ModuleDef}; |
diff --git a/crates/ra_hir_def/src/diagnostics.rs b/crates/ra_hir_def/src/diagnostics.rs index 637184c58..1c1ccdecb 100644 --- a/crates/ra_hir_def/src/diagnostics.rs +++ b/crates/ra_hir_def/src/diagnostics.rs | |||
@@ -1,3 +1,5 @@ | |||
1 | //! Diagnostics produced by `hir_def`. | ||
2 | |||
1 | use std::any::Any; | 3 | use std::any::Any; |
2 | 4 | ||
3 | use hir_expand::diagnostics::Diagnostic; | 5 | use hir_expand::diagnostics::Diagnostic; |
diff --git a/crates/ra_hir_def/src/test_db.rs b/crates/ra_hir_def/src/test_db.rs index 05018f8e4..f91a5b41d 100644 --- a/crates/ra_hir_def/src/test_db.rs +++ b/crates/ra_hir_def/src/test_db.rs | |||
@@ -1,3 +1,5 @@ | |||
1 | //! Database used for testing `hir_def`. | ||
2 | |||
1 | use std::{ | 3 | use std::{ |
2 | panic, | 4 | panic, |
3 | sync::{Arc, Mutex}, | 5 | sync::{Arc, Mutex}, |