Skip to content

Commit 34b4518

Browse files
committed
Update messages which reference book chs. 17-20
With the insertion of a new chapter 17 on async and await to _The Rust Programming Language_, references in compiler output to later chapters need to be updated to avoid confusing users. Redirects exist so that users who click old links will end up in the right place anyway, but this way users will be directed to the right URL in the first place.
1 parent 9a30362 commit 34b4518

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_mir_build/messages.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ mir_build_lower_range_bound_must_be_less_than_or_equal_to_upper =
203203
204204
mir_build_lower_range_bound_must_be_less_than_upper = lower range bound must be less than upper
205205
206-
mir_build_more_information = for more information, visit https://doc.rust-lang.org/book/ch18-02-refutability.html
206+
mir_build_more_information = for more information, visit https://doc.rust-lang.org/book/ch19-02-refutability.html
207207
208208
mir_build_moved = value is moved into `{$name}` here
209209

compiler/rustc_parse/messages.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ parse_unexpected_expr_in_pat =
827827
}, found an expression
828828
829829
.label = not a pattern
830-
.note = arbitrary expressions are not allowed in patterns: <https://doc.rust-lang.org/book/ch18-00-patterns.html>
830+
.note = arbitrary expressions are not allowed in patterns: <https://doc.rust-lang.org/book/ch19-00-patterns.html>
831831
832832
parse_unexpected_expr_in_pat_const_sugg = consider extracting the expression into a `const`
833833

0 commit comments

Comments
 (0)