make "expected paren or brace" error translatable
This commit is contained in:
parent
b7dcabe55e
commit
3e8ff90935
3 changed files with 16 additions and 3 deletions
|
@ -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>,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue