diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2025-03-09 08:36:37 +0100 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2025-03-27 12:31:54 +0100 |
| commit | d9913dd6ad07f113aa83b835da8253bdca4342a9 (patch) | |
| tree | fff5bb1245b1a0644e3fafeb4b3a9ab8ae6285d3 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 1b628853fa3647a811cd77a7b3425056b39f1d07 (diff) | |
| download | rust-d9913dd6ad07f113aa83b835da8253bdca4342a9.tar.gz rust-d9913dd6ad07f113aa83b835da8253bdca4342a9.zip | |
Do not warn about shadowing in a destructuring assigment
When lowering a destructuring assignment from AST to HIR, the compiler will reuse the same identifier name (namely `sym::lhs`) for all the fields. The desugaring must be checked for to avoid a false positive of the `shadow_unrelated` lint.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
