]> git.lizzy.rs Git - rust.git/commitdiff
hir_def is fully doc'ed!
authorAleksey Kladov <aleksey.kladov@gmail.com>
Sun, 24 Nov 2019 18:00:50 +0000 (21:00 +0300)
committerAleksey Kladov <aleksey.kladov@gmail.com>
Sun, 24 Nov 2019 18:00:50 +0000 (21:00 +0300)
crates/ra_hir_def/src/body/scope.rs
crates/ra_hir_def/src/per_ns.rs
crates/ra_hir_def/src/resolver.rs
xtask/tests/tidy-tests/docs.rs

index 5240a59d5185edd8d7b1e3c58f90943020e76276..625aa39dd04f30a97d0d3476583b8f79769cd496 100644 (file)
@@ -1,4 +1,4 @@
-//! FIXME: write short doc here
+//! Name resolution for expressions.
 use std::sync::Arc;
 
 use hir_expand::name::Name;
index 06ef6c9fc977fe34c7e1e7e11af2e1d69ec16a36..00e866bf9ff97afb5fed1f6eb8479f0f7412106e 100644 (file)
@@ -1,4 +1,7 @@
-//! FIXME: write short doc here
+//! In rust, it is possible to have a value, a type and a macro with the same
+//! name without conflicts.
+//!
+//! `PerNs` (per namespace) captures this.
 
 use hir_expand::MacroDefId;
 
index c24a9b165e616945b70e8f66296c466204f51aa0..1f8887c6ba046d1eed15558fe9887f31f253b488 100644 (file)
@@ -29,20 +29,20 @@ pub struct Resolver {
 
 // FIXME how to store these best
 #[derive(Debug, Clone)]
-pub(crate) struct ModuleItemMap {
+struct ModuleItemMap {
     crate_def_map: Arc<CrateDefMap>,
     module_id: LocalModuleId,
 }
 
 #[derive(Debug, Clone)]
-pub(crate) struct ExprScope {
+struct ExprScope {
     owner: DefWithBodyId,
     expr_scopes: Arc<ExprScopes>,
     scope_id: ScopeId,
 }
 
 #[derive(Debug, Clone)]
-pub(crate) enum Scope {
+enum Scope {
     /// All the items and imported names of a module
     ModuleScope(ModuleItemMap),
     /// Brings the generic parameters of an item into scope
index 14121986017db8589e472098f5ca7eeaaf56b98e..fae871285ab6d6ec191d886e672f7955878b9f3e 100644 (file)
@@ -74,7 +74,6 @@ fn no_docs_comments() {
         "ra_db",
         "ra_hir",
         "ra_hir_expand",
-        "ra_hir_def",
         "ra_ide_api",
         "ra_lsp_server",
         "ra_mbe",