[INFO] fetching crate lopdf_bugfix_19072017 0.9.0... [INFO] testing lopdf_bugfix_19072017-0.9.0 against beta-2022-04-10 for beta-1.61-1 [INFO] extracting crate lopdf_bugfix_19072017 0.9.0 into /workspace/builds/worker-7/source [INFO] validating manifest of crates.io crate lopdf_bugfix_19072017 0.9.0 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 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-7/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a04892d1babd0ac2d70c911cecd84518f35e9f61d76507a26eac00f97be6d267 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "a04892d1babd0ac2d70c911cecd84518f35e9f61d76507a26eac00f97be6d267", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a04892d1babd0ac2d70c911cecd84518f35e9f61d76507a26eac00f97be6d267", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a04892d1babd0ac2d70c911cecd84518f35e9f61d76507a26eac00f97be6d267", kill_on_drop: false }` [INFO] [stdout] a04892d1babd0ac2d70c911cecd84518f35e9f61d76507a26eac00f97be6d267 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 01c453d79db38c60cef3df0eb53be619cb52c7782ad46d12cb43f406a9e68552 [INFO] running `Command { std: "docker" "start" "-a" "01c453d79db38c60cef3df0eb53be619cb52c7782ad46d12cb43f406a9e68552", kill_on_drop: false }` [INFO] [stderr] Compiling pom v1.1.0 [INFO] [stderr] Compiling linked-hash-map v0.3.0 [INFO] [stderr] Compiling miniz-sys v0.1.12 [INFO] [stderr] Compiling flate2 v0.2.20 [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 8.57s [INFO] running `Command { std: "docker" "inspect" "01c453d79db38c60cef3df0eb53be619cb52c7782ad46d12cb43f406a9e68552", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "01c453d79db38c60cef3df0eb53be619cb52c7782ad46d12cb43f406a9e68552", kill_on_drop: false }` [INFO] [stdout] 01c453d79db38c60cef3df0eb53be619cb52c7782ad46d12cb43f406a9e68552 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ec2186a5d6598fa633ebfca9f348aa04f504cc0d1d0986ec3c6de696c58aa49f [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "ec2186a5d6598fa633ebfca9f348aa04f504cc0d1d0986ec3c6de696c58aa49f", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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] [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[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] 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] 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] 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] [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] running `Command { std: "docker" "inspect" "ec2186a5d6598fa633ebfca9f348aa04f504cc0d1d0986ec3c6de696c58aa49f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ec2186a5d6598fa633ebfca9f348aa04f504cc0d1d0986ec3c6de696c58aa49f", kill_on_drop: false }` [INFO] [stdout] ec2186a5d6598fa633ebfca9f348aa04f504cc0d1d0986ec3c6de696c58aa49f