aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-11-03 21:11:37 +0000
committerAleksey Kladov <[email protected]>2019-11-03 21:23:14 +0000
commit8922a44395482896fec0c0a47a7fac4612112d45 (patch)
treec37d38f9313f54ea71580f6bd005f554388a57ab /crates
parentf0eb9cc6e66a65d2df42c662499ebd77ea980de5 (diff)
Add small module-level docs
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_hir/src/from_id.rs5
-rw-r--r--crates/ra_hir_def/src/diagnostics.rs2
-rw-r--r--crates/ra_hir_def/src/test_db.rs2
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
1use hir_def::{AdtId, EnumVariantId, ModuleDefId}; 6use hir_def::{AdtId, EnumVariantId, ModuleDefId};
2 7
3use crate::{Adt, EnumVariant, ModuleDef}; 8use 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
1use std::any::Any; 3use std::any::Any;
2 4
3use hir_expand::diagnostics::Diagnostic; 5use 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
1use std::{ 3use std::{
2 panic, 4 panic,
3 sync::{Arc, Mutex}, 5 sync::{Arc, Mutex},