[INFO] cloning repository https://github.com/ityy/rust_leet_code
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ityy/rust_leet_code" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fityy%2Frust_leet_code", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fityy%2Frust_leet_code'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 800474f48127d0f3af67311c6cbb77ff76bcd076
[INFO] checking ityy/rust_leet_code against 65b20a97de33e9e59992793a144aef2950c48c76 for pr-154715
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fityy%2Frust_leet_code" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/ityy/rust_leet_code
[INFO] finished tweaking git repo https://github.com/ityy/rust_leet_code
[INFO] tweaked toml for git repo https://github.com/ityy/rust_leet_code written to /workspace/builds/worker-1-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/ityy/rust_leet_code on toolchain 65b20a97de33e9e59992793a144aef2950c48c76
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+65b20a97de33e9e59992793a144aef2950c48c76" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/ityy/rust_leet_code 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" "+65b20a97de33e9e59992793a144aef2950c48c76" "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-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:00c5645b54fe3ce5dae1417175e3c7fb6a6646c021d554ecd63a097b8b9f3602" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 796eb426652c02545ce1f097338ff6c25f60d2392fa9bb17ccd58f64ea704c67
[INFO] running `Command { std: "docker" "start" "796eb426652c02545ce1f097338ff6c25f60d2392fa9bb17ccd58f64ea704c67", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "796eb426652c02545ce1f097338ff6c25f60d2392fa9bb17ccd58f64ea704c67", 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" "796eb426652c02545ce1f097338ff6c25f60d2392fa9bb17ccd58f64ea704c67" "/opt/rustwide/cargo-home/bin/cargo" "+65b20a97de33e9e59992793a144aef2950c48c76" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "796eb426652c02545ce1f097338ff6c25f60d2392fa9bb17ccd58f64ea704c67", 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" "796eb426652c02545ce1f097338ff6c25f60d2392fa9bb17ccd58f64ea704c67" "/opt/rustwide/cargo-home/bin/cargo" "+65b20a97de33e9e59992793a144aef2950c48c76" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]     Checking rust_leet_code v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unnecessary parentheses around assigned value
[INFO] [stdout]   --> src/sn1_1_100/t2_add_two_numbers.rs:28:19
[INFO] [stdout]    |
[INFO] [stdout] 28 |         l1_num += (l.val as u128 * a);
[INFO] [stdout]    |                   ^                 ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 28 -         l1_num += (l.val as u128 * a);
[INFO] [stdout] 28 +         l1_num += l.val as u128 * a;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around assigned value
[INFO] [stdout]   --> src/sn1_1_100/t2_add_two_numbers.rs:34:19
[INFO] [stdout]    |
[INFO] [stdout] 34 |         l2_num += (l.val as u128 * a);
[INFO] [stdout]    |                   ^                 ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 34 -         l2_num += (l.val as u128 * a);
[INFO] [stdout] 34 +         l2_num += l.val as u128 * a;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around assigned value
[INFO] [stdout]   --> src/sn1_1_100/t2_add_two_numbers.rs:28:19
[INFO] [stdout]    |
[INFO] [stdout] 28 |         l1_num += (l.val as u128 * a);
[INFO] [stdout]    |                   ^                 ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 28 -         l1_num += (l.val as u128 * a);
[INFO] [stdout] 28 +         l1_num += l.val as u128 * a;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around assigned value
[INFO] [stdout]   --> src/sn1_1_100/t2_add_two_numbers.rs:34:19
[INFO] [stdout]    |
[INFO] [stdout] 34 |         l2_num += (l.val as u128 * a);
[INFO] [stdout]    |                   ^                 ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 34 -         l2_num += (l.val as u128 * a);
[INFO] [stdout] 34 +         l2_num += l.val as u128 * a;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/sn1_1_100/t2_add_two_numbers.rs:46:9
[INFO] [stdout]    |
[INFO] [stdout] 46 |     let mut result = ListNode::new(num as i32);
[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: function `two_sum` is never used
[INFO] [stdout]  --> src/sn1_1_100/t1_two_sum.rs:4:8
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub fn two_sum(nums: Vec<i32>, target: i32) -> Vec<i32> {
[INFO] [stdout]   |        ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `two_sum2` is never used
[INFO] [stdout]   --> src/sn1_1_100/t1_two_sum.rs:18:8
[INFO] [stdout]    |
[INFO] [stdout] 18 | pub fn two_sum2(nums: Vec<i32>, target: i32) -> Vec<i32> {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ListNode` is never constructed
[INFO] [stdout]  --> src/sn1_1_100/t2_add_two_numbers.rs:3:12
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub struct ListNode {
[INFO] [stdout]   |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/sn1_1_100/t2_add_two_numbers.rs:10:8
[INFO] [stdout]    |
[INFO] [stdout]  8 | impl ListNode {
[INFO] [stdout]    | ------------- associated function in this implementation
[INFO] [stdout]  9 |     #[inline]
[INFO] [stdout] 10 |     fn new(val: i32) -> Self {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `add_two_numbers1` is never used
[INFO] [stdout]   --> src/sn1_1_100/t2_add_two_numbers.rs:23:8
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub fn add_two_numbers1(l1: Option<Box<ListNode>>, l2: Option<Box<ListNode>>) -> Option<Box<ListNode>> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `add_two_numbers` is never used
[INFO] [stdout]   --> src/sn1_1_100/t2_add_two_numbers.rs:72:8
[INFO] [stdout]    |
[INFO] [stdout] 72 | pub fn add_two_numbers(l1: Option<Box<ListNode>>, l2: Option<Box<ListNode>>) -> Option<Box<ListNode>> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/sn1_1_100/t2_add_two_numbers.rs:46:9
[INFO] [stdout]    |
[INFO] [stdout] 46 |     let mut result = ListNode::new(num as i32);
[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: function `two_sum` is never used
[INFO] [stdout]  --> src/sn1_1_100/t1_two_sum.rs:4:8
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub fn two_sum(nums: Vec<i32>, target: i32) -> Vec<i32> {
[INFO] [stdout]   |        ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `two_sum2` is never used
[INFO] [stdout]   --> src/sn1_1_100/t1_two_sum.rs:18:8
[INFO] [stdout]    |
[INFO] [stdout] 18 | pub fn two_sum2(nums: Vec<i32>, target: i32) -> Vec<i32> {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.07s
[INFO] running `Command { std: "docker" "inspect" "796eb426652c02545ce1f097338ff6c25f60d2392fa9bb17ccd58f64ea704c67", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "796eb426652c02545ce1f097338ff6c25f60d2392fa9bb17ccd58f64ea704c67", kill_on_drop: false }`
[INFO] [stdout] 796eb426652c02545ce1f097338ff6c25f60d2392fa9bb17ccd58f64ea704c67
