diff options
| author | Jakub Bukaj <jakub@jakub.cc> | 2014-11-18 00:24:05 +0100 |
|---|---|---|
| committer | Jakub Bukaj <jakub@jakub.cc> | 2014-11-18 00:24:05 +0100 |
| commit | 20241aa408ac68017096a12d5c2737eb50798029 (patch) | |
| tree | 9eaf541568ed6581f457b3f85dde6d05cbfb2b73 | |
| parent | f712a6fd014011ed1889c0ee046cfffda1e4e6e5 (diff) | |
| parent | 8c467f75e3d36d6eb7ee12f4ae2827e711724a50 (diff) | |
| download | rust-20241aa408ac68017096a12d5c2737eb50798029.tar.gz rust-20241aa408ac68017096a12d5c2737eb50798029.zip | |
rollup merge of #19020: Gankro/better-warn
Came up on IRC that this was a bit unhelpful as to what should actually be *done*. I am new to changing compiler messages, please let me know if there's anything else that needs to be done to accomadate this change. (My build system is still constantly crashing [Is bors contagious?], so this hasn't been formally `check`ed. I figure it's a simple enough change that any consequences [like compile-fail expected messages?] can be eyeballed by someone more experienced.)
| -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 2bb1546cb08..98479d65cbb 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -1232,7 +1232,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 |
