Skip to content

Commit 61afcee

Browse files
committed
Update to 1.44
1 parent a1d4841 commit 61afcee

File tree

19 files changed

+46
-44
lines changed

19 files changed

+46
-44
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 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.43 -c rust-docs
16-
rustup default 1.43
15+
rustup toolchain install 1.44 -c rust-docs
16+
rustup default 1.44
1717
- name: Install mdbook
1818
run: |
1919
mkdir bin

listings/ch02-guessing-game-tutorial/no-listing-02-without-expect/output.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@ warning: unused `std::result::Result` that must be used
99
= note: `#[warn(unused_must_use)]` on by default
1010
= note: this `Result` may be an `Err` variant, which should be handled
1111

12+
warning: 1 warning emitted
13+
1214
Finished dev [unoptimized + debuginfo] target(s) in 0.59s
Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
11
$ cargo run
22
Compiling arrays v0.1.0 (file:///projects/arrays)
3-
error: this operation will panic at runtime
4-
--> src/main.rs:5:19
5-
|
6-
5 | let element = a[index];
7-
| ^^^^^^^^ index out of bounds: the len is 5 but the index is 10
8-
|
9-
= note: `#[deny(unconditional_panic)]` on by default
10-
11-
error: aborting due to previous error
12-
13-
error: could not compile `arrays`.
14-
15-
To learn more, run the command again with --verbose.
3+
Finished dev [unoptimized + debuginfo] target(s) in 0.97s
4+
Running `target/debug/arrays`
5+
thread 'main' panicked at 'index out of bounds: the len is 5 but the index is 10', src/main.rs:5:19
6+
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

listings/ch03-common-programming-concepts/no-listing-19-statements-vs-expressions/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ warning: unnecessary parentheses around assigned value
2424
|
2525
= note: `#[warn(unused_parens)]` on by default
2626

27-
error: aborting due to 2 previous errors
27+
error: aborting due to 2 previous errors; 1 warning emitted
2828

2929
For more information about this error, try `rustc --explain E0658`.
3030
error: could not compile `functions`.

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
$ cargo run
22
Compiling enums v0.1.0 (file:///projects/enums)
33
error[E0004]: non-exhaustive patterns: `None` not covered
4-
--> src/main.rs:3:15
5-
|
6-
3 | match x {
7-
| ^ pattern `None` not covered
8-
|
9-
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
4+
--> src/main.rs:3:15
5+
|
6+
3 | match x {
7+
| ^ pattern `None` not covered
8+
|
9+
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
10+
= note: the matched value is of type `std::option::Option<i32>`
1011

1112
error: aborting due to previous error
1213

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0603]: module `hosting` is private
44
--> src/lib.rs:9:28
55
|
66
9 | crate::front_of_house::hosting::add_to_waitlist();
7-
| ^^^^^^^ this module is private
7+
| ^^^^^^^ private module
88
|
99
note: the module `hosting` is defined here
1010
--> src/lib.rs:2:5
@@ -16,7 +16,7 @@ error[E0603]: module `hosting` is private
1616
--> src/lib.rs:12:21
1717
|
1818
12 | front_of_house::hosting::add_to_waitlist();
19-
| ^^^^^^^ this module is private
19+
| ^^^^^^^ private module
2020
|
2121
note: the module `hosting` is defined here
2222
--> src/lib.rs:2:5

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0603]: function `add_to_waitlist` is private
44
--> src/lib.rs:9:37
55
|
66
9 | crate::front_of_house::hosting::add_to_waitlist();
7-
| ^^^^^^^^^^^^^^^ this function is private
7+
| ^^^^^^^^^^^^^^^ private function
88
|
99
note: the function `add_to_waitlist` is defined here
1010
--> src/lib.rs:3:9
@@ -16,7 +16,7 @@ error[E0603]: function `add_to_waitlist` is private
1616
--> src/lib.rs:12:30
1717
|
1818
12 | front_of_house::hosting::add_to_waitlist();
19-
| ^^^^^^^^^^^^^^^ this function is private
19+
| ^^^^^^^^^^^^^^^ private function
2020
|
2121
note: the function `add_to_waitlist` is defined here
2222
--> src/lib.rs:3:9

listings/ch08-common-collections/output-only-01-not-char-boundary/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ $ cargo run
22
Compiling collections v0.1.0 (file:///projects/collections)
33
Finished dev [unoptimized + debuginfo] target(s) in 0.43s
44
Running `target/debug/collections`
5-
thread 'main' panicked at 'byte index 1 is not a char boundary; it is inside 'З' (bytes 0..2) of `Здравствуйте`', src/libcore/str/mod.rs:2219:5
5+
thread 'main' panicked at 'byte index 1 is not a char boundary; it is inside 'З' (bytes 0..2) of `Здравствуйте`', /rustc/c7087fe00d2ba919df1d813c040a5d47e43b0fe7/src/libcore/str/mod.rs:1920:47
66
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

listings/ch09-error-handling/listing-09-01/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ $ cargo run
22
Compiling panic v0.1.0 (file:///projects/panic)
33
Finished dev [unoptimized + debuginfo] target(s) in 0.27s
44
Running `target/debug/panic`
5-
thread 'main' panicked at 'index out of bounds: the len is 3 but the index is 99', /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src/libcore/slice/mod.rs:2842:10
5+
thread 'main' panicked at 'index out of bounds: the len is 3 but the index is 99', src/main.rs:4:5
66
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

listings/ch12-an-io-project/listing-12-12/output.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ warning: unused `std::result::Result` that must be used
99
= note: `#[warn(unused_must_use)]` on by default
1010
= note: this `Result` may be an `Err` variant, which should be handled
1111

12+
warning: 1 warning emitted
13+
1214
Finished dev [unoptimized + debuginfo] target(s) in 0.71s
1315
Running `target/debug/minigrep the poem.txt`
1416
Searching for the

0 commit comments

Comments
 (0)