Skip to content

--use-core bindings refers std #1015

@pepyakin

Description

@pepyakin

Input C/C++ Header

// bindgen-flags: --impl-debug --use-core --raw-line "extern crate core;"

class C {
    bool a: 1;
    bool b: 7;
    int large_array[50];
};

Bindgen Invocation

See bindgen-flags above

Actual Results

// ... stripped

extern crate core;

#[repr(C)]
#[derive(Copy)]
pub struct C {
    pub _bitfield_1: u8,
    pub large_array: [::std::os::raw::c_int; 50usize]
}

// stripped ...

Expected Results

Despite that --use-core flag is provided large_array field having a type which refers std.
I expect that either error is printed stating that bindings couldn't be generated with --use-core or bindings which don't use std generated.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions