1
Fork 0

ADD - migrate InvalidDefPath to new diagnostics infra

This commit is contained in:
Jhonny Bill Mena 2022-08-21 00:51:33 -04:00
parent bd83bbc93a
commit 8f5fada86d
3 changed files with 15 additions and 3 deletions

View file

@ -26,3 +26,11 @@ pub struct AltInvalidTraitItem {
pub span: Span,
pub alt_demangling_formatted: String,
}
#[derive(SessionDiagnostic)]
#[error(symbol_mangling::invalid_def_path)]
pub struct InvalidDefPath {
#[primary_span]
pub span: Span,
pub def_path: String,
}