File tree Expand file tree Collapse file tree 4 files changed +7
-0
lines changed Expand file tree Collapse file tree 4 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -2183,6 +2183,7 @@ name = "rustc_errors"
21832183version = " 0.0.0"
21842184dependencies = [
21852185 " atty 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)" ,
2186+ " log 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)" ,
21862187 " rustc_cratesio_shim 0.0.0" ,
21872188 " rustc_data_structures 0.0.0" ,
21882189 " serialize 0.0.0" ,
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ path = "lib.rs"
99crate-type = [" dylib" ]
1010
1111[dependencies ]
12+ log = " 0.4"
1213serialize = { path = " ../libserialize" }
1314syntax_pos = { path = " ../libsyntax_pos" }
1415rustc_data_structures = { path = " ../librustc_data_structures" }
Original file line number Diff line number Diff line change @@ -108,6 +108,9 @@ impl<'a> DiagnosticBuilder<'a> {
108108 diagnostic = :: std:: ptr:: read ( & self . diagnostic ) ;
109109 :: std:: mem:: forget ( self ) ;
110110 } ;
111+ // Logging here is useful to help track down where in logs an error was
112+ // actually emitted.
113+ debug ! ( "buffer: diagnostic={:?}" , diagnostic) ;
111114 buffered_diagnostics. push ( diagnostic) ;
112115 }
113116
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ extern crate atty;
2323extern crate termcolor;
2424#[ cfg( unix) ]
2525extern crate libc;
26+ #[ macro_use]
27+ extern crate log;
2628extern crate rustc_data_structures;
2729extern crate serialize as rustc_serialize;
2830extern crate syntax_pos;
You can’t perform that action at this time.
0 commit comments