diff options
| author | Alexis Beingessner <a.beingessner@gmail.com> | 2014-11-16 23:01:37 -0500 |
|---|---|---|
| committer | Alexis Beingessner <a.beingessner@gmail.com> | 2014-11-17 00:42:56 -0500 |
| commit | 8c467f75e3d36d6eb7ee12f4ae2827e711724a50 (patch) | |
| tree | 27889bcde99f62799cfe33c8960f06ef7f4167ba /src/libsyntax/parse | |
| parent | 0b7b4f075a531eb160becf2818c1e9a63fa10cd3 (diff) | |
| download | rust-8c467f75e3d36d6eb7ee12f4ae2827e711724a50.tar.gz rust-8c467f75e3d36d6eb7ee12f4ae2827e711724a50.zip | |
slightly better deprecation message for fn syntax
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 50e3483fb15..bc6bdec8aec 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -1229,7 +1229,8 @@ impl<'a> Parser<'a> { { if self.eat(&token::Lt) { if lifetime_defs.is_empty() { - self.warn("deprecated syntax, use `for` keyword now"); + self.warn("deprecated syntax; use the `for` keyword now \ + (e.g. change `fn<'a>` to `for<'a> fn`)"); let lifetime_defs = self.parse_lifetime_defs(); self.expect_gt(); lifetime_defs |
