about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorDavid Wood <david@davidtw.co>2019-01-26 20:30:52 +0100
committerDavid Wood <david@davidtw.co>2019-02-02 15:29:13 +0100
commit71023394772e9194e3c7a2426364faef6c3ad2c4 (patch)
treececf141d101c1e72fa3c9578fea0721980f035ac /src/rustllvm/RustWrapper.cpp
parent3e58dabc16b1678da8702c71f70c72644764226c (diff)
downloadrust-71023394772e9194e3c7a2426364faef6c3ad2c4.tar.gz
rust-71023394772e9194e3c7a2426364faef6c3ad2c4.zip
Update visibility of intermediate use items.
Currently, the target of a use statement will be updated with
the visibility of the use statement itself (if the use statement was
visible).

This commit ensures that if the path to the target item is via another
use statement then that intermediate use statement will also have the
visibility updated like the target. This silences incorrect
`unreachable_pub` lints with inactionable suggestions.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions