File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -204,7 +204,10 @@ impl AnnotateRsEmitterWriter {
204204 if let Some ( snippet) = converter. to_annotation_snippet ( ) {
205205 let dl = DisplayList :: from ( snippet) ;
206206 let dlf = DisplayListFormatter :: new ( true ) ;
207- print ! ( "{}" , dlf. format( & dl) ) ;
207+ // FIXME(#59346): Figure out if we can _always_ print to stderr or not.
208+ // `emitter.rs` has the `Destination` enum that lists various possible output
209+ // destinations.
210+ eprint ! ( "{}" , dlf. format( & dl) ) ;
208211 } ;
209212 }
210213}
Original file line number Diff line number Diff line change 11// compile-flags: --error-format human-annotate-rs
22
33pub fn main ( ) {
4- let x: Iter ;
4+ let x: Iter ; //~ ERROR cannot find type `Iter` in this scope
55}
Original file line number Diff line number Diff line change 1+ error[E0412]: cannot find type `Iter` in this scope
2+ --> $DIR/missing-type.rs:4:11
3+ |
4+ 4 | let x: Iter;
5+ | ^^^^ not found in this scope
6+ |
You can’t perform that action at this time.
0 commit comments