From e3c15ae6bc508b754af222a4d47f756e2827cdfe Mon Sep 17 00:00:00 2001 From: Mark Mansi Date: Fri, 6 Mar 2020 18:00:46 -0600 Subject: [PATCH] update comment --- src/librustc/hir/map/mod.rs | 6 +----- 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 af08eb7b04ca..55ed07a97d16 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> { 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 b189ae1f13d7..5fee6920ddfe 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>),