[INFO] updating cached repository https://github.com/aprilyzl0405/leetcode-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7133a18f7d97727d623c913888b7039eaf0453aa [INFO] checking aprilyzl0405/leetcode-rust against try#c8bdaa84ec1b37f18f30375e196a65b7602f3790 for pr-73345 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faprilyzl0405%2Fleetcode-rust" "/workspace/builds/worker-10/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-10/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/aprilyzl0405/leetcode-rust on toolchain c8bdaa84ec1b37f18f30375e196a65b7602f3790 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+c8bdaa84ec1b37f18f30375e196a65b7602f3790" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/aprilyzl0405/leetcode-rust [INFO] finished tweaking git repo https://github.com/aprilyzl0405/leetcode-rust [INFO] tweaked toml for git repo https://github.com/aprilyzl0405/leetcode-rust written to /workspace/builds/worker-10/source/Cargo.toml [INFO] crate git repo https://github.com/aprilyzl0405/leetcode-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+c8bdaa84ec1b37f18f30375e196a65b7602f3790" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:6c9ffe128752d56c8d75334ed354142a5229917ed99767f56566dd8e857ad726" "/opt/rustwide/cargo-home/bin/cargo" "+c8bdaa84ec1b37f18f30375e196a65b7602f3790" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3d2c91685883cc2254b0e2007d26180e84ee2f96a60c9ed7da90fed1c4b02b40 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "3d2c91685883cc2254b0e2007d26180e84ee2f96a60c9ed7da90fed1c4b02b40", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3d2c91685883cc2254b0e2007d26180e84ee2f96a60c9ed7da90fed1c4b02b40", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3d2c91685883cc2254b0e2007d26180e84ee2f96a60c9ed7da90fed1c4b02b40", kill_on_drop: false }` [INFO] [stdout] 3d2c91685883cc2254b0e2007d26180e84ee2f96a60c9ed7da90fed1c4b02b40 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:6c9ffe128752d56c8d75334ed354142a5229917ed99767f56566dd8e857ad726" "/opt/rustwide/cargo-home/bin/cargo" "+c8bdaa84ec1b37f18f30375e196a65b7602f3790" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c44c00a02e81c2f8acc0d907a8668997b372c76063a3fb347ee2798570425ffa [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "c44c00a02e81c2f8acc0d907a8668997b372c76063a3fb347ee2798570425ffa", kill_on_drop: false }` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking leetcode-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/solutions/n146_lru_cache.rs:67:34 [INFO] [stdout] | [INFO] [stdout] 67 | (Some(ptr), Some(unsafe { (*entry).val })) [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/n1_two_sum.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `two_sum` [INFO] [stdout] --> src/solutions/n1_two_sum.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn two_sum(nums: Vec, target: i32) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/n15_3_sum.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `three_sum` [INFO] [stdout] --> src/solutions/n15_3_sum.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn three_sum(nums: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `three_sum_2` [INFO] [stdout] --> src/solutions/n15_3_sum.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn three_sum_2(nums: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `two_sum` [INFO] [stdout] --> src/solutions/n15_3_sum.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn two_sum(nums: Vec, target: i32) -> HashSet> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `LRUEntry` [INFO] [stdout] --> src/solutions/n146_lru_cache.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct LRUEntry { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/solutions/n146_lru_cache.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn new(key: i32, val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `LRUCache` [INFO] [stdout] --> src/solutions/n146_lru_cache.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | struct LRUCache { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/solutions/n146_lru_cache.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | fn new(capacity: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/solutions/n146_lru_cache.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | fn get(&mut self, key: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `put` [INFO] [stdout] --> src/solutions/n146_lru_cache.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | fn put(&mut self, key: i32, value: i32) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop` [INFO] [stdout] --> src/solutions/n146_lru_cache.rs:109:8 [INFO] [stdout] | [INFO] [stdout] 109 | fn pop(&mut self) -> Option> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push` [INFO] [stdout] --> src/solutions/n146_lru_cache.rs:123:8 [INFO] [stdout] | [INFO] [stdout] 123 | fn push(&mut self, entry: *mut LRUEntry) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `detach` [INFO] [stdout] --> src/solutions/n146_lru_cache.rs:135:8 [INFO] [stdout] | [INFO] [stdout] 135 | fn detach(&mut self, entry: *mut LRUEntry) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/solutions/n146_lru_cache.rs:67:34 [INFO] [stdout] | [INFO] [stdout] 67 | (Some(ptr), Some(unsafe { (*entry).val })) [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.96s [INFO] running `Command { std: "docker" "inspect" "c44c00a02e81c2f8acc0d907a8668997b372c76063a3fb347ee2798570425ffa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c44c00a02e81c2f8acc0d907a8668997b372c76063a3fb347ee2798570425ffa", kill_on_drop: false }` [INFO] [stdout] c44c00a02e81c2f8acc0d907a8668997b372c76063a3fb347ee2798570425ffa