diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-02-25 20:12:48 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-25 20:12:48 +0100 |
| commit | 070d7c2a429fa3c53dad116cabfdf5928a5caa70 (patch) | |
| tree | 94c12cf1e7220df9c5ac3366fefb9c453cbbb89f /compiler/rustc_codegen_llvm/src | |
| parent | ed202b820831c15cea388d67985feae3784bac13 (diff) | |
| parent | bbe3447313b52db1c0162061a77948e4da275809 (diff) | |
| download | rust-070d7c2a429fa3c53dad116cabfdf5928a5caa70.tar.gz rust-070d7c2a429fa3c53dad116cabfdf5928a5caa70.zip | |
Rollup merge of #94353 - flip1995:fix_debug_assert_unused, r=Dylan-DPC
Fix debug_assert in unused lint pass
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
```rust
fn main() { (1, (3,)); }
```
Not sure, if I should add a regression test for a `debug_assert`.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
