[INFO] cloning repository https://github.com/tabikaeru/ts-randomforest [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tabikaeru/ts-randomforest" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftabikaeru%2Fts-randomforest", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftabikaeru%2Fts-randomforest'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 989f9b7ae477783c90422cda807daebfb9ee87af [INFO] checking tabikaeru/ts-randomforest against master#561b5dea1e7e5c21f0fb550ca579229ceb878297 for pr-124661 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftabikaeru%2Fts-randomforest" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tabikaeru/ts-randomforest on toolchain 561b5dea1e7e5c21f0fb550ca579229ceb878297 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+561b5dea1e7e5c21f0fb550ca579229ceb878297" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/tabikaeru/ts-randomforest [INFO] finished tweaking git repo https://github.com/tabikaeru/ts-randomforest [INFO] tweaked toml for git repo https://github.com/tabikaeru/ts-randomforest written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/tabikaeru/ts-randomforest 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" "+561b5dea1e7e5c21f0fb550ca579229ceb878297" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded randomforest v0.1.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+561b5dea1e7e5c21f0fb550ca579229ceb878297" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7c715568d6f73e8ab2e2ec7ffa4a89b559ee95b7a22d9cf1262dd403c800e1b6 [INFO] running `Command { std: "docker" "start" "-a" "7c715568d6f73e8ab2e2ec7ffa4a89b559ee95b7a22d9cf1262dd403c800e1b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7c715568d6f73e8ab2e2ec7ffa4a89b559ee95b7a22d9cf1262dd403c800e1b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7c715568d6f73e8ab2e2ec7ffa4a89b559ee95b7a22d9cf1262dd403c800e1b6", kill_on_drop: false }` [INFO] [stdout] 7c715568d6f73e8ab2e2ec7ffa4a89b559ee95b7a22d9cf1262dd403c800e1b6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+561b5dea1e7e5c21f0fb550ca579229ceb878297" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] eb088bbff8caf27bc5f8771d95122dbe9955b8b440ef6399593ad54abc736219 [INFO] running `Command { std: "docker" "start" "-a" "eb088bbff8caf27bc5f8771d95122dbe9955b8b440ef6399593ad54abc736219", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.39 [INFO] [stderr] Compiling unicode-ident v1.0.0 [INFO] [stderr] Compiling syn v1.0.96 [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.80 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling crossbeam-utils v0.8.8 [INFO] [stderr] Compiling serde v1.0.137 [INFO] [stderr] Compiling bumpalo v3.10.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling serde_json v1.0.81 [INFO] [stderr] Compiling wasm-bindgen v0.2.80 [INFO] [stderr] Checking ryu v1.0.10 [INFO] [stderr] Checking itoa v1.0.2 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling rayon-core v1.9.3 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking scoped-tls v1.0.0 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling crossbeam-epoch v0.9.8 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling rayon v1.5.3 [INFO] [stderr] Checking crossbeam-channel v0.5.4 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Checking crossbeam-deque v0.8.1 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Compiling wasm-bindgen-test-macro v0.3.30 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking ordered-float v2.10.0 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.80 [INFO] [stderr] Compiling thiserror-impl v1.0.31 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.80 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.80 [INFO] [stderr] Checking thiserror v1.0.31 [INFO] [stderr] Checking randomforest v0.1.6 [INFO] [stderr] Checking js-sys v0.3.57 [INFO] [stderr] Checking console_error_panic_hook v0.1.7 [INFO] [stderr] Checking ts-randomforest v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/random_forest/classifier.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let mut file = File::create(file_name).unwrap(); [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: unused variable: `path` [INFO] [stdout] --> src/random_forest/classifier.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let path = env::current_dir().unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/random_forest/classifier.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let mut file = File::open(file_name).unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/random_forest/regressor.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let mut file = File::create(file_name).unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/random_forest/regressor.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let path = env::current_dir().unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/random_forest/regressor.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let mut file = File::open(file_name).unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `regressorTrain` should have a snake case name [INFO] [stdout] --> src/lib.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn regressorTrain( [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `regressor_train` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `regressorTest` should have a snake case name [INFO] [stdout] --> src/lib.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn regressorTest(features: Vec, file_name: &str) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `regressor_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `classifierTrain` should have a snake case name [INFO] [stdout] --> src/lib.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn classifierTrain( [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `classifier_train` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/random_forest/classifier.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | classifier.serialize(writer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 15 | let _ = classifier.serialize(writer); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/random_forest/regressor.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | regressor.serialize(writer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 15 | let _ = regressor.serialize(writer); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking wasm-bindgen-futures v0.4.30 [INFO] [stderr] Checking wasm-bindgen-test v0.3.30 [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/random_forest/classifier.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let mut file = File::create(file_name).unwrap(); [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: unused variable: `path` [INFO] [stdout] --> src/random_forest/classifier.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let path = env::current_dir().unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/random_forest/classifier.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let mut file = File::open(file_name).unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/random_forest/regressor.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let mut file = File::create(file_name).unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/random_forest/regressor.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let path = env::current_dir().unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/random_forest/regressor.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let mut file = File::open(file_name).unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `test_features` [INFO] [stdout] --> src/lib.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | let test_features = &[1.0, 2.0, 0.0, 0.0]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_test_features` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_classifier` is never used [INFO] [stdout] --> src/lib.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | fn test_classifier() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `regressorTrain` should have a snake case name [INFO] [stdout] --> src/lib.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn regressorTrain( [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `regressor_train` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `regressorTest` should have a snake case name [INFO] [stdout] --> src/lib.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn regressorTest(features: Vec, file_name: &str) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `regressor_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `classifierTrain` should have a snake case name [INFO] [stdout] --> src/lib.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn classifierTrain( [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `classifier_train` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/random_forest/classifier.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | classifier.serialize(writer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 15 | let _ = classifier.serialize(writer); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/random_forest/regressor.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | regressor.serialize(writer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 15 | let _ = regressor.serialize(writer); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | random_forest::regressor::save_model(file_name, ®ressor); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 76 | let _ = random_forest::regressor::save_model(file_name, ®ressor); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.01s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: wasm-bindgen v0.2.80 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "eb088bbff8caf27bc5f8771d95122dbe9955b8b440ef6399593ad54abc736219", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eb088bbff8caf27bc5f8771d95122dbe9955b8b440ef6399593ad54abc736219", kill_on_drop: false }` [INFO] [stdout] eb088bbff8caf27bc5f8771d95122dbe9955b8b440ef6399593ad54abc736219