about summary refs log tree commit diff
path: root/src/test/ui/thinlto
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-02-03 13:35:15 +0000
committerbors <bors@rust-lang.org>2019-02-03 13:35:15 +0000
commit42b8c77da5c57d3431b5445152ff702c614ce6d8 (patch)
tree0ccbcd1133798c5f9de69415cf3e9a70c81a18a2 /src/test/ui/thinlto
parentfc6e9a2845e8bb4560811ed21136483a596505bb (diff)
parent71023394772e9194e3c7a2426364faef6c3ad2c4 (diff)
downloadrust-42b8c77da5c57d3431b5445152ff702c614ce6d8.tar.gz
rust-42b8c77da5c57d3431b5445152ff702c614ce6d8.zip
Auto merge of #57922 - davidtwco:issue-57410, r=petrochenkov
Update visibility of intermediate use items.

Fixes #57410 and fixes #53925 and fixes #47816.

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 PR 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/test/ui/thinlto')
0 files changed, 0 insertions, 0 deletions