Skip to content

rustdoc: intra-doc-links disambiguation warning doesn't listen to -Dwarnings #52784

Closed
@Nemo157

Description

@Nemo157

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.26s

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsT-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions