[INFO] cloning repository https://github.com/poi-mon/pdf-cooker
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/poi-mon/pdf-cooker" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpoi-mon%2Fpdf-cooker", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpoi-mon%2Fpdf-cooker'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 59d2b7b64630a56e9b8a4241306d5aa9adfab0bc
[INFO] checking poi-mon/pdf-cooker against 52995a223f2919dd3e2e427231db90a257350ded for pr-129249-4
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpoi-mon%2Fpdf-cooker" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/poi-mon/pdf-cooker
[INFO] finished tweaking git repo https://github.com/poi-mon/pdf-cooker
[INFO] tweaked toml for git repo https://github.com/poi-mon/pdf-cooker written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/poi-mon/pdf-cooker on toolchain 52995a223f2919dd3e2e427231db90a257350ded
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+52995a223f2919dd3e2e427231db90a257350ded" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/poi-mon/pdf-cooker already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+52995a223f2919dd3e2e427231db90a257350ded" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: Cargo.toml: unused manifest key: toolchain
[INFO] [stderr] warning: `pdf-cooker` (manifest) generated 1 warning
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 2c43544191f963af9e11160b69507ca3aaca3277167e2bde476597e2880f7d02
[INFO] running `Command { std: "docker" "start" "2c43544191f963af9e11160b69507ca3aaca3277167e2bde476597e2880f7d02", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "2c43544191f963af9e11160b69507ca3aaca3277167e2bde476597e2880f7d02", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "2c43544191f963af9e11160b69507ca3aaca3277167e2bde476597e2880f7d02" "/opt/rustwide/cargo-home/bin/cargo" "+52995a223f2919dd3e2e427231db90a257350ded" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "2c43544191f963af9e11160b69507ca3aaca3277167e2bde476597e2880f7d02", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "2c43544191f963af9e11160b69507ca3aaca3277167e2bde476597e2880f7d02" "/opt/rustwide/cargo-home/bin/cargo" "+52995a223f2919dd3e2e427231db90a257350ded" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr] warning: Cargo.toml: unused manifest key: toolchain
[INFO] [stderr] warning: `pdf-cooker` (manifest) generated 1 warning
[INFO] [stderr]    Compiling quote v1.0.37
[INFO] [stderr]    Compiling syn v2.0.90
[INFO] [stderr]    Compiling pin-project-internal v1.1.7
[INFO] [stderr]     Checking pin-project v1.1.7
[INFO] [stderr]     Checking pdf-cooker v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `crate::object::*`
[INFO] [stdout]  --> src/primitive.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::object::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `HashMap`
[INFO] [stdout]  --> src/page.rs:4:24
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::collections::{HashMap, HashSet};
[INFO] [stdout]   |                        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `BufMut`
[INFO] [stdout]  --> src/document.rs:4:23
[INFO] [stdout]   |
[INFO] [stdout] 4 | use bytes::{BytesMut, BufMut};
[INFO] [stdout]   |                       ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::object::*`
[INFO] [stdout]  --> src/primitive.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::object::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `HashMap`
[INFO] [stdout]  --> src/page.rs:4:24
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::collections::{HashMap, HashSet};
[INFO] [stdout]   |                        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `BufMut`
[INFO] [stdout]  --> src/document.rs:4:23
[INFO] [stdout]   |
[INFO] [stdout] 4 | use bytes::{BytesMut, BufMut};
[INFO] [stdout]   |                       ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `content` is never read
[INFO] [stdout]   --> src/page.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout]  7 | pub struct Page {
[INFO] [stdout]    |            ---- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 10 |     content: Content,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Page` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: useless conversion to the same type: `String`
[INFO] [stdout]    --> src/primitive.rs:163:21
[INFO] [stdout]     |
[INFO] [stdout] 161 |   macro_rules! pair {
[INFO] [stdout] 162 |       ($key:expr => $value:expr) => {
[INFO] [stdout] 163 |           Pair { key: $key.into(), value: Box::new($value.into()) }
[INFO] [stdout]     |                       ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/page.rs:51:9
[INFO] [stdout]     |
[INFO] [stdout]  51 | /         pair!(target.identifier => map![
[INFO] [stdout]  52 | |             "Type" => "Font",
[INFO] [stdout]  53 | |             "BaseFont" => target.base,
[INFO] [stdout]  54 | |             "SubType" => "Type1"
[INFO] [stdout]  55 | |         ])
[INFO] [stdout]     | |__________- in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = note: this method call relies on the `impl<T> Into<T> for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors
[INFO] [stdout]     = note: you can instead use the fully-qualified path `<String as Into<String>::into(val) to avoid triggering this lint
[INFO] [stdout]     = note: `#[deny(self_type_conversion)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: useless conversion to the same type: `primitive::Primitive`
[INFO] [stdout]    --> src/primitive.rs:163:50
[INFO] [stdout]     |
[INFO] [stdout] 161 |   macro_rules! pair {
[INFO] [stdout] 162 |       ($key:expr => $value:expr) => {
[INFO] [stdout] 163 |           Pair { key: $key.into(), value: Box::new($value.into()) }
[INFO] [stdout]     |                                                    ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/page.rs:51:9
[INFO] [stdout]     |
[INFO] [stdout]  51 | /         pair!(target.identifier => map![
[INFO] [stdout]  52 | |             "Type" => "Font",
[INFO] [stdout]  53 | |             "BaseFont" => target.base,
[INFO] [stdout]  54 | |             "SubType" => "Type1"
[INFO] [stdout]  55 | |         ])
[INFO] [stdout]     | |__________- in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = note: this method call relies on the `impl<T> Into<T> for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors
[INFO] [stdout]     = note: you can instead use the fully-qualified path `<primitive::Primitive as Into<primitive::Primitive>::into(val) to avoid triggering this lint
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: comparison is useless due to type limits
[INFO] [stdout]    --> src/primitive.rs:15:12
[INFO] [stdout]     |
[INFO] [stdout]  13 | macro_rules! indent {
[INFO] [stdout]  14 |     ($num:expr) => {
[INFO] [stdout]  15 |         if ($num >= 0) {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 116 |         writer.write_fmt(format_args!("{}/{} ", indent!(indent), self.key))?;
[INFO] [stdout]     |                                                 --------------- in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_comparisons)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/document.rs:55:13
[INFO] [stdout]    |
[INFO] [stdout] 55 |             obj.encode(&mut bytes);
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 55 |             let _ = obj.encode(&mut bytes);
[INFO] [stdout]    |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `pdf-cooker` (lib test) due to 2 previous errors; 6 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: field `content` is never read
[INFO] [stdout]   --> src/page.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout]  7 | pub struct Page {
[INFO] [stdout]    |            ---- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 10 |     content: Content,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Page` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: useless conversion to the same type: `String`
[INFO] [stdout]    --> src/primitive.rs:163:21
[INFO] [stdout]     |
[INFO] [stdout] 161 |   macro_rules! pair {
[INFO] [stdout] 162 |       ($key:expr => $value:expr) => {
[INFO] [stdout] 163 |           Pair { key: $key.into(), value: Box::new($value.into()) }
[INFO] [stdout]     |                       ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/page.rs:51:9
[INFO] [stdout]     |
[INFO] [stdout]  51 | /         pair!(target.identifier => map![
[INFO] [stdout]  52 | |             "Type" => "Font",
[INFO] [stdout]  53 | |             "BaseFont" => target.base,
[INFO] [stdout]  54 | |             "SubType" => "Type1"
[INFO] [stdout]  55 | |         ])
[INFO] [stdout]     | |__________- in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = note: this method call relies on the `impl<T> Into<T> for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors
[INFO] [stdout]     = note: you can instead use the fully-qualified path `<String as Into<String>::into(val) to avoid triggering this lint
[INFO] [stdout]     = note: `#[deny(self_type_conversion)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: useless conversion to the same type: `primitive::Primitive`
[INFO] [stdout]    --> src/primitive.rs:163:50
[INFO] [stdout]     |
[INFO] [stdout] 161 |   macro_rules! pair {
[INFO] [stdout] 162 |       ($key:expr => $value:expr) => {
[INFO] [stdout] 163 |           Pair { key: $key.into(), value: Box::new($value.into()) }
[INFO] [stdout]     |                                                    ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/page.rs:51:9
[INFO] [stdout]     |
[INFO] [stdout]  51 | /         pair!(target.identifier => map![
[INFO] [stdout]  52 | |             "Type" => "Font",
[INFO] [stdout]  53 | |             "BaseFont" => target.base,
[INFO] [stdout]  54 | |             "SubType" => "Type1"
[INFO] [stdout]  55 | |         ])
[INFO] [stdout]     | |__________- in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = note: this method call relies on the `impl<T> Into<T> for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors
[INFO] [stdout]     = note: you can instead use the fully-qualified path `<primitive::Primitive as Into<primitive::Primitive>::into(val) to avoid triggering this lint
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: comparison is useless due to type limits
[INFO] [stdout]    --> src/primitive.rs:15:12
[INFO] [stdout]     |
[INFO] [stdout]  13 | macro_rules! indent {
[INFO] [stdout]  14 |     ($num:expr) => {
[INFO] [stdout]  15 |         if ($num >= 0) {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 116 |         writer.write_fmt(format_args!("{}/{} ", indent!(indent), self.key))?;
[INFO] [stdout]     |                                                 --------------- in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_comparisons)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/document.rs:55:13
[INFO] [stdout]    |
[INFO] [stdout] 55 |             obj.encode(&mut bytes);
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 55 |             let _ = obj.encode(&mut bytes);
[INFO] [stdout]    |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `pdf-cooker` (lib) due to 2 previous errors; 6 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "2c43544191f963af9e11160b69507ca3aaca3277167e2bde476597e2880f7d02", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2c43544191f963af9e11160b69507ca3aaca3277167e2bde476597e2880f7d02", kill_on_drop: false }`
[INFO] [stdout] 2c43544191f963af9e11160b69507ca3aaca3277167e2bde476597e2880f7d02
