ADD - migrate InvalidDefPath to new diagnostics infra
This commit is contained in:
parent
bd83bbc93a
commit
8f5fada86d
3 changed files with 15 additions and 3 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue