diff options
| author | Stuart Cook <Zalathar@users.noreply.github.com> | 2025-03-26 19:40:28 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-26 19:40:28 +1100 |
| commit | ff325e0a00eedc6ecf5f6b211df78abbced6f18d (patch) | |
| tree | c5594a297c0428b24679eb249f41709458db1d07 /compiler/rustc_resolve/src/late/diagnostics.rs | |
| parent | 7eb27a9cf93f2c21626da278edab1235564d097c (diff) | |
| parent | 8cab8e07bc94fb2fea8e1421d2d2e6de6398b69b (diff) | |
| download | rust-ff325e0a00eedc6ecf5f6b211df78abbced6f18d.tar.gz rust-ff325e0a00eedc6ecf5f6b211df78abbced6f18d.zip | |
Rollup merge of #138818 - khuey:138198, r=jieyouxu
Don't produce debug information for compiler-introduced-vars when desugaring assignments.
An assignment such as
(a, b) = (b, c);
desugars to the HIR
{ let (lhs, lhs) = (b, c); a = lhs; b = lhs; };
The repeated `lhs` leads to multiple Locals assigned to the same DILocalVariable. Rather than attempting to fix that, get rid of the debug info for these bindings that don't even exist in the program to begin with.
Fixes #138198
r? `@jieyouxu`
Diffstat (limited to 'compiler/rustc_resolve/src/late/diagnostics.rs')
0 files changed, 0 insertions, 0 deletions
