Referring to tool lints with paths that have redundant segments in the middle works #83477
Labels
A-attributes
Area: Attributes (`#[…]`, `#![…]`)
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
P-medium
Medium priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried these code:
I expected to see this happen:
clippy
orrustdoc
reported them as unknown lints.Instead, this happened: both
clippy
andrustdoc
worked as if I specifiedclippy::empty_loop
orrustdoc::all
, withoutno::matter::how::many::useless::segments::here::it::always::works
.Meta
rustc
version: 1.53.0-nightly (07e0e2e 2021-03-24)Background
I discovered this through rust-analyzer, which tried to auto-complete something like
#[allow(clippy::empty_loo
with#[allow(clippy::clippy::empty_loop)]
, and then I found that syntax actually works.The text was updated successfully, but these errors were encountered: