diff options
| author | Hankai Zhang <hsamzhang@gmail.com> | 2023-06-10 12:34:16 -0400 |
|---|---|---|
| committer | Hankai Zhang <hsamzhang@gmail.com> | 2023-06-10 12:34:16 -0400 |
| commit | e5fccf927d5a9574ba3eca1d8ea063d50e4fc8fa (patch) | |
| tree | 69c602bf2a7d2f1fd13056ad16cba2aa9a5eaaa0 /compiler/rustc_parse | |
| parent | 788c98df5995c9fe360ba9ba5efb103ee69d05c4 (diff) | |
| download | rust-e5fccf927d5a9574ba3eca1d8ea063d50e4fc8fa.tar.gz rust-e5fccf927d5a9574ba3eca1d8ea063d50e4fc8fa.zip | |
Update links to Rust Reference page on literals in diagnostic
Instead of linking to the old Rust Reference site on static.rust-lang.org, link to the current website doc.rust-lang.org/stable/reference instead in diagnostic about incorrect literals.
Diffstat (limited to 'compiler/rustc_parse')
| -rw-r--r-- | compiler/rustc_parse/src/lexer/unescape_error_reporting.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/lexer/unescape_error_reporting.rs b/compiler/rustc_parse/src/lexer/unescape_error_reporting.rs index eb9625f923a..4bbd640cd59 100644 --- a/compiler/rustc_parse/src/lexer/unescape_error_reporting.rs +++ b/compiler/rustc_parse/src/lexer/unescape_error_reporting.rs @@ -158,7 +158,7 @@ pub(crate) fn emit_unescape_error( diag.help( "for more information, visit \ - <https://static.rust-lang.org/doc/master/reference.html#literals>", + <https://doc.rust-lang.org/stable/reference/expressions/literal-expr.html>", ); } diag.emit(); |
