make "expected paren or brace" error translatable

This commit is contained in:
Tshepang Mbambo 2024-03-20 14:31:05 +02:00
parent b7dcabe55e
commit 3e8ff90935
3 changed files with 16 additions and 3 deletions

View file

@ -448,3 +448,11 @@ pub struct InvalidFragmentSpecifier {
pub fragment: Ident,
pub help: String,
}
#[derive(Diagnostic)]
#[diag(expand_expected_paren_or_brace)]
pub struct ExpectedParenOrBrace<'a> {
#[primary_span]
pub span: Span,
pub token: Cow<'a, str>,
}