about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2016-03-08 11:20:16 -0800
committerAlex Crichton <alex@alexcrichton.com>2016-03-08 13:44:14 -0800
commite9cb96a56ab6dc883703928825ec7587db74dc1e (patch)
treea6406534f13b1d090dd759c4a6eb511850e941ec /src/rustllvm/RustWrapper.cpp
parent8aa268e731aa201e086675f38e4337702c63f104 (diff)
downloadrust-e9cb96a56ab6dc883703928825ec7587db74dc1e.tar.gz
rust-e9cb96a56ab6dc883703928825ec7587db74dc1e.zip
rustdoc: Don't inline all impls all at once
Right now whenever rustdoc inlines a struct or enum from another crate it ends
up inlining *all* `impl` items found in the other crate at the same time. The
rationale for this was to discover all trait impls which are otherwise not
probed for. This unfortunately picks up a lot of impls of public traits for
private types, causing lots of broken links.

This commit instead hoards all of those inlined impls into a temporary storage
location which is then selectively drawn from whenever we inline a new type.
This should ensure that we still inline all relevant impls while avoiding all
private ones.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions