Skip to content

Commit

Permalink
hir_def is fully doc'ed!
Browse files Browse the repository at this point in the history
  • Loading branch information
matklad committed Nov 24, 2019
1 parent e48430c commit d87c16b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion crates/ra_hir_def/src/body/scope.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! FIXME: write short doc here
//! Name resolution for expressions.
use std::sync::Arc;

use hir_expand::name::Name;
Expand Down
5 changes: 4 additions & 1 deletion crates/ra_hir_def/src/per_ns.rs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
6 changes: 3 additions & 3 deletions crates/ra_hir_def/src/resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion xtask/tests/tidy-tests/docs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit d87c16b

Please sign in to comment.