[INFO] cloning repository https://github.com/Stephin95/Rust_Pdf_Editor [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Stephin95/Rust_Pdf_Editor" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FStephin95%2FRust_Pdf_Editor", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FStephin95%2FRust_Pdf_Editor'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f1fb82a36aed504eff3c3856dbef10a857735eeb [INFO] building Stephin95/Rust_Pdf_Editor against master#222c5724ecc922fe67815f428c19f82c129d9386 for pr-97334 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FStephin95%2FRust_Pdf_Editor" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Stephin95/Rust_Pdf_Editor on toolchain 222c5724ecc922fe67815f428c19f82c129d9386 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+222c5724ecc922fe67815f428c19f82c129d9386" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Stephin95/Rust_Pdf_Editor [INFO] finished tweaking git repo https://github.com/Stephin95/Rust_Pdf_Editor [INFO] tweaked toml for git repo https://github.com/Stephin95/Rust_Pdf_Editor written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/Stephin95/Rust_Pdf_Editor already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+222c5724ecc922fe67815f428c19f82c129d9386" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serde_json v1.0.72 [INFO] [stderr] Downloaded serde v1.0.131 [INFO] [stderr] Downloaded ryu v1.0.7 [INFO] [stderr] Downloaded lopdf v0.27.0 [INFO] [stderr] Downloaded libc v0.2.111 [INFO] [stderr] Downloaded serde_derive v1.0.131 [INFO] [stderr] Downloaded crc32fast v1.3.0 [INFO] [stderr] Downloaded pom v3.2.0 [INFO] [stderr] Downloaded proc-macro2 v1.0.33 [INFO] [stderr] Downloaded syn v1.0.82 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+222c5724ecc922fe67815f428c19f82c129d9386" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 681118ff79ab1ce7c50d26d594f0d15c3ece794c8fdfb574737270e53fc516dc [INFO] running `Command { std: "docker" "start" "-a" "681118ff79ab1ce7c50d26d594f0d15c3ece794c8fdfb574737270e53fc516dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "681118ff79ab1ce7c50d26d594f0d15c3ece794c8fdfb574737270e53fc516dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "681118ff79ab1ce7c50d26d594f0d15c3ece794c8fdfb574737270e53fc516dc", kill_on_drop: false }` [INFO] [stdout] 681118ff79ab1ce7c50d26d594f0d15c3ece794c8fdfb574737270e53fc516dc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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=forbid" "-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:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+222c5724ecc922fe67815f428c19f82c129d9386" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b935d0d0bdfcbfd06be290e7449a5e87d09ac62bf9fe540a7d8c949cf460ae9f [INFO] running `Command { std: "docker" "start" "-a" "b935d0d0bdfcbfd06be290e7449a5e87d09ac62bf9fe540a7d8c949cf460ae9f", 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] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling libc v0.2.111 [INFO] [stderr] Compiling proc-macro2 v1.0.33 [INFO] [stderr] Compiling encoding_index_tests v0.1.4 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.82 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling const_fn v0.4.8 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling crc32fast v1.3.0 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling weezl v0.1.5 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling pom v3.2.0 [INFO] [stderr] Compiling dtoa v0.4.8 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling linked-hash-map v0.5.4 [INFO] [stderr] Compiling encoding-index-japanese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-simpchinese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-singlebyte v1.20141219.5 [INFO] [stderr] Compiling encoding-index-korean v1.20141219.5 [INFO] [stderr] Compiling encoding-index-tradchinese v1.20141219.5 [INFO] [stderr] Compiling encoding v0.2.33 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling flate2 v1.0.22 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling env_logger v0.9.0 [INFO] [stderr] Compiling lopdf v0.27.0 [INFO] [stderr] Compiling pdf_editor v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Level`, `debug`, `error`, `log_enabled` [INFO] [stdout] --> src/lib.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use log::{debug, error, log_enabled, info, Level}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Stream` [INFO] [stdout] --> src/lib.rs:5:45 [INFO] [stdout] | [INFO] [stdout] 5 | use lopdf::{Document, Object, ObjectId, Stream,Bookmark}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Content`, `Operation` [INFO] [stdout] --> src/lib.rs:7:26 [INFO] [stdout] | [INFO] [stdout] 7 | use lopdf::content::{Content, Operation}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `is_out_path` is never read [INFO] [stdout] --> src/lib.rs:31:17 [INFO] [stdout] | [INFO] [stdout] 31 | is_out_path=false; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | let mut doc_res = Document::load(&path); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:59:17 [INFO] [stdout] | [INFO] [stdout] 59 | let mut documents=load_pdfs(filepath); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 17.04s [INFO] running `Command { std: "docker" "inspect" "b935d0d0bdfcbfd06be290e7449a5e87d09ac62bf9fe540a7d8c949cf460ae9f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b935d0d0bdfcbfd06be290e7449a5e87d09ac62bf9fe540a7d8c949cf460ae9f", kill_on_drop: false }` [INFO] [stdout] b935d0d0bdfcbfd06be290e7449a5e87d09ac62bf9fe540a7d8c949cf460ae9f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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=forbid" "-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:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+222c5724ecc922fe67815f428c19f82c129d9386" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b52e634a53bdb9672421cfedc2b1528f168593173db6eba4558c269ac5f269ec [INFO] running `Command { std: "docker" "start" "-a" "b52e634a53bdb9672421cfedc2b1528f168593173db6eba4558c269ac5f269ec", 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] [stdout] warning: unused imports: `Level`, `debug`, `error`, `log_enabled` [INFO] [stdout] --> src/lib.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use log::{debug, error, log_enabled, info, Level}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Stream` [INFO] [stdout] --> src/lib.rs:5:45 [INFO] [stdout] | [INFO] [stdout] 5 | use lopdf::{Document, Object, ObjectId, Stream,Bookmark}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Content`, `Operation` [INFO] [stdout] --> src/lib.rs:7:26 [INFO] [stdout] | [INFO] [stdout] 7 | use lopdf::content::{Content, Operation}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `is_out_path` is never read [INFO] [stdout] --> src/lib.rs:31:17 [INFO] [stdout] | [INFO] [stdout] 31 | is_out_path=false; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | let mut doc_res = Document::load(&path); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling pdf_editor v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Level`, `debug`, `error`, `log_enabled` [INFO] [stdout] --> src/lib.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use log::{debug, error, log_enabled, info, Level}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Stream` [INFO] [stdout] --> src/lib.rs:5:45 [INFO] [stdout] | [INFO] [stdout] 5 | use lopdf::{Document, Object, ObjectId, Stream,Bookmark}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Content`, `Operation` [INFO] [stdout] --> src/lib.rs:7:26 [INFO] [stdout] | [INFO] [stdout] 7 | use lopdf::content::{Content, Operation}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:59:17 [INFO] [stdout] | [INFO] [stdout] 59 | let mut documents=load_pdfs(filepath); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `is_out_path` is never read [INFO] [stdout] --> src/lib.rs:31:17 [INFO] [stdout] | [INFO] [stdout] 31 | is_out_path=false; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | let mut doc_res = Document::load(&path); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 3.68s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/pdf_editor-8ca0d396f02d674e) [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/pdf_editor-021793ee22fa170a) [INFO] running `Command { std: "docker" "inspect" "b52e634a53bdb9672421cfedc2b1528f168593173db6eba4558c269ac5f269ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b52e634a53bdb9672421cfedc2b1528f168593173db6eba4558c269ac5f269ec", kill_on_drop: false }` [INFO] [stdout] b52e634a53bdb9672421cfedc2b1528f168593173db6eba4558c269ac5f269ec