about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example/alloc_system.rs
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2025-02-01 14:35:18 -0700
committerMichael Howell <michael@notriddle.com>2025-02-01 14:39:43 -0700
commitecb2d5c43dc0f8bed05e23b6d84396457a376d4e (patch)
tree24a3b9e3b37731e0ee9528733404b0967dd06851 /compiler/rustc_codegen_gcc/example/alloc_system.rs
parente08cd3cf05e5bfa3323cc21ea8f81f4a15a2f969 (diff)
downloadrust-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