Fix debug_assert in unused lint pass by flip1995 · Pull Request #94353 · rust-lang/rust (original) (raw)
This fixes a debug assertion in the unused lint pass. As a side effect, this also improves the span generated for tuples in the unused_must_use
lint.
found in #94329
A reproducer for this would be
fn main() { (1, (3,)); }
Not sure, if I should add a regression test for a debug_assert
.