Auto merge of #30870 - Eljay:issue-30477, r=alexcrichton

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
This commit is contained in:
bors 2016-01-13 22:27:46 +00:00
commit 1447ce78fb

View File

@ -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 => {}