Skip to content

Commit c143e8d

Browse files
committed
Update to Rust 1.88
1 parent 3aa68a3 commit c143e8d

File tree

10 files changed

+18
-17
lines changed

10 files changed

+18
-17
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
- name: Install Rust
1313
run: |
1414
rustup set profile minimal
15-
rustup toolchain install 1.87 -c rust-docs
16-
rustup default 1.87
15+
rustup toolchain install 1.88 -c rust-docs
16+
rustup default 1.88
1717
- name: Install mdbook
1818
run: |
1919
mkdir bin
@@ -47,8 +47,8 @@ jobs:
4747
- name: Install Rust
4848
run: |
4949
rustup set profile minimal
50-
rustup toolchain install 1.87 -c rust-docs
51-
rustup default 1.87
50+
rustup toolchain install 1.88 -c rust-docs
51+
rustup default 1.88
5252
- name: Run `tools` package tests
5353
run: |
5454
cargo test

listings/ch02-guessing-game-tutorial/listing-02-04/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ error[E0308]: mismatched types
1818
= note: expected reference `&String`
1919
found reference `&{integer}`
2020
note: method defined here
21-
--> /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/cmp.rs:975:8
21+
--> /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/core/src/cmp.rs:975:8
2222

2323
For more information about this error, try `rustc --explain E0308`.
2424
error: could not compile `guessing_game` (bin "guessing_game") due to 1 previous error

listings/ch06-enums-and-pattern-matching/no-listing-10-non-exhaustive-match/output.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ error[E0004]: non-exhaustive patterns: `None` not covered
77
| ^ pattern `None` not covered
88
|
99
note: `Option<i32>` defined here
10-
--> /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/option.rs:572:1
11-
::: /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/option.rs:576:5
10+
--> /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/core/src/option.rs:589:1
11+
::: /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/core/src/option.rs:593:5
1212
|
1313
= note: not covered
1414
= note: the matched value is of type `Option<i32>`

listings/ch08-common-collections/listing-08-19/output.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ error[E0277]: the type `str` cannot be indexed by `{integer}`
66
3 | let h = s1[0];
77
| ^ string indices are ranges of `usize`
88
|
9+
= help: the trait `SliceIndex<str>` is not implemented for `{integer}`
910
= note: you can use `.chars().nth()` or `.bytes().nth()`
1011
for more information, see chapter 8 in The Book: <https://doc.rust-lang.org/book/ch08-02-strings.html#indexing-into-strings>
11-
= help: the trait `SliceIndex<str>` is not implemented for `{integer}`
12-
but trait `SliceIndex<[_]>` is implemented for `usize`
13-
= help: for that trait implementation, expected `[_]`, found `str`
12+
= help: the following other types implement trait `SliceIndex<T>`:
13+
`usize` implements `SliceIndex<ByteStr>`
14+
`usize` implements `SliceIndex<[T]>`
1415
= note: required for `String` to implement `Index<{integer}>`
1516

1617
For more information about this error, try `rustc --explain E0277`.

listings/ch11-writing-automated-tests/no-listing-08-guess-with-bug/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ test tests::greater_than_100 - should panic ... FAILED
99
failures:
1010

1111
---- tests::greater_than_100 stdout ----
12-
note: test did not panic as expected
12+
note: test did not panic as expected at src/lib.rs:21:8
1313

1414
failures:
1515
tests::greater_than_100

listings/ch11-writing-automated-tests/no-listing-09-guess-with-panic-msg-bug/output.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ thread 'tests::greater_than_100' panicked at src/lib.rs:12:13:
1414
Guess value must be greater than or equal to 1, got 200.
1515
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
1616
note: panic did not contain expected string
17-
panic message: `"Guess value must be greater than or equal to 1, got 200."`,
18-
expected substring: `"less than or equal to 100"`
17+
panic message: "Guess value must be greater than or equal to 1, got 200."
18+
expected substring: "less than or equal to 100"
1919

2020
failures:
2121
tests::greater_than_100

listings/ch16-fearless-concurrency/listing-16-14/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ note: required because it's used within this closure
2222
11 | let handle = thread::spawn(move || {
2323
| ^^^^^^^
2424
note: required by a bound in `spawn`
25-
--> /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/std/src/thread/mod.rs:723:1
25+
--> /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/std/src/thread/mod.rs:723:1
2626

2727
For more information about this error, try `rustc --explain E0277`.
2828
error: could not compile `shared-state` (bin "shared-state") due to 1 previous error

listings/ch21-web-server/listing-21-22/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ error[E0507]: cannot move out of `worker.thread` which is behind a mutable refer
99
| move occurs because `worker.thread` has type `JoinHandle<()>`, which does not implement the `Copy` trait
1010
|
1111
note: `JoinHandle::<T>::join` takes ownership of the receiver `self`, which moves `worker.thread`
12-
--> /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/std/src/thread/mod.rs:1895:17
12+
--> /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/std/src/thread/mod.rs:1896:17
1313

1414
For more information about this error, try `rustc --explain E0507`.
1515
error: could not compile `hello` (lib) due to 1 previous error

rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.87
1+
1.88

src/title-page.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
_by Steve Klabnik, Carol Nichols, and Chris Krycho, with contributions from the
44
Rust Community_
55

6-
This version of the text assumes you’re using Rust 1.87.0 (released 2025-05-15)
6+
This version of the text assumes you’re using Rust 1.88.0 (released 2025-06-26)
77
or later with `edition = "2024"` in the *Cargo.toml* file of all projects to
88
configure them to use Rust 2024 Edition idioms. See the [“Installation” section
99
of Chapter 1][install]<!-- ignore --> for instructions on installing or

0 commit comments

Comments
 (0)