Add a note to the ArbitraryExpressionInPattern error

This commit is contained in:
est31
2024-04-28 15:14:32 +02:00
parent 4d570eea02
commit 4284bca720
9 changed files with 39 additions and 1 deletions

View File

@@ -368,6 +368,8 @@ pub struct NeverPatternWithGuard {
pub struct ArbitraryExpressionInPattern {
#[primary_span]
pub span: Span,
#[note(ast_lowering_pattern_from_macro_note)]
pub pattern_from_macro_note: bool,
}
#[derive(Diagnostic)]