[INFO] fetching crate printpdf 0.5.2... [INFO] testing printpdf-0.5.2 against beta-2022-04-10 for beta-1.61-1 [INFO] extracting crate printpdf 0.5.2 into /workspace/builds/worker-89/source [INFO] validating manifest of crates.io crate printpdf 0.5.2 on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate printpdf 0.5.2 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate printpdf 0.5.2 [INFO] tweaked toml for crates.io crate printpdf 0.5.2 written to /workspace/builds/worker-89/source/Cargo.toml [INFO] crate crates.io crate printpdf 0.5.2 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-89/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-89/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8c691ee2efc9eeecc1091b75b82c75579a24647e906ec6dec85bc9f62e0bfb19 [INFO] running `Command { std: "docker" "start" "-a" "8c691ee2efc9eeecc1091b75b82c75579a24647e906ec6dec85bc9f62e0bfb19", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8c691ee2efc9eeecc1091b75b82c75579a24647e906ec6dec85bc9f62e0bfb19", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8c691ee2efc9eeecc1091b75b82c75579a24647e906ec6dec85bc9f62e0bfb19", kill_on_drop: false }` [INFO] [stdout] 8c691ee2efc9eeecc1091b75b82c75579a24647e906ec6dec85bc9f62e0bfb19 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-89/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-89/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 86dd9dc24638f020241fda0e6fedd933f8f2aee298cab7f887e12426e0e4c0e2 [INFO] running `Command { std: "docker" "start" "-a" "86dd9dc24638f020241fda0e6fedd933f8f2aee298cab7f887e12426e0e4c0e2", kill_on_drop: false }` [INFO] [stderr] Compiling version_check v0.9.3 [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 libc v0.2.112 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling crc32fast v1.3.0 [INFO] [stderr] Compiling const_fn v0.4.8 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling linked-hash-map v0.5.4 [INFO] [stderr] Compiling dtoa v0.4.8 [INFO] [stderr] Compiling ttf-parser v0.12.3 [INFO] [stderr] Compiling weezl v0.1.5 [INFO] [stderr] Compiling pom v3.2.0 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling encoding-index-simpchinese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-tradchinese 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 v0.2.33 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling owned_ttf_parser v0.12.1 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling flate2 v1.0.22 [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.2 (/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 28.62s [INFO] running `Command { std: "docker" "inspect" "86dd9dc24638f020241fda0e6fedd933f8f2aee298cab7f887e12426e0e4c0e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "86dd9dc24638f020241fda0e6fedd933f8f2aee298cab7f887e12426e0e4c0e2", kill_on_drop: false }` [INFO] [stdout] 86dd9dc24638f020241fda0e6fedd933f8f2aee298cab7f887e12426e0e4c0e2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-89/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-89/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e1e432ae019103651f33531c0580852ead30053d2cc8e6e55feeb1ca493164ba [INFO] running `Command { std: "docker" "start" "-a" "e1e432ae019103651f33531c0580852ead30053d2cc8e6e55feeb1ca493164ba", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling printpdf v0.5.2 (/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] [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 4.00s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/printpdf-a9aa21f66c4e2cbb) [INFO] running `Command { std: "docker" "inspect" "e1e432ae019103651f33531c0580852ead30053d2cc8e6e55feeb1ca493164ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e1e432ae019103651f33531c0580852ead30053d2cc8e6e55feeb1ca493164ba", kill_on_drop: false }` [INFO] [stdout] e1e432ae019103651f33531c0580852ead30053d2cc8e6e55feeb1ca493164ba [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-89/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-89/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 5bb1958aee6f7f5740e744472045b61078aa0a9259012c7d256be491a4820335 [INFO] running `Command { std: "docker" "start" "-a" "5bb1958aee6f7f5740e744472045b61078aa0a9259012c7d256be491a4820335", 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 src/lib.rs (/opt/rustwide/target/debug/deps/printpdf-a9aa21f66c4e2cbb) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test ctm::test_ctm_translate ... ok [INFO] [stdout] test scale::point_to_mm_conversion ... ok [INFO] [stdout] test scale::mm_to_point_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 170) ... ok [INFO] [stdout] test src/lib.rs - (line 29) ... FAILED [INFO] [stdout] test src/lib.rs - (line 42) ... ok [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: 0x55e590b03f0d - std::backtrace_rs::backtrace::libunwind::trace::ha359b7f0090e2792 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x55e590b03f0d - std::backtrace_rs::backtrace::trace_unsynchronized::h0584631f25c1d70e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x55e590b03f0d - std::sys_common::backtrace::_print_fmt::hdadffd97d279ff14 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x55e590b03f0d - ::fmt::h26f189e611080a74 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x55e590b232bc - core::fmt::write::hfb5d11dfe037e8b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/fmt/mod.rs:1194:17 [INFO] [stdout] 5: 0x55e590b02121 - std::io::Write::write_fmt::ha30651f608022a46 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/io/mod.rs:1655:15 [INFO] [stdout] 6: 0x55e590b056b5 - std::sys_common::backtrace::_print::h7a0e44402913ba60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x55e590b056b5 - std::sys_common::backtrace::print::h9767dc455a84e728 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x55e590b056b5 - std::panicking::default_hook::{{closure}}::h60afd6c8b12988ad [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x55e590b05369 - std::panicking::default_hook::ha7b9bac6813f9d21 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:314:9 [INFO] [stdout] 10: 0x55e590b05c02 - std::panicking::rust_panic_with_hook::h7b117a162a6f8664 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x55e590b05ae7 - std::panicking::begin_panic_handler::{{closure}}::h346750923c608600 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x55e590b043c4 - std::sys_common::backtrace::__rust_end_short_backtrace::h768c56c6a0c055c0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x55e590b05819 - rust_begin_unwind [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x55e590a2a443 - core::panicking::panic_fmt::h5c41cb2fa118fdbc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x55e590a2a533 - core::result::unwrap_failed::h6bc7b183ec719494 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/result.rs:1785:5 [INFO] [stdout] 16: 0x55e590a2b7b9 - core::result::Result::unwrap::h9a86c25ec438aad1 [INFO] [stdout] 17: 0x55e590a2df2a - rust_out::main::_doctest_main_src_lib_rs_29_0::h06185da62f21d3a4 [INFO] [stdout] 18: 0x55e590a2dde6 - rust_out::main::h3d3c95f1f21b751b [INFO] [stdout] 19: 0x55e590a2b3a3 - core::ops::function::FnOnce::call_once::h359be4aec5e1561c [INFO] [stdout] 20: 0x55e590a2a8c9 - std::sys_common::backtrace::__rust_begin_short_backtrace::hf1c468c32d98493e [INFO] [stdout] 21: 0x55e590a2b109 - std::rt::lang_start::{{closure}}::hc74257e153f5ba59 [INFO] [stdout] 22: 0x55e590affa6e - core::ops::function::impls:: for &F>::call_once::hae31cd38f966dcbc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:259:13 [INFO] [stdout] 23: 0x55e590affa6e - std::panicking::try::do_call::h4a4c12a32b804624 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 24: 0x55e590affa6e - std::panicking::try::h87f80f5db1929b60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 25: 0x55e590affa6e - std::panic::catch_unwind::hbc53afd5a2bdc195 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 26: 0x55e590affa6e - std::rt::lang_start_internal::{{closure}}::h2e62ddd08385fac8 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/rt.rs:128:48 [INFO] [stdout] 27: 0x55e590affa6e - std::panicking::try::do_call::h04b85b79b362213e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 28: 0x55e590affa6e - std::panicking::try::h428fba6a4941d8ed [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 29: 0x55e590affa6e - std::panic::catch_unwind::hd73c90258412492e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 30: 0x55e590affa6e - std::rt::lang_start_internal::h26255896a96668b5 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/rt.rs:128:20 [INFO] [stdout] 31: 0x55e590a2b0f1 - std::rt::lang_start::habb7d5349de31a07 [INFO] [stdout] 32: 0x55e590a2dfe3 - main [INFO] [stdout] 33: 0x7f05794c10b3 - __libc_start_main [INFO] [stdout] 34: 0x55e590a2a73e - _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 0.92s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "5bb1958aee6f7f5740e744472045b61078aa0a9259012c7d256be491a4820335", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5bb1958aee6f7f5740e744472045b61078aa0a9259012c7d256be491a4820335", kill_on_drop: false }` [INFO] [stdout] 5bb1958aee6f7f5740e744472045b61078aa0a9259012c7d256be491a4820335