fix(fmt): Try to comply to the format requirement
This commit is contained in:
parent
ad97b8c061
commit
091de55db8
4 changed files with 5 additions and 21 deletions
|
|
@ -15,10 +15,7 @@ use crate::{context::CodegenCx, errors::TiedTargetFeatures};
|
|||
/// Get GCC attribute for the provided inline heuristic.
|
||||
#[cfg(feature = "master")]
|
||||
#[inline]
|
||||
fn inline_attr<'gcc>(
|
||||
cx: &CodegenCx<'gcc, '_>,
|
||||
inline: InlineAttr,
|
||||
) -> Option<FnAttribute<'gcc>> {
|
||||
fn inline_attr<'gcc>(cx: &CodegenCx<'gcc, '_>, inline: InlineAttr) -> Option<FnAttribute<'gcc>> {
|
||||
match inline {
|
||||
InlineAttr::Hint => Some(FnAttribute::Inline),
|
||||
InlineAttr::Always => Some(FnAttribute::AlwaysInline),
|
||||
|
|
|
|||
|
|
@ -506,10 +506,7 @@ impl<'gcc, 'tcx> BackendTypes for Builder<'_, 'gcc, 'tcx> {
|
|||
type DIVariable = <CodegenCx<'gcc, 'tcx> as BackendTypes>::DIVariable;
|
||||
}
|
||||
|
||||
fn set_rvalue_location<'gcc>(
|
||||
bx: &mut Builder<'_, 'gcc, '_>,
|
||||
rvalue: RValue<'gcc>,
|
||||
) -> RValue<'gcc> {
|
||||
fn set_rvalue_location<'gcc>(bx: &mut Builder<'_, 'gcc, '_>, rvalue: RValue<'gcc>) -> RValue<'gcc> {
|
||||
if bx.location.is_some() {
|
||||
#[cfg(feature = "master")]
|
||||
rvalue.set_location(bx.location.unwrap());
|
||||
|
|
|
|||
|
|
@ -18,11 +18,7 @@ use crate::context::CodegenCx;
|
|||
use crate::errors::InvalidMinimumAlignment;
|
||||
use crate::type_of::LayoutGccExt;
|
||||
|
||||
fn set_global_alignment<'gcc>(
|
||||
cx: &CodegenCx<'gcc, '_>,
|
||||
gv: LValue<'gcc>,
|
||||
mut align: Align,
|
||||
) {
|
||||
fn set_global_alignment<'gcc>(cx: &CodegenCx<'gcc, '_>, gv: LValue<'gcc>, mut align: Align) {
|
||||
// The target may require greater alignment for globals than the type does.
|
||||
// Note: GCC and Clang also allow `__attribute__((aligned))` on variables,
|
||||
// which can force it to be smaller. Rust doesn't support this yet.
|
||||
|
|
|
|||
|
|
@ -39,10 +39,7 @@ use crate::context::CodegenCx;
|
|||
use crate::intrinsic::simd::generic_simd_intrinsic;
|
||||
use crate::type_of::LayoutGccExt;
|
||||
|
||||
fn get_simple_intrinsic<'gcc>(
|
||||
cx: &CodegenCx<'gcc, '_>,
|
||||
name: Symbol,
|
||||
) -> Option<Function<'gcc>> {
|
||||
fn get_simple_intrinsic<'gcc>(cx: &CodegenCx<'gcc, '_>, name: Symbol) -> Option<Function<'gcc>> {
|
||||
let gcc_name = match name {
|
||||
sym::sqrtf32 => "sqrtf",
|
||||
sym::sqrtf64 => "sqrt",
|
||||
|
|
@ -586,10 +583,7 @@ impl<'gcc, 'tcx> ArgAbiExt<'gcc, 'tcx> for ArgAbi<'tcx, Ty<'tcx>> {
|
|||
}
|
||||
}
|
||||
|
||||
fn int_type_width_signed<'tcx>(
|
||||
ty: Ty<'tcx>,
|
||||
cx: &CodegenCx<'_, 'tcx>,
|
||||
) -> Option<(u64, bool)> {
|
||||
fn int_type_width_signed<'tcx>(ty: Ty<'tcx>, cx: &CodegenCx<'_, 'tcx>) -> Option<(u64, bool)> {
|
||||
match *ty.kind() {
|
||||
ty::Int(t) => Some((
|
||||
match t {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue