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

@ -1943,10 +1943,7 @@ impl<'a> Parser<'a> {
&& self.token == token::Colon
&& self.look_ahead(1, |next| line_idx(self.token.span) < line_idx(next.span))
{
self.dcx().emit_err(ColonAsSemi {
span: self.token.span,
type_ascription: self.psess.unstable_features.is_nightly_build(),
});
self.dcx().emit_err(ColonAsSemi { span: self.token.span });
self.bump();
return true;
}