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
This commit is contained in:
Manish Goregaokar
2015-03-04 17:49:26 +05:30
23 changed files with 76 additions and 50 deletions

View File

@@ -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