Introduce distinct error codes for precise capturing
This commit is contained in:
parent
26bdfefae1
commit
ae8b4607c6
10 changed files with 69 additions and 9 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue