[INFO] cloning repository https://github.com/ShrekBoards/gctconv [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ShrekBoards/gctconv" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShrekBoards%2Fgctconv", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShrekBoards%2Fgctconv'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 09821811dcfb2609f854eeea7b7d8ef81fbbdc5d [INFO] checking ShrekBoards/gctconv against try#d7b15db413fd2070daa09a2c5b7f2ab38417429f for pr-144544 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShrekBoards%2Fgctconv" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ShrekBoards/gctconv [INFO] finished tweaking git repo https://github.com/ShrekBoards/gctconv [INFO] tweaked toml for git repo https://github.com/ShrekBoards/gctconv written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ShrekBoards/gctconv on toolchain d7b15db413fd2070daa09a2c5b7f2ab38417429f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d7b15db413fd2070daa09a2c5b7f2ab38417429f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ShrekBoards/gctconv 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" "+d7b15db413fd2070daa09a2c5b7f2ab38417429f" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+d7b15db413fd2070daa09a2c5b7f2ab38417429f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 61ee0c3b7beab3b724f6ed2d7f4ea304b661090e050f0751eea0e2dd05ec41d6 [INFO] running `Command { std: "docker" "start" "-a" "61ee0c3b7beab3b724f6ed2d7f4ea304b661090e050f0751eea0e2dd05ec41d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "61ee0c3b7beab3b724f6ed2d7f4ea304b661090e050f0751eea0e2dd05ec41d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "61ee0c3b7beab3b724f6ed2d7f4ea304b661090e050f0751eea0e2dd05ec41d6", kill_on_drop: false }` [INFO] [stdout] 61ee0c3b7beab3b724f6ed2d7f4ea304b661090e050f0751eea0e2dd05ec41d6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+d7b15db413fd2070daa09a2c5b7f2ab38417429f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 35e005d5748d37abf29cda495dddbfa056003cb34397ba7c1301ae7cc7f9f978 [INFO] running `Command { std: "docker" "start" "-a" "35e005d5748d37abf29cda495dddbfa056003cb34397ba7c1301ae7cc7f9f978", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.72 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking exitcode v1.1.2 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Checking gctconv v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `TryInto` [INFO] [stdout] --> src/main.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | convert::{TryFrom, TryInto}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Metadata` [INFO] [stdout] --> src/main.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | fs::{self, File, Metadata}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TryInto` [INFO] [stdout] --> src/main.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | convert::{TryFrom, TryInto}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Metadata` [INFO] [stdout] --> src/main.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | fs::{self, File, Metadata}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ToPrimitive` [INFO] [stdout] --> src/main.rs:13:33 [INFO] [stdout] | [INFO] [stdout] 13 | use num_traits::{FromPrimitive, ToPrimitive}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fn_string` is assigned to, but never used [INFO] [stdout] --> src/main.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let fn_string; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_fn_string` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fn_string` is never read [INFO] [stdout] --> src/main.rs:70:26 [INFO] [stdout] | [INFO] [stdout] 70 | Some(str) => fn_string = str, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ToPrimitive` [INFO] [stdout] --> src/main.rs:13:33 [INFO] [stdout] | [INFO] [stdout] 13 | use num_traits::{FromPrimitive, ToPrimitive}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fn_string` is never read [INFO] [stdout] --> src/main.rs:71:21 [INFO] [stdout] | [INFO] [stdout] 71 | None => fn_string = "[filename error]", [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fn_string` is never read [INFO] [stdout] --> src/main.rs:73:17 [INFO] [stdout] | [INFO] [stdout] 73 | None => fn_string = "[filename error]", [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fn_string` is assigned to, but never used [INFO] [stdout] --> src/main.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let fn_string; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_fn_string` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fn_string` is never read [INFO] [stdout] --> src/main.rs:70:26 [INFO] [stdout] | [INFO] [stdout] 70 | Some(str) => fn_string = str, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fn_string` is never read [INFO] [stdout] --> src/main.rs:71:21 [INFO] [stdout] | [INFO] [stdout] 71 | None => fn_string = "[filename error]", [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fn_string` is never read [INFO] [stdout] --> src/main.rs:73:17 [INFO] [stdout] | [INFO] [stdout] 73 | None => fn_string = "[filename error]", [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fn_string` is assigned to, but never used [INFO] [stdout] --> src/main.rs:388:9 [INFO] [stdout] | [INFO] [stdout] 388 | let fn_string; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_fn_string` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fn_string` is never read [INFO] [stdout] --> src/main.rs:392:26 [INFO] [stdout] | [INFO] [stdout] 392 | Some(str) => fn_string = str, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fn_string` is never read [INFO] [stdout] --> src/main.rs:393:21 [INFO] [stdout] | [INFO] [stdout] 393 | None => fn_string = "[filename error]", [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fn_string` is never read [INFO] [stdout] --> src/main.rs:395:17 [INFO] [stdout] | [INFO] [stdout] 395 | None => fn_string = "[filename error]", [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fn_string` is assigned to, but never used [INFO] [stdout] --> src/main.rs:543:17 [INFO] [stdout] | [INFO] [stdout] 543 | let fn_string; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_fn_string` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fs_string` is assigned to, but never used [INFO] [stdout] --> src/main.rs:544:17 [INFO] [stdout] | [INFO] [stdout] 544 | let fs_string; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_fs_string` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fn_string` is never read [INFO] [stdout] --> src/main.rs:547:34 [INFO] [stdout] | [INFO] [stdout] 547 | Some(str) => fn_string = str, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fn_string` is never read [INFO] [stdout] --> src/main.rs:548:29 [INFO] [stdout] | [INFO] [stdout] 548 | None => fn_string = "[filename error]", [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fn_string` is never read [INFO] [stdout] --> src/main.rs:550:25 [INFO] [stdout] | [INFO] [stdout] 550 | None => fn_string = "[filename error]", [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fs_string` is never read [INFO] [stdout] --> src/main.rs:555:34 [INFO] [stdout] | [INFO] [stdout] 555 | Some(str) => fs_string = str, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fs_string` is never read [INFO] [stdout] --> src/main.rs:556:29 [INFO] [stdout] | [INFO] [stdout] 556 | None => fs_string = "[filename error]", [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fs_string` is never read [INFO] [stdout] --> src/main.rs:558:25 [INFO] [stdout] | [INFO] [stdout] 558 | None => fs_string = "[filename error]", [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fn_string` is assigned to, but never used [INFO] [stdout] --> src/main.rs:388:9 [INFO] [stdout] | [INFO] [stdout] 388 | let fn_string; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_fn_string` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fn_string` is never read [INFO] [stdout] --> src/main.rs:392:26 [INFO] [stdout] | [INFO] [stdout] 392 | Some(str) => fn_string = str, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fn_string` is never read [INFO] [stdout] --> src/main.rs:393:21 [INFO] [stdout] | [INFO] [stdout] 393 | None => fn_string = "[filename error]", [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fn_string` is never read [INFO] [stdout] --> src/main.rs:395:17 [INFO] [stdout] | [INFO] [stdout] 395 | None => fn_string = "[filename error]", [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fn_string` is assigned to, but never used [INFO] [stdout] --> src/main.rs:543:17 [INFO] [stdout] | [INFO] [stdout] 543 | let fn_string; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_fn_string` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fs_string` is assigned to, but never used [INFO] [stdout] --> src/main.rs:544:17 [INFO] [stdout] | [INFO] [stdout] 544 | let fs_string; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_fs_string` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fn_string` is never read [INFO] [stdout] --> src/main.rs:547:34 [INFO] [stdout] | [INFO] [stdout] 547 | Some(str) => fn_string = str, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fn_string` is never read [INFO] [stdout] --> src/main.rs:548:29 [INFO] [stdout] | [INFO] [stdout] 548 | None => fn_string = "[filename error]", [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fn_string` is never read [INFO] [stdout] --> src/main.rs:550:25 [INFO] [stdout] | [INFO] [stdout] 550 | None => fn_string = "[filename error]", [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fs_string` is never read [INFO] [stdout] --> src/main.rs:555:34 [INFO] [stdout] | [INFO] [stdout] 555 | Some(str) => fs_string = str, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fs_string` is never read [INFO] [stdout] --> src/main.rs:556:29 [INFO] [stdout] | [INFO] [stdout] 556 | None => fs_string = "[filename error]", [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fs_string` is never read [INFO] [stdout] --> src/main.rs:558:25 [INFO] [stdout] | [INFO] [stdout] 558 | None => fs_string = "[filename error]", [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_short` is never used [INFO] [stdout] --> src/main.rs:670:4 [INFO] [stdout] | [INFO] [stdout] 670 | fn read_short(mut file: &File) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/main.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | #[derive(FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_EncodingType` [INFO] [stdout] 20 | enum EncodingType { [INFO] [stdout] | ------------ `EncodingType` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/main.rs:19:25 [INFO] [stdout] | [INFO] [stdout] 19 | #[derive(FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_EncodingType` [INFO] [stdout] 20 | enum EncodingType { [INFO] [stdout] | ------------ `EncodingType` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_short` is never used [INFO] [stdout] --> src/main.rs:670:4 [INFO] [stdout] | [INFO] [stdout] 670 | fn read_short(mut file: &File) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/main.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | #[derive(FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_EncodingType` [INFO] [stdout] 20 | enum EncodingType { [INFO] [stdout] | ------------ `EncodingType` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/main.rs:19:25 [INFO] [stdout] | [INFO] [stdout] 19 | #[derive(FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_EncodingType` [INFO] [stdout] 20 | enum EncodingType { [INFO] [stdout] | ------------ `EncodingType` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.10s [INFO] running `Command { std: "docker" "inspect" "35e005d5748d37abf29cda495dddbfa056003cb34397ba7c1301ae7cc7f9f978", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "35e005d5748d37abf29cda495dddbfa056003cb34397ba7c1301ae7cc7f9f978", kill_on_drop: false }` [INFO] [stdout] 35e005d5748d37abf29cda495dddbfa056003cb34397ba7c1301ae7cc7f9f978