Remove word syntax from obsolete syntax messages
The word is repeated twice in the message like
error: obsolete syntax: `:`, `&mut:`, or `&:` syntax
This removes the word syntax that appears in messages after the second colon (:).
This commit is contained in:
parent
f3573aa834
commit
1589dcf944
1 changed files with 3 additions and 3 deletions
|
|
@ -63,15 +63,15 @@ impl<'a> ParserObsoleteMethods for parser::Parser<'a> {
|
|||
"use a `move ||` expression instead",
|
||||
),
|
||||
ObsoleteSyntax::ClosureType => (
|
||||
"`|usize| -> bool` closure type syntax",
|
||||
"`|usize| -> bool` closure type",
|
||||
"use unboxed closures instead, no type annotation needed"
|
||||
),
|
||||
ObsoleteSyntax::ClosureKind => (
|
||||
"`:`, `&mut:`, or `&:` syntax",
|
||||
"`:`, `&mut:`, or `&:`",
|
||||
"rely on inference instead"
|
||||
),
|
||||
ObsoleteSyntax::Sized => (
|
||||
"`Sized? T` syntax for removing the `Sized` bound",
|
||||
"`Sized? T` for removing the `Sized` bound",
|
||||
"write `T: ?Sized` instead"
|
||||
),
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue