diff options
| author | Tshepang Mbambo <tshepang@gmail.com> | 2024-03-20 14:31:05 +0200 |
|---|---|---|
| committer | Tshepang Mbambo <tshepang@gmail.com> | 2024-03-20 14:31:05 +0200 |
| commit | 3e8ff90935df46ed24a073a1ac2d79c600da2b45 (patch) | |
| tree | 8fa2c5bd58806e74b30523449104ee87c97ea718 /compiler/rustc_expand/src/errors.rs | |
| parent | b7dcabe55e3b915ba9488dc374f752404c2c8945 (diff) | |
| download | rust-3e8ff90935df46ed24a073a1ac2d79c600da2b45.tar.gz rust-3e8ff90935df46ed24a073a1ac2d79c600da2b45.zip | |
make "expected paren or brace" error translatable
Diffstat (limited to 'compiler/rustc_expand/src/errors.rs')
| -rw-r--r-- | compiler/rustc_expand/src/errors.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/compiler/rustc_expand/src/errors.rs b/compiler/rustc_expand/src/errors.rs index fe901603c73..21ce5e1d81e 100644 --- a/compiler/rustc_expand/src/errors.rs +++ b/compiler/rustc_expand/src/errors.rs @@ -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>, +} |
