diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-03-04 17:49:26 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-03-05 12:38:32 +0530 |
| commit | c8c4d85b5014a947f57acd9a1e14b7864689f73d (patch) | |
| tree | 0050171f1130396271d588b6a44f90f6f712245e /src/libsyntax/parse/lexer | |
| parent | 4de4234795b9fabe14482f817ab2936a6439b7dd (diff) | |
| parent | 7496539a00b36d86620699576bc7c82ce03dca7e (diff) | |
| download | rust-c8c4d85b5014a947f57acd9a1e14b7864689f73d.tar.gz rust-c8c4d85b5014a947f57acd9a1e14b7864689f73d.zip | |
Rollup merge of #22764 - ivanradanov:fileline_help, r=huonw
When warnings and errors occur, the associated help message should not print the same code snippet. https://github.com/rust-lang/rust/issues/21938
Diffstat (limited to 'src/libsyntax/parse/lexer')
| -rw-r--r-- | src/libsyntax/parse/lexer/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/lexer/mod.rs b/src/libsyntax/parse/lexer/mod.rs index 8d3e93d35dd..72ff501c648 100644 --- a/src/libsyntax/parse/lexer/mod.rs +++ b/src/libsyntax/parse/lexer/mod.rs @@ -781,7 +781,7 @@ impl<'a> StringReader<'a> { self.span_diagnostic .span_warn(sp, "\\U00ABCD12 and \\uABCD escapes are deprecated"); self.span_diagnostic - .span_help(sp, "use \\u{ABCD12} escapes instead"); + .fileline_help(sp, "use \\u{ABCD12} escapes instead"); } /// Scan for a single (possibly escaped) byte or char |
