@@ -3,7 +3,7 @@ use std::{
3
3
path:: { Path , PathBuf } ,
4
4
} ;
5
5
6
- use rustc_errors:: { error_code, ErrorGuaranteed , SessionDiagnostic } ;
6
+ use rustc_errors:: { error_code, DiagnosticHandler , ErrorGuaranteed } ;
7
7
use rustc_macros:: SessionDiagnostic ;
8
8
use rustc_session:: config;
9
9
use rustc_span:: { sym, Span , Symbol } ;
@@ -421,7 +421,7 @@ pub(crate) struct MultipleCandidates {
421
421
pub candidates : Vec < PathBuf > ,
422
422
}
423
423
424
- impl SessionDiagnostic < ' _ > for MultipleCandidates {
424
+ impl DiagnosticHandler < ' _ > for MultipleCandidates {
425
425
fn into_diagnostic (
426
426
self ,
427
427
handler : & ' _ rustc_errors:: Handler ,
@@ -537,7 +537,7 @@ pub struct InvalidMetadataFiles {
537
537
pub crate_rejections : Vec < String > ,
538
538
}
539
539
540
- impl SessionDiagnostic < ' _ > for InvalidMetadataFiles {
540
+ impl DiagnosticHandler < ' _ > for InvalidMetadataFiles {
541
541
fn into_diagnostic (
542
542
self ,
543
543
handler : & ' _ rustc_errors:: Handler ,
@@ -565,7 +565,7 @@ pub struct CannotFindCrate {
565
565
pub locator_triple : TargetTriple ,
566
566
}
567
567
568
- impl SessionDiagnostic < ' _ > for CannotFindCrate {
568
+ impl DiagnosticHandler < ' _ > for CannotFindCrate {
569
569
fn into_diagnostic (
570
570
self ,
571
571
handler : & ' _ rustc_errors:: Handler ,
0 commit comments