Closed
Description
minimal example:
#![warn(missing_docs)]
pub extern crate alloc;
Running cargo check
on this example outputs no warning on stable 1.70.0, but on either rustc 1.71.0-beta.2 (4e8c9e8e3 2023-06-04)
or rustc 1.72.0-nightly (101fa903b 2023-06-04)
it outputs the following warning:
warning: missing documentation for an extern crate
--> src/lib.rs:5:1
|
5 | pub extern crate alloc;
| ^^^^^^^^^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> src/lib.rs:3:9
|
3 | #![warn(missing_docs)]
| ^^^^^^^^^^^^
Adding a docstring does silence the warning, but as far as I can tell this docstring is not used anywhere by rustdoc: adding it has no impact on the generated documentation.
I suppose either the warning is inadequate, or rustdoc should display that docstring.