[INFO] cloning repository https://github.com/guolianwei/ruststudy
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/guolianwei/ruststudy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fguolianwei%2Fruststudy", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fguolianwei%2Fruststudy'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] c2a6cf999cb6dbd74f1a13c2da79b8b19ad9485a
[INFO] checking guolianwei/ruststudy/c2a6cf999cb6dbd74f1a13c2da79b8b19ad9485a against eca445e5ae4a6679cc27d3a09106ce245e13a5a6 for pr-162478
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fguolianwei%2Fruststudy" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/guolianwei/ruststudy
[INFO] finished tweaking git repo https://github.com/guolianwei/ruststudy
[INFO] tweaked toml for git repo https://github.com/guolianwei/ruststudy written to /workspace/builds/worker-4-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/guolianwei/ruststudy on toolchain eca445e5ae4a6679cc27d3a09106ce245e13a5a6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/guolianwei/ruststudy already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: Cargo.toml: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024`
[INFO] [stderr] warning: binary `guessing_game` should have a kebab-case name
[INFO] [stderr]    |
[INFO] [stderr]  1 | /workspace/builds/worker-4-tc1/source/target/.../guessing_game
[INFO] [stderr]    |                                                  ^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `cargo::non_kebab_case_bins` is set to `warn` by default
[INFO] [stderr] help: to change the binary name to `guessing-game`, convert `package.name`
[INFO] [stderr]   --> Cargo.toml:10:8
[INFO] [stderr]    |
[INFO] [stderr] 10 - name = "guessing_game"
[INFO] [stderr] 10 + name = "guessing-game"
[INFO] [stderr]    |
[INFO] [stderr] help: to change the binary name to `guessing-game`, specify `bin.name`
[INFO] [stderr]   --> Cargo.toml:11:19
[INFO] [stderr]    |
[INFO] [stderr] 11 ~ version = "0.1.0"
[INFO] [stderr] 12 + [[bin]]
[INFO] [stderr] 13 + name = "guessing-game"
[INFO] [stderr] 14 + path = "src/main.rs"
[INFO] [stderr]    |
[INFO] [stderr] warning: `guessing_game` (manifest) generated 2 warnings
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded rand v0.3.22
[INFO] [stderr]   Downloaded redox_syscall v0.1.37
[INFO] [stderr]   Downloaded time v0.1.40
[INFO] [stderr]   Downloaded fuchsia-zircon-sys v0.3.3
[INFO] [stderr]   Downloaded bitflags v1.0.3
[INFO] [stderr]   Downloaded log v0.3.9
[INFO] [stderr]   Downloaded log v0.4.1
[INFO] [stderr]   Downloaded cfg-if v0.1.3
[INFO] [stderr]   Downloaded fuchsia-zircon v0.3.3
[INFO] [stderr]   Downloaded rand v0.4.2
[INFO] [stderr]   Downloaded libc v0.2.40
[INFO] [stderr]   Downloaded winapi v0.3.4
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 518dc7f32795bb76a0245aa869dffeac1e556b1cc8205b7f2a1100232f13bc63
[INFO] running `Command { std: "docker" "start" "518dc7f32795bb76a0245aa869dffeac1e556b1cc8205b7f2a1100232f13bc63", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "518dc7f32795bb76a0245aa869dffeac1e556b1cc8205b7f2a1100232f13bc63", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "518dc7f32795bb76a0245aa869dffeac1e556b1cc8205b7f2a1100232f13bc63" "/opt/rustwide/cargo-home/bin/cargo" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "518dc7f32795bb76a0245aa869dffeac1e556b1cc8205b7f2a1100232f13bc63", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "518dc7f32795bb76a0245aa869dffeac1e556b1cc8205b7f2a1100232f13bc63" "/opt/rustwide/cargo-home/bin/cargo" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr] warning: Cargo.toml: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024`
[INFO] [stderr] warning: binary `guessing_game` should have a kebab-case name
[INFO] [stderr]    |
[INFO] [stderr]  1 | /opt/rustwide/target/.../guessing_game
[INFO] [stderr]    |                          ^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `cargo::non_kebab_case_bins` is set to `warn` by default
[INFO] [stderr] help: to change the binary name to `guessing-game`, convert `package.name`
[INFO] [stderr]   --> Cargo.toml:10:8
[INFO] [stderr]    |
[INFO] [stderr] 10 - name = "guessing_game"
[INFO] [stderr] 10 + name = "guessing-game"
[INFO] [stderr]    |
[INFO] [stderr] help: to change the binary name to `guessing-game`, specify `bin.name`
[INFO] [stderr]   --> Cargo.toml:11:19
[INFO] [stderr]    |
[INFO] [stderr] 11 ~ version = "0.1.0"
[INFO] [stderr] 12 + [[bin]]
[INFO] [stderr] 13 + name = "guessing-game"
[INFO] [stderr] 14 + path = "src/main.rs"
[INFO] [stderr]    |
[INFO] [stderr] warning: `guessing_game` (manifest) generated 2 warnings
[INFO] [stderr]     Checking libc v0.2.40
[INFO] [stderr]     Checking cfg-if v0.1.3
[INFO] [stderr]     Checking log v0.4.1
[INFO] [stderr]     Checking log v0.3.9
[INFO] [stderr]     Checking rand v0.4.2
[INFO] [stderr]     Checking time v0.1.40
[INFO] [stderr]     Checking rand v0.3.22
[INFO] [stderr]     Checking guessing_game v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]   --> src/vect.rs:48:11
[INFO] [stdout]    |
[INFO] [stdout] 48 |         97...122 | 65...90 | 48...57 => {
[INFO] [stdout]    |           ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]    = note: `#[warn(ellipsis_inclusive_range_patterns)]` (part of `#[warn(rust_2021_compatibility)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]   --> src/vect.rs:48:22
[INFO] [stdout]    |
[INFO] [stdout] 48 |         97...122 | 65...90 | 48...57 => {
[INFO] [stdout]    |                      ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]   --> src/vect.rs:48:32
[INFO] [stdout]    |
[INFO] [stdout] 48 |         97...122 | 65...90 | 48...57 => {
[INFO] [stdout]    |                                ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition
[INFO] [stdout]   --> src/fun.rs:13:25
[INFO] [stdout]    |
[INFO] [stdout] 13 |     fn  is_larger(&self,&Self) ->bool;
[INFO] [stdout]    |                         ^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &Self`
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/trait-fn-parameters.html>
[INFO] [stdout]    = note: `#[warn(anonymous_parameters)]` (part of `#[warn(rust_2018_compatibility)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/closures.rs:29:22
[INFO] [stdout]    |
[INFO] [stdout] 29 | fn factory() ->  Box<Fn(i32) -> i32> {
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]    = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 29 | fn factory() ->  Box<dyn Fn(i32) -> i32> {
[INFO] [stdout]    |                      +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/closures.rs:34:22
[INFO] [stdout]    |
[INFO] [stdout] 34 | fn factory1() -> Box<Fn(i32) -> i32> {
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 34 | fn factory1() -> Box<dyn Fn(i32) -> i32> {
[INFO] [stdout]    |                      +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]   --> src/vect.rs:48:11
[INFO] [stdout]    |
[INFO] [stdout] 48 |         97...122 | 65...90 | 48...57 => {
[INFO] [stdout]    |           ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]    = note: `#[warn(ellipsis_inclusive_range_patterns)]` (part of `#[warn(rust_2021_compatibility)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]   --> src/vect.rs:48:22
[INFO] [stdout]    |
[INFO] [stdout] 48 |         97...122 | 65...90 | 48...57 => {
[INFO] [stdout]    |                      ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]   --> src/vect.rs:48:32
[INFO] [stdout]    |
[INFO] [stdout] 48 |         97...122 | 65...90 | 48...57 => {
[INFO] [stdout]    |                                ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition
[INFO] [stdout]   --> src/fun.rs:13:25
[INFO] [stdout]    |
[INFO] [stdout] 13 |     fn  is_larger(&self,&Self) ->bool;
[INFO] [stdout]    |                         ^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &Self`
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/trait-fn-parameters.html>
[INFO] [stdout]    = note: `#[warn(anonymous_parameters)]` (part of `#[warn(rust_2018_compatibility)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/closures.rs:29:22
[INFO] [stdout]    |
[INFO] [stdout] 29 | fn factory() ->  Box<Fn(i32) -> i32> {
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]    = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 29 | fn factory() ->  Box<dyn Fn(i32) -> i32> {
[INFO] [stdout]    |                      +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/closures.rs:34:22
[INFO] [stdout]    |
[INFO] [stdout] 34 | fn factory1() -> Box<Fn(i32) -> i32> {
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 34 | fn factory1() -> Box<dyn Fn(i32) -> i32> {
[INFO] [stdout]    |                      +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `read_to_string` found for struct `File` in the current scope
[INFO] [stdout]   --> src/main.rs:14:7
[INFO] [stdout]    |
[INFO] [stdout] 14 |     f.read_to_string(&mut s)?;
[INFO] [stdout]    |       ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   --> /rustc/eca445e5ae4a6679cc27d3a09106ce245e13a5a6/library/alloc/src/io/read.rs:342:7
[INFO] [stdout]    |
[INFO] [stdout]    = note: the method is available for `File` here
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: trait `Read` which provides `read_to_string` is implemented but not in scope; perhaps you want to import it
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::io::Read;
[INFO] [stdout]    |
[INFO] [stdout] help: there is a method `read_to_end` with a similar name
[INFO] [stdout]    |
[INFO] [stdout] 14 -     f.read_to_string(&mut s)?;
[INFO] [stdout] 14 +     f.read_to_end(&mut s)?;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `read_to_string` found for struct `File` in the current scope
[INFO] [stdout]   --> src/main.rs:20:30
[INFO] [stdout]    |
[INFO] [stdout] 20 |     File::open("hello.txt")?.read_to_string(&mut s)?;
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   --> /rustc/eca445e5ae4a6679cc27d3a09106ce245e13a5a6/library/alloc/src/io/read.rs:342:7
[INFO] [stdout]    |
[INFO] [stdout]    = note: the method is available for `File` here
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: trait `Read` which provides `read_to_string` is implemented but not in scope; perhaps you want to import it
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::io::Read;
[INFO] [stdout]    |
[INFO] [stdout] help: there is a method `read_to_end` with a similar name
[INFO] [stdout]    |
[INFO] [stdout] 20 -     File::open("hello.txt")?.read_to_string(&mut s)?;
[INFO] [stdout] 20 +     File::open("hello.txt")?.read_to_end(&mut s)?;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `v1`
[INFO] [stdout]   --> src/vect.rs:19:10
[INFO] [stdout]    |
[INFO] [stdout] 19 |     let (v1, v2, answer) = foo1(v1, v2);
[INFO] [stdout]    |          ^^ help: if this is intentional, prefix it with an underscore: `_v1`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `v2`
[INFO] [stdout]   --> src/vect.rs:19:14
[INFO] [stdout]    |
[INFO] [stdout] 19 |     let (v1, v2, answer) = foo1(v1, v2);
[INFO] [stdout]    |              ^^ help: if this is intentional, prefix it with an underscore: `_v2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `answer`
[INFO] [stdout]   --> src/vect.rs:19:18
[INFO] [stdout]    |
[INFO] [stdout] 19 |     let (v1, v2, answer) = foo1(v1, v2);
[INFO] [stdout]    |                  ^^^^^^ help: if this is intentional, prefix it with an underscore: `_answer`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `arg`
[INFO] [stdout]   --> src/vect.rs:30:14
[INFO] [stdout]    |
[INFO] [stdout] 30 | fn vect_test(arg: i32) -> i32 {
[INFO] [stdout]    |              ^^^ help: if this is intentional, prefix it with an underscore: `_arg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `arg`
[INFO] [stdout]  --> src/closures.rs:1:9
[INFO] [stdout]   |
[INFO] [stdout] 1 | fn name(arg: f32) -> i32 {
[INFO] [stdout]   |         ^^^ help: if this is intentional, prefix it with an underscore: `_arg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `num`
[INFO] [stdout]   --> src/closures.rs:10:8
[INFO] [stdout]    |
[INFO] [stdout] 10 |    let num =1;
[INFO] [stdout]    |        ^^^ help: if this is intentional, prefix it with an underscore: `_num`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/closures.rs:14:9
[INFO] [stdout]    |
[INFO] [stdout] 14 |     let mut num1 = 5;
[INFO] [stdout]    |         ----^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `arg`
[INFO] [stdout]   --> src/closures.rs:13:35
[INFO] [stdout]    |
[INFO] [stdout] 13 | fn closures_and_their_environment(arg: String) -> i32 {
[INFO] [stdout]    |                                   ^^^ help: if this is intentional, prefix it with an underscore: `_arg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `plus_num`
[INFO] [stdout]   --> src/closures.rs:15:9
[INFO] [stdout]    |
[INFO] [stdout] 15 |     let plus_num = |x:i32| x+num1;
[INFO] [stdout]    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_plus_num`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `take_nums`
[INFO] [stdout]   --> src/closures.rs:19:9
[INFO] [stdout]    |
[INFO] [stdout] 19 |     let take_nums = || nums;
[INFO] [stdout]    |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_take_nums`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value captured by `num` is never read
[INFO] [stdout]   --> src/closures.rs:25:41
[INFO] [stdout]    |
[INFO] [stdout] 25 |         let mut add_num = move |x:i32|  num+=x;
[INFO] [stdout]    |                                         ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: did you mean to capture by reference instead?
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `num` is never read
[INFO] [stdout]   --> src/closures.rs:25:41
[INFO] [stdout]    |
[INFO] [stdout] 25 |         let mut add_num = move |x:i32|  num+=x;
[INFO] [stdout]    |                                         ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `num`
[INFO] [stdout]   --> src/closures.rs:23:9
[INFO] [stdout]    |
[INFO] [stdout] 23 |     let mut num =5;
[INFO] [stdout]    |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `f1`
[INFO] [stdout]   --> src/main.rs:26:9
[INFO] [stdout]    |
[INFO] [stdout] 26 |     let f1= File::open("hello.txt").expect("Failed to open hello.txt");
[INFO] [stdout]    |         ^^ help: if this is intentional, prefix it with an underscore: `_f1`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `f`
[INFO] [stdout]   --> src/main.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 |     let f = match f {
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_f`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `x` is never read
[INFO] [stdout]   --> src/main.rs:72:22
[INFO] [stdout]    |
[INFO] [stdout] 72 |     let mut x: i32 = 1;
[INFO] [stdout]    |                      ^ this value is reassigned later and never used
[INFO] [stdout] 73 |     x = 7;
[INFO] [stdout]    |     ----- `x` is overwritten here before the previous value is read
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:118:9
[INFO] [stdout]     |
[INFO] [stdout] 118 |     let mut m = [1, 2, 3]; //m:[i32;3]
[INFO] [stdout]     |         ----^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `m`
[INFO] [stdout]    --> src/main.rs:118:9
[INFO] [stdout]     |
[INFO] [stdout] 118 |     let mut m = [1, 2, 3]; //m:[i32;3]
[INFO] [stdout]     |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_m`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `x`
[INFO] [stdout]    --> src/main.rs:154:9
[INFO] [stdout]     |
[INFO] [stdout] 154 |     let x: fn(i32) -> i32 = foo; // in this case ,x is an 'function pointer' to a function that takes an i32  and returns an i32;
[INFO] [stdout]     |         ^ help: if this is intentional, prefix it with an underscore: `_x`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `y`
[INFO] [stdout]    --> src/main.rs:161:9
[INFO] [stdout]     |
[INFO] [stdout] 161 |     let y = if _x == 5 { 10 } else { 15 };
[INFO] [stdout]     |         ^ help: if this is intentional, prefix it with an underscore: `_y`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `arg`
[INFO] [stdout]    --> src/main.rs:163:13
[INFO] [stdout]     |
[INFO] [stdout] 163 | fn while_fn(arg: i32) -> i32 {
[INFO] [stdout]     |             ^^^ help: if this is intentional, prefix it with an underscore: `_arg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `arg`
[INFO] [stdout]    --> src/main.rs:175:17
[INFO] [stdout]     |
[INFO] [stdout] 175 | fn slice_syntax(arg: i32) -> i32 {
[INFO] [stdout]     |                 ^^^ help: if this is intentional, prefix it with an underscore: `_arg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `arg`
[INFO] [stdout]    --> src/main.rs:181:14
[INFO] [stdout]     |
[INFO] [stdout] 181 | fn vect_show(arg: i32) -> i32 {
[INFO] [stdout]     |              ^^^ help: if this is intentional, prefix it with an underscore: `_arg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `v1`
[INFO] [stdout]    --> src/main.rs:183:9
[INFO] [stdout]     |
[INFO] [stdout] 183 |     let v1 = vec![0; 10]; // ten zeros
[INFO] [stdout]     |         ^^ help: if this is intentional, prefix it with an underscore: `_v1`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0599`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `guessing_game` (bin "guessing_game") due to 2 previous errors; 30 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0599]: no method named `read_to_string` found for struct `File` in the current scope
[INFO] [stdout]   --> src/main.rs:14:7
[INFO] [stdout]    |
[INFO] [stdout] 14 |     f.read_to_string(&mut s)?;
[INFO] [stdout]    |       ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   --> /rustc/eca445e5ae4a6679cc27d3a09106ce245e13a5a6/library/alloc/src/io/read.rs:342:7
[INFO] [stdout]    |
[INFO] [stdout]    = note: the method is available for `File` here
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: trait `Read` which provides `read_to_string` is implemented but not in scope; perhaps you want to import it
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::io::Read;
[INFO] [stdout]    |
[INFO] [stdout] help: there is a method `read_to_end` with a similar name
[INFO] [stdout]    |
[INFO] [stdout] 14 -     f.read_to_string(&mut s)?;
[INFO] [stdout] 14 +     f.read_to_end(&mut s)?;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `read_to_string` found for struct `File` in the current scope
[INFO] [stdout]   --> src/main.rs:20:30
[INFO] [stdout]    |
[INFO] [stdout] 20 |     File::open("hello.txt")?.read_to_string(&mut s)?;
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   --> /rustc/eca445e5ae4a6679cc27d3a09106ce245e13a5a6/library/alloc/src/io/read.rs:342:7
[INFO] [stdout]    |
[INFO] [stdout]    = note: the method is available for `File` here
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: trait `Read` which provides `read_to_string` is implemented but not in scope; perhaps you want to import it
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::io::Read;
[INFO] [stdout]    |
[INFO] [stdout] help: there is a method `read_to_end` with a similar name
[INFO] [stdout]    |
[INFO] [stdout] 20 -     File::open("hello.txt")?.read_to_string(&mut s)?;
[INFO] [stdout] 20 +     File::open("hello.txt")?.read_to_end(&mut s)?;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `v1`
[INFO] [stdout]   --> src/vect.rs:19:10
[INFO] [stdout]    |
[INFO] [stdout] 19 |     let (v1, v2, answer) = foo1(v1, v2);
[INFO] [stdout]    |          ^^ help: if this is intentional, prefix it with an underscore: `_v1`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `v2`
[INFO] [stdout]   --> src/vect.rs:19:14
[INFO] [stdout]    |
[INFO] [stdout] 19 |     let (v1, v2, answer) = foo1(v1, v2);
[INFO] [stdout]    |              ^^ help: if this is intentional, prefix it with an underscore: `_v2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `answer`
[INFO] [stdout]   --> src/vect.rs:19:18
[INFO] [stdout]    |
[INFO] [stdout] 19 |     let (v1, v2, answer) = foo1(v1, v2);
[INFO] [stdout]    |                  ^^^^^^ help: if this is intentional, prefix it with an underscore: `_answer`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `arg`
[INFO] [stdout]   --> src/vect.rs:30:14
[INFO] [stdout]    |
[INFO] [stdout] 30 | fn vect_test(arg: i32) -> i32 {
[INFO] [stdout]    |              ^^^ help: if this is intentional, prefix it with an underscore: `_arg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `arg`
[INFO] [stdout]  --> src/closures.rs:1:9
[INFO] [stdout]   |
[INFO] [stdout] 1 | fn name(arg: f32) -> i32 {
[INFO] [stdout]   |         ^^^ help: if this is intentional, prefix it with an underscore: `_arg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `num`
[INFO] [stdout]   --> src/closures.rs:10:8
[INFO] [stdout]    |
[INFO] [stdout] 10 |    let num =1;
[INFO] [stdout]    |        ^^^ help: if this is intentional, prefix it with an underscore: `_num`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/closures.rs:14:9
[INFO] [stdout]    |
[INFO] [stdout] 14 |     let mut num1 = 5;
[INFO] [stdout]    |         ----^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `arg`
[INFO] [stdout]   --> src/closures.rs:13:35
[INFO] [stdout]    |
[INFO] [stdout] 13 | fn closures_and_their_environment(arg: String) -> i32 {
[INFO] [stdout]    |                                   ^^^ help: if this is intentional, prefix it with an underscore: `_arg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `plus_num`
[INFO] [stdout]   --> src/closures.rs:15:9
[INFO] [stdout]    |
[INFO] [stdout] 15 |     let plus_num = |x:i32| x+num1;
[INFO] [stdout]    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_plus_num`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `take_nums`
[INFO] [stdout]   --> src/closures.rs:19:9
[INFO] [stdout]    |
[INFO] [stdout] 19 |     let take_nums = || nums;
[INFO] [stdout]    |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_take_nums`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value captured by `num` is never read
[INFO] [stdout]   --> src/closures.rs:25:41
[INFO] [stdout]    |
[INFO] [stdout] 25 |         let mut add_num = move |x:i32|  num+=x;
[INFO] [stdout]    |                                         ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: did you mean to capture by reference instead?
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `num` is never read
[INFO] [stdout]   --> src/closures.rs:25:41
[INFO] [stdout]    |
[INFO] [stdout] 25 |         let mut add_num = move |x:i32|  num+=x;
[INFO] [stdout]    |                                         ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `num`
[INFO] [stdout]   --> src/closures.rs:23:9
[INFO] [stdout]    |
[INFO] [stdout] 23 |     let mut num =5;
[INFO] [stdout]    |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `f1`
[INFO] [stdout]   --> src/main.rs:26:9
[INFO] [stdout]    |
[INFO] [stdout] 26 |     let f1= File::open("hello.txt").expect("Failed to open hello.txt");
[INFO] [stdout]    |         ^^ help: if this is intentional, prefix it with an underscore: `_f1`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `f`
[INFO] [stdout]   --> src/main.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 |     let f = match f {
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_f`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `x` is never read
[INFO] [stdout]   --> src/main.rs:72:22
[INFO] [stdout]    |
[INFO] [stdout] 72 |     let mut x: i32 = 1;
[INFO] [stdout]    |                      ^ this value is reassigned later and never used
[INFO] [stdout] 73 |     x = 7;
[INFO] [stdout]    |     ----- `x` is overwritten here before the previous value is read
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:118:9
[INFO] [stdout]     |
[INFO] [stdout] 118 |     let mut m = [1, 2, 3]; //m:[i32;3]
[INFO] [stdout]     |         ----^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `m`
[INFO] [stdout]    --> src/main.rs:118:9
[INFO] [stdout]     |
[INFO] [stdout] 118 |     let mut m = [1, 2, 3]; //m:[i32;3]
[INFO] [stdout]     |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_m`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `x`
[INFO] [stdout]    --> src/main.rs:154:9
[INFO] [stdout]     |
[INFO] [stdout] 154 |     let x: fn(i32) -> i32 = foo; // in this case ,x is an 'function pointer' to a function that takes an i32  and returns an i32;
[INFO] [stdout]     |         ^ help: if this is intentional, prefix it with an underscore: `_x`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `y`
[INFO] [stdout]    --> src/main.rs:161:9
[INFO] [stdout]     |
[INFO] [stdout] 161 |     let y = if _x == 5 { 10 } else { 15 };
[INFO] [stdout]     |         ^ help: if this is intentional, prefix it with an underscore: `_y`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `arg`
[INFO] [stdout]    --> src/main.rs:163:13
[INFO] [stdout]     |
[INFO] [stdout] 163 | fn while_fn(arg: i32) -> i32 {
[INFO] [stdout]     |             ^^^ help: if this is intentional, prefix it with an underscore: `_arg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `arg`
[INFO] [stdout]    --> src/main.rs:175:17
[INFO] [stdout]     |
[INFO] [stdout] 175 | fn slice_syntax(arg: i32) -> i32 {
[INFO] [stdout]     |                 ^^^ help: if this is intentional, prefix it with an underscore: `_arg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `arg`
[INFO] [stdout]    --> src/main.rs:181:14
[INFO] [stdout]     |
[INFO] [stdout] 181 | fn vect_show(arg: i32) -> i32 {
[INFO] [stdout]     |              ^^^ help: if this is intentional, prefix it with an underscore: `_arg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `v1`
[INFO] [stdout]    --> src/main.rs:183:9
[INFO] [stdout]     |
[INFO] [stdout] 183 |     let v1 = vec![0; 10]; // ten zeros
[INFO] [stdout]     |         ^^ help: if this is intentional, prefix it with an underscore: `_v1`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0599`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `guessing_game` (bin "guessing_game" test) due to 2 previous errors; 30 warnings emitted
[INFO] [stderr] warning: unused dependency `log`
[INFO] [stderr]  --> Cargo.toml:5:15
[INFO] [stderr]   |
[INFO] [stderr] 5 | [dependencies.log]
[INFO] [stderr]   |               ^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `cargo::unused_dependencies` is set to `warn` by default
[INFO] [stderr] help: consider removing the dependency on `log`
[INFO] [stderr] warning: unused dependency `time`
[INFO] [stderr]  --> Cargo.toml:3:1
[INFO] [stderr]   |
[INFO] [stderr] 3 | time = "0.1.35"
[INFO] [stderr]   | ^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr] help: consider removing the dependency on `time`
[INFO] [stderr] warning: `guessing_game` (manifest) generated 2 warnings
[INFO] running `Command { std: "docker" "inspect" "518dc7f32795bb76a0245aa869dffeac1e556b1cc8205b7f2a1100232f13bc63", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "518dc7f32795bb76a0245aa869dffeac1e556b1cc8205b7f2a1100232f13bc63", kill_on_drop: false }`
[INFO] [stdout] 518dc7f32795bb76a0245aa869dffeac1e556b1cc8205b7f2a1100232f13bc63
