[INFO] fetching crate ndarray-zfp-rs 0.1.0... [INFO] checking ndarray-zfp-rs-0.1.0 against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] extracting crate ndarray-zfp-rs 0.1.0 into /workspace/builds/worker-0-tc1/source [INFO] validating manifest of crates.io crate ndarray-zfp-rs 0.1.0 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 crates.io crate ndarray-zfp-rs 0.1.0 [INFO] finished tweaking crates.io crate ndarray-zfp-rs 0.1.0 [INFO] tweaked toml for crates.io crate ndarray-zfp-rs 0.1.0 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 57 packages [INFO] [stderr] Adding bytes v0.4.12 (latest: v1.6.0) [INFO] [stderr] Adding linux-raw-sys v0.4.13 (latest: v0.6.4) [INFO] [stderr] Adding matrixmultiply v0.2.4 (latest: v0.3.8) [INFO] [stderr] Adding ndarray v0.13.1 (latest: v0.15.6) [INFO] [stderr] Adding num-complex v0.2.4 (latest: v0.4.5) [INFO] [stderr] Adding which v4.4.2 (latest: v6.0.1) [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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded zfp-sys v0.1.15 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 2a29b4245771a4a6662924abccc7250fc103b47d98d170d6adfaf1fa82bfd9ee [INFO] running `Command { std: "docker" "start" "-a" "2a29b4245771a4a6662924abccc7250fc103b47d98d170d6adfaf1fa82bfd9ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2a29b4245771a4a6662924abccc7250fc103b47d98d170d6adfaf1fa82bfd9ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2a29b4245771a4a6662924abccc7250fc103b47d98d170d6adfaf1fa82bfd9ee", kill_on_drop: false }` [INFO] [stdout] 2a29b4245771a4a6662924abccc7250fc103b47d98d170d6adfaf1fa82bfd9ee [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] fe22a10d719705d063f74b8a9752b746fbc60008bb971bd3f90fa00000d3a565 [INFO] running `Command { std: "docker" "start" "-a" "fe22a10d719705d063f74b8a9752b746fbc60008bb971bd3f90fa00000d3a565", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling prettyplease v0.2.17 [INFO] [stderr] Compiling rustix v0.38.32 [INFO] [stderr] Compiling bitflags v2.5.0 [INFO] [stderr] Compiling either v1.10.0 [INFO] [stderr] Compiling linux-raw-sys v0.4.13 [INFO] [stderr] Compiling regex-syntax v0.8.3 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling memchr v2.7.2 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Compiling bindgen v0.69.4 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling libloading v0.8.3 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling cmake v0.1.50 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling ndarray v0.13.1 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking matrixmultiply v0.2.4 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Compiling clang-sys v1.7.0 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling syn v2.0.57 [INFO] [stderr] Compiling regex-automata v0.4.6 [INFO] [stderr] Compiling which v4.4.2 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Compiling regex v1.10.4 [INFO] [stderr] Compiling zfp-sys v0.1.15 [INFO] [stderr] Checking ndarray-zfp-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `zfp_sys` is imported redundantly [INFO] [stdout] --> src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use zfp_sys; [INFO] [stdout] | ^^^^^^^ the item `zfp_sys` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Array` [INFO] [stdout] --> src/lib.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | use ndarray::{Array1, Array, Array2}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `zfp_sys` is imported redundantly [INFO] [stdout] --> src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use zfp_sys; [INFO] [stdout] | ^^^^^^^ the item `zfp_sys` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Array` [INFO] [stdout] --> src/lib.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | use ndarray::{Array1, Array, Array2}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: patterns aren't allowed in functions without bodies [INFO] [stdout] --> src/lib.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | fn zfp_compress(mut self, tolerance: f64) -> Result>; [INFO] [stdout] | ^^^^^^^^ help: remove `mut` from the parameter: `self` [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #35203 [INFO] [stdout] = note: `#[deny(patterns_in_fns_without_body)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: patterns aren't allowed in functions without bodies [INFO] [stdout] --> src/lib.rs:9:33 [INFO] [stdout] | [INFO] [stdout] 9 | fn zfp_compress_with_header(mut self, tolerance: f64) -> Result>; [INFO] [stdout] | ^^^^^^^^ help: remove `mut` from the parameter: `self` [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #35203 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: patterns aren't allowed in functions without bodies [INFO] [stdout] --> src/lib.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | fn zfp_compress(mut self, tolerance: f64) -> Result>; [INFO] [stdout] | ^^^^^^^^ help: remove `mut` from the parameter: `self` [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #35203 [INFO] [stdout] = note: `#[deny(patterns_in_fns_without_body)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: patterns aren't allowed in functions without bodies [INFO] [stdout] --> src/lib.rs:9:33 [INFO] [stdout] | [INFO] [stdout] 9 | fn zfp_compress_with_header(mut self, tolerance: f64) -> Result>; [INFO] [stdout] | ^^^^^^^^ help: remove `mut` from the parameter: `self` [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #35203 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:58:21 [INFO] [stdout] | [INFO] [stdout] 55 | zfp_sys::zfp_field_1d( [INFO] [stdout] | --------------------- arguments to this function are incorrect [INFO] [stdout] ... [INFO] [stdout] 58 | *(shape.get(0).unwrap()) as u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `usize`, found `u32` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/target/debug/build/zfp-sys-8be835f82aaba09c/out/bindings.rs:3:37448 [INFO] [stdout] | [INFO] [stdout] 3 | ...fp_field_alloc () -> * mut zfp_field ; } extern "C" { pub fn zfp_field_1d (pointer : * mut :: std :: os :: raw :: c_void , type_ : zfp... [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] help: you can convert a `u32` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 58 | (*(shape.get(0).unwrap()) as u32).try_into().unwrap(), [INFO] [stdout] | + +++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> src/lib.rs:64:17 [INFO] [stdout] | [INFO] [stdout] 64 | zfp_sys::zfp_field_2d( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | *(shape.get(0).unwrap()) as u32, [INFO] [stdout] | ------------------------------- expected `usize`, found `u32` [INFO] [stdout] 68 | *(shape.get(1).unwrap()) as u32, [INFO] [stdout] | ------------------------------- expected `usize`, found `u32` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/target/debug/build/zfp-sys-8be835f82aaba09c/out/bindings.rs:3:37584 [INFO] [stdout] | [INFO] [stdout] 3 | ...ype , nx : usize) -> * mut zfp_field ; } extern "C" { pub fn zfp_field_2d (pointer : * mut :: std :: os :: raw :: c_void , type_ : zfp... [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] help: you can convert a `u32` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 67 | (*(shape.get(0).unwrap()) as u32).try_into().unwrap(), [INFO] [stdout] | + +++++++++++++++++++++ [INFO] [stdout] help: you can convert a `u32` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 68 | (*(shape.get(1).unwrap()) as u32).try_into().unwrap(), [INFO] [stdout] | + +++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:110:17 [INFO] [stdout] | [INFO] [stdout] 107 | zfp_sys::zfp_field_1d( [INFO] [stdout] | --------------------- arguments to this function are incorrect [INFO] [stdout] ... [INFO] [stdout] 110 | self.len() as u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ expected `usize`, found `u32` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/target/debug/build/zfp-sys-8be835f82aaba09c/out/bindings.rs:3:37448 [INFO] [stdout] | [INFO] [stdout] 3 | ...fp_field_alloc () -> * mut zfp_field ; } extern "C" { pub fn zfp_field_1d (pointer : * mut :: std :: os :: raw :: c_void , type_ : zfp... [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] help: you can convert a `u32` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 110 | (self.len() as u32).try_into().unwrap(), [INFO] [stdout] | + +++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:58:21 [INFO] [stdout] | [INFO] [stdout] 55 | zfp_sys::zfp_field_1d( [INFO] [stdout] | --------------------- arguments to this function are incorrect [INFO] [stdout] ... [INFO] [stdout] 58 | *(shape.get(0).unwrap()) as u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `usize`, found `u32` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/target/debug/build/zfp-sys-8be835f82aaba09c/out/bindings.rs:3:37448 [INFO] [stdout] | [INFO] [stdout] 3 | ...fp_field_alloc () -> * mut zfp_field ; } extern "C" { pub fn zfp_field_1d (pointer : * mut :: std :: os :: raw :: c_void , type_ : zfp... [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] help: you can convert a `u32` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 58 | (*(shape.get(0).unwrap()) as u32).try_into().unwrap(), [INFO] [stdout] | + +++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> src/lib.rs:64:17 [INFO] [stdout] | [INFO] [stdout] 64 | zfp_sys::zfp_field_2d( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | *(shape.get(0).unwrap()) as u32, [INFO] [stdout] | ------------------------------- expected `usize`, found `u32` [INFO] [stdout] 68 | *(shape.get(1).unwrap()) as u32, [INFO] [stdout] | ------------------------------- expected `usize`, found `u32` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/target/debug/build/zfp-sys-8be835f82aaba09c/out/bindings.rs:3:37584 [INFO] [stdout] | [INFO] [stdout] 3 | ...ype , nx : usize) -> * mut zfp_field ; } extern "C" { pub fn zfp_field_2d (pointer : * mut :: std :: os :: raw :: c_void , type_ : zfp... [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] help: you can convert a `u32` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 67 | (*(shape.get(0).unwrap()) as u32).try_into().unwrap(), [INFO] [stdout] | + +++++++++++++++++++++ [INFO] [stdout] help: you can convert a `u32` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 68 | (*(shape.get(1).unwrap()) as u32).try_into().unwrap(), [INFO] [stdout] | + +++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:159:17 [INFO] [stdout] | [INFO] [stdout] 156 | zfp_sys::zfp_field_1d( [INFO] [stdout] | --------------------- arguments to this function are incorrect [INFO] [stdout] ... [INFO] [stdout] 159 | self.len() as u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ expected `usize`, found `u32` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/target/debug/build/zfp-sys-8be835f82aaba09c/out/bindings.rs:3:37448 [INFO] [stdout] | [INFO] [stdout] 3 | ...fp_field_alloc () -> * mut zfp_field ; } extern "C" { pub fn zfp_field_1d (pointer : * mut :: std :: os :: raw :: c_void , type_ : zfp... [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] help: you can convert a `u32` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 159 | (self.len() as u32).try_into().unwrap(), [INFO] [stdout] | + +++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:110:17 [INFO] [stdout] | [INFO] [stdout] 107 | zfp_sys::zfp_field_1d( [INFO] [stdout] | --------------------- arguments to this function are incorrect [INFO] [stdout] ... [INFO] [stdout] 110 | self.len() as u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ expected `usize`, found `u32` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/target/debug/build/zfp-sys-8be835f82aaba09c/out/bindings.rs:3:37448 [INFO] [stdout] | [INFO] [stdout] 3 | ...fp_field_alloc () -> * mut zfp_field ; } extern "C" { pub fn zfp_field_1d (pointer : * mut :: std :: os :: raw :: c_void , type_ : zfp... [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] help: you can convert a `u32` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 110 | (self.len() as u32).try_into().unwrap(), [INFO] [stdout] | + +++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> src/lib.rs:205:13 [INFO] [stdout] | [INFO] [stdout] 205 | zfp_sys::zfp_field_2d( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 208 | *(self.shape().get(0).unwrap()) as u32, [INFO] [stdout] | -------------------------------------- expected `usize`, found `u32` [INFO] [stdout] 209 | *(self.shape().get(1).unwrap()) as u32, [INFO] [stdout] | -------------------------------------- expected `usize`, found `u32` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/target/debug/build/zfp-sys-8be835f82aaba09c/out/bindings.rs:3:37584 [INFO] [stdout] | [INFO] [stdout] 3 | ...ype , nx : usize) -> * mut zfp_field ; } extern "C" { pub fn zfp_field_2d (pointer : * mut :: std :: os :: raw :: c_void , type_ : zfp... [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] help: you can convert a `u32` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 208 | (*(self.shape().get(0).unwrap()) as u32).try_into().unwrap(), [INFO] [stdout] | + +++++++++++++++++++++ [INFO] [stdout] help: you can convert a `u32` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 209 | (*(self.shape().get(1).unwrap()) as u32).try_into().unwrap(), [INFO] [stdout] | + +++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:159:17 [INFO] [stdout] | [INFO] [stdout] 156 | zfp_sys::zfp_field_1d( [INFO] [stdout] | --------------------- arguments to this function are incorrect [INFO] [stdout] ... [INFO] [stdout] 159 | self.len() as u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ expected `usize`, found `u32` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/target/debug/build/zfp-sys-8be835f82aaba09c/out/bindings.rs:3:37448 [INFO] [stdout] | [INFO] [stdout] 3 | ...fp_field_alloc () -> * mut zfp_field ; } extern "C" { pub fn zfp_field_1d (pointer : * mut :: std :: os :: raw :: c_void , type_ : zfp... [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] help: you can convert a `u32` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 159 | (self.len() as u32).try_into().unwrap(), [INFO] [stdout] | + +++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:116:33 [INFO] [stdout] | [INFO] [stdout] 116 | fn zfp_compress_with_header(mut self, tolerance: f64) -> Result, Error> { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:128:34 [INFO] [stdout] | [INFO] [stdout] 128 | fn from_zfp_compressed_bytes(mut compressed_bytes: Vec, shape: &[usize], tolerance: f64) -> Result> { [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:165:33 [INFO] [stdout] | [INFO] [stdout] 165 | fn zfp_compress_with_header(mut self, tolerance: f64) -> Result, Error> { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:177:34 [INFO] [stdout] | [INFO] [stdout] 177 | fn from_zfp_compressed_bytes(mut compressed_bytes: Vec, shape: &[usize], tolerance: f64) -> Result> { [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> src/lib.rs:205:13 [INFO] [stdout] | [INFO] [stdout] 205 | zfp_sys::zfp_field_2d( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 208 | *(self.shape().get(0).unwrap()) as u32, [INFO] [stdout] | -------------------------------------- expected `usize`, found `u32` [INFO] [stdout] 209 | *(self.shape().get(1).unwrap()) as u32, [INFO] [stdout] | -------------------------------------- expected `usize`, found `u32` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/target/debug/build/zfp-sys-8be835f82aaba09c/out/bindings.rs:3:37584 [INFO] [stdout] | [INFO] [stdout] 3 | ...ype , nx : usize) -> * mut zfp_field ; } extern "C" { pub fn zfp_field_2d (pointer : * mut :: std :: os :: raw :: c_void , type_ : zfp... [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] help: you can convert a `u32` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 208 | (*(self.shape().get(0).unwrap()) as u32).try_into().unwrap(), [INFO] [stdout] | + +++++++++++++++++++++ [INFO] [stdout] help: you can convert a `u32` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 209 | (*(self.shape().get(1).unwrap()) as u32).try_into().unwrap(), [INFO] [stdout] | + +++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:215:33 [INFO] [stdout] | [INFO] [stdout] 215 | fn zfp_compress_with_header(mut self, tolerance: f64) -> Result, Error> { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:230:34 [INFO] [stdout] | [INFO] [stdout] 230 | fn from_zfp_compressed_bytes(mut compressed_bytes: Vec, shape: &[usize], tolerance: f64) -> Result> { [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:116:33 [INFO] [stdout] | [INFO] [stdout] 116 | fn zfp_compress_with_header(mut self, tolerance: f64) -> Result, Error> { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ndarray-zfp-rs` (lib) due to 8 previous errors; 9 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:128:34 [INFO] [stdout] | [INFO] [stdout] 128 | fn from_zfp_compressed_bytes(mut compressed_bytes: Vec, shape: &[usize], tolerance: f64) -> Result> { [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:165:33 [INFO] [stdout] | [INFO] [stdout] 165 | fn zfp_compress_with_header(mut self, tolerance: f64) -> Result, Error> { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:177:34 [INFO] [stdout] | [INFO] [stdout] 177 | fn from_zfp_compressed_bytes(mut compressed_bytes: Vec, shape: &[usize], tolerance: f64) -> Result> { [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:215:33 [INFO] [stdout] | [INFO] [stdout] 215 | fn zfp_compress_with_header(mut self, tolerance: f64) -> Result, Error> { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:230:34 [INFO] [stdout] | [INFO] [stdout] 230 | fn from_zfp_compressed_bytes(mut compressed_bytes: Vec, shape: &[usize], tolerance: f64) -> Result> { [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ndarray-zfp-rs` (lib test) due to 8 previous errors; 9 warnings emitted [INFO] running `Command { std: "docker" "inspect" "fe22a10d719705d063f74b8a9752b746fbc60008bb971bd3f90fa00000d3a565", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fe22a10d719705d063f74b8a9752b746fbc60008bb971bd3f90fa00000d3a565", kill_on_drop: false }` [INFO] [stdout] fe22a10d719705d063f74b8a9752b746fbc60008bb971bd3f90fa00000d3a565 [INFO] checking ndarray-zfp-rs-0.1.0 against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] extracting crate ndarray-zfp-rs 0.1.0 into /workspace/builds/worker-0-tc2/source [INFO] validating manifest of crates.io crate ndarray-zfp-rs 0.1.0 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 crates.io crate ndarray-zfp-rs 0.1.0 [INFO] finished tweaking crates.io crate ndarray-zfp-rs 0.1.0 [INFO] tweaked toml for crates.io crate ndarray-zfp-rs 0.1.0 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [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-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] f3b985df631c0985be275d5d0f7a27ad46d328e83bbb3812c6a99b009882cdd9 [INFO] running `Command { std: "docker" "start" "-a" "f3b985df631c0985be275d5d0f7a27ad46d328e83bbb3812c6a99b009882cdd9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f3b985df631c0985be275d5d0f7a27ad46d328e83bbb3812c6a99b009882cdd9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f3b985df631c0985be275d5d0f7a27ad46d328e83bbb3812c6a99b009882cdd9", kill_on_drop: false }` [INFO] [stdout] f3b985df631c0985be275d5d0f7a27ad46d328e83bbb3812c6a99b009882cdd9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 22bfac7c0e0f94f3028ab7218fa11a94bf2196796b04f28b0b12b50589c240c5 [INFO] running `Command { std: "docker" "start" "-a" "22bfac7c0e0f94f3028ab7218fa11a94bf2196796b04f28b0b12b50589c240c5", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] skipping non-2021 edition `2018` [INFO] running `Command { std: "docker" "inspect" "22bfac7c0e0f94f3028ab7218fa11a94bf2196796b04f28b0b12b50589c240c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "22bfac7c0e0f94f3028ab7218fa11a94bf2196796b04f28b0b12b50589c240c5", kill_on_drop: false }` [INFO] [stdout] 22bfac7c0e0f94f3028ab7218fa11a94bf2196796b04f28b0b12b50589c240c5