diff options
| author | Xiretza <xiretza@xiretza.xyz> | 2024-04-20 13:21:15 +0000 | 
|---|---|---|
| committer | Xiretza <xiretza@xiretza.xyz> | 2024-04-21 07:45:03 +0000 | 
| commit | 6974e9cf7012b0f3e2a58a8accde23007274f9a9 (patch) | |
| tree | 9693cd7e43a1343a38748efbc3a58b732c41e5e8 /compiler/rustc_resolve/src/errors.rs | |
| parent | b220b741c6d4e16e34d183b38d6384d369c9a620 (diff) | |
| download | rust-6974e9cf7012b0f3e2a58a8accde23007274f9a9.tar.gz rust-6974e9cf7012b0f3e2a58a8accde23007274f9a9.zip | |
Move "elided lifetime in path" to subdiagnostic struct
This requires nested subdiagnostics.
Diffstat (limited to 'compiler/rustc_resolve/src/errors.rs')
| -rw-r--r-- | compiler/rustc_resolve/src/errors.rs | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/compiler/rustc_resolve/src/errors.rs b/compiler/rustc_resolve/src/errors.rs index b0329702d11..edfeacec7e3 100644 --- a/compiler/rustc_resolve/src/errors.rs +++ b/compiler/rustc_resolve/src/errors.rs @@ -1,4 +1,4 @@ -use rustc_errors::{codes::*, Applicability, MultiSpan}; +use rustc_errors::{codes::*, Applicability, ElidedLifetimeInPathSubdiag, MultiSpan}; use rustc_macros::{Diagnostic, Subdiagnostic}; use rustc_span::{ symbol::{Ident, Symbol}, @@ -907,6 +907,8 @@ pub(crate) struct ExplicitAnonymousLivetimeReportError { pub(crate) struct ImplicitElidedLifetimeNotAllowedHere { #[primary_span] pub(crate) span: Span, + #[subdiagnostic] + pub(crate) subdiag: ElidedLifetimeInPathSubdiag, } #[derive(Diagnostic)] | 
