[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 try#45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4 for pr-83744 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsatanya-zero%2Fbtcodec" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/satanya-zero/btcodec on toolchain 45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "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-3/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" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] error: the lock file /workspace/builds/worker-3/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" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4b1d7f68f6ca2af0ce28cb7c1384f9123882ab39c2fd043a10f2f67cabb307bf [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" "4b1d7f68f6ca2af0ce28cb7c1384f9123882ab39c2fd043a10f2f67cabb307bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4b1d7f68f6ca2af0ce28cb7c1384f9123882ab39c2fd043a10f2f67cabb307bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4b1d7f68f6ca2af0ce28cb7c1384f9123882ab39c2fd043a10f2f67cabb307bf", kill_on_drop: false }` [INFO] [stdout] 4b1d7f68f6ca2af0ce28cb7c1384f9123882ab39c2fd043a10f2f67cabb307bf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d093f8ad12541f7311268294acabeecea1ce5533431c1198de8572916202b84c [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" "d093f8ad12541f7311268294acabeecea1ce5533431c1198de8572916202b84c", kill_on_drop: false }` [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling serde v1.0.125 [INFO] [stderr] Compiling serde_json v1.0.64 [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: 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[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: 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: build failed [INFO] running `Command { std: "docker" "inspect" "d093f8ad12541f7311268294acabeecea1ce5533431c1198de8572916202b84c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d093f8ad12541f7311268294acabeecea1ce5533431c1198de8572916202b84c", kill_on_drop: false }` [INFO] [stdout] d093f8ad12541f7311268294acabeecea1ce5533431c1198de8572916202b84c