diff options
| author | bors <bors@rust-lang.org> | 2023-07-12 03:31:10 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-07-12 03:31:10 +0000 |
| commit | 8ede3aae28fe6e4d52b38157d7bfe0d3bceef225 (patch) | |
| tree | 85d3fab56ef8cd2b9d142ab56a0700d696838eef /tests/ui/lint/lint-missing-doc.rs | |
| parent | 7bb61853ad519abd3e5b3edfddc1cf00b1d4437d (diff) | |
| parent | 20f5748a950e9ab13ff4697b3165f9e8b18340c3 (diff) | |
| download | rust-1.71.0.tar.gz rust-1.71.0.zip | |
Auto merge of #113602 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum 1.71.0
[stable] 1.71.0 release, backports This PR adds a last-minute backport of: - #112343: Prevent emitting `missing_docs` for `pub extern crate` - no beta/mainline PR -- dropping empty section from relnotes
Diffstat (limited to 'tests/ui/lint/lint-missing-doc.rs')
| -rw-r--r-- | tests/ui/lint/lint-missing-doc.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ui/lint/lint-missing-doc.rs b/tests/ui/lint/lint-missing-doc.rs index e4c9f8f559b..b59f2212f51 100644 --- a/tests/ui/lint/lint-missing-doc.rs +++ b/tests/ui/lint/lint-missing-doc.rs @@ -1,5 +1,6 @@ // When denying at the crate level, be sure to not get random warnings from the // injected intrinsics by the compiler. +// aux-build:missing_docs.rs #![deny(missing_docs)] #![allow(dead_code)] #![feature(associated_type_defaults, extern_types)] @@ -8,6 +9,9 @@ //! Some garbage docs for the crate here #![doc="More garbage"] +// There should be not "missing_docs" warning on "pub extern crate". +pub extern crate missing_docs; + type Typedef = String; pub type PubTypedef = String; //~ ERROR: missing documentation for a type alias |
