Skip to content

Renamed lint groups are not honored in attributes #82813

Closed
@jyn514

Description

@jyn514

I tried renaming rustdoc to rustdoc::all. I expected this to continue denying rustdoc warnings when I use deny(rustdoc). Instead, it warned that the lint name was outdated, but did not apply the lint level.

#![deny(rustdoc)]
//! [x]
warning: lint `rustdoc` has been removed: use `rustdoc::all` instead
 --> ../test-rustdoc/lints.rs:1:9
  |
1 | #![deny(rustdoc)]
  |         ^^^^^^^
  |
  = note: `#[warn(renamed_and_removed_lints)]` on by default

warning: unresolved link to `x`
 --> ../test-rustdoc/lints.rs:2:6
  |
2 | //! [x]
  |      ^ no item named `x` in scope
  |
  = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default
  = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`

warning: 2 warnings emitted

This is #82615, but for lint groups instead of individual lints. cc #82798

Metadata

Metadata

Assignees

No one assigned

    Labels

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