[INFO] fetching crate spc-core 0.1.0... [INFO] testing spc-core-0.1.0 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate spc-core 0.1.0 into /workspace/builds/worker-4-tc2/source [INFO] started tweaking crates.io crate spc-core 0.1.0 [INFO] finished tweaking crates.io crate spc-core 0.1.0 [INFO] tweaked toml for crates.io crate spc-core 0.1.0 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate spc-core 0.1.0 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate spc-core 0.1.0 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" "+b83b707f97d809763b7861afa7638871f3339a33" "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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 229ff0be363a4a6cad5914b31e6513ac30425c2b5e6611cbd731eb36e9e835bf [INFO] running `Command { std: "docker" "start" "-a" "229ff0be363a4a6cad5914b31e6513ac30425c2b5e6611cbd731eb36e9e835bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "229ff0be363a4a6cad5914b31e6513ac30425c2b5e6611cbd731eb36e9e835bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "229ff0be363a4a6cad5914b31e6513ac30425c2b5e6611cbd731eb36e9e835bf", kill_on_drop: false }` [INFO] [stdout] 229ff0be363a4a6cad5914b31e6513ac30425c2b5e6611cbd731eb36e9e835bf [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" "-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" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 949bb3511e02d0f0e2ea079a25d3c2f39c77c91eba198e120ca701f54d1ac59e [INFO] running `Command { std: "docker" "start" "-a" "949bb3511e02d0f0e2ea079a25d3c2f39c77c91eba198e120ca701f54d1ac59e", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling rustix v1.0.3 [INFO] [stderr] Compiling adler2 v2.0.0 [INFO] [stderr] Compiling linux-raw-sys v0.9.3 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling owo-colors v4.2.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling rustc-demangle v0.1.24 [INFO] [stderr] Compiling bitflags v2.9.0 [INFO] [stderr] Compiling fs-err v3.1.0 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling object v0.36.7 [INFO] [stderr] Compiling is_ci v1.2.0 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling miniz_oxide v0.8.5 [INFO] [stderr] Compiling zerocopy v0.8.24 [INFO] [stderr] Compiling unicode-linebreak v0.1.5 [INFO] [stderr] Compiling unicode-width v0.2.0 [INFO] [stderr] Compiling camino v1.1.9 [INFO] [stderr] Compiling anstream v0.6.18 [INFO] [stderr] Compiling textwrap v0.16.2 [INFO] [stderr] Compiling supports-color v3.0.2 [INFO] [stderr] Compiling csv-core v0.1.12 [INFO] [stderr] Compiling supports-hyperlinks v3.1.0 [INFO] [stderr] Compiling jiff v0.2.5 [INFO] [stderr] Compiling iana-time-zone v0.1.62 [INFO] [stderr] Compiling supports-unicode v3.0.0 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling chrono v0.4.40 [INFO] [stderr] Compiling terminal_size v0.4.2 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling env_filter v0.1.3 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling zerocopy-derive v0.8.24 [INFO] [stderr] Compiling miette-derive v7.5.0 [INFO] [stderr] Compiling backtrace v0.3.74 [INFO] [stderr] Compiling env_logger v0.11.7 [INFO] [stderr] Compiling backtrace-ext v0.2.1 [INFO] [stderr] Compiling miette v7.5.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling csv v1.3.1 [INFO] [stderr] Compiling spc-core v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Immutable` and `KnownLayout` [INFO] [stdout] --> src/lex.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | use zerocopy::{BigEndian, ByteOrder, Immutable, KnownLayout, LittleEndian, TryFromBytes}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FlagParameters` [INFO] [stdout] --> src/lex.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | DataShape, FlagParameters, LexedHeader, LexedNewFormatHeader, LexedOldFormatHeader, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `xzwType` should have an upper camel case name [INFO] [stdout] --> src/units.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 70 | pub(crate) enum xzwType { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `XzwType` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `xzwTypeCreationError` should have an upper camel case name [INFO] [stdout] --> src/units.rs:139:19 [INFO] [stdout] | [INFO] [stdout] 139 | pub(crate) struct xzwTypeCreationError(u8); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `XzwTypeCreationError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `yType` should have an upper camel case name [INFO] [stdout] --> src/units.rs:185:17 [INFO] [stdout] | [INFO] [stdout] 185 | pub(crate) enum yType { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `YType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `yTypeCreationError` should have an upper camel case name [INFO] [stdout] --> src/units.rs:246:19 [INFO] [stdout] | [INFO] [stdout] 246 | pub(crate) struct yTypeCreationError(u8); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `YTypeCreationError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `directory` [INFO] [stdout] --> src/write/mod.rs:86:33 [INFO] [stdout] | [INFO] [stdout] 86 | Block::XYXY { data, directory } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `directory: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ssfposn`, `ssfsize`, and `ssftime` are never read [INFO] [stdout] --> src/block/mod.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub(crate) struct Directory { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 23 | ssfposn: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 24 | ssfsize: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 25 | ssftime: f32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Directory` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `str_from_null_terminated_utf8_unchecked` is never used [INFO] [stdout] --> src/header/mod.rs:315:11 [INFO] [stdout] | [INFO] [stdout] 315 | unsafe fn str_from_null_terminated_utf8_unchecked(s: &[u8]) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/header/mod.rs:398:16 [INFO] [stdout] | [INFO] [stdout] 396 | pub(crate) struct OldFormatHeader { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 397 | /// The [`FlagParameters`] for the .SPC [INFO] [stdout] 398 | pub(super) flags: FlagParameters, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 399 | pub(super) version: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 423 | pub(super) x_unit_type: xzwType, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 424 | pub(super) y_unit_type: yType, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 425 | pub(super) z_unit_type: xzwType, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 426 | pub(super) datetime: Option>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 427 | pub(super) resolution_description: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 428 | pub(super) peak_point_number: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 429 | pub(super) scans: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 430 | // pub(super) spare: [f32; 7], [INFO] [stdout] 431 | pub(super) memo: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 432 | pub(super) xyz_labels: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OldFormatHeader` 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: multiple fields are never read [INFO] [stdout] --> src/header/mod.rs:637:16 [INFO] [stdout] | [INFO] [stdout] 635 | pub(crate) struct NewFormatHeader { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 636 | /// Flag parameters are packend into a single byte [INFO] [stdout] 637 | pub(super) flags: FlagParameters, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 644 | pub(super) file_version: u8, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 645 | pub(super) instrument_technique: InstrumentTechnique, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 659 | pub(super) spectra: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 660 | pub(super) x_unit_type: xzwType, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 661 | pub(super) y_unit_type: yType, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 662 | pub(super) z_unit_type: xzwType, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 663 | pub(super) posting_disposition: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 664 | pub(super) datetime: DateTime, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 665 | pub(super) resolution_description: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 666 | pub(super) source_instrument_description: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 667 | pub(super) peak_point_number: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 668 | pub(super) memo: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 669 | pub(super) xyz_labels: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 670 | pub(super) log_offset: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 671 | pub(super) modified_flag: u32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 672 | pub(super) processing_code: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 673 | pub(super) calibration_level: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 674 | pub(super) sub_method_sample_injection_number: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 675 | pub(super) concentration_factor: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 676 | pub(super) method_file: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 677 | pub(super) z_sub_increment: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 678 | pub(super) w_planes: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 679 | pub(super) w_plane_increment: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 680 | pub(super) w_axis_units: u8, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NewFormatHeader` 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: struct `GuardedLexedSubheader` is never constructed [INFO] [stdout] --> src/header/subheader.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | struct GuardedLexedSubheader(LexedSubheader); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `try_into_inner` is never used [INFO] [stdout] --> src/header/subheader.rs:21:19 [INFO] [stdout] | [INFO] [stdout] 20 | impl GuardedLexedSubheader { [INFO] [stdout] | ------------------------------------------- method in this implementation [INFO] [stdout] 21 | pub(crate) fn try_into_inner(&self) -> Result<&LexedSubheader, SubheaderParseError> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/header/subheader.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 69 | pub(crate) struct Subheader { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 70 | parameters: SubFlagParameters, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub(crate) exponent_y: i8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 79 | /// The integer index number of the trace subfile, where 0 refers to the first [INFO] [stdout] 80 | index_number: u16, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | next_z: f32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 85 | /// The floating peak pick noise value, if the high byte is nonzero [INFO] [stdout] 86 | noise: f32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 87 | /// The integer number of subfile points for TXYXYS types [INFO] [stdout] 88 | pub(crate) number_points: u32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 89 | /// The integer number of co-added scans [INFO] [stdout] 90 | scan: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 91 | /// The value of the floating w-axis (if fwplanes is non-zero) [INFO] [stdout] 92 | w_level: f32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | reserved: [u8; 4], [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Subheader` 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: field `whole` is never read [INFO] [stdout] --> src/lex.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub(crate) struct SPCReader<'data, E: ByteOrder> { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 40 | // header: &'data [u8], [INFO] [stdout] 41 | whole: &'data [u8], [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SPCReader` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `header`, `data`, and `text` are never read [INFO] [stdout] --> src/logblock.rs:84:16 [INFO] [stdout] | [INFO] [stdout] 83 | pub(crate) struct LogBlock { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 84 | pub(super) header: LogHeader, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 85 | pub(super) data: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 86 | pub(super) text: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LogBlock` 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: field `log` is never read [INFO] [stdout] --> src/parse.rs:32:16 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct ParsedSPC { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 32 | pub(crate) log: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParsedSPC` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 29.72s [INFO] running `Command { std: "docker" "inspect" "949bb3511e02d0f0e2ea079a25d3c2f39c77c91eba198e120ca701f54d1ac59e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "949bb3511e02d0f0e2ea079a25d3c2f39c77c91eba198e120ca701f54d1ac59e", kill_on_drop: false }` [INFO] [stdout] 949bb3511e02d0f0e2ea079a25d3c2f39c77c91eba198e120ca701f54d1ac59e [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" "-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" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6afc61db2de80155cc32e5aac8c2e068dc1af1c41f3cdbaa0052eceb44cafb55 [INFO] running `Command { std: "docker" "start" "-a" "6afc61db2de80155cc32e5aac8c2e068dc1af1c41f3cdbaa0052eceb44cafb55", kill_on_drop: false }` [INFO] [stderr] Compiling approx v0.5.1 [INFO] [stdout] warning: unused imports: `Immutable` and `KnownLayout` [INFO] [stdout] --> src/lex.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | use zerocopy::{BigEndian, ByteOrder, Immutable, KnownLayout, LittleEndian, TryFromBytes}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FlagParameters` [INFO] [stdout] --> src/lex.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | DataShape, FlagParameters, LexedHeader, LexedNewFormatHeader, LexedOldFormatHeader, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `xzwType` should have an upper camel case name [INFO] [stdout] --> src/units.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 70 | pub(crate) enum xzwType { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `XzwType` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `xzwTypeCreationError` should have an upper camel case name [INFO] [stdout] --> src/units.rs:139:19 [INFO] [stdout] | [INFO] [stdout] 139 | pub(crate) struct xzwTypeCreationError(u8); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `XzwTypeCreationError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `yType` should have an upper camel case name [INFO] [stdout] --> src/units.rs:185:17 [INFO] [stdout] | [INFO] [stdout] 185 | pub(crate) enum yType { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `YType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `yTypeCreationError` should have an upper camel case name [INFO] [stdout] --> src/units.rs:246:19 [INFO] [stdout] | [INFO] [stdout] 246 | pub(crate) struct yTypeCreationError(u8); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `YTypeCreationError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `directory` [INFO] [stdout] --> src/write/mod.rs:86:33 [INFO] [stdout] | [INFO] [stdout] 86 | Block::XYXY { data, directory } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `directory: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ssfposn`, `ssfsize`, and `ssftime` are never read [INFO] [stdout] --> src/block/mod.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub(crate) struct Directory { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 23 | ssfposn: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 24 | ssfsize: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 25 | ssftime: f32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Directory` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `str_from_null_terminated_utf8_unchecked` is never used [INFO] [stdout] --> src/header/mod.rs:315:11 [INFO] [stdout] | [INFO] [stdout] 315 | unsafe fn str_from_null_terminated_utf8_unchecked(s: &[u8]) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/header/mod.rs:398:16 [INFO] [stdout] | [INFO] [stdout] 396 | pub(crate) struct OldFormatHeader { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 397 | /// The [`FlagParameters`] for the .SPC [INFO] [stdout] 398 | pub(super) flags: FlagParameters, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 399 | pub(super) version: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 423 | pub(super) x_unit_type: xzwType, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 424 | pub(super) y_unit_type: yType, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 425 | pub(super) z_unit_type: xzwType, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 426 | pub(super) datetime: Option>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 427 | pub(super) resolution_description: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 428 | pub(super) peak_point_number: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 429 | pub(super) scans: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 430 | // pub(super) spare: [f32; 7], [INFO] [stdout] 431 | pub(super) memo: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 432 | pub(super) xyz_labels: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OldFormatHeader` 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: multiple fields are never read [INFO] [stdout] --> src/header/mod.rs:637:16 [INFO] [stdout] | [INFO] [stdout] 635 | pub(crate) struct NewFormatHeader { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 636 | /// Flag parameters are packend into a single byte [INFO] [stdout] 637 | pub(super) flags: FlagParameters, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 644 | pub(super) file_version: u8, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 645 | pub(super) instrument_technique: InstrumentTechnique, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 659 | pub(super) spectra: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 660 | pub(super) x_unit_type: xzwType, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 661 | pub(super) y_unit_type: yType, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 662 | pub(super) z_unit_type: xzwType, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 663 | pub(super) posting_disposition: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 664 | pub(super) datetime: DateTime, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 665 | pub(super) resolution_description: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 666 | pub(super) source_instrument_description: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 667 | pub(super) peak_point_number: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 668 | pub(super) memo: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 669 | pub(super) xyz_labels: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 670 | pub(super) log_offset: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 671 | pub(super) modified_flag: u32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 672 | pub(super) processing_code: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 673 | pub(super) calibration_level: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 674 | pub(super) sub_method_sample_injection_number: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 675 | pub(super) concentration_factor: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 676 | pub(super) method_file: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 677 | pub(super) z_sub_increment: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 678 | pub(super) w_planes: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 679 | pub(super) w_plane_increment: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 680 | pub(super) w_axis_units: u8, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NewFormatHeader` 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: struct `GuardedLexedSubheader` is never constructed [INFO] [stdout] --> src/header/subheader.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | struct GuardedLexedSubheader(LexedSubheader); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `try_into_inner` is never used [INFO] [stdout] --> src/header/subheader.rs:21:19 [INFO] [stdout] | [INFO] [stdout] 20 | impl GuardedLexedSubheader { [INFO] [stdout] | ------------------------------------------- method in this implementation [INFO] [stdout] 21 | pub(crate) fn try_into_inner(&self) -> Result<&LexedSubheader, SubheaderParseError> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/header/subheader.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 69 | pub(crate) struct Subheader { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 70 | parameters: SubFlagParameters, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub(crate) exponent_y: i8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 79 | /// The integer index number of the trace subfile, where 0 refers to the first [INFO] [stdout] 80 | index_number: u16, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | next_z: f32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 85 | /// The floating peak pick noise value, if the high byte is nonzero [INFO] [stdout] 86 | noise: f32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 87 | /// The integer number of subfile points for TXYXYS types [INFO] [stdout] 88 | pub(crate) number_points: u32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 89 | /// The integer number of co-added scans [INFO] [stdout] 90 | scan: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 91 | /// The value of the floating w-axis (if fwplanes is non-zero) [INFO] [stdout] 92 | w_level: f32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | reserved: [u8; 4], [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Subheader` 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: field `whole` is never read [INFO] [stdout] --> src/lex.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub(crate) struct SPCReader<'data, E: ByteOrder> { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 40 | // header: &'data [u8], [INFO] [stdout] 41 | whole: &'data [u8], [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SPCReader` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `header`, `data`, and `text` are never read [INFO] [stdout] --> src/logblock.rs:84:16 [INFO] [stdout] | [INFO] [stdout] 83 | pub(crate) struct LogBlock { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 84 | pub(super) header: LogHeader, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 85 | pub(super) data: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 86 | pub(super) text: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LogBlock` 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: field `log` is never read [INFO] [stdout] --> src/parse.rs:32:16 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct ParsedSPC { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 32 | pub(crate) log: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParsedSPC` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling spc-core v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: couldn't read `src/header/../../../../test_data/subheader/WTERN95SUBHEADER.SPC`: No such file or directory (os error 2) [INFO] [stdout] --> src/header/subheader.rs:144:20 [INFO] [stdout] | [INFO] [stdout] 144 | let data = include_bytes!("../../../../test_data/subheader/WTERN95SUBHEADER.SPC"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/header/../../../../test_data/subheader/WTERK95SUBHEADER.SPC`: No such file or directory (os error 2) [INFO] [stdout] --> src/header/subheader.rs:155:20 [INFO] [stdout] | [INFO] [stdout] 155 | let data = include_bytes!("../../../../test_data/subheader/WTERK95SUBHEADER.SPC"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: couldn't read `/tmp/spc/test_data/Ft-ir.csv`: No such file or directory (os error 2) [INFO] [stdout] --> src/lib.rs:74:24 [INFO] [stdout] | [INFO] [stdout] 74 | let expected = include_str!("/tmp/spc/test_data/Ft-ir.csv"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Immutable` and `KnownLayout` [INFO] [stdout] --> src/lex.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | use zerocopy::{BigEndian, ByteOrder, Immutable, KnownLayout, LittleEndian, TryFromBytes}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FlagParameters` [INFO] [stdout] --> src/lex.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | DataShape, FlagParameters, LexedHeader, LexedNewFormatHeader, LexedOldFormatHeader, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `xzwType` should have an upper camel case name [INFO] [stdout] --> src/units.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 70 | pub(crate) enum xzwType { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `XzwType` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `xzwTypeCreationError` should have an upper camel case name [INFO] [stdout] --> src/units.rs:139:19 [INFO] [stdout] | [INFO] [stdout] 139 | pub(crate) struct xzwTypeCreationError(u8); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `XzwTypeCreationError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `yType` should have an upper camel case name [INFO] [stdout] --> src/units.rs:185:17 [INFO] [stdout] | [INFO] [stdout] 185 | pub(crate) enum yType { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `YType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `yTypeCreationError` should have an upper camel case name [INFO] [stdout] --> src/units.rs:246:19 [INFO] [stdout] | [INFO] [stdout] 246 | pub(crate) struct yTypeCreationError(u8); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `YTypeCreationError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `directory` [INFO] [stdout] --> src/write/mod.rs:86:33 [INFO] [stdout] | [INFO] [stdout] 86 | Block::XYXY { data, directory } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `directory: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `spc-core` (lib test) due to 3 previous errors; 7 warnings emitted [INFO] running `Command { std: "docker" "inspect" "6afc61db2de80155cc32e5aac8c2e068dc1af1c41f3cdbaa0052eceb44cafb55", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6afc61db2de80155cc32e5aac8c2e068dc1af1c41f3cdbaa0052eceb44cafb55", kill_on_drop: false }` [INFO] [stdout] 6afc61db2de80155cc32e5aac8c2e068dc1af1c41f3cdbaa0052eceb44cafb55