diff options
| author | Mara <m-ou.se@m-ou.se> | 2021-03-05 10:57:15 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-05 10:57:15 +0100 |
| commit | ec2619ca6219a74f3c97ac7c32aeecd79368788f (patch) | |
| tree | 55dc230bcf7c8f965da50c24405eccf8c1780ee1 /src/test/rustdoc | |
| parent | e6a6df5daad01472e93f19802b0ce25f7a9b020c (diff) | |
| parent | 7b021aacb57d7a120f280302358d7bdd04a67bbc (diff) | |
| download | rust-ec2619ca6219a74f3c97ac7c32aeecd79368788f.tar.gz rust-ec2619ca6219a74f3c97ac7c32aeecd79368788f.zip | |
Rollup merge of #80763 - petrochenkov:pubusecrate, r=estebank
resolve: Reduce scope of `pub_use_of_private_extern_crate` deprecation lint This lint was deny-by-default since July 2017, crater showed 7 uses on crates.io back then (https://github.com/rust-lang/rust/pull/42894#issuecomment-311921147). Unfortunately, the construction `pub use foo as bar` where `foo` is `extern crate foo;` was used by an older version `bitflags`, so turning it into an error causes too many regressions. So, this PR reduces the scope of the lint instead of turning it into a hard error, and only turns some more rarely used components of it into errors.
Diffstat (limited to 'src/test/rustdoc')
| -rw-r--r-- | src/test/rustdoc/extern-links.rs | 2 | ||||
| -rw-r--r-- | src/test/rustdoc/issue-28927.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/rustdoc/extern-links.rs b/src/test/rustdoc/extern-links.rs index 991f869138d..0383ccf7db6 100644 --- a/src/test/rustdoc/extern-links.rs +++ b/src/test/rustdoc/extern-links.rs @@ -3,7 +3,7 @@ #![crate_name = "foo"] -extern crate extern_links; +pub extern crate extern_links; // @!has foo/index.html '//a' 'extern_links' #[doc(no_inline)] diff --git a/src/test/rustdoc/issue-28927.rs b/src/test/rustdoc/issue-28927.rs index 7b535f33bf7..38a520850b6 100644 --- a/src/test/rustdoc/issue-28927.rs +++ b/src/test/rustdoc/issue-28927.rs @@ -2,5 +2,5 @@ // aux-build:issue-28927-1.rs // ignore-cross-compile -extern crate issue_28927_1 as inner1; +pub extern crate issue_28927_1 as inner1; pub use inner1 as foo; |
