Skip to content

Rustdoc does not warn about unknown, renamed, or removed lints #75884

Closed
@jyn514

Description

@jyn514

Found in tokio-rs/tracing#940 (comment).

$ cat broken.rs 
#![deny(x)]
$ rustdoc broken.rs  # no output
$ rustc broken.rs 
warning: unknown lint: `x`
 --> broken.rs:1:9
  |
1 | #![deny(x)]
  |         ^
  |
  = note: `#[warn(unknown_lints)]` on by default
$ rustdoc --version
rustdoc 1.45.2 (d3fb005a3 2020-07-31)

Metadata

Metadata

Assignees

Labels

A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.C-bugCategory: This is a bug.T-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