diff options
| author | Mark Mansi <markm@cs.wisc.edu> | 2020-03-06 18:00:46 -0600 |
|---|---|---|
| committer | Mark Mansi <markm@cs.wisc.edu> | 2020-03-15 19:58:09 -0500 |
| commit | e3c15ae6bc508b754af222a4d47f756e2827cdfe (patch) | |
| tree | 8b3193e3378ca37aa0f33e667f0465b0ec3c5f45 | |
| parent | 7bd8ce2e506ed4c9a1a2214e7a6e9ead36e92631 (diff) | |
| download | rust-e3c15ae6bc508b754af222a4d47f756e2827cdfe.tar.gz rust-e3c15ae6bc508b754af222a4d47f756e2827cdfe.zip | |
update comment
| -rw-r--r-- | src/librustc/hir/map/mod.rs | 6 | ||||
| -rw-r--r-- | src/librustc_hir/hir.rs | 2 |
2 files changed, 2 insertions, 6 deletions
diff --git a/src/librustc/hir/map/mod.rs b/src/librustc/hir/map/mod.rs index af08eb7b04c..55ed07a97d1 100644 --- a/src/librustc/hir/map/mod.rs +++ b/src/librustc/hir/map/mod.rs @@ -542,11 +542,7 @@ impl<'hir> Map<'hir> { /// Retrieves the `Node` corresponding to `id`, returning `None` if cannot be found. pub fn find(&self, hir_id: HirId) -> Option<Node<'hir>> { let node = self.get_entry(hir_id).node; - if let Node::Crate(..) = node { - None - } else { - Some(node) - } + if let Node::Crate(..) = node { None } else { Some(node) } } /// Similar to `get_parent`; returns the parent HIR Id, or just `hir_id` if there diff --git a/src/librustc_hir/hir.rs b/src/librustc_hir/hir.rs index b189ae1f13d..5fee6920ddf 100644 --- a/src/librustc_hir/hir.rs +++ b/src/librustc_hir/hir.rs @@ -1901,7 +1901,7 @@ pub enum ImplItemKind<'hir> { /// An associated constant of the given type, set to the constant result /// of the expression. Const(&'hir Ty<'hir>, BodyId), - /// A method implementation with the given signature and body. + /// An associated function implementation with the given signature and body. Fn(FnSig<'hir>, BodyId), /// An associated type. TyAlias(&'hir Ty<'hir>), |
