Skip to content

Commit

Permalink
UPDATE - to support diag introduced in PR rust-lang#100765
Browse files Browse the repository at this point in the history
  • Loading branch information
JhonnyBillM committed Aug 30, 2022
1 parent ef2f6ab commit 3ee6946
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions compiler/rustc_symbol_mangling/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,31 @@ use rustc_macros::SessionDiagnostic;
use rustc_span::Span;

#[derive(SessionDiagnostic)]
#[error(symbol_mangling::invalid_symbol_name)]
#[diag(symbol_mangling::invalid_symbol_name)]
pub struct InvalidSymbolName {
#[primary_span]
pub span: Span,
pub mangled_formatted: String,
}

#[derive(SessionDiagnostic)]
#[error(symbol_mangling::invalid_trait_item)]
#[diag(symbol_mangling::invalid_trait_item)]
pub struct InvalidTraitItem {
#[primary_span]
pub span: Span,
pub demangling_formatted: String,
}

#[derive(SessionDiagnostic)]
#[error(symbol_mangling::alt_invalid_trait_item)]
#[diag(symbol_mangling::alt_invalid_trait_item)]
pub struct AltInvalidTraitItem {
#[primary_span]
pub span: Span,
pub alt_demangling_formatted: String,
}

#[derive(SessionDiagnostic)]
#[error(symbol_mangling::invalid_def_path)]
#[diag(symbol_mangling::invalid_def_path)]
pub struct InvalidDefPath {
#[primary_span]
pub span: Span,
Expand Down

0 comments on commit 3ee6946

Please sign in to comment.