[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#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsatanya-zero%2Fbtcodec" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/satanya-zero/btcodec on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "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-tc1/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: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Locking 1 package [INFO] [stderr] Adding btcodec v0.1.0 (/workspace/builds/worker-3-tc1/source) [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0c5f52f7cd273739a121fa75d8a633822afd9a4ac042617608fe880641c85b83 [INFO] running `Command { std: "docker" "start" "-a" "0c5f52f7cd273739a121fa75d8a633822afd9a4ac042617608fe880641c85b83", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0c5f52f7cd273739a121fa75d8a633822afd9a4ac042617608fe880641c85b83", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0c5f52f7cd273739a121fa75d8a633822afd9a4ac042617608fe880641c85b83", kill_on_drop: false }` [INFO] [stdout] 0c5f52f7cd273739a121fa75d8a633822afd9a4ac042617608fe880641c85b83 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 78ba957e531121a72ed0ee56f893b95f0d62846be7ebad9782880faa14a8c983 [INFO] running `Command { std: "docker" "start" "-a" "78ba957e531121a72ed0ee56f893b95f0d62846be7ebad9782880faa14a8c983", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.116 [INFO] [stderr] Compiling serde_json v1.0.57 [INFO] [stderr] Checking itoa v0.4.6 [INFO] [stderr] Checking btcodec v0.1.0 (/opt/rustwide/workdir) [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] 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:51 [INFO] [stdout] | [INFO] [stdout] 28 | if assert_eq!(packet_map.get("Q_NEWCOUNTRY"), json!(1)) { [INFO] [stdout] | ^^^^^^^^ expected `Option<&Value>`, found `Value` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<&Value>` [INFO] [stdout] found enum `Value` [INFO] [stdout] = note: this error originates in the macro `json_internal` which comes from the expansion of the macro `json` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/packet/etcs5.rs:28:51 [INFO] [stdout] | [INFO] [stdout] 28 | if assert_eq!(packet_map.get("Q_NEWCOUNTRY"), json!(1)) { [INFO] [stdout] | ^^^^^^^^ expected `Option<&Value>`, found `Value` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<&Value>` [INFO] [stdout] found enum `Value` [INFO] [stdout] = note: this error originates in the macro `json_internal` which comes from the expansion of the macro `json` (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 `bool`, found `()` [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 the macro `assert_eq` (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 `bool`, found `()` [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 the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [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] 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] 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[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] warning: unused variable: `bin_str` [INFO] [stdout] --> src/packet.rs:28:17 [INFO] [stdout] | [INFO] [stdout] 28 | fn from_bin_str(bin_str: String) -> Value { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bin_str` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bin_str` [INFO] [stdout] --> src/packet.rs:28:17 [INFO] [stdout] | [INFO] [stdout] 28 | fn from_bin_str(bin_str: String) -> Value { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bin_str` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `packet` [INFO] [stdout] --> src/packet.rs:53:16 [INFO] [stdout] | [INFO] [stdout] 53 | fn to_json_str(packet: Value) -> String { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_packet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `packet` [INFO] [stdout] --> src/packet.rs:53:16 [INFO] [stdout] | [INFO] [stdout] 53 | fn to_json_str(packet: Value) -> String { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_packet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0594]: cannot assign to `counter`, as it is a captured variable in a `Fn` closure [INFO] [stdout] --> src/tool.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 9 | pub(crate) fn get_range(start: usize) -> Box Range> { [INFO] [stdout] | --------- ---------------------------------- change this to return `FnMut` instead of `Fn` [INFO] [stdout] ... [INFO] [stdout] 12 | |step: usize| { [INFO] [stdout] | ------------- in this closure [INFO] [stdout] 13 | counter = counter + step; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ cannot assign [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0594]: cannot assign to `counter`, as it is a captured variable in a `Fn` closure [INFO] [stdout] --> src/tool.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 9 | pub(crate) fn get_range(start: usize) -> Box Range> { [INFO] [stdout] | --------- ---------------------------------- change this to return `FnMut` instead of `Fn` [INFO] [stdout] ... [INFO] [stdout] 12 | |step: usize| { [INFO] [stdout] | ------------- in this closure [INFO] [stdout] 13 | counter = counter + step; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ cannot assign [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `counter`, which is owned by the current function [INFO] [stdout] --> src/tool.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | |step: usize| { [INFO] [stdout] | ^^^^^^^^^^^^^ may outlive borrowed value `counter` [INFO] [stdout] 13 | counter = counter + step; [INFO] [stdout] | ------- `counter` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: closure is returned here [INFO] [stdout] --> src/tool.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | / Box::new( [INFO] [stdout] 12 | | |step: usize| { [INFO] [stdout] 13 | | counter = counter + step; [INFO] [stdout] 14 | | counter - step..counter [INFO] [stdout] 15 | | } [INFO] [stdout] 16 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] help: to force the closure to take ownership of `counter` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 12 | move |step: usize| { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `counter`, which is owned by the current function [INFO] [stdout] --> src/tool.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | |step: usize| { [INFO] [stdout] | ^^^^^^^^^^^^^ may outlive borrowed value `counter` [INFO] [stdout] 13 | counter = counter + step; [INFO] [stdout] | ------- `counter` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: closure is returned here [INFO] [stdout] --> src/tool.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | / Box::new( [INFO] [stdout] 12 | | |step: usize| { [INFO] [stdout] 13 | | counter = counter + step; [INFO] [stdout] 14 | | counter - step..counter [INFO] [stdout] 15 | | } [INFO] [stdout] 16 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] help: to force the closure to take ownership of `counter` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 12 | move |step: usize| { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str` [INFO] [stdout] --> src/main.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let str = String::from("thank you"); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str` [INFO] [stdout] --> src/main.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let str = String::from("thank you"); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0317, E0373, E0425, E0594, E0605. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0317, E0373, E0425, E0594, E0605. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `btcodec` (bin "btcodec") due to 7 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `btcodec` (bin "btcodec" test) due to 7 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "78ba957e531121a72ed0ee56f893b95f0d62846be7ebad9782880faa14a8c983", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "78ba957e531121a72ed0ee56f893b95f0d62846be7ebad9782880faa14a8c983", kill_on_drop: false }` [INFO] [stdout] 78ba957e531121a72ed0ee56f893b95f0d62846be7ebad9782880faa14a8c983