Skip to content

Commit 2bbef53

Browse files
committed
Update to Rust 1.38
1 parent c5a35c3 commit 2bbef53

File tree

539 files changed

+1132
-163
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

539 files changed

+1132
-163
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ dist: trusty
33
language: rust
44
cache: cargo
55
rust:
6-
- 1.37.0
6+
- 1.38.0
77
branches:
88
only:
99
- master

listings/ch02-guessing-game-tutorial/listing-02-02/Cargo.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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
@@ -6,7 +6,7 @@ warning: unused `std::result::Result` that must be used
66
10 | io::stdin().read_line(&mut guess);
77
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
88
|
9-
= note: #[warn(unused_must_use)] on by default
9+
= note: `#[warn(unused_must_use)]` on by default
1010
= note: this `Result` may be an `Err` variant, which should be handled
1111

1212
Finished dev [unoptimized + debuginfo] target(s) in 0.59s

listings/ch03-common-programming-concepts/listing-03-01/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch03-common-programming-concepts/listing-03-02/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch03-common-programming-concepts/listing-03-03/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch03-common-programming-concepts/listing-03-04/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch03-common-programming-concepts/listing-03-05/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch03-common-programming-concepts/no-listing-04-shadowing-can-change-types/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch03-common-programming-concepts/no-listing-05-mut-cant-change-types/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch03-common-programming-concepts/no-listing-06-floating-point/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch03-common-programming-concepts/no-listing-07-numeric-operations/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch03-common-programming-concepts/no-listing-08-boolean/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch03-common-programming-concepts/no-listing-09-char/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch03-common-programming-concepts/no-listing-10-tuples/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch03-common-programming-concepts/no-listing-11-destructuring-tuples/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch03-common-programming-concepts/no-listing-12-tuple-indexing/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch03-common-programming-concepts/no-listing-13-arrays/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch03-common-programming-concepts/no-listing-14-array-indexing/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch03-common-programming-concepts/no-listing-15-invalid-array-access/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch03-common-programming-concepts/no-listing-16-functions/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch03-common-programming-concepts/no-listing-17-functions-with-parameters/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch03-common-programming-concepts/no-listing-18-functions-with-multiple-parameters/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch03-common-programming-concepts/no-listing-20-blocks-are-expressions/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch03-common-programming-concepts/no-listing-21-function-return-values/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch03-common-programming-concepts/no-listing-22-function-parameter-and-return/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch03-common-programming-concepts/no-listing-23-statements-dont-return-values/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch03-common-programming-concepts/no-listing-23-statements-dont-return-values/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ error[E0308]: mismatched types
66
7 | fn plus_one(x: i32) -> i32 {
77
| -------- ^^^ expected i32, found ()
88
| |
9-
| this function's body doesn't return
9+
| implicitly returns `()` as its body has no tail or `return` expression
1010
8 | x + 1;
1111
| - help: consider removing this semicolon
1212
|

listings/ch03-common-programming-concepts/no-listing-24-comments-end-of-line/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch03-common-programming-concepts/no-listing-25-comments-above-line/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch03-common-programming-concepts/no-listing-26-if-true/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch03-common-programming-concepts/no-listing-27-if-false/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch03-common-programming-concepts/no-listing-28-if-condition-must-be-bool/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch03-common-programming-concepts/no-listing-29-if-not-equal-0/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch03-common-programming-concepts/no-listing-30-else-if/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch03-common-programming-concepts/no-listing-31-arms-must-return-same-type/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch03-common-programming-concepts/no-listing-33-return-value-from-loop/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch03-common-programming-concepts/no-listing-34-for-range/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch04-understanding-ownership/listing-04-02/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch04-understanding-ownership/listing-04-05/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch04-understanding-ownership/listing-04-06/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch04-understanding-ownership/listing-04-07/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch04-understanding-ownership/listing-04-08/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch04-understanding-ownership/listing-04-09/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch04-understanding-ownership/no-listing-01-can-mutate-string/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch04-understanding-ownership/no-listing-03-string-move/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch04-understanding-ownership/no-listing-05-clone/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch04-understanding-ownership/no-listing-06-copy/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch04-understanding-ownership/no-listing-07-reference/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch04-understanding-ownership/no-listing-09-fixes-listing-04-06/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch04-understanding-ownership/no-listing-10-multiple-mut-not-allowed/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch04-understanding-ownership/no-listing-11-muts-in-separate-scopes/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch04-understanding-ownership/no-listing-12-immutable-and-mutable-not-allowed/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch04-understanding-ownership/no-listing-13-reference-scope-ends/Cargo.lock

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch04-understanding-ownership/no-listing-14-dangling-reference/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch04-understanding-ownership/no-listing-16-no-dangle/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch04-understanding-ownership/no-listing-17-slice/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)