[INFO] fetching crate printpdf 0.5.1... [INFO] testing printpdf-0.5.1 against beta-2022-02-22 for beta-1.60-1 [INFO] extracting crate printpdf 0.5.1 into /workspace/builds/worker-8/source [INFO] validating manifest of crates.io crate printpdf 0.5.1 on toolchain beta-2022-02-22 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate printpdf 0.5.1 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate printpdf 0.5.1 [INFO] tweaked toml for crates.io crate printpdf 0.5.1 written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate crates.io crate printpdf 0.5.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded usvg v0.19.0 [INFO] [stderr] Downloaded kurbo v0.8.3 [INFO] [stderr] Downloaded pdf-writer v0.4.1 [INFO] [stderr] Downloaded pom v3.2.0 [INFO] [stderr] Downloaded lopdf v0.27.0 [INFO] [stderr] Downloaded rctree v0.4.0 [INFO] [stderr] Downloaded svg2pdf v0.1.0 [INFO] [stderr] Downloaded fontdb v0.7.0 [INFO] [stderr] Downloaded svgtypes v0.8.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 650d06e6c8a8f4c1ac5b6605f9d5ed8a1544951912dac9a3649f77d7a356dda9 [INFO] running `Command { std: "docker" "start" "-a" "650d06e6c8a8f4c1ac5b6605f9d5ed8a1544951912dac9a3649f77d7a356dda9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "650d06e6c8a8f4c1ac5b6605f9d5ed8a1544951912dac9a3649f77d7a356dda9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "650d06e6c8a8f4c1ac5b6605f9d5ed8a1544951912dac9a3649f77d7a356dda9", kill_on_drop: false }` [INFO] [stdout] 650d06e6c8a8f4c1ac5b6605f9d5ed8a1544951912dac9a3649f77d7a356dda9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2290ea66a82147d452fe7ba78c569a944156cc4f79953d032d6fbffa04c02eac [INFO] running `Command { std: "docker" "start" "-a" "2290ea66a82147d452fe7ba78c569a944156cc4f79953d032d6fbffa04c02eac", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.34 [INFO] [stderr] Compiling encoding_index_tests v0.1.4 [INFO] [stderr] Compiling syn v1.0.83 [INFO] [stderr] Compiling const_fn v0.4.8 [INFO] [stderr] Compiling crc32fast v1.3.0 [INFO] [stderr] Compiling pom v3.2.0 [INFO] [stderr] Compiling ttf-parser v0.12.3 [INFO] [stderr] Compiling weezl v0.1.5 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling encoding-index-simpchinese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-korean v1.20141219.5 [INFO] [stderr] Compiling encoding-index-japanese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-singlebyte v1.20141219.5 [INFO] [stderr] Compiling encoding-index-tradchinese v1.20141219.5 [INFO] [stderr] Compiling encoding v0.2.33 [INFO] [stderr] Compiling owned_ttf_parser v0.12.1 [INFO] [stderr] Compiling flate2 v1.0.22 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling lopdf v0.27.0 [INFO] [stderr] Compiling printpdf v0.5.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: field is never read: `icc_profiles` [INFO] [stdout] --> src/pdf_document.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub(super) icc_profiles: IccProfileList, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `PdfDocument` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/pdf_document.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/xobject.rs:292:5 [INFO] [stdout] | [INFO] [stdout] 292 | name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ImageXObjectRef` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/xobject.rs:290:10 [INFO] [stdout] | [INFO] [stdout] 290 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/xobject.rs:437:5 [INFO] [stdout] | [INFO] [stdout] 437 | name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `FormXObjectRef` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/xobject.rs:435:10 [INFO] [stdout] | [INFO] [stdout] 435 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `level1` [INFO] [stdout] --> src/xobject.rs:600:5 [INFO] [stdout] | [INFO] [stdout] 600 | level1: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PostScriptXObject` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/xobject.rs:595:10 [INFO] [stdout] | [INFO] [stdout] 595 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/pdf_document.rs:291:9 [INFO] [stdout] | [INFO] [stdout] 291 | &self.document.borrow_mut().pages[page.0]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 291 | let _ = &self.document.borrow_mut().pages[page.0]; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 13.62s [INFO] running `Command { std: "docker" "inspect" "2290ea66a82147d452fe7ba78c569a944156cc4f79953d032d6fbffa04c02eac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2290ea66a82147d452fe7ba78c569a944156cc4f79953d032d6fbffa04c02eac", kill_on_drop: false }` [INFO] [stdout] 2290ea66a82147d452fe7ba78c569a944156cc4f79953d032d6fbffa04c02eac [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] da37079df1dd8f46d831961394894a1505454e4c5212ee0cac2dd09c5f7ee16f [INFO] running `Command { std: "docker" "start" "-a" "da37079df1dd8f46d831961394894a1505454e4c5212ee0cac2dd09c5f7ee16f", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stdout] warning: field is never read: `icc_profiles` [INFO] [stdout] --> src/pdf_document.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub(super) icc_profiles: IccProfileList, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `PdfDocument` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/pdf_document.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/xobject.rs:292:5 [INFO] [stdout] | [INFO] [stdout] 292 | name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ImageXObjectRef` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/xobject.rs:290:10 [INFO] [stdout] | [INFO] [stdout] 290 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/xobject.rs:437:5 [INFO] [stdout] | [INFO] [stdout] 437 | name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `FormXObjectRef` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/xobject.rs:435:10 [INFO] [stdout] | [INFO] [stdout] 435 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `level1` [INFO] [stdout] --> src/xobject.rs:600:5 [INFO] [stdout] | [INFO] [stdout] 600 | level1: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PostScriptXObject` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/xobject.rs:595:10 [INFO] [stdout] | [INFO] [stdout] 595 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/pdf_document.rs:291:9 [INFO] [stdout] | [INFO] [stdout] 291 | &self.document.borrow_mut().pages[page.0]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 291 | let _ = &self.document.borrow_mut().pages[page.0]; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling printpdf v0.5.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `calculate_points_for_circle` is imported redundantly [INFO] [stdout] --> examples/circle.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 3 | use printpdf::*; [INFO] [stdout] | ----------- the item `calculate_points_for_circle` is already imported here [INFO] [stdout] ... [INFO] [stdout] 10 | calculate_points_for_circle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `calculate_points_for_rect` is imported redundantly [INFO] [stdout] --> examples/circle.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 3 | use printpdf::*; [INFO] [stdout] | ----------- the item `calculate_points_for_rect` is already imported here [INFO] [stdout] ... [INFO] [stdout] 11 | calculate_points_for_rect [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `icc_profiles` [INFO] [stdout] --> src/pdf_document.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub(super) icc_profiles: IccProfileList, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `PdfDocument` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/pdf_document.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/xobject.rs:292:5 [INFO] [stdout] | [INFO] [stdout] 292 | name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ImageXObjectRef` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/xobject.rs:290:10 [INFO] [stdout] | [INFO] [stdout] 290 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/xobject.rs:437:5 [INFO] [stdout] | [INFO] [stdout] 437 | name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `FormXObjectRef` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/xobject.rs:435:10 [INFO] [stdout] | [INFO] [stdout] 435 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `level1` [INFO] [stdout] --> src/xobject.rs:600:5 [INFO] [stdout] | [INFO] [stdout] 600 | level1: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PostScriptXObject` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/xobject.rs:595:10 [INFO] [stdout] | [INFO] [stdout] 595 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/pdf_document.rs:291:9 [INFO] [stdout] | [INFO] [stdout] 291 | &self.document.borrow_mut().pages[page.0]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 291 | let _ = &self.document.borrow_mut().pages[page.0]; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.18s [INFO] running `Command { std: "docker" "inspect" "da37079df1dd8f46d831961394894a1505454e4c5212ee0cac2dd09c5f7ee16f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "da37079df1dd8f46d831961394894a1505454e4c5212ee0cac2dd09c5f7ee16f", kill_on_drop: false }` [INFO] [stdout] da37079df1dd8f46d831961394894a1505454e4c5212ee0cac2dd09c5f7ee16f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 77b75ed661093daf3ca197b41a160e3237ab286e0f2e5943ad5f7e959f88ce73 [INFO] running `Command { std: "docker" "start" "-a" "77b75ed661093daf3ca197b41a160e3237ab286e0f2e5943ad5f7e959f88ce73", kill_on_drop: false }` [INFO] [stderr] warning: field is never read: `icc_profiles` [INFO] [stderr] --> src/pdf_document.rs:27:5 [INFO] [stderr] | [INFO] [stderr] 27 | pub(super) icc_profiles: IccProfileList, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] note: `PdfDocument` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/pdf_document.rs:20:10 [INFO] [stderr] | [INFO] [stderr] 20 | #[derive(Debug, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `name` [INFO] [stderr] --> src/xobject.rs:292:5 [INFO] [stderr] | [INFO] [stderr] 292 | name: String, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `ImageXObjectRef` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/xobject.rs:290:10 [INFO] [stderr] | [INFO] [stderr] 290 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `name` [INFO] [stderr] --> src/xobject.rs:437:5 [INFO] [stderr] | [INFO] [stderr] 437 | name: String, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `FormXObjectRef` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/xobject.rs:435:10 [INFO] [stderr] | [INFO] [stderr] 435 | #[derive(Debug, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `level1` [INFO] [stderr] --> src/xobject.rs:600:5 [INFO] [stderr] | [INFO] [stderr] 600 | level1: Option>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `PostScriptXObject` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/xobject.rs:595:10 [INFO] [stderr] | [INFO] [stderr] 595 | #[derive(Debug, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused borrow that must be used [INFO] [stderr] --> src/pdf_document.rs:291:9 [INFO] [stderr] | [INFO] [stderr] 291 | &self.document.borrow_mut().pages[page.0]; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 291 | let _ = &self.document.borrow_mut().pages[page.0]; [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: `printpdf` (lib) generated 5 warnings [INFO] [stderr] warning: `printpdf` (lib test) generated 5 warnings (5 duplicates) [INFO] [stderr] warning: the item `calculate_points_for_circle` is imported redundantly [INFO] [stderr] --> examples/circle.rs:10:9 [INFO] [stderr] | [INFO] [stderr] 3 | use printpdf::*; [INFO] [stderr] | ----------- the item `calculate_points_for_circle` is already imported here [INFO] [stderr] ... [INFO] [stderr] 10 | calculate_points_for_circle, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: the item `calculate_points_for_rect` is imported redundantly [INFO] [stderr] --> examples/circle.rs:11:9 [INFO] [stderr] | [INFO] [stderr] 3 | use printpdf::*; [INFO] [stderr] | ----------- the item `calculate_points_for_rect` is already imported here [INFO] [stderr] ... [INFO] [stderr] 11 | calculate_points_for_rect [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `printpdf` (example "circle") generated 2 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/printpdf-c4c753ab0b734cb4) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test ctm::test_ctm_translate ... ok [INFO] [stdout] test scale::mm_to_point_conversion ... ok [INFO] [stdout] test scale::point_to_mm_conversion ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests printpdf [INFO] [stdout] [INFO] [stdout] running 16 tests [INFO] [stdout] test src/extgstate.rs - extgstate (line 18) ... ignored [INFO] [stdout] test src/extgstate.rs - extgstate::BlackGenerationFunction::Default (line 824) ... ignored [INFO] [stdout] test src/extgstate.rs - extgstate::BlackGenerationFunction::WithUnderColorRemoval (line 834) ... ignored [INFO] [stdout] test src/extgstate.rs - extgstate::NonSeperableBlendMode (line 1199) ... ignored [INFO] [stdout] test src/extgstate.rs - extgstate::SeperableBlendMode::ColorBurn (line 1131) ... ignored [INFO] [stdout] test src/extgstate.rs - extgstate::SeperableBlendMode::ColorDodge (line 1120) ... ignored [INFO] [stdout] test src/extgstate.rs - extgstate::SeperableBlendMode::HardLight (line 1142) ... ignored [INFO] [stdout] test src/extgstate.rs - extgstate::SeperableBlendMode::Overlay (line 1099) ... ignored [INFO] [stdout] test src/extgstate.rs - extgstate::SeperableBlendMode::SoftLight (line 1153) ... ignored [INFO] [stdout] test src/extgstate.rs - extgstate::SpotFunction::Diamond (line 1004) ... ignored [INFO] [stdout] test src/extgstate.rs - extgstate::SpotFunction::Ellipse (line 976) ... ignored [INFO] [stdout] test src/extgstate.rs - extgstate::SpotFunction::Round (line 968) ... ignored [INFO] [stdout] test src/lib.rs - (line 121) ... FAILED [INFO] [stdout] test src/lib.rs - (line 42) ... ok [INFO] [stdout] test src/lib.rs - (line 170) ... ok [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] [stdout] test src/lib.rs - (line 29) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 121) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `image_crate` [INFO] [stdout] --> src/lib.rs:137:33 [INFO] [stdout] | [INFO] [stdout] 17 | let image = Image::try_from(image_crate::bmp::BmpDecoder::new(&mut image_file).unwrap()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared crate or module `image_crate` [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `try_from` found for struct `printpdf::Image` in the current scope [INFO] [stdout] --> src/lib.rs:137:24 [INFO] [stdout] | [INFO] [stdout] 17 | let image = Image::try_from(image_crate::bmp::BmpDecoder::new(&mut image_file).unwrap()).unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `printpdf::Image` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 5 | use std::convert::TryFrom; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 29) stdout ---- [INFO] [stdout] Test executable failed (exit code 101). [INFO] [stdout] [INFO] [stdout] stderr: [INFO] [stdout] thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }', src/lib.rs:11:63 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x55d99494c95c - std::backtrace_rs::backtrace::libunwind::trace::h02555d7ca8aa068a [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x55d99494c95c - std::backtrace_rs::backtrace::trace_unsynchronized::h8555a46024147da8 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x55d99494c95c - std::sys_common::backtrace::_print_fmt::h4c7f50b4f105da1e [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x55d99494c95c - ::fmt::ha305a40dbc030444 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x55d99496ddac - core::fmt::write::hadd15acf4d6ce273 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/fmt/mod.rs:1190:17 [INFO] [stdout] 5: 0x55d994949868 - std::io::Write::write_fmt::h0f87f6c0c21ec48a [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/io/mod.rs:1657:15 [INFO] [stdout] 6: 0x55d99494e3e7 - std::sys_common::backtrace::_print::h0dd5c0810675bd8c [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x55d99494e3e7 - std::sys_common::backtrace::print::h20a2155fa0a22ca6 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x55d99494e3e7 - std::panicking::default_hook::{{closure}}::habb3b6f3ccdfe00a [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x55d99494e0af - std::panicking::default_hook::h1c5cf4d5063a38e4 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:314:9 [INFO] [stdout] 10: 0x55d99494eb3a - std::panicking::rust_panic_with_hook::hb5de7a3072d2cf59 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x55d99494e827 - std::panicking::begin_panic_handler::{{closure}}::h5106de2f55f1a411 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x55d99494ce24 - std::sys_common::backtrace::__rust_end_short_backtrace::h5ad5c2a8a003ca72 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x55d99494e539 - rust_begin_unwind [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x55d994870403 - core::panicking::panic_fmt::hfb4b8460cd493e74 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x55d9948704f3 - core::result::unwrap_failed::hf9b34e307f812de0 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/result.rs:1749:5 [INFO] [stdout] 16: 0x55d9948742b5 - core::result::Result::unwrap::ha00bacf8a9c702bb [INFO] [stdout] 17: 0x55d99487100f - rust_out::main::_doctest_main_src_lib_rs_29_0::h1a87288c191d65e9 [INFO] [stdout] 18: 0x55d994870eb6 - rust_out::main::h940ba7c731c6ef76 [INFO] [stdout] 19: 0x55d994870d73 - core::ops::function::FnOnce::call_once::h0f76b491d02b5d6f [INFO] [stdout] 20: 0x55d9948745a9 - std::sys_common::backtrace::__rust_begin_short_backtrace::h6e6af801be12e787 [INFO] [stdout] 21: 0x55d994874579 - std::rt::lang_start::{{closure}}::hd6727c319f121475 [INFO] [stdout] 22: 0x55d99494c041 - core::ops::function::impls:: for &F>::call_once::h9e134bb161d17658 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/ops/function.rs:259:13 [INFO] [stdout] 23: 0x55d99494c041 - std::panicking::try::do_call::h7f361d911648db1a [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:492:40 [INFO] [stdout] 24: 0x55d99494c041 - std::panicking::try::hbe441b12f8ff00e7 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:456:19 [INFO] [stdout] 25: 0x55d99494c041 - std::panic::catch_unwind::h12066b7ab56d7459 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panic.rs:137:14 [INFO] [stdout] 26: 0x55d99494c041 - std::rt::lang_start_internal::{{closure}}::h901c86e61467dcde [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/rt.rs:128:48 [INFO] [stdout] 27: 0x55d99494c041 - std::panicking::try::do_call::h1817b5f028d90a8c [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:492:40 [INFO] [stdout] 28: 0x55d99494c041 - std::panicking::try::hd5afeaf2f0454960 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:456:19 [INFO] [stdout] 29: 0x55d99494c041 - std::panic::catch_unwind::h13348562ae6426ca [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panic.rs:137:14 [INFO] [stdout] 30: 0x55d99494c041 - std::rt::lang_start_internal::hf194c7db73fedcb2 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/rt.rs:128:20 [INFO] [stdout] 31: 0x55d994874561 - std::rt::lang_start::habdff3dd8e305ff9 [INFO] [stdout] 32: 0x55d994874a63 - main [INFO] [stdout] 33: 0x7f89494520b3 - __libc_start_main [INFO] [stdout] 34: 0x55d994870c8e - _start [INFO] [stdout] 35: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 121) [INFO] [stdout] src/lib.rs - (line 29) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 2 passed; 2 failed; 12 ignored; 0 measured; 0 filtered out; finished in 1.65s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "77b75ed661093daf3ca197b41a160e3237ab286e0f2e5943ad5f7e959f88ce73", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "77b75ed661093daf3ca197b41a160e3237ab286e0f2e5943ad5f7e959f88ce73", kill_on_drop: false }` [INFO] [stdout] 77b75ed661093daf3ca197b41a160e3237ab286e0f2e5943ad5f7e959f88ce73