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:
Jhonny Bill Mena 2022-08-27 00:24:13 -04:00
parent 230a8ee364
commit 86f8c4e8e3
7 changed files with 24 additions and 1 deletions

View 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,
}