summary refs log tree commit diff
path: root/src/libsyntax/parse/lexer
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-03-04 17:49:26 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-03-05 12:38:32 +0530
commitc8c4d85b5014a947f57acd9a1e14b7864689f73d (patch)
tree0050171f1130396271d588b6a44f90f6f712245e /src/libsyntax/parse/lexer
parent4de4234795b9fabe14482f817ab2936a6439b7dd (diff)
parent7496539a00b36d86620699576bc7c82ce03dca7e (diff)
downloadrust-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.rs2
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