[INFO] fetching crate jpeg2k 0.10.1... [INFO] testing jpeg2k-0.10.1 against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-1 [INFO] extracting crate jpeg2k 0.10.1 into /workspace/builds/worker-7-tc1/source [INFO] started tweaking crates.io crate jpeg2k 0.10.1 [INFO] finished tweaking crates.io crate jpeg2k 0.10.1 [INFO] tweaked toml for crates.io crate jpeg2k 0.10.1 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate jpeg2k 0.10.1 on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate jpeg2k 0.10.1 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" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: `default_features` is deprecated in favor of `default-features` and will not work in the 2024 edition [INFO] [stderr] (in the `image` dependency) [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded proc-macro2 v1.0.81 [INFO] [stderr] Downloaded thiserror-impl v1.0.58 [INFO] [stderr] Downloaded sprintf v0.1.4 [INFO] [stderr] Downloaded thiserror v1.0.58 [INFO] [stderr] Downloaded csv-core v0.1.11 [INFO] [stderr] Downloaded cc v1.0.95 [INFO] [stderr] Downloaded ryu v1.0.17 [INFO] [stderr] Downloaded miniz_oxide v0.7.4 [INFO] [stderr] Downloaded serde_derive v1.0.198 [INFO] [stderr] Downloaded serde v1.0.198 [INFO] [stderr] Downloaded flate2 v1.0.30 [INFO] [stderr] Downloaded serde_json v1.0.116 [INFO] [stderr] Downloaded openjp2 v0.6.1 [INFO] [stderr] Downloaded syn v2.0.60 [INFO] [stderr] Downloaded regex-syntax v0.8.3 [INFO] [stderr] Downloaded web-sys v0.3.69 [INFO] [stderr] Downloaded csv v1.3.0 [INFO] [stderr] Downloaded openjpeg-sys v1.0.10 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7227d5fd11ecf29a00ea14b986980258fe47a1ff8b925e8a341337d26a59053b [INFO] running `Command { std: "docker" "start" "-a" "7227d5fd11ecf29a00ea14b986980258fe47a1ff8b925e8a341337d26a59053b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7227d5fd11ecf29a00ea14b986980258fe47a1ff8b925e8a341337d26a59053b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7227d5fd11ecf29a00ea14b986980258fe47a1ff8b925e8a341337d26a59053b", kill_on_drop: false }` [INFO] [stdout] 7227d5fd11ecf29a00ea14b986980258fe47a1ff8b925e8a341337d26a59053b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0231d166985655d583c284e4ff6316efb773e519d712562f316756027f705ab7 [INFO] running `Command { std: "docker" "start" "-a" "0231d166985655d583c284e4ff6316efb773e519d712562f316756027f705ab7", kill_on_drop: false }` [INFO] [stderr] warning: `default_features` is deprecated in favor of `default-features` and will not work in the 2024 edition [INFO] [stderr] (in the `image` dependency) [INFO] [stderr] Compiling proc-macro2 v1.0.81 [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling cc v1.0.95 [INFO] [stderr] Compiling anyhow v1.0.82 [INFO] [stderr] Compiling thiserror v1.0.58 [INFO] [stderr] Compiling bytemuck v1.15.0 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling fdeflate v0.3.4 [INFO] [stderr] Compiling zune-jpeg v0.4.11 [INFO] [stderr] Compiling miniz_oxide v0.7.4 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling flate2 v1.0.30 [INFO] [stderr] Compiling png v0.17.13 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling openjpeg-sys v1.0.10 [INFO] [stderr] Compiling syn v2.0.60 [INFO] [stderr] Compiling image v0.25.1 [INFO] [stderr] Compiling thiserror-impl v1.0.58 [INFO] [stderr] Compiling jpeg2k v0.10.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.31s [INFO] running `Command { std: "docker" "inspect" "0231d166985655d583c284e4ff6316efb773e519d712562f316756027f705ab7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0231d166985655d583c284e4ff6316efb773e519d712562f316756027f705ab7", kill_on_drop: false }` [INFO] [stdout] 0231d166985655d583c284e4ff6316efb773e519d712562f316756027f705ab7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 682b0800669aa0dfc39fb621c64c6010bd79600a5aad636a55f8e3048c0df28d [INFO] running `Command { std: "docker" "start" "-a" "682b0800669aa0dfc39fb621c64c6010bd79600a5aad636a55f8e3048c0df28d", kill_on_drop: false }` [INFO] [stderr] warning: `default_features` is deprecated in favor of `default-features` and will not work in the 2024 edition [INFO] [stderr] (in the `image` dependency) [INFO] [stderr] Compiling serde v1.0.198 [INFO] [stderr] Compiling memchr v2.7.2 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Compiling either v1.11.0 [INFO] [stderr] Compiling ryu v1.0.17 [INFO] [stderr] Compiling regex-syntax v0.8.3 [INFO] [stderr] Compiling serde_json v1.0.116 [INFO] [stderr] Compiling unicode-width v0.1.11 [INFO] [stderr] Compiling plotters-backend v0.3.5 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling cast v0.3.0 [INFO] [stderr] Compiling half v1.8.3 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling serde_derive v1.0.198 [INFO] [stderr] Compiling oorandom v11.1.3 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling jpeg2k v0.10.1 (/opt/rustwide/workdir) [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling plotters-svg v0.3.5 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling plotters v0.3.5 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling csv-core v0.1.11 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling crossbeam-deque v0.8.5 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling criterion-plot v0.4.5 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling regex-automata v0.4.6 [INFO] [stderr] Compiling csv v1.3.0 [INFO] [stderr] Compiling serde_cbor v0.11.2 [INFO] [stderr] Compiling regex v1.10.4 [INFO] [stderr] Compiling tinytemplate v1.2.1 [INFO] [stderr] Compiling env_logger v0.9.3 [INFO] [stderr] Compiling criterion v0.3.6 [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 20.12s [INFO] running `Command { std: "docker" "inspect" "682b0800669aa0dfc39fb621c64c6010bd79600a5aad636a55f8e3048c0df28d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "682b0800669aa0dfc39fb621c64c6010bd79600a5aad636a55f8e3048c0df28d", kill_on_drop: false }` [INFO] [stdout] 682b0800669aa0dfc39fb621c64c6010bd79600a5aad636a55f8e3048c0df28d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 33f2d1aa95931d646a52258abd14c948c8cd37ae1657c57c67aa7d33ea097325 [INFO] running `Command { std: "docker" "start" "-a" "33f2d1aa95931d646a52258abd14c948c8cd37ae1657c57c67aa7d33ea097325", kill_on_drop: false }` [INFO] [stderr] warning: `default_features` is deprecated in favor of `default-features` and will not work in the 2024 edition [INFO] [stderr] (in the `image` dependency) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.17s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/jpeg2k-e0da1930e791bb87) [INFO] [stderr] Doc-tests jpeg2k [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test src/lib.rs - (line 7) ... FAILED [INFO] [stdout] test src/codec.rs - codec::DecodeArea (line 14) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 7) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:19:47 [INFO] [stdout] | [INFO] [stdout] 13 | fn main() { [INFO] [stdout] | --------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 19 | let img: DynamicImage = jp2_image.try_into()?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 13 ~ fn main() -> Result<(), Box> { [INFO] [stdout] 14 | // Load jpeg 2000 file from file. [INFO] [stdout] ... [INFO] [stdout] 22 | img.save("out.png")?; [INFO] [stdout] 23 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `DynamicImage: TryFrom` is not satisfied [INFO] [stdout] --> src/lib.rs:19:37 [INFO] [stdout] | [INFO] [stdout] 19 | let img: DynamicImage = jp2_image.try_into()?; [INFO] [stdout] | ^^^^^^^^ the trait `From` is not implemented for `DynamicImage` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `DynamicImage` implements `From, Vec>>` [INFO] [stdout] `DynamicImage` implements `From, Vec>>` [INFO] [stdout] `DynamicImage` implements `From, Vec>>` [INFO] [stdout] `DynamicImage` implements `From, Vec>>` [INFO] [stdout] `DynamicImage` implements `From, Vec>>` [INFO] [stdout] `DynamicImage` implements `From, Vec>>` [INFO] [stdout] `DynamicImage` implements `From, Vec>>` [INFO] [stdout] `DynamicImage` implements `From, Vec>>` [INFO] [stdout] and 4 others [INFO] [stdout] = note: required for `jpeg2k::Image` to implement `Into` [INFO] [stdout] = note: required for `DynamicImage` to implement `TryFrom` [INFO] [stdout] = note: required for `jpeg2k::Image` to implement `TryInto` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:22:22 [INFO] [stdout] | [INFO] [stdout] 13 | fn main() { [INFO] [stdout] | --------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 22 | img.save("out.png")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 13 ~ fn main() -> Result<(), Box> { [INFO] [stdout] 14 | // Load jpeg 2000 file from file. [INFO] [stdout] ... [INFO] [stdout] 22 | img.save("out.png")?; [INFO] [stdout] 23 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/codec.rs - codec::DecodeArea (line 14) stdout ---- [INFO] [stdout] error[E0433]: cannot find type `DecodeArea` in this scope [INFO] [stdout] --> src/codec.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | let area = DecodeArea::new(10, 10, 200, 200); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `DecodeArea` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 14 + use jpeg2k::DecodeArea; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `DecodeArea` in this scope [INFO] [stdout] --> src/codec.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | let area: DecodeArea = "10:10:200:200".parse()?; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 14 + use jpeg2k::DecodeArea; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `DecodeArea` in this scope [INFO] [stdout] --> src/codec.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | let area = DecodeArea::from_str("10:10:200:200")?; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `DecodeArea` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 14 + use jpeg2k::DecodeArea; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/codec.rs:18:47 [INFO] [stdout] | [INFO] [stdout] 14 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_codec_rs_14_0() { [INFO] [stdout] | ------------------------------------ this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 18 | let area: DecodeArea = "10:10:200:200".parse()?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 14 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_codec_rs_14_0() -> Result<(), Box> { [INFO] [stdout] 15 | let area = DecodeArea::new(10, 10, 200, 200); [INFO] [stdout] ... [INFO] [stdout] 19 | let area = DecodeArea::from_str("10:10:200:200")?; [INFO] [stdout] 20 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/codec.rs - codec::DecodeArea (line 14) [INFO] [stdout] src/lib.rs - (line 7) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.38s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "33f2d1aa95931d646a52258abd14c948c8cd37ae1657c57c67aa7d33ea097325", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "33f2d1aa95931d646a52258abd14c948c8cd37ae1657c57c67aa7d33ea097325", kill_on_drop: false }` [INFO] [stdout] 33f2d1aa95931d646a52258abd14c948c8cd37ae1657c57c67aa7d33ea097325