ADD - InvalidSymbolName to migrate symbol-name({}) error to new diagnostics infraestructure
ADD - dependencies needed to port a module to new Diagnostics infra (rustc_macros, rustc_errors, errors file, and fluent file)
This commit is contained in:
parent
230a8ee364
commit
86f8c4e8e3
7 changed files with 24 additions and 1 deletions
12
compiler/rustc_symbol_mangling/src/errors.rs
Normal file
12
compiler/rustc_symbol_mangling/src/errors.rs
Normal file
|
@ -0,0 +1,12 @@
|
|||
//! Errors emitted by symbol_mangling.
|
||||
|
||||
use rustc_macros::SessionDiagnostic;
|
||||
use rustc_span::Span;
|
||||
|
||||
#[derive(SessionDiagnostic)]
|
||||
#[error(symbol_mangling::invalid_symbol_name)]
|
||||
pub struct InvalidSymbolName<'a> {
|
||||
#[primary_span]
|
||||
pub span: Span,
|
||||
pub mangled_formatted: &'a str,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue