Skip to content

Commit 1c69851

Browse files
committed
codegen: Fix the build in older rustc versions.
1 parent f5394b3 commit 1c69851

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/codegen/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -2458,12 +2458,12 @@ mod utils {
24582458
use aster;
24592459
use ir::context::{BindgenContext, ItemId};
24602460
use ir::item::{Item, ItemCanonicalPath};
2461+
use ir::function::FunctionSig;
24612462
use ir::ty::TypeKind;
24622463
use std::mem;
24632464
use syntax::ast;
24642465
use syntax::ptr::P;
24652466

2466-
24672467
pub fn prepend_objc_header(ctx: &BindgenContext,
24682468
result: &mut Vec<P<ast::Item>>) {
24692469
let use_objc = if ctx.options().objc_extern_crate {
@@ -2745,7 +2745,7 @@ mod utils {
27452745
}
27462746

27472747
pub fn fnsig_return_ty(ctx: &BindgenContext,
2748-
sig: &super::FunctionSig)
2748+
sig: &FunctionSig)
27492749
-> ast::FunctionRetTy {
27502750
let return_item = ctx.resolve_item(sig.return_type());
27512751
if let TypeKind::Void = *return_item.kind().expect_type().kind() {
@@ -2756,7 +2756,7 @@ mod utils {
27562756
}
27572757

27582758
pub fn fnsig_arguments(ctx: &BindgenContext,
2759-
sig: &super::FunctionSig)
2759+
sig: &FunctionSig)
27602760
-> Vec<ast::Arg> {
27612761
use super::ToPtr;
27622762
let mut unnamed_arguments = 0;

0 commit comments

Comments
 (0)