about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/debuginfo
diff options
context:
space:
mode:
authorMichael Woerister <michaelwoerister@posteo>2022-03-03 12:45:35 +0100
committerMichael Woerister <michaelwoerister@posteo>2022-03-14 16:52:47 +0100
commit07a1194edf01d0a070506f69dc7d70bdc025cdf9 (patch)
treed3c1f169c4065b18615541bb3707b99ff07f9fb1 /compiler/rustc_codegen_llvm/src/debuginfo
parent5144661d6bebdfcff7571c5251796f1b00447506 (diff)
downloadrust-07a1194edf01d0a070506f69dc7d70bdc025cdf9.tar.gz
rust-07a1194edf01d0a070506f69dc7d70bdc025cdf9.zip
debuginfo: Refactor debuginfo generation for types -- Run x.py fmt
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/debuginfo')
-rw-r--r--compiler/rustc_codegen_llvm/src/debuginfo/doc.md2
-rw-r--r--compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs8
2 files changed, 6 insertions, 4 deletions
diff --git a/compiler/rustc_codegen_llvm/src/debuginfo/doc.md b/compiler/rustc_codegen_llvm/src/debuginfo/doc.md
index 22d7f377509..5a8976c6166 100644
--- a/compiler/rustc_codegen_llvm/src/debuginfo/doc.md
+++ b/compiler/rustc_codegen_llvm/src/debuginfo/doc.md
@@ -128,4 +128,4 @@ in the middle of the prologue, however, they are ignored by LLVM's prologue
 detection. The `create_argument_metadata()` and related functions take care
 of linking the `llvm.dbg.declare` instructions to the correct source
 locations even while source location emission is still disabled, so there
-is no need to do anything special with source location handling here.
\ No newline at end of file
+is no need to do anything special with source location handling here.
diff --git a/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs b/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs
index 488dbe3456b..3e2beaecc31 100644
--- a/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs
+++ b/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs
@@ -1022,9 +1022,11 @@ fn build_upvar_field_di_nodes<'ll, 'tcx>(
         }
     };
 
-    debug_assert!(up_var_tys
-        .iter()
-        .all(|&t| t == cx.tcx.normalize_erasing_regions(ParamEnv::reveal_all(), t)));
+    debug_assert!(
+        up_var_tys
+            .iter()
+            .all(|&t| t == cx.tcx.normalize_erasing_regions(ParamEnv::reveal_all(), t))
+    );
 
     let capture_names = closure_saved_names_of_captured_variables(cx.tcx, def_id);
     let layout = cx.layout_of(closure_or_generator_ty);