about summary refs log tree commit diff
path: root/src/debuginfo.rs
diff options
context:
space:
mode:
authorantoyo <antoyo@users.noreply.github.com>2025-05-09 07:57:24 -0400
committerGitHub <noreply@github.com>2025-05-09 07:57:24 -0400
commitcfe88fa8318ecf6aa2947a6314c0dcdc830e7de0 (patch)
treedcfda890a817f4405d112aa133f48a073e9929f9 /src/debuginfo.rs
parent633ecc82d604270f875efa4fd98d7279d3db870c (diff)
parent390fc73ae737ef99fa109add85bbf60e53f1a983 (diff)
Merge pull request #663 from GuillaumeGomez/edition-2024
Switch to 2024 edition and remove `let_chains` feature
Diffstat (limited to 'src/debuginfo.rs')
-rw-r--r--src/debuginfo.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/debuginfo.rs b/src/debuginfo.rs
index f3ced864395..e0597d0030d 100644
--- a/src/debuginfo.rs
+++ b/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
+        }
     }
 }