diff options
| author | Michael Goulet <michael@errs.io> | 2024-09-15 17:34:25 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-09-16 10:56:22 -0400 |
| commit | ae8b4607c6c92164dce2e92f9496de189a43bc44 (patch) | |
| tree | 48e337f4cf001bdf9e0de0a28b24942972b36fe7 /compiler/rustc_hir_analysis/src/errors | |
| parent | 26bdfefae121061187a8206bc0d6702c968a62c0 (diff) | |
| download | rust-ae8b4607c6c92164dce2e92f9496de189a43bc44.tar.gz rust-ae8b4607c6c92164dce2e92f9496de189a43bc44.zip | |
Introduce distinct error codes for precise capturing
Diffstat (limited to 'compiler/rustc_hir_analysis/src/errors')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/errors/precise_captures.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/errors/precise_captures.rs b/compiler/rustc_hir_analysis/src/errors/precise_captures.rs index af2bb053c0a..b6cffb90805 100644 --- a/compiler/rustc_hir_analysis/src/errors/precise_captures.rs +++ b/compiler/rustc_hir_analysis/src/errors/precise_captures.rs @@ -1,3 +1,4 @@ +use rustc_errors::E0799; use rustc_macros::Diagnostic; use rustc_span::{Span, Symbol}; @@ -43,7 +44,7 @@ pub(crate) struct BadPreciseCapture { } #[derive(Diagnostic)] -#[diag(hir_analysis_precise_capture_self_alias)] +#[diag(hir_analysis_precise_capture_self_alias, code = E0799)] pub(crate) struct PreciseCaptureSelfAlias { #[primary_span] pub span: Span, |
