Skip to content

Commit aad9b6e

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

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
@@ -2142,7 +2142,7 @@ unsafe extern "C" {
21422142
SPFlags: DISPFlags,
21432143
MaybeFn: Option<&'a Value>,
21442144
TParam: &'a DIArray,
2145-
Decl: Option<&'a DIDescriptor>,
2145+
Decl: Option<&'a DIDescriptor>,
21462146
) -> &'a DISubprogram;
21472147

21482148
pub(crate) fn LLVMRustDIBuilderCreateMethod<'a>(
@@ -2697,19 +2697,6 @@ unsafe extern "C" {
26972697

26982698
// Type Tree Support for Autodiff
26992699

2700-
2701-
2702-
2703-
2704-
2705-
2706-
2707-
2708-
2709-
2710-
2711-
2712-
27132700
#[repr(u32)]
27142701
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
27152702
pub(crate) enum CConcreteType {
@@ -2730,12 +2717,6 @@ pub(crate) struct EnzymeTypeTree {
27302717
_unused: [u8; 0],
27312718
}
27322719

2733-
2734-
2735-
2736-
2737-
2738-
27392720
// TypeTree wrapper for Rust-side type safety and memory management
27402721
pub(crate) struct TypeTree {
27412722
pub(crate) inner: CTypeTreeRef,
@@ -2761,7 +2742,13 @@ impl TypeTree {
27612742
}
27622743

27632744
#[must_use]
2764-
pub(crate) fn shift(self, layout: &str, offset: isize, max_size: isize, add_offset: usize) -> Self {
2745+
pub(crate) fn shift(
2746+
self,
2747+
layout: &str,
2748+
offset: isize,
2749+
max_size: isize,
2750+
add_offset: usize,
2751+
) -> Self {
27652752
let layout = std::ffi::CString::new(layout).unwrap();
27662753

27672754
unsafe {
@@ -2812,5 +2799,3 @@ impl Drop for TypeTree {
28122799
unsafe { EnzymeFreeTypeTree(self.inner) }
28132800
}
28142801
}
2815-
2816-

0 commit comments

Comments
 (0)