Skip to content

Commit 3f64052

Browse files
committed
Upgrade to Rust 1.65
1 parent 19c7507 commit 3f64052

18 files changed

Lines changed: 35 additions & 29 deletions

File tree

.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.64 -c rust-docs
16-
rustup default 1.64
15+
rustup toolchain install 1.65 -c rust-docs
16+
rustup default 1.65
1717
- name: Install mdbook
1818
run: |
1919
mkdir bin

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 `Здравствуйте`', library/core/src/str/mod.rs:127:5
5+
thread 'main' panicked at 'byte index 1 is not a char boundary; it is inside 'З' (bytes 0..2) of `Здравствуйте`', src/main.rs:4:14
66
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ $ cargo run
33
error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
44
--> src/main.rs:4:48
55
|
6-
3 | / fn main() {
7-
4 | | let greeting_file = File::open("hello.txt")?;
8-
| | ^ cannot use the `?` operator in a function that returns `()`
9-
5 | | }
10-
| |_- this function should return `Result` or `Option` to accept `?`
6+
3 | fn main() {
7+
| --------- this function should return `Result` or `Option` to accept `?`
8+
4 | let greeting_file = File::open("hello.txt")?;
9+
| ^ cannot use the `?` operator in a function that returns `()`
1110
|
1211
= help: the trait `FromResidual<Result<Infallible, std::io::Error>>` is not implemented for `()`
1312

listings/ch11-writing-automated-tests/listing-11-03/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ failures:
1919

2020
test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
2121

22-
error: test failed, to rerun pass '--lib'
22+
error: test failed, to rerun pass `--lib`

listings/ch11-writing-automated-tests/listing-11-10/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ failures:
2222

2323
test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
2424

25-
error: test failed, to rerun pass '--lib'
25+
error: test failed, to rerun pass `--lib`

listings/ch11-writing-automated-tests/no-listing-03-introducing-a-bug/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ failures:
1919

2020
test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
2121

22-
error: test failed, to rerun pass '--lib'
22+
error: test failed, to rerun pass `--lib`

listings/ch11-writing-automated-tests/no-listing-04-bug-in-add-two/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ failures:
2020

2121
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
2222

23-
error: test failed, to rerun pass '--lib'
23+
error: test failed, to rerun pass `--lib`

listings/ch11-writing-automated-tests/no-listing-06-greeter-with-bug/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ failures:
1818

1919
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
2020

21-
error: test failed, to rerun pass '--lib'
21+
error: test failed, to rerun pass `--lib`

listings/ch11-writing-automated-tests/no-listing-07-custom-failure-message/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ failures:
1818

1919
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
2020

21-
error: test failed, to rerun pass '--lib'
21+
error: test failed, to rerun pass `--lib`

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
@@ -16,4 +16,4 @@ failures:
1616

1717
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
1818

19-
error: test failed, to rerun pass '--lib'
19+
error: test failed, to rerun pass `--lib`

0 commit comments

Comments
 (0)