diff options
| author | Matthias Prechtl <m.sleepypanda@gmail.com> | 2020-02-07 13:06:35 +0100 |
|---|---|---|
| committer | Matthias Prechtl <m.sleepypanda@gmail.com> | 2020-02-09 20:43:49 +0100 |
| commit | f35a7c38da65c9a006c0c7dbd73685b552b3cbf9 (patch) | |
| tree | 0ec0af213307f55b20a429e8e0fb8430051ca4ad /src/librustc_parse/parser | |
| parent | 1ad6b5e1e69ad3d3509abd8c041bb9fb2dd86c41 (diff) | |
| download | rust-f35a7c38da65c9a006c0c7dbd73685b552b3cbf9.tar.gz rust-f35a7c38da65c9a006c0c7dbd73685b552b3cbf9.zip | |
Make issue references consistent
Diffstat (limited to 'src/librustc_parse/parser')
| -rw-r--r-- | src/librustc_parse/parser/diagnostics.rs | 4 | ||||
| -rw-r--r-- | src/librustc_parse/parser/expr.rs | 5 |
2 files changed, 6 insertions, 3 deletions
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: `<expr>: <type>`", ); err.note( - "for more information, see \ - https://github.com/rust-lang/rust/issues/23416", + "see issue #23416 <https://github.com/rust-lang/rust/issues/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 <https://github.com/rust-lang/rust/issues/60210> \ + for more information", + ); err } else { self.struct_span_err(sp, &format!("suffixes on {} are invalid", kind)) |
