From 52c6b101ea18ed6f09367bf459ac55ffe473cd9c Mon Sep 17 00:00:00 2001 From: Michael Goulet Date: Thu, 4 Apr 2024 20:23:52 -0400 Subject: Use a path instead of an ident (and stop manually resolving) --- compiler/rustc_hir_analysis/src/errors/precise_captures.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'compiler/rustc_hir_analysis/src/errors') 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 @@ -32,6 +32,16 @@ pub struct BadPreciseCapture { pub found: String, } +#[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 { -- cgit 1.4.1-3-g733a5