Fix warnings when not using the master feature

This commit is contained in:
Guillaume Gomez 2025-06-16 14:35:50 +02:00
parent 9848c66a36
commit 05af962fa4
2 changed files with 4 additions and 3 deletions

View file

@ -4,8 +4,8 @@ use std::convert::TryFrom;
use std::ops::Deref;
use gccjit::{
BinaryOp, Block, ComparisonOp, Context, Function, FunctionType, LValue, Location, RValue,
ToRValue, Type, UnaryOp,
BinaryOp, Block, ComparisonOp, Context, Function, LValue, Location, RValue, ToRValue, Type,
UnaryOp,
};
use rustc_abi as abi;
use rustc_abi::{Align, HasDataLayout, Size, TargetDataLayout, WrappingRange};
@ -785,7 +785,7 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
let f128_type = self.type_f128();
let fmodf128 = self.context.new_function(
None,
FunctionType::Extern,
gccjit::FunctionType::Extern,
f128_type,
&[
self.context.new_parameter(None, f128_type, "a"),

View file

@ -1556,4 +1556,5 @@ pub fn intrinsic<'gcc, 'tcx>(name: &str, cx: &CodegenCx<'gcc, 'tcx>) -> Function
func
}
#[cfg(feature = "master")]
include!("archs.rs");