[INFO] cloning repository https://github.com/PatrykStronski/KnapsackProblem [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/PatrykStronski/KnapsackProblem" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPatrykStronski%2FKnapsackProblem", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPatrykStronski%2FKnapsackProblem'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c941050bad48b4e31df7bc7c3b60cb1df5f8e55a [INFO] checking PatrykStronski/KnapsackProblem against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPatrykStronski%2FKnapsackProblem" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/PatrykStronski/KnapsackProblem 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/PatrykStronski/KnapsackProblem [INFO] finished tweaking git repo https://github.com/PatrykStronski/KnapsackProblem [INFO] tweaked toml for git repo https://github.com/PatrykStronski/KnapsackProblem written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/PatrykStronski/KnapsackProblem 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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded shuffle v0.1.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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] 765d01709afaa3a3cc54e9af2c69e8ef8a146d63f259485f1e1ff2525178706d [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" "765d01709afaa3a3cc54e9af2c69e8ef8a146d63f259485f1e1ff2525178706d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "765d01709afaa3a3cc54e9af2c69e8ef8a146d63f259485f1e1ff2525178706d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "765d01709afaa3a3cc54e9af2c69e8ef8a146d63f259485f1e1ff2525178706d", kill_on_drop: false }` [INFO] [stdout] 765d01709afaa3a3cc54e9af2c69e8ef8a146d63f259485f1e1ff2525178706d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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] ef3e010b487705e6ace4b9f1c9d4e7c25660e4e442156f826988606470b1f2e7 [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" "ef3e010b487705e6ace4b9f1c9d4e7c25660e4e442156f826988606470b1f2e7", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling cc v1.0.50 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling proc-macro2 v1.0.9 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling arrayvec v0.4.12 [INFO] [stderr] Checking nodrop v0.1.14 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking ppv-lite86 v0.2.6 [INFO] [stderr] Compiling palette v0.5.0 [INFO] [stderr] Checking float-ord v0.2.0 [INFO] [stderr] Checking bitvec v0.15.2 [INFO] [stderr] Compiling servo-fontconfig-sys v4.0.9 [INFO] [stderr] Checking gif v0.10.3 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking walkdir v2.3.1 [INFO] [stderr] Checking memmap v0.7.0 [INFO] [stderr] Checking rand v0.5.6 [INFO] [stderr] Checking csv-core v0.1.10 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling num-iter v0.1.40 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling cmake v0.1.42 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking deflate v0.7.20 [INFO] [stderr] Checking stb_truetype v0.3.1 [INFO] [stderr] Checking jpeg-decoder v0.1.18 [INFO] [stderr] Checking regex-automata v0.1.9 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Compiling quote v1.0.3 [INFO] [stderr] Compiling servo-freetype-sys v4.0.5 [INFO] [stderr] Compiling expat-sys v2.1.6 [INFO] [stderr] Compiling syn v1.0.17 [INFO] [stderr] Checking bstr v0.2.12 [INFO] [stderr] Checking png v0.15.3 [INFO] [stderr] Checking freetype v0.4.1 [INFO] [stderr] Checking servo-fontconfig v0.4.0 [INFO] [stderr] Checking euclid v0.20.10 [INFO] [stderr] Checking approx v0.3.2 [INFO] [stderr] Checking ordered-float v1.0.2 [INFO] [stderr] Checking csv v1.1.3 [INFO] [stderr] Checking shuffle v0.1.3 [INFO] [stderr] Checking rusttype v0.8.2 [INFO] [stderr] Checking chrono v0.4.11 [INFO] [stderr] Checking image v0.22.5 [INFO] [stderr] Checking lyon_geom v0.14.1 [INFO] [stderr] Checking lyon_path v0.14.0 [INFO] [stderr] Checking font-kit v0.4.0 [INFO] [stderr] Compiling palette_derive v0.5.0 [INFO] [stderr] Compiling serde_derive v1.0.105 [INFO] [stderr] Checking plotters v0.2.12 [INFO] [stderr] Checking assignment1 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `max_weight` [INFO] [stdout] --> src/main.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let max_weight = 19000; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_weight` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_size` [INFO] [stdout] --> src/main.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let max_size = 19000; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `increment` is never read [INFO] [stdout] --> src/main.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let mut increment = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `population_size` is never read [INFO] [stdout] --> src/main.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 136 | population_size = 800; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/task1.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | fn generate_one(n: u32, w: u32, s:u32) -> Obj { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> src/task1.rs:78:25 [INFO] [stdout] | [INFO] [stdout] 78 | fn generate_one(n: u32, w: u32, s:u32) -> Obj { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/task1.rs:78:33 [INFO] [stdout] | [INFO] [stdout] 78 | fn generate_one(n: u32, w: u32, s:u32) -> Obj { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_weight` [INFO] [stdout] --> src/main.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let max_weight = 19000; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_weight` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_size` [INFO] [stdout] --> src/main.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let max_size = 19000; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `increment` is never read [INFO] [stdout] --> src/main.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let mut increment = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `population_size` is never read [INFO] [stdout] --> src/main.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 136 | population_size = 800; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/task1.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | fn generate_one(n: u32, w: u32, s:u32) -> Obj { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Obj` [INFO] [stdout] --> src/task1.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Obj { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> src/task1.rs:78:25 [INFO] [stdout] | [INFO] [stdout] 78 | fn generate_one(n: u32, w: u32, s:u32) -> Obj { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/task1.rs:78:33 [INFO] [stdout] | [INFO] [stdout] 78 | fn generate_one(n: u32, w: u32, s:u32) -> Obj { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `save_to_file` [INFO] [stdout] --> src/task1.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn save_to_file(arr: &mut[Obj],n:u32,w:u32,s:u32, out_file: String) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `lower_down` [INFO] [stdout] --> src/task1.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn lower_down(current: u32, surplus: f32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `make_smooth` [INFO] [stdout] --> src/task1.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn make_smooth(arr: &mut[Obj], surplus: f32, field: String) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `evaluate_surplus` [INFO] [stdout] --> src/task1.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn evaluate_surplus(arr: &mut[Obj], control_p: u32, property: String) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `smooth_set` [INFO] [stdout] --> src/task1.rs:64:4 [INFO] [stdout] | [INFO] [stdout] 64 | fn smooth_set(arr: &mut[Obj], w: u32, s:u32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_one` [INFO] [stdout] --> src/task1.rs:78:4 [INFO] [stdout] | [INFO] [stdout] 78 | fn generate_one(n: u32, w: u32, s:u32) -> Obj { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate` [INFO] [stdout] --> src/task1.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn generate(n: usize, max_weight: u32, max_size: u32, output_file: String) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Obj` [INFO] [stdout] --> src/task1.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Obj { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `save_to_file` [INFO] [stdout] --> src/task1.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn save_to_file(arr: &mut[Obj],n:u32,w:u32,s:u32, out_file: String) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `lower_down` [INFO] [stdout] --> src/task1.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn lower_down(current: u32, surplus: f32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `make_smooth` [INFO] [stdout] --> src/task1.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn make_smooth(arr: &mut[Obj], surplus: f32, field: String) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `evaluate_surplus` [INFO] [stdout] --> src/task1.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn evaluate_surplus(arr: &mut[Obj], control_p: u32, property: String) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `smooth_set` [INFO] [stdout] --> src/task1.rs:64:4 [INFO] [stdout] | [INFO] [stdout] 64 | fn smooth_set(arr: &mut[Obj], w: u32, s:u32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_one` [INFO] [stdout] --> src/task1.rs:78:4 [INFO] [stdout] | [INFO] [stdout] 78 | fn generate_one(n: u32, w: u32, s:u32) -> Obj { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate` [INFO] [stdout] --> src/task1.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn generate(n: usize, max_weight: u32, max_size: u32, output_file: String) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 19s [INFO] running `Command { std: "docker" "inspect" "ef3e010b487705e6ace4b9f1c9d4e7c25660e4e442156f826988606470b1f2e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef3e010b487705e6ace4b9f1c9d4e7c25660e4e442156f826988606470b1f2e7", kill_on_drop: false }` [INFO] [stdout] ef3e010b487705e6ace4b9f1c9d4e7c25660e4e442156f826988606470b1f2e7