diff options
| author | est31 <MTest31@outlook.com> | 2022-01-18 20:26:13 +0100 |
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2022-01-18 21:37:57 +0100 |
| commit | b2dd1377c7b2624391d82b0eee2c988e090dd311 (patch) | |
| tree | 41d41ba13a5ca8a95d7ab95ae362d2bb3ac23f52 /compiler/rustc_codegen_llvm/src/debuginfo | |
| parent | 9ad5d82f822b3cb67637f11be2e65c5662b66ec0 (diff) | |
| download | rust-b2dd1377c7b2624391d82b0eee2c988e090dd311.tar.gz rust-b2dd1377c7b2624391d82b0eee2c988e090dd311.zip | |
Use let_else in even more places
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/debuginfo')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs b/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs index 3d5fd2f354e..c90e43a4060 100644 --- a/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs +++ b/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs @@ -1493,7 +1493,7 @@ fn generator_layout_and_saved_local_names<'tcx>( let state_arg = mir::Local::new(1); for var in &body.var_debug_info { - let place = if let mir::VarDebugInfoContents::Place(p) = var.value { p } else { continue }; + let mir::VarDebugInfoContents::Place(place) = &var.value else { continue }; if place.local != state_arg { continue; } |
