External Publication
Visit Post

Pre-feature request: suppress unused variable warning for unit-type arguments

Rust Internals [Unofficial] March 11, 2026
Source

My point is that I don't think unused variables are sufficiently more likely to be noise just because they are zero-sized. We have established ways of quieting the lint (leading _), and IMO that is entirely sufficient, also for this case.

I agree lints should avoid noise. I just don't think this proposal significantly improves the signal-to-noise ratio of this lint.

Discussion in the ATmosphere

Loading comments...