diff options
| author | Kyle Huey <khuey@kylehuey.com> | 2025-03-21 17:34:45 -0700 |
|---|---|---|
| committer | Kyle Huey <khuey@kylehuey.com> | 2025-03-21 17:34:45 -0700 |
| commit | 8cab8e07bc94fb2fea8e1421d2d2e6de6398b69b (patch) | |
| tree | d803c5598011e09f9d6b6f99c618e99947e9e633 /compiler/rustc_builtin_macros/src | |
| parent | 01dc45c10e814c25207995a577359e3f137e78ae (diff) | |
| download | rust-8cab8e07bc94fb2fea8e1421d2d2e6de6398b69b.tar.gz rust-8cab8e07bc94fb2fea8e1421d2d2e6de6398b69b.zip | |
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
Diffstat (limited to 'compiler/rustc_builtin_macros/src')
0 files changed, 0 insertions, 0 deletions
