[INFO] fetching crate gribberish 0.22.0... [INFO] checking gribberish-0.22.0 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] extracting crate gribberish 0.22.0 into /workspace/builds/worker-7-tc2/source [INFO] started tweaking crates.io crate gribberish 0.22.0 [INFO] removed 0 missing examples [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate gribberish 0.22.0 [INFO] tweaked toml for crates.io crate gribberish 0.22.0 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate gribberish 0.22.0 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate gribberish 0.22.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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d2ad462779220893d441b1efacc3c70715143510f4918ac9e4861e8f9bf826c8 [INFO] running `Command { std: "docker" "start" "-a" "d2ad462779220893d441b1efacc3c70715143510f4918ac9e4861e8f9bf826c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d2ad462779220893d441b1efacc3c70715143510f4918ac9e4861e8f9bf826c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d2ad462779220893d441b1efacc3c70715143510f4918ac9e4861e8f9bf826c8", kill_on_drop: false }` [INFO] [stdout] d2ad462779220893d441b1efacc3c70715143510f4918ac9e4861e8f9bf826c8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8ffce3732b1d8cb13ec20698f52e8839627d3f47893831e852944446870dc63a [INFO] running `Command { std: "docker" "start" "-a" "8ffce3732b1d8cb13ec20698f52e8839627d3f47893831e852944446870dc63a", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling proc-macro2 v1.0.82 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling crc32fast v1.4.0 [INFO] [stderr] Checking simd-adler32 v0.3.7 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling thiserror v1.0.60 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Compiling libc v0.2.154 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Compiling cc v1.0.97 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking colorchoice v1.0.1 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Checking anstyle-parse v0.2.4 [INFO] [stderr] Checking anstyle-query v1.0.3 [INFO] [stderr] Checking anstyle v1.0.7 [INFO] [stderr] Checking is_terminal_polyfill v1.70.0 [INFO] [stderr] Checking funty v2.0.0 [INFO] [stderr] Checking wyz v0.5.1 [INFO] [stderr] Checking miniz_oxide v0.7.2 [INFO] [stderr] Checking fdeflate v0.3.4 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking iana-time-zone v0.1.60 [INFO] [stderr] Checking anstream v0.6.14 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking clap_lex v0.7.0 [INFO] [stderr] Checking either v1.11.0 [INFO] [stderr] Compiling gribberish-types v0.22.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Checking const_soft_float v0.1.4 [INFO] [stderr] Checking float-cmp v0.9.0 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking flate2 v1.0.30 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking clap_builder v4.5.2 [INFO] [stderr] Checking png v0.17.13 [INFO] [stderr] Checking bitvec v1.0.1 [INFO] [stderr] Checking geographiclib-rs v0.2.4 [INFO] [stderr] Compiling openjpeg-sys v1.0.10 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.61 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking num v0.2.1 [INFO] [stderr] Compiling thiserror-impl v1.0.60 [INFO] [stderr] Compiling clap_derive v4.5.4 [INFO] [stderr] Compiling gribberish-macros v0.22.0 [INFO] [stderr] Checking mappers v0.7.1 [INFO] [stderr] Checking clap v4.5.4 [INFO] [stderr] Checking gribberish v0.22.0 (/opt/rustwide/workdir) [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/utils/jpeg.rs:37:21 [INFO] [stdout] | [INFO] [stdout] 37 | let n_imgsize = (*userdata).input.len(); [INFO] [stdout] | ^^--------^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut JpegUserData<'_>` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&[u8]` [INFO] [stdout] --> src/utils/jpeg.rs:37:21 [INFO] [stdout] | [INFO] [stdout] 37 | let n_imgsize = (*userdata).input.len(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: method calls to `len` require a reference [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/slice/mod.rs:114:5 [INFO] [stdout] = note: `#[deny(dangerous_implicit_autorefs)]` on by default [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 37 | let n_imgsize = (&(*userdata).input).len(); [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/utils/jpeg.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | if (*userdata).input.is_empty() || p_buffer.is_null() || n_read == 0 || n_byteleft == 0 { [INFO] [stdout] | ^^--------^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut JpegUserData<'_>` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&[u8]` [INFO] [stdout] --> src/utils/jpeg.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | if (*userdata).input.is_empty() || p_buffer.is_null() || n_read == 0 || n_byteleft == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: method calls to `is_empty` require a reference [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/slice/mod.rs:134:5 [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 46 | if (&(*userdata).input).is_empty() || p_buffer.is_null() || n_read == 0 || n_byteleft == 0 { [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/utils/jpeg.rs:54:29 [INFO] [stdout] | [INFO] [stdout] 54 | target.copy_from_slice(&(*userdata).input[offset..offset + n_read]); [INFO] [stdout] | ^^--------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut JpegUserData<'_>` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&[u8]` [INFO] [stdout] --> src/utils/jpeg.rs:54:29 [INFO] [stdout] | [INFO] [stdout] 54 | target.copy_from_slice(&(*userdata).input[offset..offset + n_read]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 54 | target.copy_from_slice(&(&(*userdata).input)[offset..offset + n_read]); [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/utils/jpeg.rs:85:21 [INFO] [stdout] | [INFO] [stdout] 85 | let n_imgsize = (*userdata).input.len(); [INFO] [stdout] | ^^--------^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut JpegUserData<'_>` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&[u8]` [INFO] [stdout] --> src/utils/jpeg.rs:85:21 [INFO] [stdout] | [INFO] [stdout] 85 | let n_imgsize = (*userdata).input.len(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: method calls to `len` require a reference [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/slice/mod.rs:114:5 [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 85 | let n_imgsize = (&(*userdata).input).len(); [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/utils/jpeg.rs:102:21 [INFO] [stdout] | [INFO] [stdout] 102 | let n_imgsize = (*userdata).input.len(); [INFO] [stdout] | ^^--------^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut JpegUserData<'_>` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&[u8]` [INFO] [stdout] --> src/utils/jpeg.rs:102:21 [INFO] [stdout] | [INFO] [stdout] 102 | let n_imgsize = (*userdata).input.len(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: method calls to `len` require a reference [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/slice/mod.rs:114:5 [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 102 | let n_imgsize = (&(*userdata).input).len(); [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/sections/section.rs:26:28 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn from_data(data: &[u8], offset: usize) -> Option
{ [INFO] [stdout] | ^^^^^ ------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 26 | pub fn from_data(data: &[u8], offset: usize) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/message.rs:74:29 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn from_data(data: &'a [u8], offset: usize) -> Option { [INFO] [stdout] | ^^ the lifetime is named here ------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 74 | pub fn from_data(data: &'a [u8], offset: usize) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/message.rs:94:21 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn sections(&self) -> SectionIterator { [INFO] [stdout] | ^^^^^ --------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 94 | pub fn sections(&self) -> SectionIterator<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `gribberish` (lib) due to 5 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/utils/jpeg.rs:37:21 [INFO] [stdout] | [INFO] [stdout] 37 | let n_imgsize = (*userdata).input.len(); [INFO] [stdout] | ^^--------^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut JpegUserData<'_>` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&[u8]` [INFO] [stdout] --> src/utils/jpeg.rs:37:21 [INFO] [stdout] | [INFO] [stdout] 37 | let n_imgsize = (*userdata).input.len(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: method calls to `len` require a reference [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/slice/mod.rs:114:5 [INFO] [stdout] = note: `#[deny(dangerous_implicit_autorefs)]` on by default [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 37 | let n_imgsize = (&(*userdata).input).len(); [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/utils/jpeg.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | if (*userdata).input.is_empty() || p_buffer.is_null() || n_read == 0 || n_byteleft == 0 { [INFO] [stdout] | ^^--------^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut JpegUserData<'_>` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&[u8]` [INFO] [stdout] --> src/utils/jpeg.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | if (*userdata).input.is_empty() || p_buffer.is_null() || n_read == 0 || n_byteleft == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: method calls to `is_empty` require a reference [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/slice/mod.rs:134:5 [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 46 | if (&(*userdata).input).is_empty() || p_buffer.is_null() || n_read == 0 || n_byteleft == 0 { [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/utils/jpeg.rs:54:29 [INFO] [stdout] | [INFO] [stdout] 54 | target.copy_from_slice(&(*userdata).input[offset..offset + n_read]); [INFO] [stdout] | ^^--------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut JpegUserData<'_>` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&[u8]` [INFO] [stdout] --> src/utils/jpeg.rs:54:29 [INFO] [stdout] | [INFO] [stdout] 54 | target.copy_from_slice(&(*userdata).input[offset..offset + n_read]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 54 | target.copy_from_slice(&(&(*userdata).input)[offset..offset + n_read]); [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/utils/jpeg.rs:85:21 [INFO] [stdout] | [INFO] [stdout] 85 | let n_imgsize = (*userdata).input.len(); [INFO] [stdout] | ^^--------^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut JpegUserData<'_>` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&[u8]` [INFO] [stdout] --> src/utils/jpeg.rs:85:21 [INFO] [stdout] | [INFO] [stdout] 85 | let n_imgsize = (*userdata).input.len(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: method calls to `len` require a reference [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/slice/mod.rs:114:5 [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 85 | let n_imgsize = (&(*userdata).input).len(); [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/utils/jpeg.rs:102:21 [INFO] [stdout] | [INFO] [stdout] 102 | let n_imgsize = (*userdata).input.len(); [INFO] [stdout] | ^^--------^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut JpegUserData<'_>` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&[u8]` [INFO] [stdout] --> src/utils/jpeg.rs:102:21 [INFO] [stdout] | [INFO] [stdout] 102 | let n_imgsize = (*userdata).input.len(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: method calls to `len` require a reference [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/slice/mod.rs:114:5 [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 102 | let n_imgsize = (&(*userdata).input).len(); [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/sections/section.rs:26:28 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn from_data(data: &[u8], offset: usize) -> Option
{ [INFO] [stdout] | ^^^^^ ------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 26 | pub fn from_data(data: &[u8], offset: usize) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/message.rs:74:29 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn from_data(data: &'a [u8], offset: usize) -> Option { [INFO] [stdout] | ^^ the lifetime is named here ------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 74 | pub fn from_data(data: &'a [u8], offset: usize) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/message.rs:94:21 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn sections(&self) -> SectionIterator { [INFO] [stdout] | ^^^^^ --------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 94 | pub fn sections(&self) -> SectionIterator<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `gribberish` (lib test) due to 5 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "8ffce3732b1d8cb13ec20698f52e8839627d3f47893831e852944446870dc63a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ffce3732b1d8cb13ec20698f52e8839627d3f47893831e852944446870dc63a", kill_on_drop: false }` [INFO] [stdout] 8ffce3732b1d8cb13ec20698f52e8839627d3f47893831e852944446870dc63a