[INFO] cloning repository https://github.com/andreihoang/RustBasic [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/andreihoang/RustBasic" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fandreihoang%2FRustBasic", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fandreihoang%2FRustBasic'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 872f942aae9d303b13c1a07222b22a625d01cb5b [INFO] checking andreihoang/RustBasic against try#b32fc44666c052e7cf07ab471bfb6f9ec571902f for pr-138676 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fandreihoang%2FRustBasic" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/andreihoang/RustBasic on toolchain b32fc44666c052e7cf07ab471bfb6f9ec571902f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b32fc44666c052e7cf07ab471bfb6f9ec571902f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/andreihoang/RustBasic [INFO] finished tweaking git repo https://github.com/andreihoang/RustBasic [INFO] tweaked toml for git repo https://github.com/andreihoang/RustBasic written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/andreihoang/RustBasic 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" "+b32fc44666c052e7cf07ab471bfb6f9ec571902f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+b32fc44666c052e7cf07ab471bfb6f9ec571902f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5836173804aa3ae1cefdbec150667a30ca0d5044356b9aaca748981f78d4f4e6 [INFO] running `Command { std: "docker" "start" "-a" "5836173804aa3ae1cefdbec150667a30ca0d5044356b9aaca748981f78d4f4e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5836173804aa3ae1cefdbec150667a30ca0d5044356b9aaca748981f78d4f4e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5836173804aa3ae1cefdbec150667a30ca0d5044356b9aaca748981f78d4f4e6", kill_on_drop: false }` [INFO] [stdout] 5836173804aa3ae1cefdbec150667a30ca0d5044356b9aaca748981f78d4f4e6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+b32fc44666c052e7cf07ab471bfb6f9ec571902f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1eb5ef38a7f8b80de69dabd2c30fc152bcf9d6cd105de206363ddce4de9872e4 [INFO] running `Command { std: "docker" "start" "-a" "1eb5ef38a7f8b80de69dabd2c30fc152bcf9d6cd105de206363ddce4de9872e4", kill_on_drop: false }` [INFO] [stderr] Checking Excercise v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait `AppendBar` is never used [INFO] [stdout] --> src/bin/bai_tap_3.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | trait AppendBar { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/bin/bai_tap_3.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | &self.push("Bar".to_owned()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 13 | let _ = &self.push("Bar".to_owned()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `trimmed_text` does not live long enough [INFO] [stdout] --> src/bin/bai_tap_1.rs:16:22 [INFO] [stdout] | [INFO] [stdout] 15 | let trimmed_text: String = input_text.trim().to_string(); [INFO] [stdout] | ------------ binding `trimmed_text` declared here [INFO] [stdout] 16 | input = trim(&trimmed_text); [INFO] [stdout] | ^^^^^^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] ... [INFO] [stdout] 23 | } [INFO] [stdout] | - `trimmed_text` dropped here while still borrowed [INFO] [stdout] 24 | println!("{:?}", input); [INFO] [stdout] | ----- borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `trimmed_text` does not live long enough [INFO] [stdout] --> src/bin/bai_tap_1.rs:16:22 [INFO] [stdout] | [INFO] [stdout] 15 | let trimmed_text: String = input_text.trim().to_string(); [INFO] [stdout] | ------------ binding `trimmed_text` declared here [INFO] [stdout] 16 | input = trim(&trimmed_text); [INFO] [stdout] | ^^^^^^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] ... [INFO] [stdout] 23 | } [INFO] [stdout] | - `trimmed_text` dropped here while still borrowed [INFO] [stdout] 24 | println!("{:?}", input); [INFO] [stdout] | ----- borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/bin/bai_tap_3.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | &self.push("Bar".to_owned()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 13 | let _ = &self.push("Bar".to_owned()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0597`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0597`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shopping_list` [INFO] [stdout] --> src/bin/bai_tap_4.rs:14:27 [INFO] [stdout] | [INFO] [stdout] 14 | fn total_price(&self, shopping_list: &[&str]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_shopping_list` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `Excercise` (bin "bai_tap_1" test) due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `Excercise` (bin "bai_tap_1") due to 1 previous error [INFO] [stdout] warning: unused variable: `shopping_list` [INFO] [stdout] --> src/bin/bai_tap_4.rs:14:27 [INFO] [stdout] | [INFO] [stdout] 14 | fn total_price(&self, shopping_list: &[&str]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_shopping_list` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Price` is never used [INFO] [stdout] --> src/bin/bai_tap_4.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | trait Price { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Store` is never constructed [INFO] [stdout] --> src/bin/bai_tap_4.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | struct Store { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Item` is never constructed [INFO] [stdout] --> src/bin/bai_tap_4.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | struct Item { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `add_item` are never used [INFO] [stdout] --> src/bin/bai_tap_4.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 36 | impl Store { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 37 | fn new(name: String) -> Store { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | fn add_item(&mut self, item: Item) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_store` is never used [INFO] [stdout] --> src/bin/bai_tap_4.rs:77:4 [INFO] [stdout] | [INFO] [stdout] 77 | fn build_store() -> Store { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Factory` is never constructed [INFO] [stdout] --> src/bin/bai_tap_4.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 102 | struct Factory { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_factory` is never used [INFO] [stdout] --> src/bin/bai_tap_4.rs:132:4 [INFO] [stdout] | [INFO] [stdout] 132 | fn build_factory() -> Factory { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `price` is never used [INFO] [stdout] --> src/bin/bai_tap_4.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | trait Price { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] 12 | fn price(&self, item_name: &str) -> Option; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/bin/bai_tap_4.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 25 | struct Store { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 26 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "1eb5ef38a7f8b80de69dabd2c30fc152bcf9d6cd105de206363ddce4de9872e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1eb5ef38a7f8b80de69dabd2c30fc152bcf9d6cd105de206363ddce4de9872e4", kill_on_drop: false }` [INFO] [stdout] 1eb5ef38a7f8b80de69dabd2c30fc152bcf9d6cd105de206363ddce4de9872e4