Remove old diagnostic notes for type ascription syntax
Type ascription syntax was removed in 2023.
This commit is contained in:
parent
efb1e3d676
commit
4d6ae78fa2
26 changed files with 1 additions and 62 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue