Skip to content

Commit 01f5770

Browse files
committed
fmt
Signed-off-by: Karan Janthe <[email protected]>
1 parent e6982b4 commit 01f5770

File tree

1 file changed

+8
-23
lines changed
  • compiler/rustc_codegen_llvm/src/llvm

1 file changed

+8
-23
lines changed

compiler/rustc_codegen_llvm/src/llvm/ffi.rs

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2135,7 +2135,7 @@ unsafe extern "C" {
21352135
SPFlags: DISPFlags,
21362136
MaybeFn: Option<&'a Value>,
21372137
TParam: &'a DIArray,
2138-
Decl: Option<&'a DIDescriptor>,
2138+
Decl: Option<&'a DIDescriptor>,
21392139
) -> &'a DISubprogram;
21402140

21412141
pub(crate) fn LLVMRustDIBuilderCreateMethod<'a>(
@@ -2688,19 +2688,6 @@ unsafe extern "C" {
26882688

26892689
// Type Tree Support for Autodiff
26902690

2691-
2692-
2693-
2694-
2695-
2696-
2697-
2698-
2699-
2700-
2701-
2702-
2703-
27042691
#[repr(u32)]
27052692
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
27062693
pub(crate) enum CConcreteType {
@@ -2721,12 +2708,6 @@ pub(crate) struct EnzymeTypeTree {
27212708
_unused: [u8; 0],
27222709
}
27232710

2724-
2725-
2726-
2727-
2728-
2729-
27302711
// TypeTree wrapper for Rust-side type safety and memory management
27312712
pub(crate) struct TypeTree {
27322713
pub(crate) inner: CTypeTreeRef,
@@ -2752,7 +2733,13 @@ impl TypeTree {
27522733
}
27532734

27542735
#[must_use]
2755-
pub(crate) fn shift(self, layout: &str, offset: isize, max_size: isize, add_offset: usize) -> Self {
2736+
pub(crate) fn shift(
2737+
self,
2738+
layout: &str,
2739+
offset: isize,
2740+
max_size: isize,
2741+
add_offset: usize,
2742+
) -> Self {
27562743
let layout = std::ffi::CString::new(layout).unwrap();
27572744

27582745
unsafe {
@@ -2803,5 +2790,3 @@ impl Drop for TypeTree {
28032790
unsafe { EnzymeFreeTypeTree(self.inner) }
28042791
}
28052792
}
2806-
2807-

0 commit comments

Comments
 (0)