about summary refs log tree commit diff
path: root/src/test/run-pass/thinlto
diff options
context:
space:
mode:
authorAaron Hill <aa1ronham@gmail.com>2017-04-09 12:00:34 -0400
committerAaron Hill <aa1ronham@gmail.com>2017-04-09 12:12:05 -0400
commit63a291febac3ba2cb48787fed24388c2817ef4a2 (patch)
treeb363bb6ae1dd08b28f2d687932825a42651c225a /src/test/run-pass/thinlto
parent53f4bc311b5ff11a16185dd40dc116cf6b8cc162 (diff)
downloadrust-63a291febac3ba2cb48787fed24388c2817ef4a2.tar.gz
rust-63a291febac3ba2cb48787fed24388c2817ef4a2.zip
Fix rustdoc infinitely recursing when an external crate reexports itself
Previously, rustdoc's LibEmbargoVisitor unconditionally visited the
child modules of an external crate. If a module re-exported its parent
via 'pub use super::*', rustdoc would re-walk the parent, leading to
infinite recursion.

This commit makes LibEmbargoVisitor store already visited modules in an
FxHashSet, ensuring that each module is only walked once.

Fixes #40936
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions