about summary refs log tree commit diff
path: root/src/libstd
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/libstd
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/libstd')
-rw-r--r--src/libstd/sys/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstd/sys/mod.rs b/src/libstd/sys/mod.rs
index f398a2a6225..99ef74179c2 100644
--- a/src/libstd/sys/mod.rs
+++ b/src/libstd/sys/mod.rs
@@ -54,6 +54,7 @@ cfg_if! {
 cfg_if! {
     if #[cfg(any(unix, target_os = "redox"))] {
         // On unix we'll document what's already available
+        #[stable(feature = "rust1", since = "1.0.0")]
         pub use self::ext as unix_ext;
     } else if #[cfg(any(target_os = "cloudabi",
                         target_arch = "wasm32",
@@ -77,6 +78,7 @@ cfg_if! {
     if #[cfg(windows)] {
         // On windows we'll just be documenting what's already available
         #[allow(missing_docs)]
+        #[stable(feature = "rust1", since = "1.0.0")]
         pub use self::ext as windows_ext;
     } else if #[cfg(any(target_os = "cloudabi",
                         target_arch = "wasm32",