@@ -35,7 +35,7 @@ mod def_collector;
35
35
pub mod definitions;
36
36
mod hir_id_validator;
37
37
38
- /// Represents an entry and its parent `NodeId `.
38
+ /// Represents an entry and its parent `HirId `.
39
39
#[ derive( Copy , Clone , Debug ) ]
40
40
pub struct Entry < ' hir > {
41
41
parent : HirId ,
@@ -200,7 +200,7 @@ impl<'hir> Map<'hir> {
200
200
/// "reveals" the content of a node to the caller (who might not
201
201
/// otherwise have had access to those contents, and hence needs a
202
202
/// read recorded). If the function just returns a DefId or
203
- /// NodeId , no actual content was returned, so no read is needed.
203
+ /// HirId , no actual content was returned, so no read is needed.
204
204
pub fn read ( & self , hir_id : HirId ) {
205
205
if let Some ( entry) = self . lookup ( hir_id) {
206
206
self . dep_graph . read_index ( entry. dep_node ) ;
@@ -681,7 +681,7 @@ impl<'hir> Map<'hir> {
681
681
682
682
/// If there is some error when walking the parents (e.g., a node does not
683
683
/// have a parent in the map or a node can't be found), then we return the
684
- /// last good `NodeId ` we found. Note that reaching the crate root (`id == 0`),
684
+ /// last good `HirId ` we found. Note that reaching the crate root (`id == 0`),
685
685
/// is not an error, since items in the crate module have the crate root as
686
686
/// parent.
687
687
fn walk_parent_nodes < F , F2 > ( & self ,
@@ -717,15 +717,15 @@ impl<'hir> Map<'hir> {
717
717
}
718
718
}
719
719
720
- /// Retrieves the `NodeId ` for `id`'s enclosing method, unless there's a
720
+ /// Retrieves the `HirId ` for `id`'s enclosing method, unless there's a
721
721
/// `while` or `loop` before reaching it, as block tail returns are not
722
722
/// available in them.
723
723
///
724
724
/// ```
725
725
/// fn foo(x: usize) -> bool {
726
726
/// if x == 1 {
727
727
/// true // `get_return_block` gets passed the `id` corresponding
728
- /// } else { // to this, it will return `foo`'s `NodeId `.
728
+ /// } else { // to this, it will return `foo`'s `HirId `.
729
729
/// false
730
730
/// }
731
731
/// }
0 commit comments