From f35a7c38da65c9a006c0c7dbd73685b552b3cbf9 Mon Sep 17 00:00:00 2001 From: Matthias Prechtl Date: Fri, 7 Feb 2020 13:06:35 +0100 Subject: Make issue references consistent --- src/librustc_parse/lexer/mod.rs | 5 +++-- src/librustc_parse/parser/diagnostics.rs | 4 ++-- src/librustc_parse/parser/expr.rs | 5 ++++- 3 files changed, 9 insertions(+), 5 deletions(-) (limited to 'src/librustc_parse') diff --git a/src/librustc_parse/lexer/mod.rs b/src/librustc_parse/lexer/mod.rs index af56e9d344d..e60f1138ddc 100644 --- a/src/librustc_parse/lexer/mod.rs +++ b/src/librustc_parse/lexer/mod.rs @@ -248,8 +248,9 @@ impl<'a> StringReader<'a> { a future release!", ) .note( - "for more information, see issue #42326 \ - ", + "see issue #42326 \ + \ + for more information", ) .emit(); None diff --git a/src/librustc_parse/parser/diagnostics.rs b/src/librustc_parse/parser/diagnostics.rs index 7c015c7a1d7..237b3cc13d3 100644 --- a/src/librustc_parse/parser/diagnostics.rs +++ b/src/librustc_parse/parser/diagnostics.rs @@ -366,8 +366,8 @@ impl<'a> Parser<'a> { type: `: `", ); err.note( - "for more information, see \ - https://github.com/rust-lang/rust/issues/23416", + "see issue #23416 \ + for more information", ); } } diff --git a/src/librustc_parse/parser/expr.rs b/src/librustc_parse/parser/expr.rs index d9832141695..eacc95e0395 100644 --- a/src/librustc_parse/parser/expr.rs +++ b/src/librustc_parse/parser/expr.rs @@ -1295,7 +1295,10 @@ impl<'a> Parser<'a> { `proc_macro::Literal::*_unsuffixed` for code that will desugar \ to tuple field access", ); - err.note("for more context, see https://github.com/rust-lang/rust/issues/60210"); + err.note( + "see issue #60210 \ + for more information", + ); err } else { self.struct_span_err(sp, &format!("suffixes on {} are invalid", kind)) -- cgit 1.4.1-3-g733a5