File tree Expand file tree Collapse file tree 12 files changed +21
-18
lines changed
ch02-guessing-game-tutorial/listing-02-04
ch06-enums-and-pattern-matching/no-listing-10-non-exhaustive-match
ch07-managing-growing-projects/listing-07-12
ch15-smart-pointers/listing-15-15
ch16-fearless-concurrency/listing-16-14
ch17-async-await/listing-17-23/src
ch21-web-server/listing-21-22 Expand file tree Collapse file tree 12 files changed +21
-18
lines changed Original file line number Diff line number Diff line change 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
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
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ error[E0308]: mismatched types
1818 = note: expected reference `&String`
1919 found reference `&{integer}`
2020note: method defined here
21- --> /rustc/4eb161250e340c8f48f66e2b929ef4a5bed7c181 /library/core/src/cmp.rs:964:8
21+ --> /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb /library/core/src/cmp.rs:964:8
2222
2323For more information about this error, try `rustc --explain E0308`.
2424error: could not compile `guessing_game` (bin "guessing_game") due to 1 previous error
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ error[E0004]: non-exhaustive patterns: `None` not covered
77 | ^ pattern `None` not covered
88 |
99note: `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>`
Original file line number Diff line number Diff line change 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 |
6611 | 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`
910help: consider importing this module through its public re-export
1011 |
111210 + use crate::hosting;
Original file line number Diff line number Diff line change @@ -8,8 +8,9 @@ error[E0040]: explicit use of destructor method
88 |
99help: consider using `drop` function
1010 |
11- 16 | drop(c);
12- | +++++ ~
11+ 16 - c.drop();
12+ 16 + drop(c);
13+ |
1314
1415For more information about this error, try `rustc --explain E0040`.
1516error: could not compile `drop-example` (bin "drop-example") due to 1 previous error
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ note: required because it's used within this closure
222211 | let handle = thread::spawn(move || {
2323 | ^^^^^^^
2424note: 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
2727For more information about this error, try `rustc --explain E0277`.
2828error: could not compile `shared-state` (bin "shared-state") due to 1 previous error
Original file line number Diff line number Diff 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 = ( ) > > > =
Original file line number Diff line number Diff line change 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`
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ error[E0308]: mismatched types
121213 | 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
1919For more information about this error, try `rustc --explain E0308`.
Original file line number Diff line number Diff 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 |
1111note: `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
1414For more information about this error, try `rustc --explain E0507`.
1515error: could not compile `hello` (lib) due to 1 previous error
You can’t perform that action at this time.
0 commit comments