about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2024-06-26 11:34:31 +1000
committerZalathar <Zalathar@users.noreply.github.com>2024-06-30 18:55:39 +1000
commitad575b093bee669258b1d4914bccf56c5b9d1e82 (patch)
tree9b95210bff3f2ce3e837605f48353251b3326cf5 /compiler/rustc_codegen_gcc
parent716752ebe6974b5c6ab9b34b894e075f3e4a4b1e (diff)
downloadrust-ad575b093bee669258b1d4914bccf56c5b9d1e82.tar.gz
rust-ad575b093bee669258b1d4914bccf56c5b9d1e82.zip
Replace a magic boolean with enum `DeclareLetBindings`
The new enum `DeclareLetBindings` has three variants:
- `Yes`: Declare `let` bindings as normal, for `if` conditions.
- `No`: Don't declare bindings, for match guards and let-else.
- `LetNotPermitted`: Assert that `let` expressions should not occur.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions