Skip to content

Commit f032cf9

Browse files
Merge pull request #2718 from rust-lang/update-rustc
2 parents 50dd06c + 1263e3f commit f032cf9

File tree

33 files changed

+45
-42
lines changed

33 files changed

+45
-42
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.50 -c rust-docs
16-
rustup default 1.50
15+
rustup toolchain install 1.52 -c rust-docs
16+
rustup default 1.52
1717
- name: Install mdbook
1818
run: |
1919
mkdir bin

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
$ cargo build
22
Compiling guessing_game v0.1.0 (file:///projects/guessing_game)
3-
warning: unused `std::result::Result` that must be used
3+
warning: unused `Result` that must be used
44
--> src/main.rs:10:5
55
|
66
10 | io::stdin().read_line(&mut guess);

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ error[E0658]: `let` expressions in this position are experimental
77
| ^^^^^^^^^
88
|
99
= note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
10+
= help: you can write `matches!(<expr>, <pattern>)` instead of `let <pattern> = <expr>`
1011

1112
error: expected expression, found statement (`let`)
1213
--> src/main.rs:2:14

listings/ch09-error-handling/no-listing-02-ask-compiler-for-type/output.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ error[E0308]: mismatched types
44
--> src/main.rs:4:18
55
|
66
4 | let f: u32 = File::open("hello.txt");
7-
| --- ^^^^^^^^^^^^^^^^^^^^^^^ expected `u32`, found enum `std::result::Result`
7+
| --- ^^^^^^^^^^^^^^^^^^^^^^^ expected `u32`, found enum `Result`
88
| |
99
| expected due to this
1010
|
1111
= note: expected type `u32`
12-
found enum `std::result::Result<File, std::io::Error>`
12+
found enum `Result<File, std::io::Error>`
1313

1414
error: aborting due to previous error
1515

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
$ cargo test
22
Compiling adder v0.1.0 (file:///projects/adder)
33
Finished test [unoptimized + debuginfo] target(s) in 0.57s
4-
Running target/debug/deps/adder-92948b65e88960b4
4+
Running unittests (target/debug/deps/adder-92948b65e88960b4)
55

66
running 1 test
77
test tests::it_works ... ok

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
$ cargo test
22
Compiling adder v0.1.0 (file:///projects/adder)
33
Finished test [unoptimized + debuginfo] target(s) in 0.72s
4-
Running target/debug/deps/adder-92948b65e88960b4
4+
Running unittests (target/debug/deps/adder-92948b65e88960b4)
55

66
running 2 tests
77
test tests::another ... FAILED

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
$ cargo test
22
Compiling rectangle v0.1.0 (file:///projects/rectangle)
33
Finished test [unoptimized + debuginfo] target(s) in 0.66s
4-
Running target/debug/deps/rectangle-6584c4561e48942e
4+
Running unittests (target/debug/deps/rectangle-6584c4561e48942e)
55

66
running 1 test
77
test tests::larger_can_hold_smaller ... ok

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
$ cargo test
22
Compiling adder v0.1.0 (file:///projects/adder)
33
Finished test [unoptimized + debuginfo] target(s) in 0.58s
4-
Running target/debug/deps/adder-92948b65e88960b4
4+
Running unittests (target/debug/deps/adder-92948b65e88960b4)
55

66
running 1 test
77
test tests::it_adds_two ... ok

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
$ cargo test
22
Compiling guessing_game v0.1.0 (file:///projects/guessing_game)
33
Finished test [unoptimized + debuginfo] target(s) in 0.58s
4-
Running target/debug/deps/guessing_game-57d70c3acb738f4d
4+
Running unittests (target/debug/deps/guessing_game-57d70c3acb738f4d)
55

66
running 1 test
77
test tests::greater_than_100 ... ok

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
$ cargo test
22
Compiling silly-function v0.1.0 (file:///projects/silly-function)
33
Finished test [unoptimized + debuginfo] target(s) in 0.58s
4-
Running target/debug/deps/silly_function-160869f38cff9166
4+
Running unittests (target/debug/deps/silly_function-160869f38cff9166)
55

66
running 2 tests
77
test tests::this_test_will_fail ... FAILED

0 commit comments

Comments
 (0)