rustc_expand: make proc-macro derive error translatable
This commit is contained in:
parent
70adb4e5b4
commit
7fe4f0701c
3 changed files with 11 additions and 1 deletions
|
@ -390,3 +390,10 @@ pub(crate) struct ProcMacroPanicked {
|
|||
pub(crate) struct ProcMacroPanickedHelp {
|
||||
pub message: String,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(expand_proc_macro_derive_tokens)]
|
||||
pub struct ProcMacroDeriveTokens {
|
||||
#[primary_span]
|
||||
pub span: Span,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue