Skip to content
Permalink
Browse files

fix rebase

  • Loading branch information...
estebank committed Sep 27, 2019
1 parent e537d06 commit a284822e009e1e72443041219c7f3646c822ff89
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/librustc/hir/map/mod.rs
@@ -744,7 +744,7 @@ impl<'hir> Map<'hir> {
let mut iter = ParentHirIterator::new(id, &self).peekable();
let mut ignore_tail = false;
if let Some(entry) = self.find_entry(id) {
if let Node::Expr(Expr { node: ExprKind::Ret(_), .. }) = entry.node {
if let Node::Expr(Expr { kind: ExprKind::Ret(_), .. }) = entry.node {
// When dealing with `return` statements, we don't care about climbing only tail
// expressions.
ignore_tail = true;

0 comments on commit a284822

Please sign in to comment.
You can’t perform that action at this time.