Warn on elided lifetimes in associated constants

This commit is contained in:
Michael Goulet 2023-08-19 23:27:50 +00:00
parent 6ef7d16be0
commit fad7d220fd
8 changed files with 178 additions and 25 deletions

View file

@ -572,6 +572,10 @@ pub enum BuiltinLintDiagnostics {
/// The span of the unnecessarily-qualified path to remove.
removal_span: Span,
},
AssociatedConstElidedLifetime {
elided: bool,
span: Span,
},
}
/// Lints that are buffered up early on in the `Session` before the