Skip to content

Commit fc1e045

Browse files
committed
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 (:).
2 parents 0346bcf + 1589dcf commit fc1e045

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libsyntax/parse/obsolete.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ impl<'a> ParserObsoleteMethods for parser::Parser<'a> {
6363
"use a `move ||` expression instead",
6464
),
6565
ObsoleteSyntax::ClosureType => (
66-
"`|usize| -> bool` closure type syntax",
66+
"`|usize| -> bool` closure type",
6767
"use unboxed closures instead, no type annotation needed"
6868
),
6969
ObsoleteSyntax::ClosureKind => (
70-
"`:`, `&mut:`, or `&:` syntax",
70+
"`:`, `&mut:`, or `&:`",
7171
"rely on inference instead"
7272
),
7373
ObsoleteSyntax::Sized => (
74-
"`Sized? T` syntax for removing the `Sized` bound",
74+
"`Sized? T` for removing the `Sized` bound",
7575
"write `T: ?Sized` instead"
7676
),
7777
};

0 commit comments

Comments
 (0)