[INFO] cloning repository https://github.com/satanya-zero/btcodec [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/satanya-zero/btcodec" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsatanya-zero%2Fbtcodec", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsatanya-zero%2Fbtcodec'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e4c1ef239f14deec61f54fe0ef9695281f037722 [INFO] checking satanya-zero/btcodec against master#3aedcf06b73fc36feeebca3d579e1d2a6c40acc5 for pr-65819 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsatanya-zero%2Fbtcodec" "/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/satanya-zero/btcodec on toolchain 3aedcf06b73fc36feeebca3d579e1d2a6c40acc5 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3aedcf06b73fc36feeebca3d579e1d2a6c40acc5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/satanya-zero/btcodec [INFO] finished tweaking git repo https://github.com/satanya-zero/btcodec [INFO] tweaked toml for git repo https://github.com/satanya-zero/btcodec written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/satanya-zero/btcodec already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3aedcf06b73fc36feeebca3d579e1d2a6c40acc5" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] error: the lock file /workspace/builds/worker-8/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3aedcf06b73fc36feeebca3d579e1d2a6c40acc5" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3aedcf06b73fc36feeebca3d579e1d2a6c40acc5" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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" "rustops/crates-build-env@sha256:c46a2d1a26fb48b37929c74ca49dd9409f2375a0a3bdb8fe07617f3ffccaa889" "/opt/rustwide/cargo-home/bin/cargo" "+3aedcf06b73fc36feeebca3d579e1d2a6c40acc5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4bee7fd93b98ad998b5b9ac5292d106afdcd9c2e537a164dae978198ff24a475 [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" "4bee7fd93b98ad998b5b9ac5292d106afdcd9c2e537a164dae978198ff24a475", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4bee7fd93b98ad998b5b9ac5292d106afdcd9c2e537a164dae978198ff24a475", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4bee7fd93b98ad998b5b9ac5292d106afdcd9c2e537a164dae978198ff24a475", kill_on_drop: false }` [INFO] [stdout] 4bee7fd93b98ad998b5b9ac5292d106afdcd9c2e537a164dae978198ff24a475 [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=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:c46a2d1a26fb48b37929c74ca49dd9409f2375a0a3bdb8fe07617f3ffccaa889" "/opt/rustwide/cargo-home/bin/cargo" "+3aedcf06b73fc36feeebca3d579e1d2a6c40acc5" "check" "--frozen" "--all" "--all-targets" "--message-format=json", 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] 6b36ccc2cad834995febde444ba14a31403230c385a0bfc18754337c5aa02f59 [INFO] running `Command { std: "docker" "start" "-a" "6b36ccc2cad834995febde444ba14a31403230c385a0bfc18754337c5aa02f59", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.125 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Checking itoa v0.4.7 [INFO] [stderr] Checking btcodec v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0425]: cannot find function `bit2int` in this scope [INFO] [stdout] --> src/packet/etcs5.rs:29:56 [INFO] [stdout] | [INFO] [stdout] 29 | packet_map.insert(String::from("NID_C"), json!(bit2int(10))); [INFO] [stdout] | ^^^^^^^ help: a local variable with a similar name exists: `bin2int` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Number` [INFO] [stdout] --> src/packet/etcs5.rs:4:32 [INFO] [stdout] | [INFO] [stdout] 4 | use serde_json::value::Value::{Number, Object}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `bit2int` in this scope [INFO] [stdout] --> src/packet/etcs5.rs:29:56 [INFO] [stdout] | [INFO] [stdout] 29 | packet_map.insert(String::from("NID_C"), json!(bit2int(10))); [INFO] [stdout] | ^^^^^^^ help: a local variable with a similar name exists: `bin2int` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Number` [INFO] [stdout] --> src/packet/etcs5.rs:4:32 [INFO] [stdout] | [INFO] [stdout] 4 | use serde_json::value::Value::{Number, Object}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/packet/etcs5.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | if assert_eq!(packet_map.get("Q_NEWCOUNTRY"), json!(1)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `Option`, found enum `Value` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<&Value>` [INFO] [stdout] found enum `Value` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0317]: `if` may be missing an `else` clause [INFO] [stdout] --> src/packet/etcs5.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | if assert_eq!(packet_map.get("Q_NEWCOUNTRY"), json!(1)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found `bool` [INFO] [stdout] | [INFO] [stdout] = note: `if` expressions without `else` evaluate to `()` [INFO] [stdout] = help: consider adding an `else` block that evaluates to the expected type [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0605]: non-primitive cast: `u128` as `T` [INFO] [stdout] --> src/tool.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | u128::from_str_radix(&bin_str[range], 2).unwrap() as T [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/packet/etcs5.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | if assert_eq!(packet_map.get("Q_NEWCOUNTRY"), json!(1)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `Option`, found enum `Value` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<&Value>` [INFO] [stdout] found enum `Value` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0317]: `if` may be missing an `else` clause [INFO] [stdout] --> src/packet/etcs5.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | if assert_eq!(packet_map.get("Q_NEWCOUNTRY"), json!(1)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found `bool` [INFO] [stdout] | [INFO] [stdout] = note: `if` expressions without `else` evaluate to `()` [INFO] [stdout] = help: consider adding an `else` block that evaluates to the expected type [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0317, E0425, E0605. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `btcodec` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0605]: non-primitive cast: `u128` as `T` [INFO] [stdout] --> src/tool.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | u128::from_str_radix(&bin_str[range], 2).unwrap() as T [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] [stdout] error: aborting due to 4 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0317, E0425, E0605. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "6b36ccc2cad834995febde444ba14a31403230c385a0bfc18754337c5aa02f59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6b36ccc2cad834995febde444ba14a31403230c385a0bfc18754337c5aa02f59", kill_on_drop: false }` [INFO] [stdout] 6b36ccc2cad834995febde444ba14a31403230c385a0bfc18754337c5aa02f59