[INFO] fetching crate lopdf_bugfix_19072017 0.9.0... [INFO] testing lopdf_bugfix_19072017-0.9.0 against 1.60.0 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 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "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" "+1.60.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded linked-hash-map v0.3.0 [INFO] [stderr] Downloaded flate2 v0.2.20 [INFO] [stderr] Downloaded chrono v0.3.0 [INFO] [stderr] Downloaded pom v1.1.0 [INFO] [stderr] Downloaded miniz-sys v0.1.12 [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" "+1.60.0" "metadata" "--no-deps" "--format-version=1", 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] 0f4705f3f874fdf4562eeac02946a6dd5a77b5e8057aa98134aafcc7a2a8c684 [INFO] running `Command { std: "docker" "start" "-a" "0f4705f3f874fdf4562eeac02946a6dd5a77b5e8057aa98134aafcc7a2a8c684", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0f4705f3f874fdf4562eeac02946a6dd5a77b5e8057aa98134aafcc7a2a8c684", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0f4705f3f874fdf4562eeac02946a6dd5a77b5e8057aa98134aafcc7a2a8c684", kill_on_drop: false }` [INFO] [stdout] 0f4705f3f874fdf4562eeac02946a6dd5a77b5e8057aa98134aafcc7a2a8c684 [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" "+1.60.0" "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] 7186b5c493059b148701210fa65e377b1c99fda5adb61b79fc6fb594ad191ab9 [INFO] running `Command { std: "docker" "start" "-a" "7186b5c493059b148701210fa65e377b1c99fda5adb61b79fc6fb594ad191ab9", kill_on_drop: false }` [INFO] [stderr] Compiling linked-hash-map v0.3.0 [INFO] [stderr] Compiling pom v1.1.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 11.00s [INFO] running `Command { std: "docker" "inspect" "7186b5c493059b148701210fa65e377b1c99fda5adb61b79fc6fb594ad191ab9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7186b5c493059b148701210fa65e377b1c99fda5adb61b79fc6fb594ad191ab9", kill_on_drop: false }` [INFO] [stdout] 7186b5c493059b148701210fa65e377b1c99fda5adb61b79fc6fb594ad191ab9 [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" "+1.60.0" "test" "--frozen" "--no-run" "--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] 563eacfb0b096fe344539b02b86c110e9a548178b05b030df068119a8d49b955 [INFO] running `Command { std: "docker" "start" "-a" "563eacfb0b096fe344539b02b86c110e9a548178b05b030df068119a8d49b955", kill_on_drop: false }` [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] 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] 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: 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] [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: 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] error: build failed [INFO] running `Command { std: "docker" "inspect" "563eacfb0b096fe344539b02b86c110e9a548178b05b030df068119a8d49b955", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "563eacfb0b096fe344539b02b86c110e9a548178b05b030df068119a8d49b955", kill_on_drop: false }` [INFO] [stdout] 563eacfb0b096fe344539b02b86c110e9a548178b05b030df068119a8d49b955