File tree 3 files changed +11
-2
lines changed
3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -204,7 +204,10 @@ impl AnnotateRsEmitterWriter {
204
204
if let Some ( snippet) = converter. to_annotation_snippet ( ) {
205
205
let dl = DisplayList :: from ( snippet) ;
206
206
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) ) ;
208
211
} ;
209
212
}
210
213
}
Original file line number Diff line number Diff line change 1
1
// compile-flags: --error-format human-annotate-rs
2
2
3
3
pub fn main ( ) {
4
- let x: Iter ;
4
+ let x: Iter ; //~ ERROR cannot find type `Iter` in this scope
5
5
}
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