diff options
| author | Michael Goulet <michael@errs.io> | 2024-04-04 20:23:52 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-04-15 16:45:26 -0400 |
| commit | 52c6b101ea18ed6f09367bf459ac55ffe473cd9c (patch) | |
| tree | 4bd7b7084b701a4c3e9deb299db09c209b5a7dbc /compiler/rustc_hir_analysis/src/errors | |
| parent | ce8961039e244b1e4e0fa02fc10d59a22abc9ea3 (diff) | |
| download | rust-52c6b101ea18ed6f09367bf459ac55ffe473cd9c.tar.gz rust-52c6b101ea18ed6f09367bf459ac55ffe473cd9c.zip | |
Use a path instead of an ident (and stop manually resolving)
Diffstat (limited to 'compiler/rustc_hir_analysis/src/errors')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/errors/precise_captures.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/compiler/rustc_hir_analysis/src/errors/precise_captures.rs b/compiler/rustc_hir_analysis/src/errors/precise_captures.rs index e2eb9c72bf2..520bf1d9f40 100644 --- a/compiler/rustc_hir_analysis/src/errors/precise_captures.rs +++ b/compiler/rustc_hir_analysis/src/errors/precise_captures.rs @@ -33,6 +33,16 @@ pub struct BadPreciseCapture { } #[derive(Diagnostic)] +#[diag(hir_analysis_precise_capture_self_alias)] +pub struct PreciseCaptureSelfAlias { + #[primary_span] + pub span: Span, + #[label] + pub self_span: Span, + pub what: &'static str, +} + +#[derive(Diagnostic)] #[diag(hir_analysis_duplicate_precise_capture)] pub struct DuplicatePreciseCapture { #[primary_span] |
