diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-09-25 12:12:13 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-25 12:12:13 -0500 |
commit | af2164db64f2917beea071a2c0eae34b5f392898 (patch) | |
tree | e8ffc9a95b0acb461cf88a2406db196b60458321 | |
parent | 053fb1debe276e55e78dda3b28fa7568a456ab94 (diff) | |
parent | fb541503968a2d00fc9e3b5231214765fa618f7f (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.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |