[INFO] fetching crate quickraw 0.2.1-alpha.1... [INFO] building quickraw-0.2.1-alpha.1 against master#44f415c1d617ebc7b931a243b7b321ef8a6ca47c for pr-142134-abi-ast-error [INFO] extracting crate quickraw 0.2.1-alpha.1 into /workspace/builds/worker-0-tc1/source [INFO] validating manifest of crates.io crate quickraw 0.2.1-alpha.1 on toolchain 44f415c1d617ebc7b931a243b7b321ef8a6ca47c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate quickraw 0.2.1-alpha.1 [INFO] finished tweaking crates.io crate quickraw 0.2.1-alpha.1 [INFO] tweaked toml for crates.io crate quickraw 0.2.1-alpha.1 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" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 42 packages to latest compatible versions [INFO] [stderr] Adding image v0.24.9 (available: v0.25.6) [INFO] [stderr] Adding phf v0.10.1 (available: v0.11.3) [INFO] [stderr] Adding thiserror v1.0.69 (available: v2.0.12) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded quickexif v0.1.5 [INFO] [stderr] Downloaded fn-util v0.1.0 [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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ee7a44683d460dd7d7a7f0b069c4eda7d697c380bcdf78e7178d96082874f2cd [INFO] running `Command { std: "docker" "start" "-a" "ee7a44683d460dd7d7a7f0b069c4eda7d697c380bcdf78e7178d96082874f2cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ee7a44683d460dd7d7a7f0b069c4eda7d697c380bcdf78e7178d96082874f2cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ee7a44683d460dd7d7a7f0b069c4eda7d697c380bcdf78e7178d96082874f2cd", kill_on_drop: false }` [INFO] [stdout] ee7a44683d460dd7d7a7f0b069c4eda7d697c380bcdf78e7178d96082874f2cd [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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0a80e5744a74834602384c3310b1da53182e5d8685c229b89aa5e1abb16fc978 [INFO] running `Command { std: "docker" "start" "-a" "0a80e5744a74834602384c3310b1da53182e5d8685c229b89aa5e1abb16fc978", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling zerocopy v0.8.25 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Compiling proc-macro-hack v0.5.20+deprecated [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling phf_generator v0.10.0 [INFO] [stderr] Compiling phf_macros v0.10.0 [INFO] [stderr] Compiling fn-util v0.1.0 [INFO] [stderr] Compiling quickexif v0.1.5 [INFO] [stderr] Compiling phf v0.10.1 [INFO] [stderr] Compiling quickraw v0.2.1-alpha.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/maker/sony.rs:168:30 [INFO] [stdout] | [INFO] [stdout] 168 | table[j] = table[(j - 1)] + (1 << i); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 168 - table[j] = table[(j - 1)] + (1 << i); [INFO] [stdout] 168 + table[j] = table[j - 1] + (1 << i); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `color_convert_rgba` is never used [INFO] [stdout] --> src/pass/color.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn color_convert_rgba<'a>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `elinear_rggb` is never used [INFO] [stdout] --> src/pass/demosaicing/mod.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | gen_linear!(elinear_rggb, enhanced_linear::rggb); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_linear` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `elinear_bggr` is never used [INFO] [stdout] --> src/pass/demosaicing/mod.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | gen_linear!(elinear_bggr, enhanced_linear::bggr); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_linear` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `elinear_grbg` is never used [INFO] [stdout] --> src/pass/demosaicing/mod.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | gen_linear!(elinear_grbg, enhanced_linear::grbg); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_linear` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `elinear_gbrg` is never used [INFO] [stdout] --> src/pass/demosaicing/mod.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | gen_linear!(elinear_gbrg, enhanced_linear::gbrg); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_linear` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_window` is never used [INFO] [stdout] --> src/pass/demosaicing/enhanced_linear.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn get_window(image: &[u16], i: usize, w: usize) -> [i32; 9] { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `clamp` is never used [INFO] [stdout] --> src/pass/demosaicing/enhanced_linear.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn clamp(x: i32) -> u16 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DIFF_ALPHA` is never used [INFO] [stdout] --> src/pass/demosaicing/enhanced_linear.rs:25:7 [INFO] [stdout] | [INFO] [stdout] 25 | const DIFF_ALPHA: i32 = 16; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc_pixel_at_rb` is never used [INFO] [stdout] --> src/pass/demosaicing/enhanced_linear.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn calc_pixel_at_rb(image: &[u16], i: usize, w: usize) -> [u16; 3] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc_pixel_at_g` is never used [INFO] [stdout] --> src/pass/demosaicing/enhanced_linear.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn calc_pixel_at_g(image: &[u16], i: usize, w: usize) -> [u16; 3] { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rggb` is never used [INFO] [stdout] --> src/pass/demosaicing/enhanced_linear.rs:63:15 [INFO] [stdout] | [INFO] [stdout] 63 | pub(super) fn rggb(i: usize, v: u16, image: &[u16], w: usize, h: usize) -> [u16; 3] { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bggr` is never used [INFO] [stdout] --> src/pass/demosaicing/enhanced_linear.rs:115:15 [INFO] [stdout] | [INFO] [stdout] 115 | pub(super) fn bggr(i: usize, v: u16, image: &[u16], w: usize, h: usize) -> [u16; 3] { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `grbg` is never used [INFO] [stdout] --> src/pass/demosaicing/enhanced_linear.rs:167:15 [INFO] [stdout] | [INFO] [stdout] 167 | pub(super) fn grbg(i: usize, v: u16, image: &[u16], w: usize, h: usize) -> [u16; 3] { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gbrg` is never used [INFO] [stdout] --> src/pass/demosaicing/enhanced_linear.rs:223:15 [INFO] [stdout] | [INFO] [stdout] 223 | pub(super) fn gbrg(i: usize, v: u16, image: &[u16], w: usize, h: usize) -> [u16; 3] { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `u16rgb_to_u8rgb` is never used [INFO] [stdout] --> src/pass/general.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn u16rgb_to_u8rgb(iter: impl Iterator) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_thumbnail` is never used [INFO] [stdout] --> src/maker/mod.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub(super) trait RawDecoder { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 52 | fn get_thumbnail<'a>(&self, buffer: &'a [u8]) -> Result<&'a [u8], DecodingError>; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `select_and_decode_thumbnail` is never used [INFO] [stdout] --> src/maker/selector.rs:68:25 [INFO] [stdout] | [INFO] [stdout] 68 | pub(in super::super) fn select_and_decode_thumbnail( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `u16be`, `i32`, and `r64` are never used [INFO] [stdout] --> src/maker/utility.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub(super) trait GetNumFromBytes { [INFO] [stdout] | --------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 4 | fn u16be(&self, start: usize) -> u16; [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 8 | fn i32(&self, is_le: bool, start: usize) -> i32; [INFO] [stdout] | ^^^ [INFO] [stdout] 9 | fn r64(&self, is_le: bool, start: usize) -> f64; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `GetBytesFromInt` is never used [INFO] [stdout] --> src/maker/utility.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 12 | pub(super) trait GetBytesFromInt { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `THUMBNAIL_RULE` is never used [INFO] [stdout] --> src/maker/adobe.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 11 | pub(super) static THUMBNAIL_RULE: Lazy = Lazy::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_ibits_sextended` is never used [INFO] [stdout] --> src/maker/decode_utility/bit_pump.rs:207:8 [INFO] [stdout] | [INFO] [stdout] 179 | pub(in super::super) trait BitPump { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 207 | fn get_ibits_sextended(&mut self, num: u32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `THUMBNAIL_RULE` is never used [INFO] [stdout] --> src/maker/fujifilm.rs:27:19 [INFO] [stdout] | [INFO] [stdout] 27 | pub(super) static THUMBNAIL_RULE: Lazy = Lazy::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `THUMBNAIL_RULE` is never used [INFO] [stdout] --> src/maker/nikon.rs:15:19 [INFO] [stdout] | [INFO] [stdout] 15 | pub(super) static THUMBNAIL_RULE: Lazy = Lazy::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `THUMBNAIL_RULE` is never used [INFO] [stdout] --> src/maker/olympus.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 10 | pub(super) static THUMBNAIL_RULE: Lazy = Lazy::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `THUMBNAIL_RULE` is never used [INFO] [stdout] --> src/maker/panasonic.rs:9:19 [INFO] [stdout] | [INFO] [stdout] 9 | pub(super) static THUMBNAIL_RULE: Lazy = Lazy::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `THUMBNAIL_RULE` is never used [INFO] [stdout] --> src/maker/sony.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | pub(super) static THUMBNAIL_RULE: Lazy = Lazy::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_thumbnail` is never used [INFO] [stdout] --> src/decode.rs:102:15 [INFO] [stdout] | [INFO] [stdout] 102 | pub(super) fn get_thumbnail(buffer: &[u8]) -> Result<(&[u8], Orientation), RawFileReadingError> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/maker/decode_utility/bit_pump.rs:12:39 [INFO] [stdout] | [INFO] [stdout] 12 | pub(in super::super) fn new(src: &'a [u8]) -> BitPumpMSB { [INFO] [stdout] | ^^ ---------- the lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 12 | pub(in super::super) fn new(src: &'a [u8]) -> BitPumpMSB<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/maker/decode_utility/bit_pump.rs:31:39 [INFO] [stdout] | [INFO] [stdout] 31 | pub(in super::super) fn new(src: &'a [u8]) -> BitPumpMSB32 { [INFO] [stdout] | ^^ ------------ the lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 31 | pub(in super::super) fn new(src: &'a [u8]) -> BitPumpMSB32<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/maker/decode_utility/bit_pump.rs:74:39 [INFO] [stdout] | [INFO] [stdout] 74 | pub(in super::super) fn new(src: &'a [u8]) -> BitPumpJPEG { [INFO] [stdout] | ^^ ----------- the lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 74 | pub(in super::super) fn new(src: &'a [u8]) -> BitPumpJPEG<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/maker/decode_utility/bit_pump.rs:151:39 [INFO] [stdout] | [INFO] [stdout] 151 | pub(in super::super) fn new(src: &'a [u8]) -> BitPumpLSB { [INFO] [stdout] | ^^ ---------- the lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 151 | pub(in super::super) fn new(src: &'a [u8]) -> BitPumpLSB<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/maker/decode_utility/bit_pump.rs:169:39 [INFO] [stdout] | [INFO] [stdout] 169 | pub(in super::super) fn new(src: &'a [u8], split: bool) -> BitPumpPanasonic { [INFO] [stdout] | ^^ ---------------- the lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 169 | pub(in super::super) fn new(src: &'a [u8], split: bool) -> BitPumpPanasonic<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/maker/decode_utility/byte_stream.rs:13:39 [INFO] [stdout] | [INFO] [stdout] 13 | pub(in super::super) fn new(src: &'a [u8], is_le: bool) -> ByteStream { [INFO] [stdout] | ^^ ---------- the lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 13 | pub(in super::super) fn new(src: &'a [u8], is_le: bool) -> ByteStream<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/maker/decode_utility/ljpeg/mod.rs:132:22 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn new(src: &'a [u8]) -> Result { [INFO] [stdout] | ^^ ----------------- the lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 132 | pub fn new(src: &'a [u8]) -> Result, DecodingError> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/maker/decode_utility/ljpeg/mod.rs:138:15 [INFO] [stdout] | [INFO] [stdout] 138 | src: &'a [u8], [INFO] [stdout] | ^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 141 | ) -> Result { [INFO] [stdout] | ----------------- the lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 141 | ) -> Result, String> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `CString::from_raw` that must be used [INFO] [stdout] --> src/lib_c.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | unsafe { CString::from_raw(ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(from_raw(ptr))` if you intend to drop the `CString` [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 11 | unsafe { let _ = CString::from_raw(ptr); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 15.07s [INFO] running `Command { std: "docker" "inspect" "0a80e5744a74834602384c3310b1da53182e5d8685c229b89aa5e1abb16fc978", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0a80e5744a74834602384c3310b1da53182e5d8685c229b89aa5e1abb16fc978", kill_on_drop: false }` [INFO] [stdout] 0a80e5744a74834602384c3310b1da53182e5d8685c229b89aa5e1abb16fc978 [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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b607b9a80c2096b8168dadaf4c4394ac1d618d1e0ed5574d432a91d65ac17d06 [INFO] running `Command { std: "docker" "start" "-a" "b607b9a80c2096b8168dadaf4c4394ac1d618d1e0ed5574d432a91d65ac17d06", kill_on_drop: false }` [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/maker/sony.rs:168:30 [INFO] [stdout] | [INFO] [stdout] 168 | table[j] = table[(j - 1)] + (1 << i); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 168 - table[j] = table[(j - 1)] + (1 << i); [INFO] [stdout] 168 + table[j] = table[j - 1] + (1 << i); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `color_convert_rgba` is never used [INFO] [stdout] --> src/pass/color.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn color_convert_rgba<'a>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `elinear_rggb` is never used [INFO] [stdout] --> src/pass/demosaicing/mod.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | gen_linear!(elinear_rggb, enhanced_linear::rggb); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_linear` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `elinear_bggr` is never used [INFO] [stdout] --> src/pass/demosaicing/mod.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | gen_linear!(elinear_bggr, enhanced_linear::bggr); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_linear` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `elinear_grbg` is never used [INFO] [stdout] --> src/pass/demosaicing/mod.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | gen_linear!(elinear_grbg, enhanced_linear::grbg); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_linear` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `elinear_gbrg` is never used [INFO] [stdout] --> src/pass/demosaicing/mod.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | gen_linear!(elinear_gbrg, enhanced_linear::gbrg); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_linear` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_window` is never used [INFO] [stdout] --> src/pass/demosaicing/enhanced_linear.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn get_window(image: &[u16], i: usize, w: usize) -> [i32; 9] { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `clamp` is never used [INFO] [stdout] --> src/pass/demosaicing/enhanced_linear.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn clamp(x: i32) -> u16 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DIFF_ALPHA` is never used [INFO] [stdout] --> src/pass/demosaicing/enhanced_linear.rs:25:7 [INFO] [stdout] | [INFO] [stdout] 25 | const DIFF_ALPHA: i32 = 16; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc_pixel_at_rb` is never used [INFO] [stdout] --> src/pass/demosaicing/enhanced_linear.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn calc_pixel_at_rb(image: &[u16], i: usize, w: usize) -> [u16; 3] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc_pixel_at_g` is never used [INFO] [stdout] --> src/pass/demosaicing/enhanced_linear.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn calc_pixel_at_g(image: &[u16], i: usize, w: usize) -> [u16; 3] { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rggb` is never used [INFO] [stdout] --> src/pass/demosaicing/enhanced_linear.rs:63:15 [INFO] [stdout] | [INFO] [stdout] 63 | pub(super) fn rggb(i: usize, v: u16, image: &[u16], w: usize, h: usize) -> [u16; 3] { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bggr` is never used [INFO] [stdout] --> src/pass/demosaicing/enhanced_linear.rs:115:15 [INFO] [stdout] | [INFO] [stdout] 115 | pub(super) fn bggr(i: usize, v: u16, image: &[u16], w: usize, h: usize) -> [u16; 3] { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `grbg` is never used [INFO] [stdout] --> src/pass/demosaicing/enhanced_linear.rs:167:15 [INFO] [stdout] | [INFO] [stdout] 167 | pub(super) fn grbg(i: usize, v: u16, image: &[u16], w: usize, h: usize) -> [u16; 3] { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gbrg` is never used [INFO] [stdout] --> src/pass/demosaicing/enhanced_linear.rs:223:15 [INFO] [stdout] | [INFO] [stdout] 223 | pub(super) fn gbrg(i: usize, v: u16, image: &[u16], w: usize, h: usize) -> [u16; 3] { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `u16rgb_to_u8rgb` is never used [INFO] [stdout] --> src/pass/general.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn u16rgb_to_u8rgb(iter: impl Iterator) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_thumbnail` is never used [INFO] [stdout] --> src/maker/mod.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub(super) trait RawDecoder { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 52 | fn get_thumbnail<'a>(&self, buffer: &'a [u8]) -> Result<&'a [u8], DecodingError>; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `select_and_decode_thumbnail` is never used [INFO] [stdout] --> src/maker/selector.rs:68:25 [INFO] [stdout] | [INFO] [stdout] 68 | pub(in super::super) fn select_and_decode_thumbnail( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `u16be`, `i32`, and `r64` are never used [INFO] [stdout] --> src/maker/utility.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub(super) trait GetNumFromBytes { [INFO] [stdout] | --------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 4 | fn u16be(&self, start: usize) -> u16; [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 8 | fn i32(&self, is_le: bool, start: usize) -> i32; [INFO] [stdout] | ^^^ [INFO] [stdout] 9 | fn r64(&self, is_le: bool, start: usize) -> f64; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `GetBytesFromInt` is never used [INFO] [stdout] --> src/maker/utility.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 12 | pub(super) trait GetBytesFromInt { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `THUMBNAIL_RULE` is never used [INFO] [stdout] --> src/maker/adobe.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 11 | pub(super) static THUMBNAIL_RULE: Lazy = Lazy::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_ibits_sextended` is never used [INFO] [stdout] --> src/maker/decode_utility/bit_pump.rs:207:8 [INFO] [stdout] | [INFO] [stdout] 179 | pub(in super::super) trait BitPump { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 207 | fn get_ibits_sextended(&mut self, num: u32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `THUMBNAIL_RULE` is never used [INFO] [stdout] --> src/maker/fujifilm.rs:27:19 [INFO] [stdout] | [INFO] [stdout] 27 | pub(super) static THUMBNAIL_RULE: Lazy = Lazy::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `THUMBNAIL_RULE` is never used [INFO] [stdout] --> src/maker/nikon.rs:15:19 [INFO] [stdout] | [INFO] [stdout] 15 | pub(super) static THUMBNAIL_RULE: Lazy = Lazy::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `THUMBNAIL_RULE` is never used [INFO] [stdout] --> src/maker/olympus.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 10 | pub(super) static THUMBNAIL_RULE: Lazy = Lazy::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `THUMBNAIL_RULE` is never used [INFO] [stdout] --> src/maker/panasonic.rs:9:19 [INFO] [stdout] | [INFO] [stdout] 9 | pub(super) static THUMBNAIL_RULE: Lazy = Lazy::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `THUMBNAIL_RULE` is never used [INFO] [stdout] --> src/maker/sony.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | pub(super) static THUMBNAIL_RULE: Lazy = Lazy::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_thumbnail` is never used [INFO] [stdout] --> src/decode.rs:102:15 [INFO] [stdout] | [INFO] [stdout] 102 | pub(super) fn get_thumbnail(buffer: &[u8]) -> Result<(&[u8], Orientation), RawFileReadingError> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/maker/decode_utility/bit_pump.rs:12:39 [INFO] [stdout] | [INFO] [stdout] 12 | pub(in super::super) fn new(src: &'a [u8]) -> BitPumpMSB { [INFO] [stdout] | ^^ ---------- the lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 12 | pub(in super::super) fn new(src: &'a [u8]) -> BitPumpMSB<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/maker/decode_utility/bit_pump.rs:31:39 [INFO] [stdout] | [INFO] [stdout] 31 | pub(in super::super) fn new(src: &'a [u8]) -> BitPumpMSB32 { [INFO] [stdout] | ^^ ------------ the lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 31 | pub(in super::super) fn new(src: &'a [u8]) -> BitPumpMSB32<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/maker/decode_utility/bit_pump.rs:74:39 [INFO] [stdout] | [INFO] [stdout] 74 | pub(in super::super) fn new(src: &'a [u8]) -> BitPumpJPEG { [INFO] [stdout] | ^^ ----------- the lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 74 | pub(in super::super) fn new(src: &'a [u8]) -> BitPumpJPEG<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/maker/decode_utility/bit_pump.rs:151:39 [INFO] [stdout] | [INFO] [stdout] 151 | pub(in super::super) fn new(src: &'a [u8]) -> BitPumpLSB { [INFO] [stdout] | ^^ ---------- the lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 151 | pub(in super::super) fn new(src: &'a [u8]) -> BitPumpLSB<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/maker/decode_utility/bit_pump.rs:169:39 [INFO] [stdout] | [INFO] [stdout] 169 | pub(in super::super) fn new(src: &'a [u8], split: bool) -> BitPumpPanasonic { [INFO] [stdout] | ^^ ---------------- the lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 169 | pub(in super::super) fn new(src: &'a [u8], split: bool) -> BitPumpPanasonic<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling quickraw v0.2.1-alpha.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/maker/decode_utility/byte_stream.rs:13:39 [INFO] [stdout] | [INFO] [stdout] 13 | pub(in super::super) fn new(src: &'a [u8], is_le: bool) -> ByteStream { [INFO] [stdout] | ^^ ---------- the lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 13 | pub(in super::super) fn new(src: &'a [u8], is_le: bool) -> ByteStream<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/maker/decode_utility/ljpeg/mod.rs:132:22 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn new(src: &'a [u8]) -> Result { [INFO] [stdout] | ^^ ----------------- the lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 132 | pub fn new(src: &'a [u8]) -> Result, DecodingError> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/maker/decode_utility/ljpeg/mod.rs:138:15 [INFO] [stdout] | [INFO] [stdout] 138 | src: &'a [u8], [INFO] [stdout] | ^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 141 | ) -> Result { [INFO] [stdout] | ----------------- the lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 141 | ) -> Result, String> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `CString::from_raw` that must be used [INFO] [stdout] --> src/lib_c.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | unsafe { CString::from_raw(ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(from_raw(ptr))` if you intend to drop the `CString` [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 11 | unsafe { let _ = CString::from_raw(ptr); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/maker/sony.rs:168:30 [INFO] [stdout] | [INFO] [stdout] 168 | table[j] = table[(j - 1)] + (1 << i); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 168 - table[j] = table[(j - 1)] + (1 << i); [INFO] [stdout] 168 + table[j] = table[j - 1] + (1 << i); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `color_convert_rgba` is never used [INFO] [stdout] --> src/pass/color.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn color_convert_rgba<'a>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `elinear_rggb` is never used [INFO] [stdout] --> src/pass/demosaicing/mod.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | gen_linear!(elinear_rggb, enhanced_linear::rggb); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_linear` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `elinear_bggr` is never used [INFO] [stdout] --> src/pass/demosaicing/mod.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | gen_linear!(elinear_bggr, enhanced_linear::bggr); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_linear` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `elinear_grbg` is never used [INFO] [stdout] --> src/pass/demosaicing/mod.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | gen_linear!(elinear_grbg, enhanced_linear::grbg); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_linear` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `elinear_gbrg` is never used [INFO] [stdout] --> src/pass/demosaicing/mod.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | gen_linear!(elinear_gbrg, enhanced_linear::gbrg); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_linear` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_window` is never used [INFO] [stdout] --> src/pass/demosaicing/enhanced_linear.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn get_window(image: &[u16], i: usize, w: usize) -> [i32; 9] { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `clamp` is never used [INFO] [stdout] --> src/pass/demosaicing/enhanced_linear.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn clamp(x: i32) -> u16 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DIFF_ALPHA` is never used [INFO] [stdout] --> src/pass/demosaicing/enhanced_linear.rs:25:7 [INFO] [stdout] | [INFO] [stdout] 25 | const DIFF_ALPHA: i32 = 16; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc_pixel_at_rb` is never used [INFO] [stdout] --> src/pass/demosaicing/enhanced_linear.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn calc_pixel_at_rb(image: &[u16], i: usize, w: usize) -> [u16; 3] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc_pixel_at_g` is never used [INFO] [stdout] --> src/pass/demosaicing/enhanced_linear.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn calc_pixel_at_g(image: &[u16], i: usize, w: usize) -> [u16; 3] { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rggb` is never used [INFO] [stdout] --> src/pass/demosaicing/enhanced_linear.rs:63:15 [INFO] [stdout] | [INFO] [stdout] 63 | pub(super) fn rggb(i: usize, v: u16, image: &[u16], w: usize, h: usize) -> [u16; 3] { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bggr` is never used [INFO] [stdout] --> src/pass/demosaicing/enhanced_linear.rs:115:15 [INFO] [stdout] | [INFO] [stdout] 115 | pub(super) fn bggr(i: usize, v: u16, image: &[u16], w: usize, h: usize) -> [u16; 3] { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `grbg` is never used [INFO] [stdout] --> src/pass/demosaicing/enhanced_linear.rs:167:15 [INFO] [stdout] | [INFO] [stdout] 167 | pub(super) fn grbg(i: usize, v: u16, image: &[u16], w: usize, h: usize) -> [u16; 3] { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gbrg` is never used [INFO] [stdout] --> src/pass/demosaicing/enhanced_linear.rs:223:15 [INFO] [stdout] | [INFO] [stdout] 223 | pub(super) fn gbrg(i: usize, v: u16, image: &[u16], w: usize, h: usize) -> [u16; 3] { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `u16rgb_to_u8rgb` is never used [INFO] [stdout] --> src/pass/general.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn u16rgb_to_u8rgb(iter: impl Iterator) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_thumbnail` is never used [INFO] [stdout] --> src/maker/mod.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub(super) trait RawDecoder { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 52 | fn get_thumbnail<'a>(&self, buffer: &'a [u8]) -> Result<&'a [u8], DecodingError>; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `select_and_decode_thumbnail` is never used [INFO] [stdout] --> src/maker/selector.rs:68:25 [INFO] [stdout] | [INFO] [stdout] 68 | pub(in super::super) fn select_and_decode_thumbnail( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `u16be`, `i32`, and `r64` are never used [INFO] [stdout] --> src/maker/utility.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub(super) trait GetNumFromBytes { [INFO] [stdout] | --------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 4 | fn u16be(&self, start: usize) -> u16; [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 8 | fn i32(&self, is_le: bool, start: usize) -> i32; [INFO] [stdout] | ^^^ [INFO] [stdout] 9 | fn r64(&self, is_le: bool, start: usize) -> f64; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `GetBytesFromInt` is never used [INFO] [stdout] --> src/maker/utility.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 12 | pub(super) trait GetBytesFromInt { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `THUMBNAIL_RULE` is never used [INFO] [stdout] --> src/maker/adobe.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 11 | pub(super) static THUMBNAIL_RULE: Lazy = Lazy::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_ibits_sextended` is never used [INFO] [stdout] --> src/maker/decode_utility/bit_pump.rs:207:8 [INFO] [stdout] | [INFO] [stdout] 179 | pub(in super::super) trait BitPump { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 207 | fn get_ibits_sextended(&mut self, num: u32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `THUMBNAIL_RULE` is never used [INFO] [stdout] --> src/maker/fujifilm.rs:27:19 [INFO] [stdout] | [INFO] [stdout] 27 | pub(super) static THUMBNAIL_RULE: Lazy = Lazy::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `THUMBNAIL_RULE` is never used [INFO] [stdout] --> src/maker/nikon.rs:15:19 [INFO] [stdout] | [INFO] [stdout] 15 | pub(super) static THUMBNAIL_RULE: Lazy = Lazy::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `THUMBNAIL_RULE` is never used [INFO] [stdout] --> src/maker/olympus.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 10 | pub(super) static THUMBNAIL_RULE: Lazy = Lazy::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `THUMBNAIL_RULE` is never used [INFO] [stdout] --> src/maker/panasonic.rs:9:19 [INFO] [stdout] | [INFO] [stdout] 9 | pub(super) static THUMBNAIL_RULE: Lazy = Lazy::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `THUMBNAIL_RULE` is never used [INFO] [stdout] --> src/maker/sony.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | pub(super) static THUMBNAIL_RULE: Lazy = Lazy::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_thumbnail` is never used [INFO] [stdout] --> src/decode.rs:102:15 [INFO] [stdout] | [INFO] [stdout] 102 | pub(super) fn get_thumbnail(buffer: &[u8]) -> Result<(&[u8], Orientation), RawFileReadingError> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/maker/decode_utility/bit_pump.rs:12:39 [INFO] [stdout] | [INFO] [stdout] 12 | pub(in super::super) fn new(src: &'a [u8]) -> BitPumpMSB { [INFO] [stdout] | ^^ ---------- the lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 12 | pub(in super::super) fn new(src: &'a [u8]) -> BitPumpMSB<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/maker/decode_utility/bit_pump.rs:31:39 [INFO] [stdout] | [INFO] [stdout] 31 | pub(in super::super) fn new(src: &'a [u8]) -> BitPumpMSB32 { [INFO] [stdout] | ^^ ------------ the lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 31 | pub(in super::super) fn new(src: &'a [u8]) -> BitPumpMSB32<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/maker/decode_utility/bit_pump.rs:74:39 [INFO] [stdout] | [INFO] [stdout] 74 | pub(in super::super) fn new(src: &'a [u8]) -> BitPumpJPEG { [INFO] [stdout] | ^^ ----------- the lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 74 | pub(in super::super) fn new(src: &'a [u8]) -> BitPumpJPEG<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/maker/decode_utility/bit_pump.rs:151:39 [INFO] [stdout] | [INFO] [stdout] 151 | pub(in super::super) fn new(src: &'a [u8]) -> BitPumpLSB { [INFO] [stdout] | ^^ ---------- the lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 151 | pub(in super::super) fn new(src: &'a [u8]) -> BitPumpLSB<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/maker/decode_utility/bit_pump.rs:169:39 [INFO] [stdout] | [INFO] [stdout] 169 | pub(in super::super) fn new(src: &'a [u8], split: bool) -> BitPumpPanasonic { [INFO] [stdout] | ^^ ---------------- the lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 169 | pub(in super::super) fn new(src: &'a [u8], split: bool) -> BitPumpPanasonic<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/maker/decode_utility/byte_stream.rs:13:39 [INFO] [stdout] | [INFO] [stdout] 13 | pub(in super::super) fn new(src: &'a [u8], is_le: bool) -> ByteStream { [INFO] [stdout] | ^^ ---------- the lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 13 | pub(in super::super) fn new(src: &'a [u8], is_le: bool) -> ByteStream<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/maker/decode_utility/ljpeg/mod.rs:132:22 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn new(src: &'a [u8]) -> Result { [INFO] [stdout] | ^^ ----------------- the lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 132 | pub fn new(src: &'a [u8]) -> Result, DecodingError> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/maker/decode_utility/ljpeg/mod.rs:138:15 [INFO] [stdout] | [INFO] [stdout] 138 | src: &'a [u8], [INFO] [stdout] | ^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 141 | ) -> Result { [INFO] [stdout] | ----------------- the lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 141 | ) -> Result, String> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `CString::from_raw` that must be used [INFO] [stdout] --> src/lib_c.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | unsafe { CString::from_raw(ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(from_raw(ptr))` if you intend to drop the `CString` [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 11 | unsafe { let _ = CString::from_raw(ptr); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.71s [INFO] running `Command { std: "docker" "inspect" "b607b9a80c2096b8168dadaf4c4394ac1d618d1e0ed5574d432a91d65ac17d06", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b607b9a80c2096b8168dadaf4c4394ac1d618d1e0ed5574d432a91d65ac17d06", kill_on_drop: false }` [INFO] [stdout] b607b9a80c2096b8168dadaf4c4394ac1d618d1e0ed5574d432a91d65ac17d06