Skip to content

Commit d4ff4b5

Browse files
committed
remove BindgenState from dump_preprocessed_input
1 parent f93618f commit d4ff4b5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/lib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1549,8 +1549,6 @@ impl Builder {
15491549
/// issues. The resulting file will be named something like `__bindgen.i` or
15501550
/// `__bindgen.ii`
15511551
pub fn dump_preprocessed_input(&self) -> io::Result<()> {
1552-
let state = BindgenState::build(&self.options);
1553-
15541552
let clang =
15551553
clang_sys::support::Clang::find(None, &[]).ok_or_else(|| {
15561554
io::Error::new(
@@ -1564,7 +1562,7 @@ impl Builder {
15641562
let mut wrapper_contents = String::new();
15651563

15661564
// Whether we are working with C or C++ inputs.
1567-
let mut is_cpp = args_are_cpp(&state.clang_args);
1565+
let mut is_cpp = args_are_cpp(&self.options.clang_args);
15681566

15691567
// For each input header, add `#include "$header"`.
15701568
for header in &self.options.input_headers {
@@ -1605,7 +1603,7 @@ impl Builder {
16051603
.arg(&wrapper_path)
16061604
.stdout(Stdio::piped());
16071605

1608-
for a in &state.clang_args {
1606+
for a in &self.options.clang_args {
16091607
cmd.arg(a);
16101608
}
16111609

0 commit comments

Comments
 (0)