[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] checking limoiie/magic-file against master#5518eaa946291f00471af8b254b2a1715f234882 for pr-120393 [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] validating manifest of git repo https://github.com/limoiie/magic-file on toolchain 5518eaa946291f00471af8b254b2a1715f234882 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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] 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" "+5518eaa946291f00471af8b254b2a1715f234882" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded num-derive v0.3.0 [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7b900efb5c9f540ebf8ab6bc1c5fb29a2fe09e61415a5423a557555d6db14e76 [INFO] running `Command { std: "docker" "start" "-a" "7b900efb5c9f540ebf8ab6bc1c5fb29a2fe09e61415a5423a557555d6db14e76", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7b900efb5c9f540ebf8ab6bc1c5fb29a2fe09e61415a5423a557555d6db14e76", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7b900efb5c9f540ebf8ab6bc1c5fb29a2fe09e61415a5423a557555d6db14e76", kill_on_drop: false }` [INFO] [stdout] 7b900efb5c9f540ebf8ab6bc1c5fb29a2fe09e61415a5423a557555d6db14e76 [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e776984db576caae9ad0eab7174b2aec738f73f27373f60d8cf6f257a403087b [INFO] running `Command { std: "docker" "start" "-a" "e776984db576caae9ad0eab7174b2aec738f73f27373f60d8cf6f257a403087b", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.17 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.23 [INFO] [stderr] Compiling libc v0.2.70 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling serde v1.0.110 [INFO] [stderr] Compiling ryu v1.0.4 [INFO] [stderr] Checking unicode-width v0.1.7 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking regex-syntax v0.6.17 [INFO] [stderr] Checking aho-corasick v0.7.10 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking itoa v0.4.5 [INFO] [stderr] Compiling quote v1.0.6 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking clap v2.33.1 [INFO] [stderr] Checking regex v1.3.7 [INFO] [stderr] Compiling serde_derive v1.0.110 [INFO] [stderr] Compiling num-derive v0.3.0 [INFO] [stderr] Checking serde_json v1.0.53 [INFO] [stderr] Checking 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)]` 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)]` 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: method `is_string` is never used [INFO] [stdout] --> src/magic.rs:161:19 [INFO] [stdout] | [INFO] [stdout] 160 | impl CmpType { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 161 | pub(crate) fn is_string(&self) -> bool { [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: 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: variant `Str` is never constructed [INFO] [stdout] --> src/parse_magic_line.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | enum Mask { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 9 | Num { op: MaskOp, val: u64 }, [INFO] [stdout] 10 | Str { flags: StrModifier, range: u64 }, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Mask` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/parse_magic_line.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub(crate) struct MagicLine { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 22 | cont_lvl: usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 23 | typ_code: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 24 | cmp_type: CmpType, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 25 | cmp_unsigned: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 26 | mask: Mask, [INFO] [stdout] | ^^^^ [INFO] [stdout] 27 | reln_op: RelnOp, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 28 | reln_val: u64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 29 | aux: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 30 | desc: String, [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: 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: variants `Types` and `Strength` are never constructed [INFO] [stdout] --> src/parse_magic_aux_line.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 46 | pub(crate) enum AuxInfo { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 47 | Types(AuxTypes), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 48 | Strength(AuxFactor), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AuxInfo` 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`, `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: fields `lines` and `factor` are never read [INFO] [stdout] --> src/parse_magic_entry.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | struct MagicEntry { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 12 | lines: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 13 | factor: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MagicEntry` 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 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: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [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)]` 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)]` 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: fields `lines` and `factor` are never read [INFO] [stdout] --> src/parse_magic_entry.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | struct MagicEntry { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 12 | lines: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 13 | factor: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MagicEntry` 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 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: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 5.70s [INFO] running `Command { std: "docker" "inspect" "e776984db576caae9ad0eab7174b2aec738f73f27373f60d8cf6f257a403087b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e776984db576caae9ad0eab7174b2aec738f73f27373f60d8cf6f257a403087b", kill_on_drop: false }` [INFO] [stdout] e776984db576caae9ad0eab7174b2aec738f73f27373f60d8cf6f257a403087b [INFO] checking limoiie/magic-file against try#7622c0f807a4e13c4db886a1681bf343795692df+rustflags=-Dnon_local_definitions for pr-120393 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flimoiie%2Fmagic-file" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/limoiie/magic-file on toolchain 7622c0f807a4e13c4db886a1681bf343795692df [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-tc2/source/Cargo.toml [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" "+7622c0f807a4e13c4db886a1681bf343795692df" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 84847d1b89d99e143b0bf8ecc3795549865bb77725548ae3c5fff7b01abefeaf [INFO] running `Command { std: "docker" "start" "-a" "84847d1b89d99e143b0bf8ecc3795549865bb77725548ae3c5fff7b01abefeaf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "84847d1b89d99e143b0bf8ecc3795549865bb77725548ae3c5fff7b01abefeaf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "84847d1b89d99e143b0bf8ecc3795549865bb77725548ae3c5fff7b01abefeaf", kill_on_drop: false }` [INFO] [stdout] 84847d1b89d99e143b0bf8ecc3795549865bb77725548ae3c5fff7b01abefeaf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -Dnon_local_definitions" "-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" "+7622c0f807a4e13c4db886a1681bf343795692df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dee006d14815beb127a8ea8607d5231a5f8b52bce9dc6ebd72cd63d0f87f2c32 [INFO] running `Command { std: "docker" "start" "-a" "dee006d14815beb127a8ea8607d5231a5f8b52bce9dc6ebd72cd63d0f87f2c32", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.17 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.23 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling libc v0.2.70 [INFO] [stderr] Compiling serde v1.0.110 [INFO] [stderr] Compiling ryu v1.0.4 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Checking unicode-width v0.1.7 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking itoa v0.4.5 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking aho-corasick v0.7.10 [INFO] [stderr] Checking regex-syntax v0.6.17 [INFO] [stderr] Compiling quote v1.0.6 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking clap v2.33.1 [INFO] [stderr] Checking regex v1.3.7 [INFO] [stderr] Compiling serde_derive v1.0.110 [INFO] [stderr] Compiling num-derive v0.3.0 [INFO] [stderr] Checking serde_json v1.0.53 [INFO] [stderr] Checking 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)]` 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)]` 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: method `is_string` is never used [INFO] [stdout] --> src/magic.rs:161:19 [INFO] [stdout] | [INFO] [stdout] 160 | impl CmpType { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 161 | pub(crate) fn is_string(&self) -> bool { [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: 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: variant `Str` is never constructed [INFO] [stdout] --> src/parse_magic_line.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | enum Mask { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 9 | Num { op: MaskOp, val: u64 }, [INFO] [stdout] 10 | Str { flags: StrModifier, range: u64 }, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Mask` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/parse_magic_line.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub(crate) struct MagicLine { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 22 | cont_lvl: usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 23 | typ_code: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 24 | cmp_type: CmpType, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 25 | cmp_unsigned: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 26 | mask: Mask, [INFO] [stdout] | ^^^^ [INFO] [stdout] 27 | reln_op: RelnOp, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 28 | reln_val: u64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 29 | aux: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 30 | desc: String, [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: 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: variants `Types` and `Strength` are never constructed [INFO] [stdout] --> src/parse_magic_aux_line.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 46 | pub(crate) enum AuxInfo { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 47 | Types(AuxTypes), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 48 | Strength(AuxFactor), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AuxInfo` 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`, `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: fields `lines` and `factor` are never read [INFO] [stdout] --> src/parse_magic_entry.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | struct MagicEntry { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 12 | lines: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 13 | factor: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MagicEntry` 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 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] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/magic.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | #[derive(FromPrimitive, Debug, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_NUM_FromPrimitive_FOR_CmpType` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: requested on the command line with `-D non-local-definitions` [INFO] [stdout] = note: this error originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [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] = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_MagicParam` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [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] = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_MagicParam` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [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)]` 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)]` 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: fields `lines` and `factor` are never read [INFO] [stdout] --> src/parse_magic_entry.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | struct MagicEntry { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 12 | lines: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 13 | factor: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MagicEntry` 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 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] [stderr] error: could not compile `file-type` (bin "file-type") due to 4 previous errors; 19 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/magic.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | #[derive(FromPrimitive, Debug, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_NUM_FromPrimitive_FOR_CmpType` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: requested on the command line with `-D non-local-definitions` [INFO] [stdout] = note: this error originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [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] = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_MagicParam` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [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] = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_MagicParam` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `file-type` (bin "file-type" test) due to 4 previous errors; 12 warnings emitted [INFO] running `Command { std: "docker" "inspect" "dee006d14815beb127a8ea8607d5231a5f8b52bce9dc6ebd72cd63d0f87f2c32", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dee006d14815beb127a8ea8607d5231a5f8b52bce9dc6ebd72cd63d0f87f2c32", kill_on_drop: false }` [INFO] [stdout] dee006d14815beb127a8ea8607d5231a5f8b52bce9dc6ebd72cd63d0f87f2c32