[INFO] cloning repository https://github.com/rohankumardubey/node-to-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rohankumardubey/node-to-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frohankumardubey%2Fnode-to-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frohankumardubey%2Fnode-to-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 975c4e9ed8823027abf3355727842f3b321272ef [INFO] testing rohankumardubey/node-to-rust against beta-2022-02-22 for beta-1.60-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frohankumardubey%2Fnode-to-rust" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/rohankumardubey/node-to-rust on toolchain beta-2022-02-22 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/rohankumardubey/node-to-rust [INFO] finished tweaking git repo https://github.com/rohankumardubey/node-to-rust [INFO] tweaked toml for git repo https://github.com/rohankumardubey/node-to-rust written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/rohankumardubey/node-to-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded markdown v0.3.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 166a165a284c34e3684df019a0a067ee4efa983f0a905eb1505ffde3816ce273 [INFO] running `Command { std: "docker" "start" "-a" "166a165a284c34e3684df019a0a067ee4efa983f0a905eb1505ffde3816ce273", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "166a165a284c34e3684df019a0a067ee4efa983f0a905eb1505ffde3816ce273", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "166a165a284c34e3684df019a0a067ee4efa983f0a905eb1505ffde3816ce273", kill_on_drop: false }` [INFO] [stdout] 166a165a284c34e3684df019a0a067ee4efa983f0a905eb1505ffde3816ce273 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f03ae11387b23aa459d1fd3d46fe6bc43615098298160b377d2aaf8bab298591 [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" "f03ae11387b23aa459d1fd3d46fe6bc43615098298160b377d2aaf8bab298591", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.33 [INFO] [stderr] Compiling syn v1.0.82 [INFO] [stderr] Compiling pipeline v0.5.0 [INFO] [stderr] Compiling day-7-syntax v0.0.0 (/opt/rustwide/workdir/crates/day-7/syntax) [INFO] [stderr] Compiling day-5-let-vs-const v0.0.0 (/opt/rustwide/workdir/crates/day-5/let-vs-const) [INFO] [stderr] Compiling day-14-from-into v0.0.0 (/opt/rustwide/workdir/crates/day-14/from-into) [INFO] [stderr] Compiling day-8-structs v0.0.0 (/opt/rustwide/workdir/crates/day-8/structs) [INFO] [stderr] Compiling day-15-closures v0.0.0 (/opt/rustwide/workdir/crates/day-15/closures) [INFO] [stderr] Compiling day-9-structs v0.0.0 (/opt/rustwide/workdir/crates/day-9/structs) [INFO] [stderr] Compiling day-6-loads-of-strs v0.0.0 (/opt/rustwide/workdir/crates/day-6/loads-of-strs) [INFO] [stderr] Compiling day-16-type-differences v0.0.0 (/opt/rustwide/workdir/crates/day-16/type-differences) [INFO] [stderr] Compiling day-11-modules v0.0.0 (/opt/rustwide/workdir/crates/day-11/modules) [INFO] [stderr] Compiling day-13-option v0.0.0 (/opt/rustwide/workdir/crates/day-13/option) [INFO] [stderr] Compiling day-17-iterators v0.0.0 (/opt/rustwide/workdir/crates/day-17/iterators) [INFO] [stdout] warning: associated function is never used: `get_state` [INFO] [stdout] --> crates/day-9/structs/src/main.rs:29:10 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn get_state(&self) -> &TrafficLightColor { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Yellow` [INFO] [stdout] --> crates/day-9/structs/src/main.rs:41:3 [INFO] [stdout] | [INFO] [stdout] 41 | Yellow, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TrafficLightColor` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> crates/day-9/structs/src/main.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 38 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/day-8/structs/src/main.rs:2:7 [INFO] [stdout] | [INFO] [stdout] 2 | let mut light = TrafficLight::new(); [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: `add_numbers` [INFO] [stdout] --> crates/day-7/syntax/src/main.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn add_numbers(left: i64, right: i64) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Display` [INFO] [stdout] --> crates/day-16/type-differences/src/impl-borrowed.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::Display; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> crates/day-15/closures/src/main.rs:39:7 [INFO] [stdout] | [INFO] [stdout] 39 | let bytes = consuming_closure(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling day-17-arrays v0.0.0 (/opt/rustwide/workdir/crates/day-17/arrays) [INFO] [stderr] Compiling day-8-maps v0.0.0 (/opt/rustwide/workdir/crates/day-8/maps) [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling day-4-strings-wtf-1 v0.0.0 (/opt/rustwide/workdir/crates/day-4/strings-wtf-1) [INFO] [stdout] warning: method `doWork` should have a snake case name [INFO] [stdout] --> crates/day-17/arrays/src/main.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | fn doWork(&mut self) -> Option<&'static str> { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `do_work` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling day-4-hello-world v0.0.0 (/opt/rustwide/workdir/crates/day-4/hello-world) [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling day-10-traits v0.0.0 (/opt/rustwide/workdir/crates/day-10/traits) [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling day-16-unsafe-pointers v0.0.0 (/opt/rustwide/workdir/crates/day-16/unsafe-pointers) [INFO] [stderr] Compiling day-16-static-bounds v0.0.0 (/opt/rustwide/workdir/crates/day-16/static-bounds) [INFO] [stderr] Compiling day-11-traffic-light v0.0.0 (/opt/rustwide/workdir/crates/day-11/traffic-light) [INFO] [stderr] Compiling day-5-borrowing v0.0.0 (/opt/rustwide/workdir/crates/day-5/borrowing) [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling day-12-impl-tostring v0.0.0 (/opt/rustwide/workdir/crates/day-12/impl-tostring) [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling day-12-impl-asref-str v0.0.0 (/opt/rustwide/workdir/crates/day-12/impl-asref-str) [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> crates/day-4/strings-wtf-1/src/main.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | println!(greeting); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 3 | println!("{}", greeting); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `day-4-strings-wtf-1` due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> crates/day-5/let-vs-const/./src/reassigning-wrong-type.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 2 | let mut mutable = 1; [INFO] [stdout] | - expected due to this value [INFO] [stdout] 3 | println!("{}", mutable); [INFO] [stdout] 4 | mutable = "3"; [INFO] [stdout] | ^^^ expected integer, found `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `turn_green` [INFO] [stdout] --> crates/day-10/traits/src/main.rs:58:10 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn turn_green(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Yellow` [INFO] [stdout] --> crates/day-10/traits/src/main.rs:66:3 [INFO] [stdout] | [INFO] [stdout] 66 | Yellow, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TrafficLightColor` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> crates/day-10/traits/src/main.rs:63:10 [INFO] [stdout] | [INFO] [stdout] 63 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Green` [INFO] [stdout] --> crates/day-10/traits/src/main.rs:67:3 [INFO] [stdout] | [INFO] [stdout] 67 | Green, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TrafficLightColor` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> crates/day-10/traits/src/main.rs:63:10 [INFO] [stdout] | [INFO] [stdout] 63 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `turn_green` [INFO] [stdout] --> crates/day-11/traffic-light/src/light/traffic_light.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn turn_green(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Yellow` [INFO] [stdout] --> crates/day-11/traffic-light/src/light/traffic_light.rs:41:3 [INFO] [stdout] | [INFO] [stdout] 41 | Yellow, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TrafficLightColor` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> crates/day-11/traffic-light/src/light/traffic_light.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 38 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Green` [INFO] [stdout] --> crates/day-11/traffic-light/src/light/traffic_light.rs:42:3 [INFO] [stdout] | [INFO] [stdout] 42 | Green, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TrafficLightColor` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> crates/day-11/traffic-light/src/light/traffic_light.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 38 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `string` does not live long enough [INFO] [stdout] --> crates/day-16/static-bounds/src/main.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | print_c(&string); // Compilation error [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | cast requires that `string` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 14 | } [INFO] [stdout] | - `string` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `string` does not live long enough [INFO] [stdout] --> crates/day-16/static-bounds/src/main.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | print_d(&string); // Compilation error [INFO] [stdout] | --------^^^^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | borrowed value does not live long enough [INFO] [stdout] | argument requires that `string` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 14 | } [INFO] [stdout] | - `string` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `string` does not live long enough [INFO] [stdout] --> crates/day-16/static-bounds/src/main.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | print_g(&string); // Compilation error [INFO] [stdout] | --------^^^^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | borrowed value does not live long enough [INFO] [stdout] | argument requires that `string` is borrowed for `'static` [INFO] [stdout] 14 | } [INFO] [stdout] | - `string` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0597`. [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ip_address` [INFO] [stdout] --> crates/day-12/impl-asref-str/src/main.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | let ip_address = std::net::Ipv4Addr::from_str("127.0.0.1").unwrap(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ip_address` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "f03ae11387b23aa459d1fd3d46fe6bc43615098298160b377d2aaf8bab298591", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f03ae11387b23aa459d1fd3d46fe6bc43615098298160b377d2aaf8bab298591", kill_on_drop: false }` [INFO] [stdout] f03ae11387b23aa459d1fd3d46fe6bc43615098298160b377d2aaf8bab298591