[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#943e2200e35c3825486c4671b6cab0107a07f8c1 for pr-148952
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsatanya-zero%2Fbtcodec" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'...
[INFO] [stderr] done.
[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-2-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/satanya-zero/btcodec on toolchain 943e2200e35c3825486c4671b6cab0107a07f8c1
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+943e2200e35c3825486c4671b6cab0107a07f8c1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[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" "+943e2200e35c3825486c4671b6cab0107a07f8c1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+943e2200e35c3825486c4671b6cab0107a07f8c1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] cf91ab54d7ed1c474b14c953bef7545d2e123b1a0daa2c0da5396fc031f0dafc
[INFO] running `Command { std: "docker" "start" "-a" "cf91ab54d7ed1c474b14c953bef7545d2e123b1a0daa2c0da5396fc031f0dafc", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "cf91ab54d7ed1c474b14c953bef7545d2e123b1a0daa2c0da5396fc031f0dafc", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "cf91ab54d7ed1c474b14c953bef7545d2e123b1a0daa2c0da5396fc031f0dafc", kill_on_drop: false }`
[INFO] [stdout] cf91ab54d7ed1c474b14c953bef7545d2e123b1a0daa2c0da5396fc031f0dafc
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+943e2200e35c3825486c4671b6cab0107a07f8c1" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 6421b3cb22db1e2927a98829bc1101c297f6a89275c5e32485d9a16ff724a743
[INFO] running `Command { std: "docker" "start" "-a" "6421b3cb22db1e2927a98829bc1101c297f6a89275c5e32485d9a16ff724a743", 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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[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[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)]` (part of `#[warn(unused)]`) 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] 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<dyn Fn(usize) -> Range<usize>> {
[INFO] [stdout]    |               ---------                  ---------------------------------- change this to return `FnMut` instead of `Fn`
[INFO] [stdout] 10 |     let mut counter = start;
[INFO] [stdout]    |         ----------- `counter` declared here, outside the closure
[INFO] [stdout] 11 |     Box::new(
[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] 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] 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[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] [stderr] error: could not compile `btcodec` (bin "btcodec") due to 6 previous errors; 4 warnings emitted
[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] [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] [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)]` (part of `#[warn(unused)]`) 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] 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<dyn Fn(usize) -> Range<usize>> {
[INFO] [stdout]    |               ---------                  ---------------------------------- change this to return `FnMut` instead of `Fn`
[INFO] [stdout] 10 |     let mut counter = start;
[INFO] [stdout]    |         ----------- `counter` declared here, outside the closure
[INFO] [stdout] 11 |     Box::new(
[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] 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] 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" test) due to 6 previous errors; 4 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "6421b3cb22db1e2927a98829bc1101c297f6a89275c5e32485d9a16ff724a743", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6421b3cb22db1e2927a98829bc1101c297f6a89275c5e32485d9a16ff724a743", kill_on_drop: false }`
[INFO] [stdout] 6421b3cb22db1e2927a98829bc1101c297f6a89275c5e32485d9a16ff724a743
