about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-01-13 22:27:46 +0000
committerbors <bors@rust-lang.org>2016-01-13 22:27:46 +0000
commit1447ce78fbd65a629f228ec8731a5cddc076a15c (patch)
treefc4886567d6683f8130a45a36df8366995191360 /src
parent6089ebaddb8a9d663f798c26eb2ca73a9514a59a (diff)
parent42acf89e1f247c322b05e47ddf5057175818ff95 (diff)
downloadrust-1447ce78fbd65a629f228ec8731a5cddc076a15c.tar.gz
rust-1447ce78fbd65a629f228ec8731a5cddc076a15c.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/clean/inline.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/clean/inline.rs b/src/librustdoc/clean/inline.rs
index c0f62cddb98..9bbbcc66ca6 100644
--- a/src/librustdoc/clean/inline.rs
+++ b/src/librustdoc/clean/inline.rs
@@ -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 => {}