[INFO] cloning repository https://github.com/limoiie/magic-file [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/limoiie/magic-file" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flimoiie%2Fmagic-file", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flimoiie%2Fmagic-file'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8a7adda374590fd61889e78d7905f146d2d9af57 [INFO] testing limoiie/magic-file against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flimoiie%2Fmagic-file" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/limoiie/magic-file [INFO] finished tweaking git repo https://github.com/limoiie/magic-file [INFO] tweaked toml for git repo https://github.com/limoiie/magic-file written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/limoiie/magic-file on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/limoiie/magic-file 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded num-derive v0.3.0 [INFO] [stderr] Downloaded quote v1.0.6 [INFO] [stderr] Downloaded proc-macro2 v1.0.17 [INFO] [stderr] Downloaded hermit-abi v0.1.13 [INFO] [stderr] Downloaded ryu v1.0.4 [INFO] [stderr] Downloaded serde_derive v1.0.110 [INFO] [stderr] Downloaded serde v1.0.110 [INFO] [stderr] Downloaded serde_json v1.0.53 [INFO] [stderr] Downloaded clap v2.33.1 [INFO] [stderr] Downloaded syn v1.0.23 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8f74750ea2a434a4fd4da20c61bbfb4d2f3e4a009f93ac769172c1de5a20a311 [INFO] running `Command { std: "docker" "start" "-a" "8f74750ea2a434a4fd4da20c61bbfb4d2f3e4a009f93ac769172c1de5a20a311", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8f74750ea2a434a4fd4da20c61bbfb4d2f3e4a009f93ac769172c1de5a20a311", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8f74750ea2a434a4fd4da20c61bbfb4d2f3e4a009f93ac769172c1de5a20a311", kill_on_drop: false }` [INFO] [stdout] 8f74750ea2a434a4fd4da20c61bbfb4d2f3e4a009f93ac769172c1de5a20a311 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 333797f9a2023bf57b7e0ae62ae2d29cfc4e6a1062794eee7212475aeee406ec [INFO] running `Command { std: "docker" "start" "-a" "333797f9a2023bf57b7e0ae62ae2d29cfc4e6a1062794eee7212475aeee406ec", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.17 [INFO] [stderr] Compiling syn v1.0.23 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling libc v0.2.70 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling ryu v1.0.4 [INFO] [stderr] Compiling serde v1.0.110 [INFO] [stderr] Compiling unicode-width v0.1.7 [INFO] [stderr] Compiling thread_local v1.0.1 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling regex-syntax v0.6.17 [INFO] [stderr] Compiling itoa v0.4.5 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling aho-corasick v0.7.10 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling clap v2.33.1 [INFO] [stderr] Compiling quote v1.0.6 [INFO] [stderr] Compiling regex v1.3.7 [INFO] [stderr] Compiling serde_derive v1.0.110 [INFO] [stderr] Compiling num-derive v0.3.0 [INFO] [stderr] Compiling serde_json v1.0.53 [INFO] [stderr] Compiling file-type v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `magic_file` [INFO] [stdout] --> src/main.rs:17:19 [INFO] [stdout] | [INFO] [stdout] 17 | fn load_one_magic(magic_file: &Path) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_magic_file` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_one_magic` is never used [INFO] [stdout] --> src/main.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn load_one_magic(magic_file: &Path) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ensure_goodchars` is never used [INFO] [stdout] --> src/str_utils.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | pub(crate) fn ensure_goodchars(s: &str, goodchars: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clear` is never used [INFO] [stdout] --> src/magic.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl MagicFlags { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 18 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_pstring` is never used [INFO] [stdout] --> src/magic.rs:59:19 [INFO] [stdout] | [INFO] [stdout] 53 | impl StrModifier { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 59 | pub(crate) fn is_pstring(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CmpType` is never used [INFO] [stdout] --> src/magic.rs:103:17 [INFO] [stdout] | [INFO] [stdout] 103 | pub(crate) enum CmpType { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `is_string` and `all` are never used [INFO] [stdout] --> src/magic.rs:161:19 [INFO] [stdout] | [INFO] [stdout] 160 | impl CmpType { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 161 | pub(crate) fn is_string(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 176 | fn all() -> Vec { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MaskOp` is never used [INFO] [stdout] --> src/magic.rs:215:17 [INFO] [stdout] | [INFO] [stdout] 215 | pub(crate) enum MaskOp { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RelnOp` is never used [INFO] [stdout] --> src/magic.rs:249:17 [INFO] [stdout] | [INFO] [stdout] 249 | pub(crate) enum RelnOp { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RelnVal` is never used [INFO] [stdout] --> src/magic.rs:277:6 [INFO] [stdout] | [INFO] [stdout] 277 | enum RelnVal { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CondType` is never used [INFO] [stdout] --> src/magic.rs:282:6 [INFO] [stdout] | [INFO] [stdout] 282 | enum CondType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MagicParam` is never constructed [INFO] [stdout] --> src/magic_param.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | pub(crate) struct MagicParam { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_cmd_line` is never used [INFO] [stdout] --> src/magic_param.rs:19:19 [INFO] [stdout] | [INFO] [stdout] 18 | impl MagicParam { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 19 | pub(crate) fn from_cmd_line(line: &str) -> MagicParam { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Mask` is never used [INFO] [stdout] --> src/parse_magic_line.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | enum Mask { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MagicLine` is never constructed [INFO] [stdout] --> src/parse_magic_line.rs:21:19 [INFO] [stdout] | [INFO] [stdout] 21 | pub(crate) struct MagicLine { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/parse_magic_line.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 34 | impl MagicLine { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 35 | fn line_regex() -> Regex { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub(crate) fn is_entry_line(line: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub(crate) fn parse_entry_line(&mut self, s: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | fn parse_cont_part(&mut self, s: Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | fn parse_ofst_part(&mut self, s: Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | fn parse_type_part(&mut self, s: Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | fn parse_mask_part(&mut self, s: Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | fn parse_str_modifier(&self, _op: &str, modifier: &str) -> Mask { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | fn parse_chars_modifier(&self, modifier: &str) -> StrModifier { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | fn parse_num_modifier(&self, op: &str, modifier: &str) -> Mask { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | fn parse_reln_part(&mut self, s: Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | fn parse_desc_part(&mut self, s: Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | fn parse_code_part(&mut self, s: Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `FactorOp` is never used [INFO] [stdout] --> src/parse_magic_aux_line.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | pub(crate) enum FactorOp { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AuxTypes` is never constructed [INFO] [stdout] --> src/parse_magic_aux_line.rs:33:19 [INFO] [stdout] | [INFO] [stdout] 33 | pub(crate) struct AuxTypes { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AuxFactor` is never constructed [INFO] [stdout] --> src/parse_magic_aux_line.rs:40:19 [INFO] [stdout] | [INFO] [stdout] 40 | pub(crate) struct AuxFactor { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AuxInfo` is never used [INFO] [stdout] --> src/parse_magic_aux_line.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 46 | pub(crate) enum AuxInfo { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `parse_aux_line`, `parse_line_mime`, `parse_line_ext`, `parse_line_apple`, and `parse_line_strength` are never used [INFO] [stdout] --> src/parse_magic_aux_line.rs:52:19 [INFO] [stdout] | [INFO] [stdout] 51 | impl AuxInfo { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] 52 | pub(crate) fn parse_aux_line(s: &str) -> AuxInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | fn parse_line_mime(s: &str) -> AuxInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | fn parse_line_ext(s: &str) -> AuxInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | fn parse_line_apple(s: &str) -> AuxInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | fn parse_line_strength(s: &str) -> AuxInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MagicEntry` is never constructed [INFO] [stdout] --> src/parse_magic_entry.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct MagicEntry { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `parse` is never used [INFO] [stdout] --> src/parse_magic_entry.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 16 | impl MagicEntry { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 17 | fn parse() -> io::Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_lines` is never used [INFO] [stdout] --> src/parse_magic_entry.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn read_lines

(filename: P) -> io::Result>> [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MagicFile` is never constructed [INFO] [stdout] --> src/parse_magic_entry.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | struct MagicFile { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `parse` is never used [INFO] [stdout] --> src/parse_magic_entry.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 35 | impl MagicFile { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 36 | fn parse(magic_file: &Path) -> io::Result<()> { [INFO] [stdout] | ^^^^^ [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/magic.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | #[derive(FromPrimitive, Debug, PartialEq)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_CmpType` [INFO] [stdout] 103 | pub(crate) enum CmpType { [INFO] [stdout] | ------- `CmpType` 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/magic_param.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Serialize, Deserialize, Default, Debug, PartialEq)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_MagicParam` [INFO] [stdout] 7 | pub(crate) struct MagicParam { [INFO] [stdout] | ---------- `MagicParam` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_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 `Serialize` (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/magic_param.rs:6:21 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Serialize, Deserialize, Default, Debug, PartialEq)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_MagicParam` [INFO] [stdout] 7 | pub(crate) struct MagicParam { [INFO] [stdout] | ---------- `MagicParam` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_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 `Deserialize` (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 27.77s [INFO] running `Command { std: "docker" "inspect" "333797f9a2023bf57b7e0ae62ae2d29cfc4e6a1062794eee7212475aeee406ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "333797f9a2023bf57b7e0ae62ae2d29cfc4e6a1062794eee7212475aeee406ec", kill_on_drop: false }` [INFO] [stdout] 333797f9a2023bf57b7e0ae62ae2d29cfc4e6a1062794eee7212475aeee406ec [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ed79f005f2556c984480b614bf6a6ea076d05999b491c94defb93725ef30d1ae [INFO] running `Command { std: "docker" "start" "-a" "ed79f005f2556c984480b614bf6a6ea076d05999b491c94defb93725ef30d1ae", kill_on_drop: false }` [INFO] [stderr] Compiling file-type v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `magic_file` [INFO] [stdout] --> src/main.rs:17:19 [INFO] [stdout] | [INFO] [stdout] 17 | fn load_one_magic(magic_file: &Path) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_magic_file` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_one_magic` is never used [INFO] [stdout] --> src/main.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn load_one_magic(magic_file: &Path) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clear` is never used [INFO] [stdout] --> src/magic.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl MagicFlags { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 18 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RelnVal` is never used [INFO] [stdout] --> src/magic.rs:277:6 [INFO] [stdout] | [INFO] [stdout] 277 | enum RelnVal { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CondType` is never used [INFO] [stdout] --> src/magic.rs:282:6 [INFO] [stdout] | [INFO] [stdout] 282 | enum CondType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `reln_val` and `aux` are never read [INFO] [stdout] --> src/parse_magic_line.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub(crate) struct MagicLine { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 28 | reln_val: u64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 29 | aux: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MagicLine` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `parse_aux_line`, `parse_line_mime`, and `parse_line_apple` are never used [INFO] [stdout] --> src/parse_magic_aux_line.rs:52:19 [INFO] [stdout] | [INFO] [stdout] 51 | impl AuxInfo { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] 52 | pub(crate) fn parse_aux_line(s: &str) -> AuxInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | fn parse_line_mime(s: &str) -> AuxInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | fn parse_line_apple(s: &str) -> AuxInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MagicEntry` is never constructed [INFO] [stdout] --> src/parse_magic_entry.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct MagicEntry { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `parse` is never used [INFO] [stdout] --> src/parse_magic_entry.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 16 | impl MagicEntry { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 17 | fn parse() -> io::Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_lines` is never used [INFO] [stdout] --> src/parse_magic_entry.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn read_lines

(filename: P) -> io::Result>> [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MagicFile` is never constructed [INFO] [stdout] --> src/parse_magic_entry.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | struct MagicFile { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `parse` is never used [INFO] [stdout] --> src/parse_magic_entry.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 35 | impl MagicFile { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 36 | fn parse(magic_file: &Path) -> io::Result<()> { [INFO] [stdout] | ^^^^^ [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/magic.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | #[derive(FromPrimitive, Debug, PartialEq)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_CmpType` [INFO] [stdout] 103 | pub(crate) enum CmpType { [INFO] [stdout] | ------- `CmpType` 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/magic_param.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Serialize, Deserialize, Default, Debug, PartialEq)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_MagicParam` [INFO] [stdout] 7 | pub(crate) struct MagicParam { [INFO] [stdout] | ---------- `MagicParam` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_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 `Serialize` (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/magic_param.rs:6:21 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Serialize, Deserialize, Default, Debug, PartialEq)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_MagicParam` [INFO] [stdout] 7 | pub(crate) struct MagicParam { [INFO] [stdout] | ---------- `MagicParam` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_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 `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.10s [INFO] running `Command { std: "docker" "inspect" "ed79f005f2556c984480b614bf6a6ea076d05999b491c94defb93725ef30d1ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ed79f005f2556c984480b614bf6a6ea076d05999b491c94defb93725ef30d1ae", kill_on_drop: false }` [INFO] [stdout] ed79f005f2556c984480b614bf6a6ea076d05999b491c94defb93725ef30d1ae [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] da6995c5afa061fcf2003e6074ef347585d2dcb625ed49caceadcb576290c9fa [INFO] running `Command { std: "docker" "start" "-a" "da6995c5afa061fcf2003e6074ef347585d2dcb625ed49caceadcb576290c9fa", kill_on_drop: false }` [INFO] [stderr] warning: unused variable: `magic_file` [INFO] [stderr] --> src/main.rs:17:19 [INFO] [stderr] | [INFO] [stderr] 17 | fn load_one_magic(magic_file: &Path) { [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_magic_file` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: function `load_one_magic` is never used [INFO] [stderr] --> src/main.rs:17:4 [INFO] [stderr] | [INFO] [stderr] 17 | fn load_one_magic(magic_file: &Path) { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: method `clear` is never used [INFO] [stderr] --> src/magic.rs:18:12 [INFO] [stderr] | [INFO] [stderr] 17 | impl MagicFlags { [INFO] [stderr] | --------------- method in this implementation [INFO] [stderr] 18 | pub fn clear(&mut self) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `RelnVal` is never used [INFO] [stderr] --> src/magic.rs:277:6 [INFO] [stderr] | [INFO] [stderr] 277 | enum RelnVal { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `CondType` is never used [INFO] [stderr] --> src/magic.rs:282:6 [INFO] [stderr] | [INFO] [stderr] 282 | enum CondType { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `reln_val` and `aux` are never read [INFO] [stderr] --> src/parse_magic_line.rs:28:5 [INFO] [stderr] | [INFO] [stderr] 21 | pub(crate) struct MagicLine { [INFO] [stderr] | --------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 28 | reln_val: u64, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 29 | aux: Option, [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `MagicLine` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated functions `parse_aux_line`, `parse_line_mime`, and `parse_line_apple` are never used [INFO] [stderr] --> src/parse_magic_aux_line.rs:52:19 [INFO] [stderr] | [INFO] [stderr] 51 | impl AuxInfo { [INFO] [stderr] | ------------ associated functions in this implementation [INFO] [stderr] 52 | pub(crate) fn parse_aux_line(s: &str) -> AuxInfo { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 75 | fn parse_line_mime(s: &str) -> AuxInfo { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 91 | fn parse_line_apple(s: &str) -> AuxInfo { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `MagicEntry` is never constructed [INFO] [stderr] --> src/parse_magic_entry.rs:11:8 [INFO] [stderr] | [INFO] [stderr] 11 | struct MagicEntry { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `parse` is never used [INFO] [stderr] --> src/parse_magic_entry.rs:17:8 [INFO] [stderr] | [INFO] [stderr] 16 | impl MagicEntry { [INFO] [stderr] | --------------- associated function in this implementation [INFO] [stderr] 17 | fn parse() -> io::Result<()> { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `read_lines` is never used [INFO] [stderr] --> src/parse_magic_entry.rs:24:4 [INFO] [stderr] | [INFO] [stderr] 24 | fn read_lines

(filename: P) -> io::Result>> [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `MagicFile` is never constructed [INFO] [stderr] --> src/parse_magic_entry.rs:31:8 [INFO] [stderr] | [INFO] [stderr] 31 | struct MagicFile { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `parse` is never used [INFO] [stderr] --> src/parse_magic_entry.rs:36:8 [INFO] [stderr] | [INFO] [stderr] 35 | impl MagicFile { [INFO] [stderr] | -------------- associated function in this implementation [INFO] [stderr] 36 | fn parse(magic_file: &Path) -> io::Result<()> { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/magic.rs:102:10 [INFO] [stderr] | [INFO] [stderr] 102 | #[derive(FromPrimitive, Debug, PartialEq)] [INFO] [stderr] | ^------------ [INFO] [stderr] | | [INFO] [stderr] | `FromPrimitive` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_CmpType` [INFO] [stderr] 103 | pub(crate) enum CmpType { [INFO] [stderr] | ------- `CmpType` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = 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] [stderr] = 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] [stderr] = 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] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/magic_param.rs:6:10 [INFO] [stderr] | [INFO] [stderr] 6 | #[derive(Serialize, Deserialize, Default, Debug, PartialEq)] [INFO] [stderr] | ^-------- [INFO] [stderr] | | [INFO] [stderr] | `Serialize` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_MagicParam` [INFO] [stderr] 7 | pub(crate) struct MagicParam { [INFO] [stderr] | ---------- `MagicParam` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stderr] = 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] [stderr] = 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] [stderr] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/magic_param.rs:6:21 [INFO] [stderr] | [INFO] [stderr] 6 | #[derive(Serialize, Deserialize, Default, Debug, PartialEq)] [INFO] [stderr] | ^---------- [INFO] [stderr] | | [INFO] [stderr] | `Deserialize` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_MagicParam` [INFO] [stderr] 7 | pub(crate) struct MagicParam { [INFO] [stderr] | ---------- `MagicParam` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stderr] = 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] [stderr] = 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] [stderr] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `file-type` (bin "file-type" test) generated 15 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.14s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/file_type-0e82a5d5b32c1848) [INFO] [stdout] [INFO] [stdout] running 12 tests [INFO] [stdout] test magic::tests::test_from_i32_to_cmp_typ ... ok [INFO] [stdout] test magic::tests::test_main ... ok [INFO] [stdout] test parse_magic_aux_line::testcase::test_parse_aux_line ... ok [INFO] [stdout] test magic::tests::test_from_string_to_cmp_typ ... ok [INFO] [stdout] test parse_magic_aux_line::testcase::test_parse_strength ... ok [INFO] [stdout] test parse_magic_aux_line::testcase::test_parse_line_ext ... ok [INFO] [stdout] test parse_magic_entry::tests::test ... ok [INFO] [stdout] test parse_magic_line::tests::test_parse_str_modifiers ... ok [INFO] [stdout] test str_utils::test_parse_extra ... ok [INFO] [stdout] test magic_param::tests::test_from_cmd_line ... ok [INFO] [stdout] test parse_magic_line::tests::test_is_entry_line ... ok [INFO] [stdout] test parse_magic_line::tests::test_magic_parse_entry_line ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.10s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "da6995c5afa061fcf2003e6074ef347585d2dcb625ed49caceadcb576290c9fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "da6995c5afa061fcf2003e6074ef347585d2dcb625ed49caceadcb576290c9fa", kill_on_drop: false }` [INFO] [stdout] da6995c5afa061fcf2003e6074ef347585d2dcb625ed49caceadcb576290c9fa