@@ -21,7 +21,7 @@ use tracing::{debug, instrument};
21
21
22
22
use crate :: borrow_set:: BorrowSet ;
23
23
use crate :: consumers:: ConsumerOptions ;
24
- use crate :: diagnostics:: { BorrowckDiagnosticsBuffer , RegionErrors } ;
24
+ use crate :: diagnostics:: RegionErrors ;
25
25
use crate :: polonius:: PoloniusDiagnosticsContext ;
26
26
use crate :: polonius:: legacy:: {
27
27
PoloniusFacts , PoloniusFactsExt , PoloniusLocationTable , PoloniusOutput ,
@@ -297,7 +297,6 @@ pub(super) fn dump_annotation<'tcx, 'infcx>(
297
297
body : & Body < ' tcx > ,
298
298
regioncx : & RegionInferenceContext < ' tcx > ,
299
299
closure_region_requirements : & Option < ClosureRegionRequirements < ' tcx > > ,
300
- diagnostics_buffer : & mut BorrowckDiagnosticsBuffer < ' infcx , ' tcx > ,
301
300
) {
302
301
let tcx = infcx. tcx ;
303
302
let base_def_id = tcx. typeck_root_def_id ( body. source . def_id ( ) ) ;
@@ -335,13 +334,11 @@ pub(super) fn dump_annotation<'tcx, 'infcx>(
335
334
} else {
336
335
let mut err = infcx. dcx ( ) . struct_span_note ( def_span, "no external requirements" ) ;
337
336
regioncx. annotate ( tcx, & mut err) ;
338
-
339
337
err
340
338
} ;
341
339
342
340
// FIXME(@lcnr): We currently don't dump the inferred hidden types here.
343
-
344
- diagnostics_buffer. buffer_non_error ( err) ;
341
+ err. emit ( ) ;
345
342
}
346
343
347
344
fn for_each_region_constraint < ' tcx > (
0 commit comments