mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-01 10:25:41 +00:00
Rollup merge of #22005 - nagisa:obsolete-ctx, r=alexcrichton
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:
commit
fc1e045d83
@ -63,15 +63,15 @@ impl<'a> ParserObsoleteMethods for parser::Parser<'a> {
|
|||||||
"use a `move ||` expression instead",
|
"use a `move ||` expression instead",
|
||||||
),
|
),
|
||||||
ObsoleteSyntax::ClosureType => (
|
ObsoleteSyntax::ClosureType => (
|
||||||
"`|usize| -> bool` closure type syntax",
|
"`|usize| -> bool` closure type",
|
||||||
"use unboxed closures instead, no type annotation needed"
|
"use unboxed closures instead, no type annotation needed"
|
||||||
),
|
),
|
||||||
ObsoleteSyntax::ClosureKind => (
|
ObsoleteSyntax::ClosureKind => (
|
||||||
"`:`, `&mut:`, or `&:` syntax",
|
"`:`, `&mut:`, or `&:`",
|
||||||
"rely on inference instead"
|
"rely on inference instead"
|
||||||
),
|
),
|
||||||
ObsoleteSyntax::Sized => (
|
ObsoleteSyntax::Sized => (
|
||||||
"`Sized? T` syntax for removing the `Sized` bound",
|
"`Sized? T` for removing the `Sized` bound",
|
||||||
"write `T: ?Sized` instead"
|
"write `T: ?Sized` instead"
|
||||||
),
|
),
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user