rust/compiler/rustc_symbol_mangling/src/errors.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
289 B
Rust
Raw Normal View History

//! 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,
}