Skip to content

Commit f91fea4

Browse files
Fix warnings when not using the master feature
1 parent 6d3a776 commit f91fea4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/builder.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ use std::convert::TryFrom;
44
use std::ops::Deref;
55

66
use gccjit::{
7-
BinaryOp, Block, ComparisonOp, Context, Function, FunctionType, LValue, Location, RValue,
8-
ToRValue, Type, UnaryOp,
7+
BinaryOp, Block, ComparisonOp, Context, Function, LValue, Location, RValue, ToRValue, Type,
8+
UnaryOp,
99
};
1010
use rustc_abi as abi;
1111
use rustc_abi::{Align, HasDataLayout, Size, TargetDataLayout, WrappingRange};
@@ -785,7 +785,7 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
785785
let f128_type = self.type_f128();
786786
let fmodf128 = self.context.new_function(
787787
None,
788-
FunctionType::Extern,
788+
gccjit::FunctionType::Extern,
789789
f128_type,
790790
&[
791791
self.context.new_parameter(None, f128_type, "a"),

src/intrinsic/llvm.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1556,4 +1556,5 @@ pub fn intrinsic<'gcc, 'tcx>(name: &str, cx: &CodegenCx<'gcc, 'tcx>) -> Function
15561556
func
15571557
}
15581558

1559+
#[cfg(feature = "master")]
15591560
include!("archs.rs");

0 commit comments

Comments
 (0)