Skip to content

Commit

Permalink
Auto merge of #30870 - Eljay:issue-30477, r=alexcrichton
Browse files Browse the repository at this point in the history
Fixes #30477, #30213.

The loop over reexports used to be a closure before #30043 but it's an iterator now so it should just continue instead of exiting the loop and skipping stuff.

r? @brson
  • Loading branch information
bors committed Jan 13, 2016
2 parents 6089eba + 42acf89 commit 1447ce7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/clean/inline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ fn build_module(cx: &DocContext, tcx: &ty::ctxt,
fill_in(cx, tcx, did, items);
}
cstore::DlDef(def) if item.vis == hir::Public => {
if !visited.insert(def) { return }
if !visited.insert(def) { continue }
match try_inline_def(cx, tcx, def) {
Some(i) => items.extend(i),
None => {}
Expand Down

0 comments on commit 1447ce7

Please sign in to comment.