[INFO] cloning repository https://github.com/jakeec/aoc_2019_intcode [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jakeec/aoc_2019_intcode" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjakeec%2Faoc_2019_intcode", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjakeec%2Faoc_2019_intcode'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4a13fbb99d1fbc85bc22d70d41dc1c2b118ccd40 [INFO] checking jakeec/aoc_2019_intcode against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjakeec%2Faoc_2019_intcode" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jakeec/aoc_2019_intcode on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jakeec/aoc_2019_intcode [INFO] finished tweaking git repo https://github.com/jakeec/aoc_2019_intcode [INFO] tweaked toml for git repo https://github.com/jakeec/aoc_2019_intcode written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/jakeec/aoc_2019_intcode already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7c4e1aca837abac76f74c55c9966b31024d58243f99736b765f82be0e3f8694c [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" "7c4e1aca837abac76f74c55c9966b31024d58243f99736b765f82be0e3f8694c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7c4e1aca837abac76f74c55c9966b31024d58243f99736b765f82be0e3f8694c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7c4e1aca837abac76f74c55c9966b31024d58243f99736b765f82be0e3f8694c", kill_on_drop: false }` [INFO] [stdout] 7c4e1aca837abac76f74c55c9966b31024d58243f99736b765f82be0e3f8694c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 40e5d77374048e614b984b315e294d7d8beaed410954afe91236aa729f73d878 [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" "40e5d77374048e614b984b315e294d7d8beaed410954afe91236aa729f73d878", kill_on_drop: false }` [INFO] [stderr] Checking aoc_2019_intcode v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | for i in 0..last { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/main.rs:122:23 [INFO] [stdout] | [INFO] [stdout] 122 | (a, b, c, d, 1) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/main.rs:128:23 [INFO] [stdout] | [INFO] [stdout] 128 | (a, b, c, d, 2) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/main.rs:134:23 [INFO] [stdout] | [INFO] [stdout] 134 | (a, b, c, d, 3) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/main.rs:140:23 [INFO] [stdout] | [INFO] [stdout] 140 | (a, b, c, d, 4) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/main.rs:145:23 [INFO] [stdout] | [INFO] [stdout] 145 | (a, b, c, d, 5) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out_addr` [INFO] [stdout] --> src/main.rs:146:22 [INFO] [stdout] | [INFO] [stdout] 146 | let (out_addr, rand_1_addr, rand_2_addr) = [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/main.rs:154:23 [INFO] [stdout] | [INFO] [stdout] 154 | (a, b, c, d, 6) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out_addr` [INFO] [stdout] --> src/main.rs:155:22 [INFO] [stdout] | [INFO] [stdout] 155 | let (out_addr, rand_1_addr, rand_2_addr) = [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/main.rs:163:23 [INFO] [stdout] | [INFO] [stdout] 163 | (a, b, c, d, 7) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/main.rs:173:23 [INFO] [stdout] | [INFO] [stdout] 173 | (a, b, c, d, 8) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/main.rs:185:17 [INFO] [stdout] | [INFO] [stdout] 185 | d => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out_addr` [INFO] [stdout] --> src/main.rs:186:26 [INFO] [stdout] | [INFO] [stdout] 186 | let (out_addr, rand_1_addr, rand_2_addr) = [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rand_2_addr` [INFO] [stdout] --> src/main.rs:186:49 [INFO] [stdout] | [INFO] [stdout] 186 | let (out_addr, rand_1_addr, rand_2_addr) = [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rand_2_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let mut codes: Vec = program [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `runWithInput` [INFO] [stdout] --> src/main.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn runWithInput(program: &str, input: Vec) -> (Vec, Vec) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `trim_dead_memory` [INFO] [stdout] --> src/main.rs:91:4 [INFO] [stdout] | [INFO] [stdout] 91 | fn trim_dead_memory(mem: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `runWithInput` should have a snake case name [INFO] [stdout] --> src/main.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn runWithInput(program: &str, input: Vec) -> (Vec, Vec) { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `run_with_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | for i in 0..last { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/main.rs:122:23 [INFO] [stdout] | [INFO] [stdout] 122 | (a, b, c, d, 1) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/main.rs:128:23 [INFO] [stdout] | [INFO] [stdout] 128 | (a, b, c, d, 2) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/main.rs:134:23 [INFO] [stdout] | [INFO] [stdout] 134 | (a, b, c, d, 3) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/main.rs:140:23 [INFO] [stdout] | [INFO] [stdout] 140 | (a, b, c, d, 4) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/main.rs:145:23 [INFO] [stdout] | [INFO] [stdout] 145 | (a, b, c, d, 5) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out_addr` [INFO] [stdout] --> src/main.rs:146:22 [INFO] [stdout] | [INFO] [stdout] 146 | let (out_addr, rand_1_addr, rand_2_addr) = [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/main.rs:154:23 [INFO] [stdout] | [INFO] [stdout] 154 | (a, b, c, d, 6) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out_addr` [INFO] [stdout] --> src/main.rs:155:22 [INFO] [stdout] | [INFO] [stdout] 155 | let (out_addr, rand_1_addr, rand_2_addr) = [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/main.rs:163:23 [INFO] [stdout] | [INFO] [stdout] 163 | (a, b, c, d, 7) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/main.rs:173:23 [INFO] [stdout] | [INFO] [stdout] 173 | (a, b, c, d, 8) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/main.rs:185:17 [INFO] [stdout] | [INFO] [stdout] 185 | d => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out_addr` [INFO] [stdout] --> src/main.rs:186:26 [INFO] [stdout] | [INFO] [stdout] 186 | let (out_addr, rand_1_addr, rand_2_addr) = [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rand_2_addr` [INFO] [stdout] --> src/main.rs:186:49 [INFO] [stdout] | [INFO] [stdout] 186 | let (out_addr, rand_1_addr, rand_2_addr) = [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rand_2_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/main.rs:279:14 [INFO] [stdout] | [INFO] [stdout] 279 | let (memory, output) = intcode(vec![3, 0, 4, 0, 99], vec![1]); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/main.rs:285:22 [INFO] [stdout] | [INFO] [stdout] 285 | let (memory, output) = intcode(vec![1002, 4, 3, 4, 33], vec![1]); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/main.rs:291:22 [INFO] [stdout] | [INFO] [stdout] 291 | let (memory, output) = intcode(vec![1101, 100, -1, 4, 0], vec![1]); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/main.rs:298:14 [INFO] [stdout] | [INFO] [stdout] 298 | let (memory, output) = runWithInput(&input, vec![1]); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/main.rs:304:14 [INFO] [stdout] | [INFO] [stdout] 304 | let (memory, output) = intcode(vec![3, 9, 8, 9, 10, 9, 4, 9, 99, -1, 8], vec![8]); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/main.rs:310:14 [INFO] [stdout] | [INFO] [stdout] 310 | let (memory, output) = intcode(vec![3, 9, 8, 9, 10, 9, 4, 9, 99, -1, 8], vec![7]); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/main.rs:316:14 [INFO] [stdout] | [INFO] [stdout] 316 | let (memory, output) = intcode(vec![3, 9, 7, 9, 10, 9, 4, 9, 99, -1, 8], vec![7]); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/main.rs:322:14 [INFO] [stdout] | [INFO] [stdout] 322 | let (memory, output) = intcode(vec![3, 9, 7, 9, 10, 9, 4, 9, 99, -1, 8], vec![8]); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/main.rs:328:14 [INFO] [stdout] | [INFO] [stdout] 328 | let (memory, output) = intcode(vec![3, 3, 1108, -1, 8, 3, 4, 3, 99], vec![8]); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/main.rs:334:14 [INFO] [stdout] | [INFO] [stdout] 334 | let (memory, output) = intcode(vec![3, 3, 1108, -1, 8, 3, 4, 3, 99], vec![7]); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/main.rs:340:14 [INFO] [stdout] | [INFO] [stdout] 340 | let (memory, output) = intcode(vec![3, 3, 1107, -1, 8, 3, 4, 3, 99], vec![4]); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/main.rs:346:14 [INFO] [stdout] | [INFO] [stdout] 346 | let (memory, output) = intcode(vec![3, 3, 1107, -1, 8, 3, 4, 3, 99], vec![9]); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/main.rs:352:14 [INFO] [stdout] | [INFO] [stdout] 352 | let (memory, output) = intcode( [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/main.rs:361:14 [INFO] [stdout] | [INFO] [stdout] 361 | let (memory, output) = intcode( [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/main.rs:370:14 [INFO] [stdout] | [INFO] [stdout] 370 | let (memory, output) = intcode( [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/main.rs:379:14 [INFO] [stdout] | [INFO] [stdout] 379 | let (memory, output) = intcode( [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/main.rs:388:14 [INFO] [stdout] | [INFO] [stdout] 388 | let (memory, output) = intcode( [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/main.rs:401:14 [INFO] [stdout] | [INFO] [stdout] 401 | let (memory, output) = intcode( [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/main.rs:414:14 [INFO] [stdout] | [INFO] [stdout] 414 | let (memory, output) = intcode( [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/main.rs:428:14 [INFO] [stdout] | [INFO] [stdout] 428 | let (memory, output) = runWithInput(&input, vec![5]); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/main.rs:442:14 [INFO] [stdout] | [INFO] [stdout] 442 | let (memory, output) = intcode(input.clone(), vec![]); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/main.rs:449:14 [INFO] [stdout] | [INFO] [stdout] 449 | let (memory, output) = intcode(input.clone(), vec![]); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/main.rs:460:14 [INFO] [stdout] | [INFO] [stdout] 460 | let (memory, output) = intcode(input.clone(), vec![]); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/main.rs:468:14 [INFO] [stdout] | [INFO] [stdout] 468 | let (memory, output) = runWithInput(&input, vec![1]); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/main.rs:476:14 [INFO] [stdout] | [INFO] [stdout] 476 | let (memory, output) = runWithInput(&input, vec![2]); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let mut codes: Vec = program [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `trim_dead_memory` [INFO] [stdout] --> src/main.rs:91:4 [INFO] [stdout] | [INFO] [stdout] 91 | fn trim_dead_memory(mem: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `runWithInput` should have a snake case name [INFO] [stdout] --> src/main.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn runWithInput(program: &str, input: Vec) -> (Vec, Vec) { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `run_with_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 42 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.80s [INFO] running `Command { std: "docker" "inspect" "40e5d77374048e614b984b315e294d7d8beaed410954afe91236aa729f73d878", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "40e5d77374048e614b984b315e294d7d8beaed410954afe91236aa729f73d878", kill_on_drop: false }` [INFO] [stdout] 40e5d77374048e614b984b315e294d7d8beaed410954afe91236aa729f73d878