Skip to content

Commit 2567c35

Browse files
committed
Update to Rust 1.47
1 parent 4895996 commit 2567c35

File tree

7 files changed

+10
-8
lines changed

7 files changed

+10
-8
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.46 -c rust-docs
16-
rustup default 1.46
15+
rustup toolchain install 1.47 -c rust-docs
16+
rustup default 1.47
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 `Здравствуйте`', /rustc/04488afe34512aa4c33566eb16d8c912a3ae04f9/src/libcore/str/mod.rs:1942:47
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/ch15-smart-pointers/listing-15-21/output.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ For more information about this error, try `rustc --explain E0596`.
1414
error: could not compile `limit-tracker`.
1515

1616
To learn more, run the command again with --verbose.
17+
warning: build failed, waiting for other jobs to finish...
18+
error: build failed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ test tests::it_sends_an_over_75_percent_warning_message ... FAILED
99
failures:
1010

1111
---- tests::it_sends_an_over_75_percent_warning_message stdout ----
12-
thread 'main' panicked at 'already borrowed: BorrowMutError', /rustc/04488afe34512aa4c33566eb16d8c912a3ae04f9/src/libcore/cell.rs:867:31
12+
thread 'main' panicked at 'already borrowed: BorrowMutError', src/lib.rs:60:53
1313
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
1414

1515

listings/ch17-oop/no-listing-01-trait-object-of-clone/output.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
$ cargo build
22
Compiling gui v0.1.0 (file:///projects/gui)
33
error[E0038]: the trait `std::clone::Clone` cannot be made into an object
4-
--> src/lib.rs:2:5
4+
--> src/lib.rs:2:21
55
|
66
2 | pub components: Vec<Box<dyn Clone>>,
7-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::clone::Clone` cannot be made into an object
7+
| ^^^^^^^^^^^^^^^^^^^ the trait `std::clone::Clone` cannot be made into an object
88
|
99
= note: the trait cannot be made into an object because it requires `Self: Sized`
1010

rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.46
1+
1.47

src/title-page.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
*by Steve Klabnik and Carol Nichols, with contributions from the Rust Community*
44

5-
This version of the text assumes you’re using Rust 1.46 or later with
5+
This version of the text assumes you’re using Rust 1.47 or later with
66
`edition="2018"` in *Cargo.toml* of all projects to use Rust 2018 Edition
77
idioms. See the [“Installation” section of Chapter 1][install]<!-- ignore -->
88
to install or update Rust, and see the new [Appendix E][editions]<!-- ignore

0 commit comments

Comments
 (0)