summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2017-09-25 12:12:13 -0500
committerGitHub <noreply@github.com>2017-09-25 12:12:13 -0500
commitaf2164db64f2917beea071a2c0eae34b5f392898 (patch)
treee8ffc9a95b0acb461cf88a2406db196b60458321
parent053fb1debe276e55e78dda3b28fa7568a456ab94 (diff)
parentfb541503968a2d00fc9e3b5231214765fa618f7f (diff)
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.
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index dbb9c268..85e43979 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1692,7 +1692,7 @@ fn parse(context: &mut BindgenContext) -> Result<(), ()> {
for d in context.translation_unit().diags().iter() {
let msg = d.format();
let is_err = d.severity() >= CXDiagnostic_Error;
- println!("{}, err: {}", msg, is_err);
+ eprintln!("{}, err: {}", msg, is_err);
any_error |= is_err;
}