Skip to content

Commit 92371d4

Browse files
committed
Update to Rust 1.86
1 parent 8695fc2 commit 92371d4

File tree

12 files changed

+21
-18
lines changed

12 files changed

+21
-18
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.85 -c rust-docs
16-
rustup default 1.85
15+
rustup toolchain install 1.86 -c rust-docs
16+
rustup default 1.86
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.85 -c rust-docs
51-
rustup default 1.85
50+
rustup toolchain install 1.86 -c rust-docs
51+
rustup default 1.86
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/4eb161250e340c8f48f66e2b929ef4a5bed7c181/library/core/src/cmp.rs:964:8
21+
--> /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/cmp.rs:964: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/4eb161250e340c8f48f66e2b929ef4a5bed7c181/library/core/src/option.rs:572:1
11-
::: /rustc/4eb161250e340c8f48f66e2b929ef4a5bed7c181/library/core/src/option.rs:576:5
10+
--> /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/option.rs:572:1
11+
::: /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/option.rs:576:5
1212
|
1313
= note: not covered
1414
= note: the matched value is of type `Option<i32>`

listings/ch07-managing-growing-projects/listing-07-12/output.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
$ cargo build
22
Compiling restaurant v0.1.0 (file:///projects/restaurant)
3-
error[E0433]: failed to resolve: use of undeclared crate or module `hosting`
3+
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `hosting`
44
--> src/lib.rs:11:9
55
|
66
11 | hosting::add_to_waitlist();
7-
| ^^^^^^^ use of undeclared crate or module `hosting`
7+
| ^^^^^^^ use of unresolved module or unlinked crate `hosting`
88
|
9+
= help: if you wanted to use a crate named `hosting`, use `cargo add hosting` to add it to your `Cargo.toml`
910
help: consider importing this module through its public re-export
1011
|
1112
10 + use crate::hosting;

listings/ch15-smart-pointers/listing-15-15/output.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ error[E0040]: explicit use of destructor method
88
|
99
help: consider using `drop` function
1010
|
11-
16 | drop(c);
12-
| +++++ ~
11+
16 - c.drop();
12+
16 + drop(c);
13+
|
1314

1415
For more information about this error, try `rustc --explain E0040`.
1516
error: could not compile `drop-example` (bin "drop-example") due to 1 previous error

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/4eb161250e340c8f48f66e2b929ef4a5bed7c181/library/std/src/thread/mod.rs:728:1
25+
--> /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/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/ch17-async-await/listing-17-23/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ fn main() {
4242
tx.send(val).unwrap();
4343
trpl::sleep(Duration::from_secs(1)).await;
4444
}
45-
// ANCHOR: here
45+
// ANCHOR: here
4646
};
4747

4848
let futures: Vec<Box<dyn Future<Output = ()>>> =

listings/ch20-advanced-features/listing-20-07/output.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
$ cargo +nightly miri run
2+
Preparing a sysroot for Miri (target: aarch64-apple-darwin)... done
23
Compiling unsafe-example v0.1.0 (file:///projects/unsafe-example)
34
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.01s
45
Running `file:///home/.rustup/toolchains/nightly/bin/cargo-miri runner target/miri/debug/unsafe-example`

listings/ch20-advanced-features/listing-20-33/output.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ error[E0308]: mismatched types
1212
13 | fn returns_initialized_closure(init: i32) -> impl Fn(i32) -> i32 {
1313
| ------------------- the found opaque type
1414
|
15-
= note: expected opaque type `impl Fn(i32) -> i32` (opaque type at <src/main.rs:9:25>)
16-
found opaque type `impl Fn(i32) -> i32` (opaque type at <src/main.rs:13:46>)
15+
= note: expected opaque type `impl Fn(i32) -> i32`
16+
found opaque type `impl Fn(i32) -> i32`
1717
= note: distinct uses of `impl Trait` result in different opaque types
1818

1919
For more information about this error, try `rustc --explain E0308`.

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/4eb161250e340c8f48f66e2b929ef4a5bed7c181/library/std/src/thread/mod.rs:1876:17
12+
--> /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/std/src/thread/mod.rs:1886: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

0 commit comments

Comments
 (0)