diff options
| author | Tshepang Mbambo <tshepang@gmail.com> | 2024-02-14 05:25:57 +0200 |
|---|---|---|
| committer | Tshepang Mbambo <tshepang@gmail.com> | 2024-02-16 20:15:07 +0200 |
| commit | 3a917cdfcb59b952f130443ececdb6cf98a2ba3b (patch) | |
| tree | a0da56e9c73ef2ff2ba975d78b894c3cf842ca48 /compiler/rustc_expand/src/errors.rs | |
| parent | a84bb95a1f65bfe25038f188763a18e096a86ab2 (diff) | |
| download | rust-3a917cdfcb59b952f130443ececdb6cf98a2ba3b.tar.gz rust-3a917cdfcb59b952f130443ececdb6cf98a2ba3b.zip | |
make "invalid fragment specifier" translatable
Diffstat (limited to 'compiler/rustc_expand/src/errors.rs')
| -rw-r--r-- | compiler/rustc_expand/src/errors.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/compiler/rustc_expand/src/errors.rs b/compiler/rustc_expand/src/errors.rs index 2584ff62e98..929f3479466 100644 --- a/compiler/rustc_expand/src/errors.rs +++ b/compiler/rustc_expand/src/errors.rs @@ -408,3 +408,13 @@ pub struct DuplicateMatcherBinding { #[label(expand_label2)] pub prev: Span, } + +#[derive(Diagnostic)] +#[diag(expand_invalid_fragment_specifier)] +#[help] +pub struct InvalidFragmentSpecifier { + #[primary_span] + pub span: Span, + pub fragment: Ident, + pub help: String, +} |
