@@ -3,7 +3,7 @@ use std::{
33 path:: { Path , PathBuf } ,
44} ;
55
6- use rustc_errors:: { error_code, ErrorGuaranteed , SessionDiagnostic } ;
6+ use rustc_errors:: { error_code, DiagnosticHandler , ErrorGuaranteed } ;
77use rustc_macros:: SessionDiagnostic ;
88use rustc_session:: config;
99use rustc_span:: { sym, Span , Symbol } ;
@@ -421,7 +421,7 @@ pub(crate) struct MultipleCandidates {
421421 pub candidates : Vec < PathBuf > ,
422422}
423423
424- impl SessionDiagnostic < ' _ > for MultipleCandidates {
424+ impl DiagnosticHandler < ' _ > for MultipleCandidates {
425425 fn into_diagnostic (
426426 self ,
427427 handler : & ' _ rustc_errors:: Handler ,
@@ -537,7 +537,7 @@ pub struct InvalidMetadataFiles {
537537 pub crate_rejections : Vec < String > ,
538538}
539539
540- impl SessionDiagnostic < ' _ > for InvalidMetadataFiles {
540+ impl DiagnosticHandler < ' _ > for InvalidMetadataFiles {
541541 fn into_diagnostic (
542542 self ,
543543 handler : & ' _ rustc_errors:: Handler ,
@@ -565,7 +565,7 @@ pub struct CannotFindCrate {
565565 pub locator_triple : TargetTriple ,
566566}
567567
568- impl SessionDiagnostic < ' _ > for CannotFindCrate {
568+ impl DiagnosticHandler < ' _ > for CannotFindCrate {
569569 fn into_diagnostic (
570570 self ,
571571 handler : & ' _ rustc_errors:: Handler ,
0 commit comments