diff options
| author | Michael Howell <michael@notriddle.com> | 2025-02-01 14:35:18 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2025-02-01 14:39:43 -0700 |
| commit | ecb2d5c43dc0f8bed05e23b6d84396457a376d4e (patch) | |
| tree | 24a3b9e3b37731e0ee9528733404b0967dd06851 /compiler/rustc_codegen_gcc/example/alloc_system.rs | |
| parent | e08cd3cf05e5bfa3323cc21ea8f81f4a15a2f969 (diff) | |
| download | rust-ecb2d5c43dc0f8bed05e23b6d84396457a376d4e.tar.gz rust-ecb2d5c43dc0f8bed05e23b6d84396457a376d4e.zip | |
diagnostics: fix borrowck suggestions for if/while let conditionals
This code detects the case where one of the borrows is inside the let init expr while the other end is not. If that happens, we don't want to suggest adding a semicolon, because it won't work.
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/alloc_system.rs')
0 files changed, 0 insertions, 0 deletions
