]> git.lizzy.rs Git - rust.git/commit
auto merge of #9791 : alexcrichton/rust/reachable, r=catamorphism
authorbors <bors@rust-lang.org>
Thu, 10 Oct 2013 13:06:24 +0000 (06:06 -0700)
committerbors <bors@rust-lang.org>
Thu, 10 Oct 2013 13:06:24 +0000 (06:06 -0700)
commit8015f9c27ec342dbf0b28c9c0c4769d8b3bcfc9f
tree70de1d8ad3a4d6ddc671f92bbd3a1af5b789542f
parent0ede2ea4e2e9384ac5bd614012d85ed213873dab
parentcaf7b678dd2f07918b47120aa73a1bca51d12da1
auto merge of #9791 : alexcrichton/rust/reachable, r=catamorphism

This fixes a bug in which the visibility rules were approximated by
reachability, but forgot to cover the case where a 'pub use' reexports a private
item. This fixes the commit by instead using the results of the privacy pass of
the compiler to create the initial working set of the reachability pass.

This may have the side effect of increasing the size of metadata, but it's
difficult to avoid for correctness purposes sadly.

Closes #9790