[INFO] cloning repository https://github.com/toodols/struk [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/toodols/struk" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftoodols%2Fstruk", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftoodols%2Fstruk'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] af10923a9a6fdb9e238cd73b670670351a504d98 [INFO] checking toodols/struk against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftoodols%2Fstruk" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/toodols/struk on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/toodols/struk [INFO] finished tweaking git repo https://github.com/toodols/struk [INFO] tweaked toml for git repo https://github.com/toodols/struk written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/toodols/struk already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2cc35070eabc8f8cb3d6117710b3f4984334f7d65e9d3f3edd28acd84e266be8 [INFO] running `Command { std: "docker" "start" "-a" "2cc35070eabc8f8cb3d6117710b3f4984334f7d65e9d3f3edd28acd84e266be8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2cc35070eabc8f8cb3d6117710b3f4984334f7d65e9d3f3edd28acd84e266be8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2cc35070eabc8f8cb3d6117710b3f4984334f7d65e9d3f3edd28acd84e266be8", kill_on_drop: false }` [INFO] [stdout] 2cc35070eabc8f8cb3d6117710b3f4984334f7d65e9d3f3edd28acd84e266be8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e90f7f8e4c0994515fbc0c60da1055507d5b2829a3edafb7dcd12e738095ba39 [INFO] running `Command { std: "docker" "start" "-a" "e90f7f8e4c0994515fbc0c60da1055507d5b2829a3edafb7dcd12e738095ba39", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Checking ryu v1.0.9 [INFO] [stderr] Checking itoa v1.0.1 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Compiling nom v7.1.0 [INFO] [stderr] Checking struk v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::vec::IntoIter` [INFO] [stdout] --> src/language.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::vec::IntoIter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fmt`, `iter::Map` [INFO] [stdout] --> src/language.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{fmt, iter::Map, str}; [INFO] [stdout] | ^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ContextError`, `Err`, `ErrorKind`, `VerboseError`, `alphanumeric1 as alphanumeric`, `context`, `convert_error`, `delimited`, `escaped`, `number::complete::double`, `one_of`, `opt`, `separated_pair` [INFO] [stdout] --> src/language.rs:8:23 [INFO] [stdout] | [INFO] [stdout] 8 | bytes::complete::{escaped, tag, take_while}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 9 | character::complete::{alphanumeric1 as alphanumeric, char, one_of}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] 10 | combinator::{cut, map, opt, value}, [INFO] [stdout] | ^^^ [INFO] [stdout] 11 | error::{context, convert_error, ContextError, ErrorKind, ParseError, VerboseError}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] 12 | multi::{many0, separated_list0, separated_list1}, [INFO] [stdout] 13 | number::complete::double, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | sequence::{delimited, preceded, separated_pair, terminated, tuple}, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] 15 | Err, IResult, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::vec::IntoIter` [INFO] [stdout] --> src/language.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::vec::IntoIter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fmt`, `iter::Map` [INFO] [stdout] --> src/language.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{fmt, iter::Map, str}; [INFO] [stdout] | ^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ContextError`, `Err`, `VerboseError`, `alphanumeric1 as alphanumeric`, `context`, `convert_error`, `delimited`, `escaped`, `number::complete::double`, `one_of`, `opt`, `separated_pair` [INFO] [stdout] --> src/language.rs:8:23 [INFO] [stdout] | [INFO] [stdout] 8 | bytes::complete::{escaped, tag, take_while}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 9 | character::complete::{alphanumeric1 as alphanumeric, char, one_of}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] 10 | combinator::{cut, map, opt, value}, [INFO] [stdout] | ^^^ [INFO] [stdout] 11 | error::{context, convert_error, ContextError, ErrorKind, ParseError, VerboseError}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] 12 | multi::{many0, separated_list0, separated_list1}, [INFO] [stdout] 13 | number::complete::double, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | sequence::{delimited, preceded, separated_pair, terminated, tuple}, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] 15 | Err, IResult, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/deserialize.rs:62:14 [INFO] [stdout] | [INFO] [stdout] 62 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::deserialize` [INFO] [stdout] --> src/serialize.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::deserialize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::error::ErrorKind` [INFO] [stdout] --> src/serialize.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use nom::error::ErrorKind; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `json` [INFO] [stdout] --> src/serialize.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_json::{Value, json}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `parse` [INFO] [stdout] --> src/serialize.rs:6:60 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::language::{Primitive, ParserValue, ArrayLength, parse}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/deserialize.rs:62:14 [INFO] [stdout] | [INFO] [stdout] 62 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/language.rs:127:29 [INFO] [stdout] | [INFO] [stdout] 127 | map(tag("[]"), |s| ArrayLength::Bit(2)), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/language.rs:127:29 [INFO] [stdout] | [INFO] [stdout] 127 | map(tag("[]"), |s| ArrayLength::Bit(2)), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/serialize.rs:29:22 [INFO] [stdout] | [INFO] [stdout] 29 | ParserValue::Array(val, b)=>{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/serialize.rs:29:27 [INFO] [stdout] | [INFO] [stdout] 29 | ParserValue::Array(val, b)=>{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/serialize.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | let e = input.as_array().ok_or("not array sad")?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/main.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let d = &serialize(&rule, &json!({})).unwrap()[..]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `I64`, `F64`, `I32`, `F32`, `I16`, and `I8` are never constructed [INFO] [stdout] --> src/language.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub enum Primitive { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 27 | U64, [INFO] [stdout] 28 | I64, [INFO] [stdout] | ^^^ [INFO] [stdout] 29 | F64, [INFO] [stdout] | ^^^ [INFO] [stdout] 30 | U32, [INFO] [stdout] 31 | I32, [INFO] [stdout] | ^^^ [INFO] [stdout] 32 | F32, [INFO] [stdout] | ^^^ [INFO] [stdout] 33 | U16, [INFO] [stdout] 34 | I16, [INFO] [stdout] | ^^^ [INFO] [stdout] 35 | U8, [INFO] [stdout] 36 | I8, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Primitive` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Map` and `BoolStruct` are never constructed [INFO] [stdout] --> src/language.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 50 | pub enum ParserValue { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 56 | Map(Box, Box), // {[str]: u32} [INFO] [stdout] | ^^^ [INFO] [stdout] 57 | BoolStruct(Vec), // bitfield type {a,b,c,d,e,f} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParserValue` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate` is never used [INFO] [stdout] --> src/language.rs:207:4 [INFO] [stdout] | [INFO] [stdout] 207 | fn validate(){ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getCountFromBits` should have a snake case name [INFO] [stdout] --> src/deserialize.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn getCountFromBits(cursor: &mut Cursor>, num: u8) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_count_from_bits` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fixedLen` should have a snake case name [INFO] [stdout] --> src/serialize.rs:17:24 [INFO] [stdout] | [INFO] [stdout] 17 | ArrayLength::Fixed(fixedLen)=>{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `fixed_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/serialize.rs:29:22 [INFO] [stdout] | [INFO] [stdout] 29 | ParserValue::Array(val, b)=>{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/serialize.rs:29:27 [INFO] [stdout] | [INFO] [stdout] 29 | ParserValue::Array(val, b)=>{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/serialize.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | let e = input.as_array().ok_or("not array sad")?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/main.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let d = &serialize(&rule, &json!({})).unwrap()[..]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `I64`, `F64`, `I32`, `F32`, `I16`, and `I8` are never constructed [INFO] [stdout] --> src/language.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub enum Primitive { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 27 | U64, [INFO] [stdout] 28 | I64, [INFO] [stdout] | ^^^ [INFO] [stdout] 29 | F64, [INFO] [stdout] | ^^^ [INFO] [stdout] 30 | U32, [INFO] [stdout] 31 | I32, [INFO] [stdout] | ^^^ [INFO] [stdout] 32 | F32, [INFO] [stdout] | ^^^ [INFO] [stdout] 33 | U16, [INFO] [stdout] 34 | I16, [INFO] [stdout] | ^^^ [INFO] [stdout] 35 | U8, [INFO] [stdout] 36 | I8, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Primitive` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Map` and `BoolStruct` are never constructed [INFO] [stdout] --> src/language.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 50 | pub enum ParserValue { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 56 | Map(Box, Box), // {[str]: u32} [INFO] [stdout] | ^^^ [INFO] [stdout] 57 | BoolStruct(Vec), // bitfield type {a,b,c,d,e,f} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParserValue` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate` is never used [INFO] [stdout] --> src/language.rs:207:4 [INFO] [stdout] | [INFO] [stdout] 207 | fn validate(){ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getCountFromBits` should have a snake case name [INFO] [stdout] --> src/deserialize.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn getCountFromBits(cursor: &mut Cursor>, num: u8) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_count_from_bits` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fixedLen` should have a snake case name [INFO] [stdout] --> src/serialize.rs:17:24 [INFO] [stdout] | [INFO] [stdout] 17 | ArrayLength::Fixed(fixedLen)=>{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `fixed_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.43s [INFO] running `Command { std: "docker" "inspect" "e90f7f8e4c0994515fbc0c60da1055507d5b2829a3edafb7dcd12e738095ba39", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e90f7f8e4c0994515fbc0c60da1055507d5b2829a3edafb7dcd12e738095ba39", kill_on_drop: false }` [INFO] [stdout] e90f7f8e4c0994515fbc0c60da1055507d5b2829a3edafb7dcd12e738095ba39 [INFO] checking toodols/struk against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftoodols%2Fstruk" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/toodols/struk on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/toodols/struk [INFO] finished tweaking git repo https://github.com/toodols/struk [INFO] tweaked toml for git repo https://github.com/toodols/struk written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/toodols/struk 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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6d5b276596b5571bf3700d2d9cbeef13162591bfd6483c63fc0bf859eaeca8e6 [INFO] running `Command { std: "docker" "start" "-a" "6d5b276596b5571bf3700d2d9cbeef13162591bfd6483c63fc0bf859eaeca8e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6d5b276596b5571bf3700d2d9cbeef13162591bfd6483c63fc0bf859eaeca8e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6d5b276596b5571bf3700d2d9cbeef13162591bfd6483c63fc0bf859eaeca8e6", kill_on_drop: false }` [INFO] [stdout] 6d5b276596b5571bf3700d2d9cbeef13162591bfd6483c63fc0bf859eaeca8e6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d5cbfb3633cb139344c00e7980fef7c90669af52374c0d22f85af08ade0f048b [INFO] running `Command { std: "docker" "start" "-a" "d5cbfb3633cb139344c00e7980fef7c90669af52374c0d22f85af08ade0f048b", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking itoa v1.0.1 [INFO] [stderr] Checking ryu v1.0.9 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Compiling nom v7.1.0 [INFO] [stderr] Checking struk v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/language.rs (3 fixes) [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/deserialize.rs:62:14 [INFO] [stdout] | [INFO] [stdout] 62 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/language.rs:124:29 [INFO] [stdout] | [INFO] [stdout] 124 | map(tag("[]"), |s| ArrayLength::Bit(2)), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/serialize.rs:29:22 [INFO] [stdout] | [INFO] [stdout] 29 | ParserValue::Array(val, b)=>{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/serialize.rs:29:27 [INFO] [stdout] | [INFO] [stdout] 29 | ParserValue::Array(val, b)=>{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/serialize.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | let e = input.as_array().ok_or("not array sad")?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/main.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let d = &serialize(&rule, &json!({})).unwrap()[..]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `I64`, `F64`, `I32`, `F32`, `I16`, and `I8` are never constructed [INFO] [stdout] --> src/language.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum Primitive { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 24 | U64, [INFO] [stdout] 25 | I64, [INFO] [stdout] | ^^^ [INFO] [stdout] 26 | F64, [INFO] [stdout] | ^^^ [INFO] [stdout] 27 | U32, [INFO] [stdout] 28 | I32, [INFO] [stdout] | ^^^ [INFO] [stdout] 29 | F32, [INFO] [stdout] | ^^^ [INFO] [stdout] 30 | U16, [INFO] [stdout] 31 | I16, [INFO] [stdout] | ^^^ [INFO] [stdout] 32 | U8, [INFO] [stdout] 33 | I8, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Primitive` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Map` and `BoolStruct` are never constructed [INFO] [stdout] --> src/language.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 47 | pub enum ParserValue { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 53 | Map(Box, Box), // {[str]: u32} [INFO] [stdout] | ^^^ [INFO] [stdout] 54 | BoolStruct(Vec), // bitfield type {a,b,c,d,e,f} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParserValue` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate` is never used [INFO] [stdout] --> src/language.rs:204:4 [INFO] [stdout] | [INFO] [stdout] 204 | fn validate(){ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getCountFromBits` should have a snake case name [INFO] [stdout] --> src/deserialize.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn getCountFromBits(cursor: &mut Cursor>, num: u8) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_count_from_bits` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fixedLen` should have a snake case name [INFO] [stdout] --> src/serialize.rs:17:24 [INFO] [stdout] | [INFO] [stdout] 17 | ArrayLength::Fixed(fixedLen)=>{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `fixed_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/serialize.rs (4 fixes) [INFO] [stderr] Fixed src/language.rs (1 fix) [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/deserialize.rs:62:14 [INFO] [stdout] | [INFO] [stdout] 62 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/language.rs:124:29 [INFO] [stdout] | [INFO] [stdout] 124 | map(tag("[]"), |s| ArrayLength::Bit(2)), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/serialize.rs:27:22 [INFO] [stdout] | [INFO] [stdout] 27 | ParserValue::Array(val, b)=>{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/serialize.rs:27:27 [INFO] [stdout] | [INFO] [stdout] 27 | ParserValue::Array(val, b)=>{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/serialize.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | let e = input.as_array().ok_or("not array sad")?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/main.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let d = &serialize(&rule, &json!({})).unwrap()[..]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `I64`, `F64`, `I32`, `F32`, `I16`, and `I8` are never constructed [INFO] [stdout] --> src/language.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum Primitive { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 24 | U64, [INFO] [stdout] 25 | I64, [INFO] [stdout] | ^^^ [INFO] [stdout] 26 | F64, [INFO] [stdout] | ^^^ [INFO] [stdout] 27 | U32, [INFO] [stdout] 28 | I32, [INFO] [stdout] | ^^^ [INFO] [stdout] 29 | F32, [INFO] [stdout] | ^^^ [INFO] [stdout] 30 | U16, [INFO] [stdout] 31 | I16, [INFO] [stdout] | ^^^ [INFO] [stdout] 32 | U8, [INFO] [stdout] 33 | I8, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Primitive` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Map` and `BoolStruct` are never constructed [INFO] [stdout] --> src/language.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 47 | pub enum ParserValue { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 53 | Map(Box, Box), // {[str]: u32} [INFO] [stdout] | ^^^ [INFO] [stdout] 54 | BoolStruct(Vec), // bitfield type {a,b,c,d,e,f} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParserValue` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate` is never used [INFO] [stdout] --> src/language.rs:204:4 [INFO] [stdout] | [INFO] [stdout] 204 | fn validate(){ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getCountFromBits` should have a snake case name [INFO] [stdout] --> src/deserialize.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn getCountFromBits(cursor: &mut Cursor>, num: u8) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_count_from_bits` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fixedLen` should have a snake case name [INFO] [stdout] --> src/serialize.rs:15:24 [INFO] [stdout] | [INFO] [stdout] 15 | ArrayLength::Fixed(fixedLen)=>{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `fixed_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.00s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking struk v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/deserialize.rs:62:14 [INFO] [stdout] | [INFO] [stdout] 62 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `json` in this scope [INFO] [stdout] --> src/serialize.rs:112:16 [INFO] [stdout] | [INFO] [stdout] 112 | let jsonval = json!({"x": 0, "y": 1000, "z": 100}); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use crate::json; [INFO] [stdout] | [INFO] [stdout] 1 + use serde_json::json; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ErrorKind` in this scope [INFO] [stdout] --> src/language.rs:200:28 [INFO] [stdout] | [INFO] [stdout] 200 | let e = parse::<(&str, ErrorKind)>(rule_text); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use crate::ErrorKind; [INFO] [stdout] | [INFO] [stdout] 1 + use nom::error::ErrorKind; [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::ErrorKind; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `parse` in this scope [INFO] [stdout] --> src/serialize.rs:107:16 [INFO] [stdout] | [INFO] [stdout] 107 | let my_rule= &parse::<(&str, ErrorKind)>( [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 1 + use crate::parse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ErrorKind` in this scope [INFO] [stdout] --> src/serialize.rs:107:31 [INFO] [stdout] | [INFO] [stdout] 107 | let my_rule= &parse::<(&str, ErrorKind)>( [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use crate::ErrorKind; [INFO] [stdout] | [INFO] [stdout] 1 + use nom::error::ErrorKind; [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::ErrorKind; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `deserialize` in this scope [INFO] [stdout] --> src/serialize.rs:120:33 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn serialize<'a>(rule: &ParserValue, input: &'a Value) -> Result, &'a str> { [INFO] [stdout] | -------------------------------------------------------------------------------------- similarly named function `serialize` defined here [INFO] [stdout] ... [INFO] [stdout] 120 | let a = serde_json::to_string(&deserialize(my_rule, bytes).unwrap()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 120 | let a = serde_json::to_string(&serialize(my_rule, bytes).unwrap()).unwrap(); [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 1 + use crate::deserialize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/deserialize.rs:62:14 [INFO] [stdout] | [INFO] [stdout] 62 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/language.rs:124:29 [INFO] [stdout] | [INFO] [stdout] 124 | map(tag("[]"), |s| ArrayLength::Bit(2)), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/language.rs:124:29 [INFO] [stdout] | [INFO] [stdout] 124 | map(tag("[]"), |s| ArrayLength::Bit(2)), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/serialize.rs:27:22 [INFO] [stdout] | [INFO] [stdout] 27 | ParserValue::Array(val, b)=>{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/serialize.rs:27:27 [INFO] [stdout] | [INFO] [stdout] 27 | ParserValue::Array(val, b)=>{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/serialize.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | let e = input.as_array().ok_or("not array sad")?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/main.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let d = &serialize(&rule, &json!({})).unwrap()[..]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `I64`, `F64`, `I32`, `F32`, `I16`, and `I8` are never constructed [INFO] [stdout] --> src/language.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum Primitive { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 24 | U64, [INFO] [stdout] 25 | I64, [INFO] [stdout] | ^^^ [INFO] [stdout] 26 | F64, [INFO] [stdout] | ^^^ [INFO] [stdout] 27 | U32, [INFO] [stdout] 28 | I32, [INFO] [stdout] | ^^^ [INFO] [stdout] 29 | F32, [INFO] [stdout] | ^^^ [INFO] [stdout] 30 | U16, [INFO] [stdout] 31 | I16, [INFO] [stdout] | ^^^ [INFO] [stdout] 32 | U8, [INFO] [stdout] 33 | I8, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Primitive` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Map` and `BoolStruct` are never constructed [INFO] [stdout] --> src/language.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 47 | pub enum ParserValue { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 53 | Map(Box, Box), // {[str]: u32} [INFO] [stdout] | ^^^ [INFO] [stdout] 54 | BoolStruct(Vec), // bitfield type {a,b,c,d,e,f} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParserValue` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate` is never used [INFO] [stdout] --> src/language.rs:204:4 [INFO] [stdout] | [INFO] [stdout] 204 | fn validate(){ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getCountFromBits` should have a snake case name [INFO] [stdout] --> src/deserialize.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn getCountFromBits(cursor: &mut Cursor>, num: u8) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_count_from_bits` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fixedLen` should have a snake case name [INFO] [stdout] --> src/serialize.rs:15:24 [INFO] [stdout] | [INFO] [stdout] 15 | ArrayLength::Fixed(fixedLen)=>{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `fixed_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/serialize.rs:27:22 [INFO] [stdout] | [INFO] [stdout] 27 | ParserValue::Array(val, b)=>{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/serialize.rs:27:27 [INFO] [stdout] | [INFO] [stdout] 27 | ParserValue::Array(val, b)=>{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/serialize.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | let e = input.as_array().ok_or("not array sad")?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/main.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let d = &serialize(&rule, &json!({})).unwrap()[..]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `struk` (bin "struk" test) due to 6 previous errors; 6 warnings emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "d5cbfb3633cb139344c00e7980fef7c90669af52374c0d22f85af08ade0f048b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d5cbfb3633cb139344c00e7980fef7c90669af52374c0d22f85af08ade0f048b", kill_on_drop: false }` [INFO] [stdout] d5cbfb3633cb139344c00e7980fef7c90669af52374c0d22f85af08ade0f048b