Skip to content

Commit af2164d

Browse files
author
bors-servo
authored
Auto merge of #1031 - emilio:warn-stderr, r=fitzgen
lib: Print warnings to stderr instead of stdout. Seems like the right thing to do, and allows me to test stuff piping to rustc instead of saving to a file.
2 parents 053fb1d + fb54150 commit af2164d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1692,7 +1692,7 @@ fn parse(context: &mut BindgenContext) -> Result<(), ()> {
16921692
for d in context.translation_unit().diags().iter() {
16931693
let msg = d.format();
16941694
let is_err = d.severity() >= CXDiagnostic_Error;
1695-
println!("{}, err: {}", msg, is_err);
1695+
eprintln!("{}, err: {}", msg, is_err);
16961696
any_error |= is_err;
16971697
}
16981698

0 commit comments

Comments
 (0)