about summary refs log tree commit diff
path: root/compiler/rustc_parse
diff options
context:
space:
mode:
authorHankai Zhang <hsamzhang@gmail.com>2023-06-10 12:34:16 -0400
committerHankai Zhang <hsamzhang@gmail.com>2023-06-10 12:34:16 -0400
commite5fccf927d5a9574ba3eca1d8ea063d50e4fc8fa (patch)
tree69c602bf2a7d2f1fd13056ad16cba2aa9a5eaaa0 /compiler/rustc_parse
parent788c98df5995c9fe360ba9ba5efb103ee69d05c4 (diff)
downloadrust-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.rs2
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();