diff options
| author | est31 <MTest31@outlook.com> | 2024-04-28 15:14:32 +0200 |
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2024-04-28 21:27:26 +0200 |
| commit | 4284bca7209fc9eb03a8db5a388479ff723cc70d (patch) | |
| tree | c1a17a7f511d00f76c718c030334bf384f94aa70 /compiler/rustc_ast_lowering/src/errors.rs | |
| parent | 4d570eea025a19564429eb52b34ec34e14659f55 (diff) | |
| download | rust-4284bca7209fc9eb03a8db5a388479ff723cc70d.tar.gz rust-4284bca7209fc9eb03a8db5a388479ff723cc70d.zip | |
Add a note to the ArbitraryExpressionInPattern error
Diffstat (limited to 'compiler/rustc_ast_lowering/src/errors.rs')
| -rw-r--r-- | compiler/rustc_ast_lowering/src/errors.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_ast_lowering/src/errors.rs b/compiler/rustc_ast_lowering/src/errors.rs index 6f70e135c72..02744d16b42 100644 --- a/compiler/rustc_ast_lowering/src/errors.rs +++ b/compiler/rustc_ast_lowering/src/errors.rs @@ -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)] |
