-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thingI-false-positiveIssue: The lint was triggered on code it shouldn't haveIssue: The lint was triggered on code it shouldn't haveT-macrosType: Issues with macros and macro expansionType: Issues with macros and macro expansion
Description
Summary
The just newly introduced #12342 is triggered in proc-macros.
Lint Name
empty_docs
Reproducer
I tried this code:
#[wasm_bindgen]
extern "C" {
type Test;
}
I saw this happen:
warning: empty doc comment
--> tests/util/web.rs:141:1
|
141 | #[wasm_bindgen]
| ^^^^^^^^^^^^^^^
|
= help: consider removing or filling it
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
= note: this warning originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)
I expected to see this happen:
The lint not to trigger.
Version
rustc 1.76.0 (07dca489a 2024-02-04)
binary: rustc
commit-hash: 07dca489ac2d933c78d3c5158e3f43beefeb02ce
commit-date: 2024-02-04
host: x86_64-unknown-linux-gnu
release: 1.76.0
LLVM version: 17.0.6
Additional Labels
@rustbot label +T-macros
ilyagr, wtachau, torokati44 and lvyitian
Metadata
Metadata
Assignees
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thingI-false-positiveIssue: The lint was triggered on code it shouldn't haveIssue: The lint was triggered on code it shouldn't haveT-macrosType: Issues with macros and macro expansionType: Issues with macros and macro expansion