about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/src/debuginfo.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-05-17 02:50:33 +0000
committerbors <bors@rust-lang.org>2025-05-17 02:50:33 +0000
commita69bc17fb8026bdc0d24bb1896ff95f0eba1da4e (patch)
treebfc30fa4fe6f54b099d75803732deb0e08869c1a /compiler/rustc_codegen_gcc/src/debuginfo.rs
parentc8bda740ea5c21af42fe4afa907f89805ab2b905 (diff)
parentd5c5a8251d0a9477ff6383638d5a8fdb2e109819 (diff)
downloadrust-a69bc17fb8026bdc0d24bb1896ff95f0eba1da4e.tar.gz
rust-a69bc17fb8026bdc0d24bb1896ff95f0eba1da4e.zip
Auto merge of #141002 - GuillaumeGomez:subtree-update_cg_gcc_2025-05-14, r=GuillaumeGomez
Subtree update GCC backend 2025 05 14

cc `@antoyo`
Diffstat (limited to 'compiler/rustc_codegen_gcc/src/debuginfo.rs')
-rw-r--r--compiler/rustc_codegen_gcc/src/debuginfo.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/rustc_codegen_gcc/src/debuginfo.rs b/compiler/rustc_codegen_gcc/src/debuginfo.rs
index f3ced864395..e0597d0030d 100644
--- a/compiler/rustc_codegen_gcc/src/debuginfo.rs
+++ b/compiler/rustc_codegen_gcc/src/debuginfo.rs
@@ -289,7 +289,7 @@ impl<'gcc, 'tcx> DebugInfoCodegenMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
     ) -> Self::DILocation {
         let pos = span.lo();
         let DebugLoc { file, line, col } = self.lookup_debug_loc(pos);
-        let loc = match file.name {
+        match file.name {
             rustc_span::FileName::Real(ref name) => match *name {
                 rustc_span::RealFileName::LocalPath(ref name) => {
                     if let Some(name) = name.to_str() {
@@ -314,7 +314,6 @@ impl<'gcc, 'tcx> DebugInfoCodegenMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
                 }
             },
             _ => Location::null(),
-        };
-        loc
+        }
     }
 }