- 
                Notifications
    You must be signed in to change notification settings 
- Fork 13.9k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsT-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Description
I expected this to error out, but it didn't:
> RUSTDOCFLAGS=-Dwarnings cargo doc --no-deps -p futures-util-preview
 Documenting futures-util-preview v0.3.0-alpha.1 (file:///Users/Nemo157/sources/futures-rs/futures-util)
warning: `empty` is both a type and a function
 --> futures-util/src/future/empty.rs:6:1
  |
6 | / /// A future which is never resolved.
7 | | ///
8 | | /// This future can be created with the [`empty`] function.
  | |___________________________________________________________^
  |
  = help: try `type@empty` if you want to select the type, or `empty()` if you want to select the function
[...]
    Finished dev [unoptimized + debuginfo] target(s) in 3.26sMetadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsT-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.