diff options
| author | bors <bors@rust-lang.org> | 2014-11-04 03:36:55 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-11-04 03:36:55 +0000 |
| commit | ec28b4a6c8c0a249fe341afde55d026177aabac6 (patch) | |
| tree | d233ebf5c906947f53f370bd8039bb004a5cbbdb /src/libsyntax/ext | |
| parent | 0a5e7f35949d18f312dca90af73e56aced6f2b0e (diff) | |
| parent | 5bf9ef2122e2d9c872ea551d0561c9326940446f (diff) | |
| download | rust-ec28b4a6c8c0a249fe341afde55d026177aabac6.tar.gz rust-ec28b4a6c8c0a249fe341afde55d026177aabac6.zip | |
auto merge of #18132 : P1start/rust/more-help, r=jakub-
Closes #18126. At the moment this mostly only changes notes that are particularly help-oriented or directly suggest the user to do something to help messages, and does not change messages that simply explain an error message further. If it is decided that those messages should also be help messages, I can add them to this PR, but for now I’m excluding them as I believe that changing those messages might leave very few places where notes would be appropriate.
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/bytes.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/ext/bytes.rs b/src/libsyntax/ext/bytes.rs index a93295815e0..2d1d13f16d0 100644 --- a/src/libsyntax/ext/bytes.rs +++ b/src/libsyntax/ext/bytes.rs @@ -22,10 +22,10 @@ pub fn expand_syntax_ext<'cx>(cx: &'cx mut ExtCtxt, tts: &[ast::TokenTree]) -> Box<base::MacResult+'cx> { cx.span_warn(sp, "`bytes!` is deprecated, use `b\"foo\"` literals instead"); - cx.parse_sess.span_diagnostic.span_note(sp, + cx.parse_sess.span_diagnostic.span_help(sp, "see http://doc.rust-lang.org/reference.html#byte-and-byte-string-literals \ for documentation"); - cx.parse_sess.span_diagnostic.span_note(sp, + cx.parse_sess.span_diagnostic.span_help(sp, "see https://github.com/rust-lang/rust/blob/master/src/etc/2014-06-rewrite-bytes-macros.py \ for an automated migration"); |
