[INFO] cloning repository https://github.com/yaowenqiang/rust_fundamentals [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/yaowenqiang/rust_fundamentals" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyaowenqiang%2Frust_fundamentals", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyaowenqiang%2Frust_fundamentals'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 80fa5db963c0da6f04212d80f9e3053686854649 [INFO] checking yaowenqiang/rust_fundamentals against master#18a029cfe8e761533634bda8fe8a14e30280a21b for pr-139646 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyaowenqiang%2Frust_fundamentals" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/yaowenqiang/rust_fundamentals on toolchain 18a029cfe8e761533634bda8fe8a14e30280a21b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+18a029cfe8e761533634bda8fe8a14e30280a21b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/yaowenqiang/rust_fundamentals [INFO] finished tweaking git repo https://github.com/yaowenqiang/rust_fundamentals [INFO] tweaked toml for git repo https://github.com/yaowenqiang/rust_fundamentals written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/yaowenqiang/rust_fundamentals 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" "+18a029cfe8e761533634bda8fe8a14e30280a21b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,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" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+18a029cfe8e761533634bda8fe8a14e30280a21b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d2e320e14d21cd9e1d8c503d7ae0bf5c63a5d13a64d74f4408bb2c2a59acc06a [INFO] running `Command { std: "docker" "start" "-a" "d2e320e14d21cd9e1d8c503d7ae0bf5c63a5d13a64d74f4408bb2c2a59acc06a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d2e320e14d21cd9e1d8c503d7ae0bf5c63a5d13a64d74f4408bb2c2a59acc06a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d2e320e14d21cd9e1d8c503d7ae0bf5c63a5d13a64d74f4408bb2c2a59acc06a", kill_on_drop: false }` [INFO] [stdout] d2e320e14d21cd9e1d8c503d7ae0bf5c63a5d13a64d74f4408bb2c2a59acc06a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,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" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-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" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+18a029cfe8e761533634bda8fe8a14e30280a21b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0ede5ff64b4b54fe01833c0f51ae9e260444f4199df15841242b03cbc5b4ad63 [INFO] running `Command { std: "docker" "start" "-a" "0ede5ff64b4b54fe01833c0f51ae9e260444f4199df15841242b03cbc5b4ad63", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.138 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking minigrep v0.1.0 (/opt/rustwide/workdir/minigrep) [INFO] [stderr] Checking concurrency v0.1.0 (/opt/rustwide/workdir/concurrency) [INFO] [stderr] Checking fp v0.1.0 (/opt/rustwide/workdir/fp) [INFO] [stderr] Checking smartbox v0.1.0 (/opt/rustwide/workdir/smartbox) [INFO] [stdout] warning: unused import: `core::panicking::panic` [INFO] [stdout] --> minigrep/src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use core::panicking::panic; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature `panic_internals`: internal details of the implementation of the `panic!` and related macros [INFO] [stdout] --> minigrep/src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use core::panicking::panic; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: add `#![feature(panic_internals)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-04-11; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0635]: unknown feature `core_panic` [INFO] [stdout] --> minigrep/src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(core_panic)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `results` [INFO] [stdout] --> minigrep/src/lib.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let results = if config.ignore_case { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_results` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0635, E0658. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0635`. [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> concurrency/src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `minigrep` (lib) due to 2 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused import: `core::panicking::panic` [INFO] [stdout] --> minigrep/src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use core::panicking::panic; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> concurrency/src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature `panic_internals`: internal details of the implementation of the `panic!` and related macros [INFO] [stdout] --> minigrep/src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use core::panicking::panic; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: add `#![feature(panic_internals)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-04-11; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0635]: unknown feature `core_panic` [INFO] [stdout] --> minigrep/src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(core_panic)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> smartbox/src/main.rs:88:32 [INFO] [stdout] | [INFO] [stdout] 88 | let list2_a = Rc::new(Cons(Rc::clone(&value), Rc::new(Nil))); [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^ expected `i32`, found `Rc>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type `i32` [INFO] [stdout] found struct `Rc>` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> smartbox/src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | Cons(i32, Rc), [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> smartbox/src/main.rs:89:24 [INFO] [stdout] | [INFO] [stdout] 89 | let list2_b = Cons(Rc::new(RefCell::new(3), Rc::clone(&list2_a))); [INFO] [stdout] | ^^^^^^^ ------------------- unexpected argument #2 of type `Rc` [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/18a029cfe8e761533634bda8fe8a14e30280a21b/library/alloc/src/rc.rs:405:12 [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 89 - let list2_b = Cons(Rc::new(RefCell::new(3), Rc::clone(&list2_a))); [INFO] [stdout] 89 + let list2_b = Cons(Rc::new(RefCell::new(3))); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this enum variant takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> smartbox/src/main.rs:89:19 [INFO] [stdout] | [INFO] [stdout] 89 | let list2_b = Cons(Rc::new(RefCell::new(3), Rc::clone(&list2_a))); [INFO] [stdout] | ^^^^----------------------------------------------- argument #2 of type `Rc` is missing [INFO] [stdout] | [INFO] [stdout] note: expected `i32`, found `Rc>` [INFO] [stdout] --> smartbox/src/main.rs:89:24 [INFO] [stdout] | [INFO] [stdout] 89 | let list2_b = Cons(Rc::new(RefCell::new(3), Rc::clone(&list2_a))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: expected type `i32` [INFO] [stdout] found struct `Rc>` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> smartbox/src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | Cons(i32, Rc), [INFO] [stdout] | ^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 89 - let list2_b = Cons(Rc::new(RefCell::new(3), Rc::clone(&list2_a))); [INFO] [stdout] 89 + let list2_b = Cons(/* i32 */, /* Rc */); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> smartbox/src/main.rs:90:24 [INFO] [stdout] | [INFO] [stdout] 90 | let list2_c = Cons(Rc::new(RefCell::new(4), Rc::clone(&list2_a))); [INFO] [stdout] | ^^^^^^^ ------------------- unexpected argument #2 of type `Rc` [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/18a029cfe8e761533634bda8fe8a14e30280a21b/library/alloc/src/rc.rs:405:12 [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 90 - let list2_c = Cons(Rc::new(RefCell::new(4), Rc::clone(&list2_a))); [INFO] [stdout] 90 + let list2_c = Cons(Rc::new(RefCell::new(4))); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this enum variant takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> smartbox/src/main.rs:90:19 [INFO] [stdout] | [INFO] [stdout] 90 | let list2_c = Cons(Rc::new(RefCell::new(4), Rc::clone(&list2_a))); [INFO] [stdout] | ^^^^----------------------------------------------- argument #2 of type `Rc` is missing [INFO] [stdout] | [INFO] [stdout] note: expected `i32`, found `Rc>` [INFO] [stdout] --> smartbox/src/main.rs:90:24 [INFO] [stdout] | [INFO] [stdout] 90 | let list2_c = Cons(Rc::new(RefCell::new(4), Rc::clone(&list2_a))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: expected type `i32` [INFO] [stdout] found struct `Rc>` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> smartbox/src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | Cons(i32, Rc), [INFO] [stdout] | ^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 90 - let list2_c = Cons(Rc::new(RefCell::new(4), Rc::clone(&list2_a))); [INFO] [stdout] 90 + let list2_c = Cons(/* i32 */, /* Rc */); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> smartbox/src/main.rs:88:32 [INFO] [stdout] | [INFO] [stdout] 88 | let list2_a = Rc::new(Cons(Rc::clone(&value), Rc::new(Nil))); [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^ expected `i32`, found `Rc>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type `i32` [INFO] [stdout] found struct `Rc>` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> smartbox/src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | Cons(i32, Rc), [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `results` [INFO] [stdout] --> minigrep/src/lib.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let results = if config.ignore_case { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_results` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> smartbox/src/main.rs:89:24 [INFO] [stdout] | [INFO] [stdout] 89 | let list2_b = Cons(Rc::new(RefCell::new(3), Rc::clone(&list2_a))); [INFO] [stdout] | ^^^^^^^ ------------------- unexpected argument #2 of type `Rc` [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/18a029cfe8e761533634bda8fe8a14e30280a21b/library/alloc/src/rc.rs:405:12 [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 89 - let list2_b = Cons(Rc::new(RefCell::new(3), Rc::clone(&list2_a))); [INFO] [stdout] 89 + let list2_b = Cons(Rc::new(RefCell::new(3))); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this enum variant takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> smartbox/src/main.rs:89:19 [INFO] [stdout] | [INFO] [stdout] 89 | let list2_b = Cons(Rc::new(RefCell::new(3), Rc::clone(&list2_a))); [INFO] [stdout] | ^^^^----------------------------------------------- argument #2 of type `Rc` is missing [INFO] [stdout] | [INFO] [stdout] note: expected `i32`, found `Rc>` [INFO] [stdout] --> smartbox/src/main.rs:89:24 [INFO] [stdout] | [INFO] [stdout] 89 | let list2_b = Cons(Rc::new(RefCell::new(3), Rc::clone(&list2_a))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: expected type `i32` [INFO] [stdout] found struct `Rc>` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> smartbox/src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | Cons(i32, Rc), [INFO] [stdout] | ^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 89 - let list2_b = Cons(Rc::new(RefCell::new(3), Rc::clone(&list2_a))); [INFO] [stdout] 89 + let list2_b = Cons(/* i32 */, /* Rc */); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> smartbox/src/main.rs:90:24 [INFO] [stdout] | [INFO] [stdout] 90 | let list2_c = Cons(Rc::new(RefCell::new(4), Rc::clone(&list2_a))); [INFO] [stdout] | ^^^^^^^ ------------------- unexpected argument #2 of type `Rc` [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/18a029cfe8e761533634bda8fe8a14e30280a21b/library/alloc/src/rc.rs:405:12 [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 90 - let list2_c = Cons(Rc::new(RefCell::new(4), Rc::clone(&list2_a))); [INFO] [stdout] 90 + let list2_c = Cons(Rc::new(RefCell::new(4))); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this enum variant takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> smartbox/src/main.rs:90:19 [INFO] [stdout] | [INFO] [stdout] 90 | let list2_c = Cons(Rc::new(RefCell::new(4), Rc::clone(&list2_a))); [INFO] [stdout] | ^^^^----------------------------------------------- argument #2 of type `Rc` is missing [INFO] [stdout] | [INFO] [stdout] note: expected `i32`, found `Rc>` [INFO] [stdout] --> smartbox/src/main.rs:90:24 [INFO] [stdout] | [INFO] [stdout] 90 | let list2_c = Cons(Rc::new(RefCell::new(4), Rc::clone(&list2_a))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: expected type `i32` [INFO] [stdout] found struct `Rc>` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> smartbox/src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | Cons(i32, Rc), [INFO] [stdout] | ^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 90 - let list2_c = Cons(Rc::new(RefCell::new(4), Rc::clone(&list2_a))); [INFO] [stdout] 90 + let list2_c = Cons(/* i32 */, /* Rc */); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `smartbox` (bin "smartbox") due to 5 previous errors [INFO] [stdout] Some errors have detailed explanations: E0061, E0308. [INFO] [stdout] [INFO] [stderr] error: could not compile `smartbox` (bin "smartbox" test) due to 5 previous errors [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expensive_closure` [INFO] [stdout] --> fp/src/main.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | let expensive_closure = | num : u32 | -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expensive_closure` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `add_one_v3` [INFO] [stdout] --> fp/src/main.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | let add_one_v3 = |x :i32| {x +2}; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_add_one_v3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `add_one_v4` [INFO] [stdout] --> fp/src/main.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | let add_one_v4 = |x: i32| x + 1; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_add_one_v4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> fp/src/main.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | let n = example_closure(5); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0635, E0658. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list3` [INFO] [stdout] --> fp/src/main.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | let list3 = vec![1,2,3]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_list3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0635`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> fp/src/main.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | let value = String::from("by key called"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `minigrep` (lib test) due to 2 previous errors; 2 warnings emitted [INFO] [stdout] warning: field `height` is never read [INFO] [stdout] --> fp/src/main.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 39 | struct Rectangle { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 40 | width: u32, [INFO] [stdout] 41 | height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_one_v1` is never used [INFO] [stdout] --> fp/src/main.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn add_one_v1 (x: u32) -> u32 {x + 1} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expensive_closure` [INFO] [stdout] --> fp/src/main.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | let expensive_closure = | num : u32 | -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expensive_closure` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `add_one_v3` [INFO] [stdout] --> fp/src/main.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | let add_one_v3 = |x :i32| {x +2}; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_add_one_v3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `add_one_v4` [INFO] [stdout] --> fp/src/main.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | let add_one_v4 = |x: i32| x + 1; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_add_one_v4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> fp/src/main.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | let n = example_closure(5); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list3` [INFO] [stdout] --> fp/src/main.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | let list3 = vec![1,2,3]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_list3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> fp/src/main.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | let value = String::from("by key called"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `height` is never read [INFO] [stdout] --> fp/src/main.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 39 | struct Rectangle { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 40 | width: u32, [INFO] [stdout] 41 | height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_one_v1` is never used [INFO] [stdout] --> fp/src/main.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn add_one_v1 (x: u32) -> u32 {x + 1} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Shoe` is never constructed [INFO] [stdout] --> fp/src/main.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | struct Shoe { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shoes_in_size` is never used [INFO] [stdout] --> fp/src/main.rs:54:4 [INFO] [stdout] | [INFO] [stdout] 54 | fn shoes_in_size(shoes: Vec, shoe_size: u32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "0ede5ff64b4b54fe01833c0f51ae9e260444f4199df15841242b03cbc5b4ad63", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0ede5ff64b4b54fe01833c0f51ae9e260444f4199df15841242b03cbc5b4ad63", kill_on_drop: false }` [INFO] [stdout] 0ede5ff64b4b54fe01833c0f51ae9e260444f4199df15841242b03cbc5b4ad63