Skip to content

Commit 091de55

Browse files
committed
fix(fmt): Try to comply to the format requirement
1 parent ad97b8c commit 091de55

File tree

4 files changed

+5
-21
lines changed

4 files changed

+5
-21
lines changed

src/attributes.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ use crate::{context::CodegenCx, errors::TiedTargetFeatures};
1515
/// Get GCC attribute for the provided inline heuristic.
1616
#[cfg(feature = "master")]
1717
#[inline]
18-
fn inline_attr<'gcc>(
19-
cx: &CodegenCx<'gcc, '_>,
20-
inline: InlineAttr,
21-
) -> Option<FnAttribute<'gcc>> {
18+
fn inline_attr<'gcc>(cx: &CodegenCx<'gcc, '_>, inline: InlineAttr) -> Option<FnAttribute<'gcc>> {
2219
match inline {
2320
InlineAttr::Hint => Some(FnAttribute::Inline),
2421
InlineAttr::Always => Some(FnAttribute::AlwaysInline),

src/builder.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -506,10 +506,7 @@ impl<'gcc, 'tcx> BackendTypes for Builder<'_, 'gcc, 'tcx> {
506506
type DIVariable = <CodegenCx<'gcc, 'tcx> as BackendTypes>::DIVariable;
507507
}
508508

509-
fn set_rvalue_location<'gcc>(
510-
bx: &mut Builder<'_, 'gcc, '_>,
511-
rvalue: RValue<'gcc>,
512-
) -> RValue<'gcc> {
509+
fn set_rvalue_location<'gcc>(bx: &mut Builder<'_, 'gcc, '_>, rvalue: RValue<'gcc>) -> RValue<'gcc> {
513510
if bx.location.is_some() {
514511
#[cfg(feature = "master")]
515512
rvalue.set_location(bx.location.unwrap());

src/consts.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@ use crate::context::CodegenCx;
1818
use crate::errors::InvalidMinimumAlignment;
1919
use crate::type_of::LayoutGccExt;
2020

21-
fn set_global_alignment<'gcc>(
22-
cx: &CodegenCx<'gcc, '_>,
23-
gv: LValue<'gcc>,
24-
mut align: Align,
25-
) {
21+
fn set_global_alignment<'gcc>(cx: &CodegenCx<'gcc, '_>, gv: LValue<'gcc>, mut align: Align) {
2622
// The target may require greater alignment for globals than the type does.
2723
// Note: GCC and Clang also allow `__attribute__((aligned))` on variables,
2824
// which can force it to be smaller. Rust doesn't support this yet.

src/intrinsic/mod.rs

+2-8
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,7 @@ use crate::context::CodegenCx;
3939
use crate::intrinsic::simd::generic_simd_intrinsic;
4040
use crate::type_of::LayoutGccExt;
4141

42-
fn get_simple_intrinsic<'gcc>(
43-
cx: &CodegenCx<'gcc, '_>,
44-
name: Symbol,
45-
) -> Option<Function<'gcc>> {
42+
fn get_simple_intrinsic<'gcc>(cx: &CodegenCx<'gcc, '_>, name: Symbol) -> Option<Function<'gcc>> {
4643
let gcc_name = match name {
4744
sym::sqrtf32 => "sqrtf",
4845
sym::sqrtf64 => "sqrt",
@@ -586,10 +583,7 @@ impl<'gcc, 'tcx> ArgAbiExt<'gcc, 'tcx> for ArgAbi<'tcx, Ty<'tcx>> {
586583
}
587584
}
588585

589-
fn int_type_width_signed<'tcx>(
590-
ty: Ty<'tcx>,
591-
cx: &CodegenCx<'_, 'tcx>,
592-
) -> Option<(u64, bool)> {
586+
fn int_type_width_signed<'tcx>(ty: Ty<'tcx>, cx: &CodegenCx<'_, 'tcx>) -> Option<(u64, bool)> {
593587
match *ty.kind() {
594588
ty::Int(t) => Some((
595589
match t {

0 commit comments

Comments
 (0)