File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1549,8 +1549,6 @@ impl Builder {
1549
1549
/// issues. The resulting file will be named something like `__bindgen.i` or
1550
1550
/// `__bindgen.ii`
1551
1551
pub fn dump_preprocessed_input ( & self ) -> io:: Result < ( ) > {
1552
- let state = BindgenState :: build ( & self . options ) ;
1553
-
1554
1552
let clang =
1555
1553
clang_sys:: support:: Clang :: find ( None , & [ ] ) . ok_or_else ( || {
1556
1554
io:: Error :: new (
@@ -1564,7 +1562,7 @@ impl Builder {
1564
1562
let mut wrapper_contents = String :: new ( ) ;
1565
1563
1566
1564
// 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 ) ;
1568
1566
1569
1567
// For each input header, add `#include "$header"`.
1570
1568
for header in & self . options . input_headers {
@@ -1605,7 +1603,7 @@ impl Builder {
1605
1603
. arg ( & wrapper_path)
1606
1604
. stdout ( Stdio :: piped ( ) ) ;
1607
1605
1608
- for a in & state . clang_args {
1606
+ for a in & self . options . clang_args {
1609
1607
cmd. arg ( a) ;
1610
1608
}
1611
1609
You can’t perform that action at this time.
0 commit comments