diff options
| author | Kivooeo <Kivooeo123@gmail.com> | 2025-07-26 06:21:22 +0500 |
|---|---|---|
| committer | Kivooeo <Kivooeo123@gmail.com> | 2025-07-28 06:08:48 +0500 |
| commit | 43725ed819c57b86b32a66c40572246b1f5b8952 (patch) | |
| tree | 52149f83843b22ea6b0e039662a1a7348ce360e5 /compiler/rustc_codegen_llvm/src/back | |
| parent | a955f1cd09a027363729ceed919952d09f76f28e (diff) | |
| download | rust-43725ed819c57b86b32a66c40572246b1f5b8952.tar.gz rust-43725ed819c57b86b32a66c40572246b1f5b8952.zip | |
use let chains in ast, borrowck, codegen, const_eval
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/back')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/back/lto.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_codegen_llvm/src/back/lto.rs b/compiler/rustc_codegen_llvm/src/back/lto.rs index 767835c34f0..657513991ac 100644 --- a/compiler/rustc_codegen_llvm/src/back/lto.rs +++ b/compiler/rustc_codegen_llvm/src/back/lto.rs @@ -505,10 +505,10 @@ fn thin_lto( // Save the current ThinLTO import information for the next compilation // session, overwriting the previous serialized data (if any). - if let Some(path) = key_map_path { - if let Err(err) = curr_key_map.save_to_file(&path) { - return Err(write::llvm_err(dcx, LlvmError::WriteThinLtoKey { err })); - } + if let Some(path) = key_map_path + && let Err(err) = curr_key_map.save_to_file(&path) + { + return Err(write::llvm_err(dcx, LlvmError::WriteThinLtoKey { err })); } Ok((opt_jobs, copy_jobs)) |
