Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 057635b

Browse files
committed
Rustfmt
1 parent 4796207 commit 057635b

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/base.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,7 @@ fn codegen_fn_content(fx: &mut FunctionCx<'_, '_, '_>) {
293293
AssertKind::BoundsCheck { ref len, ref index } => {
294294
let len = codegen_operand(fx, len).load_scalar(fx);
295295
let index = codegen_operand(fx, index).load_scalar(fx);
296-
let location = fx
297-
.get_caller_location(source_info.span)
298-
.load_scalar(fx);
296+
let location = fx.get_caller_location(source_info.span).load_scalar(fx);
299297

300298
codegen_panic_inner(
301299
fx,

src/inline_asm.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,11 @@ pub(crate) fn codegen_inline_asm<'tcx>(
120120

121121
let inline_asm_index = fx.cx.inline_asm_index.get();
122122
fx.cx.inline_asm_index.set(inline_asm_index + 1);
123-
let asm_name =
124-
format!("__inline_asm_{}_n{}", fx.cx.cgu_name.as_str().replace('.', "__").replace('-', "_"), inline_asm_index);
123+
let asm_name = format!(
124+
"__inline_asm_{}_n{}",
125+
fx.cx.cgu_name.as_str().replace('.', "__").replace('-', "_"),
126+
inline_asm_index
127+
);
125128

126129
let generated_asm = asm_gen.generate_asm_wrapper(&asm_name);
127130
fx.cx.global_asm.push_str(&generated_asm);

0 commit comments

Comments
 (0)