diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-02-07 00:44:14 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-02-07 00:44:14 +0530 |
| commit | fc1e045d83bb1292e6f017d3f632d19487625bf6 (patch) | |
| tree | 33d767278804378bc268866794ac6a91c8745011 /src/libsyntax/parse | |
| parent | 0346bcf44dddf2142861e78c6c3d5acb736607d2 (diff) | |
| parent | 1589dcf944939cf0ca5e74b737c874f43bdbdc83 (diff) | |
| download | rust-fc1e045d83bb1292e6f017d3f632d19487625bf6.tar.gz rust-fc1e045d83bb1292e6f017d3f632d19487625bf6.zip | |
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 (:).
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/obsolete.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/parse/obsolete.rs b/src/libsyntax/parse/obsolete.rs index 60de6c909b7..1df2e762ee7 100644 --- a/src/libsyntax/parse/obsolete.rs +++ b/src/libsyntax/parse/obsolete.rs @@ -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" ), }; |
