[INFO] fetching crate lopdf_bugfix_19072017 0.9.0... [INFO] testing lopdf_bugfix_19072017-0.9.0 against beta-2022-02-22 for beta-1.60-1 [INFO] extracting crate lopdf_bugfix_19072017 0.9.0 into /workspace/builds/worker-66/source [INFO] validating manifest of crates.io crate lopdf_bugfix_19072017 0.9.0 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 lopdf_bugfix_19072017 0.9.0 [INFO] finished tweaking crates.io crate lopdf_bugfix_19072017 0.9.0 [INFO] tweaked toml for crates.io crate lopdf_bugfix_19072017 0.9.0 written to /workspace/builds/worker-66/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-66/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-66/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] ffa1b5a181f14847eb749a162b05b919aa146d9f9408d72fdae6f913012dee1f [INFO] running `Command { std: "docker" "start" "-a" "ffa1b5a181f14847eb749a162b05b919aa146d9f9408d72fdae6f913012dee1f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ffa1b5a181f14847eb749a162b05b919aa146d9f9408d72fdae6f913012dee1f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ffa1b5a181f14847eb749a162b05b919aa146d9f9408d72fdae6f913012dee1f", kill_on_drop: false }` [INFO] [stdout] ffa1b5a181f14847eb749a162b05b919aa146d9f9408d72fdae6f913012dee1f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-66/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-66/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] 2516ccbf8488929c81dd7a49c4bc85a2fcde3d4782f26bfe3cb2e8dc4099e969 [INFO] running `Command { std: "docker" "start" "-a" "2516ccbf8488929c81dd7a49c4bc85a2fcde3d4782f26bfe3cb2e8dc4099e969", kill_on_drop: false }` [INFO] [stderr] Compiling linked-hash-map v0.3.0 [INFO] [stderr] Compiling pom v1.1.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling miniz-sys v0.1.12 [INFO] [stderr] Compiling flate2 v0.2.20 [INFO] [stderr] Compiling num v0.1.42 [INFO] [stderr] Compiling chrono v0.3.0 [INFO] [stderr] Compiling lopdf_bugfix_19072017 v0.9.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/filters/png.rs:122:42 [INFO] [stdout] | [INFO] [stdout] 122 | current[i] = current[i].wrapping_sub((current[i - bpp].wrapping_add(previous[i]) / 2)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 122 - current[i] = current[i].wrapping_sub((current[i - bpp].wrapping_add(previous[i]) / 2)); [INFO] [stdout] 122 + current[i] = current[i].wrapping_sub(current[i - bpp].wrapping_add(previous[i]) / 2); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/reader.rs:139:47 [INFO] [stdout] | [INFO] [stdout] 139 | fn get_xref_start(buffer: &[u8], input: &mut Input) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 139 - fn get_xref_start(buffer: &[u8], input: &mut Input) -> Result { [INFO] [stdout] 139 + fn get_xref_start(buffer: &[u8], input: &mut dyn Input) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/writer.rs:49:41 [INFO] [stdout] | [INFO] [stdout] 49 | fn write_trailer(&mut self, file: &mut Write) -> Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 49 - fn write_trailer(&mut self, file: &mut Write) -> Result<()> { [INFO] [stdout] 49 + fn write_trailer(&mut self, file: &mut dyn Write) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/writer.rs:84:27 [INFO] [stdout] | [INFO] [stdout] 84 | fn write_xref(file: &mut Write, xref: &Xref) -> Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 84 - fn write_xref(file: &mut Write, xref: &Xref) -> Result<()> { [INFO] [stdout] 84 + fn write_xref(file: &mut dyn Write, xref: &Xref) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/writer.rs:119:37 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn write_object<'a>(file: &mut Write, object: &'a Object) -> Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 119 - pub fn write_object<'a>(file: &mut Write, object: &'a Object) -> Result<()> { [INFO] [stdout] 119 + pub fn write_object<'a>(file: &mut dyn Write, object: &'a Object) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/writer.rs:134:31 [INFO] [stdout] | [INFO] [stdout] 134 | fn write_name<'a>(file: &mut Write, name: &'a [u8]) -> Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 134 - fn write_name<'a>(file: &mut Write, name: &'a [u8]) -> Result<()> { [INFO] [stdout] 134 + fn write_name<'a>(file: &mut dyn Write, name: &'a [u8]) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/writer.rs:147:33 [INFO] [stdout] | [INFO] [stdout] 147 | fn write_string<'a>(file: &mut Write, text: &'a [u8], format: &'a StringFormat) -> Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 147 - fn write_string<'a>(file: &mut Write, text: &'a [u8], format: &'a StringFormat) -> Result<()> { [INFO] [stdout] 147 + fn write_string<'a>(file: &mut dyn Write, text: &'a [u8], format: &'a StringFormat) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/writer.rs:199:32 [INFO] [stdout] | [INFO] [stdout] 199 | fn write_array<'a>(file: &mut Write, array: &'a Vec) -> Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 199 - fn write_array<'a>(file: &mut Write, array: &'a Vec) -> Result<()> { [INFO] [stdout] 199 + fn write_array<'a>(file: &mut dyn Write, array: &'a Vec) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/writer.rs:214:37 [INFO] [stdout] | [INFO] [stdout] 214 | fn write_dictionary<'a>(file: &mut Write, dictionary: &'a Dictionary) -> Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 214 - fn write_dictionary<'a>(file: &mut Write, dictionary: &'a Dictionary) -> Result<()> { [INFO] [stdout] 214 + fn write_dictionary<'a>(file: &mut dyn Write, dictionary: &'a Dictionary) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/writer.rs:227:33 [INFO] [stdout] | [INFO] [stdout] 227 | fn write_stream<'a>(file: &mut Write, stream: &'a Stream) -> Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 227 - fn write_stream<'a>(file: &mut Write, stream: &'a Stream) -> Result<()> { [INFO] [stdout] 227 + fn write_stream<'a>(file: &mut dyn Write, stream: &'a Stream) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6.87s [INFO] running `Command { std: "docker" "inspect" "2516ccbf8488929c81dd7a49c4bc85a2fcde3d4782f26bfe3cb2e8dc4099e969", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2516ccbf8488929c81dd7a49c4bc85a2fcde3d4782f26bfe3cb2e8dc4099e969", kill_on_drop: false }` [INFO] [stdout] 2516ccbf8488929c81dd7a49c4bc85a2fcde3d4782f26bfe3cb2e8dc4099e969 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-66/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-66/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] 1d333f611e2834e2c8cdfd5c2e1d7f895829d025d4479feb12b8084833f2ad89 [INFO] running `Command { std: "docker" "start" "-a" "1d333f611e2834e2c8cdfd5c2e1d7f895829d025d4479feb12b8084833f2ad89", kill_on_drop: false }` [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/filters/png.rs:122:42 [INFO] [stdout] | [INFO] [stdout] 122 | current[i] = current[i].wrapping_sub((current[i - bpp].wrapping_add(previous[i]) / 2)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 122 - current[i] = current[i].wrapping_sub((current[i - bpp].wrapping_add(previous[i]) / 2)); [INFO] [stdout] 122 + current[i] = current[i].wrapping_sub(current[i - bpp].wrapping_add(previous[i]) / 2); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/reader.rs:139:47 [INFO] [stdout] | [INFO] [stdout] 139 | fn get_xref_start(buffer: &[u8], input: &mut Input) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 139 - fn get_xref_start(buffer: &[u8], input: &mut Input) -> Result { [INFO] [stdout] 139 + fn get_xref_start(buffer: &[u8], input: &mut dyn Input) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/writer.rs:49:41 [INFO] [stdout] | [INFO] [stdout] 49 | fn write_trailer(&mut self, file: &mut Write) -> Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 49 - fn write_trailer(&mut self, file: &mut Write) -> Result<()> { [INFO] [stdout] 49 + fn write_trailer(&mut self, file: &mut dyn Write) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/writer.rs:84:27 [INFO] [stdout] | [INFO] [stdout] 84 | fn write_xref(file: &mut Write, xref: &Xref) -> Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 84 - fn write_xref(file: &mut Write, xref: &Xref) -> Result<()> { [INFO] [stdout] 84 + fn write_xref(file: &mut dyn Write, xref: &Xref) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/writer.rs:119:37 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn write_object<'a>(file: &mut Write, object: &'a Object) -> Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 119 - pub fn write_object<'a>(file: &mut Write, object: &'a Object) -> Result<()> { [INFO] [stdout] 119 + pub fn write_object<'a>(file: &mut dyn Write, object: &'a Object) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/writer.rs:134:31 [INFO] [stdout] | [INFO] [stdout] 134 | fn write_name<'a>(file: &mut Write, name: &'a [u8]) -> Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 134 - fn write_name<'a>(file: &mut Write, name: &'a [u8]) -> Result<()> { [INFO] [stdout] 134 + fn write_name<'a>(file: &mut dyn Write, name: &'a [u8]) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/writer.rs:147:33 [INFO] [stdout] | [INFO] [stdout] 147 | fn write_string<'a>(file: &mut Write, text: &'a [u8], format: &'a StringFormat) -> Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 147 - fn write_string<'a>(file: &mut Write, text: &'a [u8], format: &'a StringFormat) -> Result<()> { [INFO] [stdout] 147 + fn write_string<'a>(file: &mut dyn Write, text: &'a [u8], format: &'a StringFormat) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/writer.rs:199:32 [INFO] [stdout] | [INFO] [stdout] 199 | fn write_array<'a>(file: &mut Write, array: &'a Vec) -> Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 199 - fn write_array<'a>(file: &mut Write, array: &'a Vec) -> Result<()> { [INFO] [stdout] 199 + fn write_array<'a>(file: &mut dyn Write, array: &'a Vec) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling lopdf_bugfix_19072017 v0.9.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/writer.rs:214:37 [INFO] [stdout] | [INFO] [stdout] 214 | fn write_dictionary<'a>(file: &mut Write, dictionary: &'a Dictionary) -> Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 214 - fn write_dictionary<'a>(file: &mut Write, dictionary: &'a Dictionary) -> Result<()> { [INFO] [stdout] 214 + fn write_dictionary<'a>(file: &mut dyn Write, dictionary: &'a Dictionary) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/writer.rs:227:33 [INFO] [stdout] | [INFO] [stdout] 227 | fn write_stream<'a>(file: &mut Write, stream: &'a Stream) -> Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 227 - fn write_stream<'a>(file: &mut Write, stream: &'a Stream) -> Result<()> { [INFO] [stdout] 227 + fn write_stream<'a>(file: &mut dyn Write, stream: &'a Stream) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `lopdf` [INFO] [stdout] --> tests/modify.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | extern crate lopdf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `self::Object` [INFO] [stdout] --> tests/modify.rs:36:6 [INFO] [stdout] | [INFO] [stdout] 36 | use self::Object; [INFO] [stdout] | ^^^^^^^^^^^^ no `Object` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Document` [INFO] [stdout] --> tests/modify.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | let mut doc = Document::load("assets/example.pdf")?; [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Document` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Object` [INFO] [stdout] --> tests/modify.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | Object::Stream(ref mut stream) => { [INFO] [stdout] | ^^^^^^ use of undeclared type `Object` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Object` [INFO] [stdout] --> tests/modify.rs:13:41 [INFO] [stdout] | [INFO] [stdout] 13 | content.operations[3].operands[0] = Object::String( [INFO] [stdout] | ^^^^^^ use of undeclared type `Object` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StringFormat` [INFO] [stdout] --> tests/modify.rs:15:6 [INFO] [stdout] | [INFO] [stdout] 15 | StringFormat::Literal); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `StringFormat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Document` [INFO] [stdout] --> tests/modify.rs:38:16 [INFO] [stdout] | [INFO] [stdout] 38 | let mut doc = Document::new(); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Document` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StringFormat` [INFO] [stdout] --> tests/modify.rs:39:69 [INFO] [stdout] | [INFO] [stdout] 39 | let id = doc.add_object(Object::String("test".as_bytes().to_vec(), StringFormat::Literal)); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `StringFormat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LoStream` [INFO] [stdout] --> tests/modify.rs:40:42 [INFO] [stdout] | [INFO] [stdout] 40 | let id2 = doc.add_object(Object::Stream(LoStream::new(LoDictionary::new(), "stream".as_bytes().to_vec()))); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `LoStream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LoDictionary` [INFO] [stdout] --> tests/modify.rs:40:56 [INFO] [stdout] | [INFO] [stdout] 40 | let id2 = doc.add_object(Object::Stream(LoStream::new(LoDictionary::new(), "stream".as_bytes().to_vec()))); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `LoDictionary` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Document` in this scope [INFO] [stdout] --> tests/modify.rs:6:28 [INFO] [stdout] | [INFO] [stdout] 6 | fn modify_text() -> Result { [INFO] [stdout] | - ^^^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/filters/png.rs:122:42 [INFO] [stdout] | [INFO] [stdout] 122 | current[i] = current[i].wrapping_sub((current[i - bpp].wrapping_add(previous[i]) / 2)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 122 - current[i] = current[i].wrapping_sub((current[i - bpp].wrapping_add(previous[i]) / 2)); [INFO] [stdout] 122 + current[i] = current[i].wrapping_sub(current[i - bpp].wrapping_add(previous[i]) / 2); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0432, E0433, E0463. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/reader.rs:139:47 [INFO] [stdout] | [INFO] [stdout] 139 | fn get_xref_start(buffer: &[u8], input: &mut Input) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 139 - fn get_xref_start(buffer: &[u8], input: &mut Input) -> Result { [INFO] [stdout] 139 + fn get_xref_start(buffer: &[u8], input: &mut dyn Input) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/writer.rs:49:41 [INFO] [stdout] | [INFO] [stdout] 49 | fn write_trailer(&mut self, file: &mut Write) -> Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 49 - fn write_trailer(&mut self, file: &mut Write) -> Result<()> { [INFO] [stdout] 49 + fn write_trailer(&mut self, file: &mut dyn Write) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/writer.rs:84:27 [INFO] [stdout] | [INFO] [stdout] 84 | fn write_xref(file: &mut Write, xref: &Xref) -> Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 84 - fn write_xref(file: &mut Write, xref: &Xref) -> Result<()> { [INFO] [stdout] 84 + fn write_xref(file: &mut dyn Write, xref: &Xref) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/writer.rs:119:37 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn write_object<'a>(file: &mut Write, object: &'a Object) -> Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 119 - pub fn write_object<'a>(file: &mut Write, object: &'a Object) -> Result<()> { [INFO] [stdout] 119 + pub fn write_object<'a>(file: &mut dyn Write, object: &'a Object) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/writer.rs:134:31 [INFO] [stdout] | [INFO] [stdout] 134 | fn write_name<'a>(file: &mut Write, name: &'a [u8]) -> Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 134 - fn write_name<'a>(file: &mut Write, name: &'a [u8]) -> Result<()> { [INFO] [stdout] 134 + fn write_name<'a>(file: &mut dyn Write, name: &'a [u8]) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/writer.rs:147:33 [INFO] [stdout] | [INFO] [stdout] 147 | fn write_string<'a>(file: &mut Write, text: &'a [u8], format: &'a StringFormat) -> Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 147 - fn write_string<'a>(file: &mut Write, text: &'a [u8], format: &'a StringFormat) -> Result<()> { [INFO] [stdout] 147 + fn write_string<'a>(file: &mut dyn Write, text: &'a [u8], format: &'a StringFormat) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/writer.rs:199:32 [INFO] [stdout] | [INFO] [stdout] 199 | fn write_array<'a>(file: &mut Write, array: &'a Vec) -> Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 199 - fn write_array<'a>(file: &mut Write, array: &'a Vec) -> Result<()> { [INFO] [stdout] 199 + fn write_array<'a>(file: &mut dyn Write, array: &'a Vec) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/writer.rs:214:37 [INFO] [stdout] | [INFO] [stdout] 214 | fn write_dictionary<'a>(file: &mut Write, dictionary: &'a Dictionary) -> Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 214 - fn write_dictionary<'a>(file: &mut Write, dictionary: &'a Dictionary) -> Result<()> { [INFO] [stdout] 214 + fn write_dictionary<'a>(file: &mut dyn Write, dictionary: &'a Dictionary) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/writer.rs:227:33 [INFO] [stdout] | [INFO] [stdout] 227 | fn write_stream<'a>(file: &mut Write, stream: &'a Stream) -> Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 227 - fn write_stream<'a>(file: &mut Write, stream: &'a Stream) -> Result<()> { [INFO] [stdout] 227 + fn write_stream<'a>(file: &mut dyn Write, stream: &'a Stream) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `lopdf_bugfix_19072017` due to 12 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "1d333f611e2834e2c8cdfd5c2e1d7f895829d025d4479feb12b8084833f2ad89", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1d333f611e2834e2c8cdfd5c2e1d7f895829d025d4479feb12b8084833f2ad89", kill_on_drop: false }` [INFO] [stdout] 1d333f611e2834e2c8cdfd5c2e1d7f895829d025d4479feb12b8084833f2ad89