diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2024-06-26 11:34:31 +1000 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2024-06-30 18:55:39 +1000 |
| commit | ad575b093bee669258b1d4914bccf56c5b9d1e82 (patch) | |
| tree | 9b95210bff3f2ce3e837605f48353251b3326cf5 /compiler/rustc_codegen_gcc | |
| parent | 716752ebe6974b5c6ab9b34b894e075f3e4a4b1e (diff) | |
| download | rust-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
