summary refs log tree commit diff
path: root/src/libsyntax/parse/mod.rs
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/mod.rs
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/mod.rs')
-rw-r--r--src/libsyntax/parse/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs
index def5963e6f4..58d58551df3 100644
--- a/src/libsyntax/parse/mod.rs
+++ b/src/libsyntax/parse/mod.rs
@@ -724,7 +724,7 @@ pub fn integer_lit(s: &str, suffix: Option<&str>, sd: &SpanHandler, sp: Span) ->
                                               &suf[1..]));
                 } else {
                     sd.span_err(sp, &*format!("illegal suffix `{}` for numeric literal", suf));
-                    sd.span_help(sp, "the suffix must be one of the integral types \
+                    sd.fileline_help(sp, "the suffix must be one of the integral types \
                                       (`u32`, `isize`, etc)");
                 }