diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2019-01-04 11:17:23 -0800 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2019-01-04 11:17:23 -0800 |
| commit | 211365d68c8eb5515cb658c4c240c73c122d2c5e (patch) | |
| tree | eace29fe1a161aa09f0ebad96cc153684733ff7e | |
| parent | 5d086c328276d428d499284d745a0a1814e8b11c (diff) | |
| download | rust-211365d68c8eb5515cb658c4c240c73c122d2c5e.tar.gz rust-211365d68c8eb5515cb658c4c240c73c122d2c5e.zip | |
review comments
| -rw-r--r-- | src/librustc_typeck/check/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_typeck/check/mod.rs b/src/librustc_typeck/check/mod.rs index 9492b1a2341..fa6f3843f7c 100644 --- a/src/librustc_typeck/check/mod.rs +++ b/src/librustc_typeck/check/mod.rs @@ -4859,13 +4859,13 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> { None } - /// Given a function block's `NodeId`, return its `FnDecl` , `None` otherwise. + /// Given a function block's `NodeId`, return its `FnDecl` if it exists, or `None` otherwise. fn get_parent_fn_decl(&self, blk_id: ast::NodeId) -> Option<(hir::FnDecl, ast::Ident)> { let parent = self.tcx.hir().get(self.tcx.hir().get_parent(blk_id)); - self.get_node_fn_decl(parent).map(|(fn_decl, ident , _)| (fn_decl, ident)) + self.get_node_fn_decl(parent).map(|(fn_decl, ident, _)| (fn_decl, ident)) } - /// Given a function `Node`, return its `FnDecl` , `None` otherwise. + /// Given a function `Node`, return its `FnDecl` if it exists, or `None` otherwise. fn get_node_fn_decl(&self, node: Node) -> Option<(hir::FnDecl, ast::Ident, bool)> { match node { Node::Item(&hir::Item { |
