Remove old diagnostic notes for type ascription syntax

Type ascription syntax was removed in 2023.
This commit is contained in:
Zalathar
2025-04-16 20:03:18 +10:00
parent efb1e3d676
commit 4d6ae78fa2
26 changed files with 1 additions and 62 deletions

View File

@@ -1598,9 +1598,6 @@ pub(crate) struct PathSingleColon {
#[suggestion(applicability = "machine-applicable", code = ":", style = "verbose")]
pub suggestion: Span,
#[note(parse_type_ascription_removed)]
pub type_ascription: bool,
}
#[derive(Diagnostic)]
@@ -1617,9 +1614,6 @@ pub(crate) struct ColonAsSemi {
#[primary_span]
#[suggestion(applicability = "machine-applicable", code = ";", style = "verbose")]
pub span: Span,
#[note(parse_type_ascription_removed)]
pub type_ascription: bool,
}
#[derive(Diagnostic)]