[INFO] cloning repository https://github.com/yossan/pdfbat [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/yossan/pdfbat" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyossan%2Fpdfbat", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyossan%2Fpdfbat'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4fafd24ec58a91390d8120a9e03d65c6f86d4d6e [INFO] checking yossan/pdfbat against master#b0696a5160711c068cb1f01b7437db7990d15750 for pr-121848 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyossan%2Fpdfbat" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/yossan/pdfbat on toolchain b0696a5160711c068cb1f01b7437db7990d15750 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b0696a5160711c068cb1f01b7437db7990d15750" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/yossan/pdfbat [INFO] finished tweaking git repo https://github.com/yossan/pdfbat [INFO] tweaked toml for git repo https://github.com/yossan/pdfbat written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/yossan/pdfbat 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" "+b0696a5160711c068cb1f01b7437db7990d15750" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking yossan/pdfbat against try#bfe97fcae016881ad333f0ff8cea2cadb9cf136c for pr-121848 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyossan%2Fpdfbat" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/yossan/pdfbat on toolchain bfe97fcae016881ad333f0ff8cea2cadb9cf136c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bfe97fcae016881ad333f0ff8cea2cadb9cf136c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/yossan/pdfbat [INFO] finished tweaking git repo https://github.com/yossan/pdfbat [INFO] tweaked toml for git repo https://github.com/yossan/pdfbat written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/yossan/pdfbat 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" "+bfe97fcae016881ad333f0ff8cea2cadb9cf136c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+bfe97fcae016881ad333f0ff8cea2cadb9cf136c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 489585c81b8052cb5419b65296ee56a45464c4f470341b84694246b5947b0b9a [INFO] running `Command { std: "docker" "start" "-a" "489585c81b8052cb5419b65296ee56a45464c4f470341b84694246b5947b0b9a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "489585c81b8052cb5419b65296ee56a45464c4f470341b84694246b5947b0b9a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "489585c81b8052cb5419b65296ee56a45464c4f470341b84694246b5947b0b9a", kill_on_drop: false }` [INFO] [stdout] 489585c81b8052cb5419b65296ee56a45464c4f470341b84694246b5947b0b9a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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" "RUSTDOCFLAGS=--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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+bfe97fcae016881ad333f0ff8cea2cadb9cf136c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6120473b4747394ee9a534985ff2910c00ead9005bd5ab8bd33f41b98d52134b [INFO] running `Command { std: "docker" "start" "-a" "6120473b4747394ee9a534985ff2910c00ead9005bd5ab8bd33f41b98d52134b", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.29 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.76 [INFO] [stderr] Compiling anyhow v1.0.43 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling thiserror-impl v1.0.29 [INFO] [stderr] Checking thiserror v1.0.29 [INFO] [stderr] Checking pdfbat v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::stream::Stream` [INFO] [stdout] --> src/primitives.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::stream::Stream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::primitives::Name` [INFO] [stdout] --> src/lexer.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::primitives::Name; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Stream` [INFO] [stdout] --> src/parser.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::stream::{Stream, ReadSeek}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HexStr`, `Null`, `Real`, `Str` [INFO] [stdout] --> src/parser.rs:5:43 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::primitives::Primitives::{self, Null, Int, Str, HexStr, Real, Array, Dict, Ref, Cmd, EOF}; [INFO] [stdout] | ^^^^ ^^^ ^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `get_str` [INFO] [stdout] --> src/xref.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | macro_rules! get_str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `get_cmd` [INFO] [stdout] --> src/xref.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 14 | macro_rules! get_cmd { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/reader.rs:143:19 [INFO] [stdout] | [INFO] [stdout] 143 | use std::fs::{self}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::stream::Stream` [INFO] [stdout] --> src/primitives.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::stream::Stream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::primitives::Name` [INFO] [stdout] --> src/lexer.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::primitives::Name; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Stream` [INFO] [stdout] --> src/parser.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::stream::{Stream, ReadSeek}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HexStr`, `Null`, `Real`, `Str` [INFO] [stdout] --> src/parser.rs:5:43 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::primitives::Primitives::{self, Null, Int, Str, HexStr, Real, Array, Dict, Ref, Cmd, EOF}; [INFO] [stdout] | ^^^^ ^^^ ^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `get_str` [INFO] [stdout] --> src/xref.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | macro_rules! get_str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `get_cmd` [INFO] [stdout] --> src/xref.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 14 | macro_rules! get_cmd { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get` found for unit type `()` in the current scope [INFO] [stdout] --> src/xref.rs:46:31 [INFO] [stdout] | [INFO] [stdout] 46 | let root = trait_dict.get("Root"); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `ge` with a similar name [INFO] [stdout] | [INFO] [stdout] 46 | let root = trait_dict.ge("Root"); [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get` found for unit type `()` in the current scope [INFO] [stdout] --> src/xref.rs:46:31 [INFO] [stdout] | [INFO] [stdout] 46 | let root = trait_dict.get("Root"); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `ge` with a similar name [INFO] [stdout] | [INFO] [stdout] 46 | let root = trait_dict.ge("Root"); [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `clone` exists for struct `Stream`, but its trait bounds were not satisfied [INFO] [stdout] --> src/xref.rs:68:48 [INFO] [stdout] | [INFO] [stdout] 68 | let lexer = Lexer::new(self.stream.clone()); [INFO] [stdout] | ^^^^^ method cannot be called on `Stream` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/stream.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Stream { [INFO] [stdout] | -------------------- method `clone` not found for this struct because it doesn't satisfy `Stream: Clone` [INFO] [stdout] | [INFO] [stdout] note: trait bound `T: Clone` was not satisfied [INFO] [stdout] --> src/stream.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Clone, Copy)] [INFO] [stdout] | ^^^^^ unsatisfied trait bound introduced in this `derive` macro [INFO] [stdout] help: consider restricting the type parameter to satisfy the trait bound [INFO] [stdout] --> src/stream.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Stream where T: Clone { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `top_dict` on type `&mut XRef` [INFO] [stdout] --> src/xref.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | if self.top_dict.is_none() { [INFO] [stdout] | ^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `stream`, `startxref_queue`, `password`, `table_state`, `entries` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `top_dict` on type `&mut XRef` [INFO] [stdout] --> src/xref.rs:75:26 [INFO] [stdout] | [INFO] [stdout] 75 | self.top_dict = dict; [INFO] [stdout] | ^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `stream`, `startxref_queue`, `password`, `table_state`, `entries` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `clone` exists for struct `Stream`, but its trait bounds were not satisfied [INFO] [stdout] --> src/xref.rs:68:48 [INFO] [stdout] | [INFO] [stdout] 68 | let lexer = Lexer::new(self.stream.clone()); [INFO] [stdout] | ^^^^^ method cannot be called on `Stream` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/stream.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Stream { [INFO] [stdout] | -------------------- method `clone` not found for this struct because it doesn't satisfy `Stream: Clone` [INFO] [stdout] | [INFO] [stdout] note: trait bound `T: Clone` was not satisfied [INFO] [stdout] --> src/stream.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Clone, Copy)] [INFO] [stdout] | ^^^^^ unsatisfied trait bound introduced in this `derive` macro [INFO] [stdout] help: consider restricting the type parameter to satisfy the trait bound [INFO] [stdout] --> src/stream.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Stream where T: Clone { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `top_dict` on type `&mut XRef` [INFO] [stdout] --> src/xref.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | if self.top_dict.is_none() { [INFO] [stdout] | ^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `stream`, `startxref_queue`, `password`, `table_state`, `entries` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `top_dict` on type `&mut XRef` [INFO] [stdout] --> src/xref.rs:75:26 [INFO] [stdout] | [INFO] [stdout] 75 | self.top_dict = dict; [INFO] [stdout] | ^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `stream`, `startxref_queue`, `password`, `table_state`, `entries` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `lexer` found for struct `Parser` in the current scope [INFO] [stdout] --> src/xref.rs:84:32 [INFO] [stdout] | [INFO] [stdout] 84 | stream_pos: parser.lexer().stream().pos(), [INFO] [stdout] | ^^^^^ private field, not a method [INFO] [stdout] | [INFO] [stdout] ::: src/parser.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Parser { [INFO] [stdout] | -------------------- method `lexer` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/xref.rs:136:49 [INFO] [stdout] | [INFO] [stdout] 136 | table_state.set_first_entry_num(get_integer!(obj)); [INFO] [stdout] | ------------------- ^^^^^^^^^^^^^^^^^ expected `i64`, found `Result` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type `i64` [INFO] [stdout] found enum `Result` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/xref.rs:225:8 [INFO] [stdout] | [INFO] [stdout] 225 | fn set_first_entry_num(&mut self, num: i64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ -------- [INFO] [stdout] help: use the `?` operator to extract the `Result` value, propagating a `Result::Err` value to the caller [INFO] [stdout] | [INFO] [stdout] 8 | ($obj:expr) => { $obj.get_integer().ok_or_else(|| Error::ParserError)? }; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `lexer` found for struct `Parser` in the current scope [INFO] [stdout] --> src/xref.rs:84:32 [INFO] [stdout] | [INFO] [stdout] 84 | stream_pos: parser.lexer().stream().pos(), [INFO] [stdout] | ^^^^^ private field, not a method [INFO] [stdout] | [INFO] [stdout] ::: src/parser.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Parser { [INFO] [stdout] | -------------------- method `lexer` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/xref.rs:136:49 [INFO] [stdout] | [INFO] [stdout] 136 | table_state.set_first_entry_num(get_integer!(obj)); [INFO] [stdout] | ------------------- ^^^^^^^^^^^^^^^^^ expected `i64`, found `Result` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type `i64` [INFO] [stdout] found enum `Result` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/xref.rs:225:8 [INFO] [stdout] | [INFO] [stdout] 225 | fn set_first_entry_num(&mut self, num: i64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ -------- [INFO] [stdout] help: use the `?` operator to extract the `Result` value, propagating a `Result::Err` value to the caller [INFO] [stdout] | [INFO] [stdout] 8 | ($obj:expr) => { $obj.get_integer().ok_or_else(|| Error::ParserError)? }; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/xref.rs:138:45 [INFO] [stdout] | [INFO] [stdout] 138 | table_state.set_entry_count(get_integer!(next)); [INFO] [stdout] | --------------- ^^^^^^^^^^^^^^^^^^ expected `i64`, found `Result` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type `i64` [INFO] [stdout] found enum `Result` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/xref.rs:228:8 [INFO] [stdout] | [INFO] [stdout] 228 | fn set_entry_count(&mut self, count: i64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ ---------- [INFO] [stdout] help: use the `?` operator to extract the `Result` value, propagating a `Result::Err` value to the caller [INFO] [stdout] | [INFO] [stdout] 8 | ($obj:expr) => { $obj.get_integer().ok_or_else(|| Error::ParserError)? }; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/xref.rs:138:45 [INFO] [stdout] | [INFO] [stdout] 138 | table_state.set_entry_count(get_integer!(next)); [INFO] [stdout] | --------------- ^^^^^^^^^^^^^^^^^^ expected `i64`, found `Result` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type `i64` [INFO] [stdout] found enum `Result` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/xref.rs:228:8 [INFO] [stdout] | [INFO] [stdout] 228 | fn set_entry_count(&mut self, count: i64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ ---------- [INFO] [stdout] help: use the `?` operator to extract the `Result` value, propagating a `Result::Err` value to the caller [INFO] [stdout] | [INFO] [stdout] 8 | ($obj:expr) => { $obj.get_integer().ok_or_else(|| Error::ParserError)? }; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `lexer` found for mutable reference `&mut Parser` in the current scope [INFO] [stdout] --> src/xref.rs:147:49 [INFO] [stdout] | [INFO] [stdout] 147 | table_state.stream_pos = parser.lexer().stream().pos(); [INFO] [stdout] | ^^^^^ private field, not a method [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/xref.rs:167:29 [INFO] [stdout] | [INFO] [stdout] 167 | offset: offset, [INFO] [stdout] | ^^^^^^ expected `i64`, found `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected type `i64` [INFO] [stdout] found enum `Result` [INFO] [stdout] help: use the `?` operator to extract the `Result` value, propagating a `Result::Err` value to the caller [INFO] [stdout] | [INFO] [stdout] 167 | offset: offset?, [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/xref.rs:168:26 [INFO] [stdout] | [INFO] [stdout] 168 | gen: gen, [INFO] [stdout] | ^^^ expected `i64`, found `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected type `i64` [INFO] [stdout] found enum `Result` [INFO] [stdout] help: use the `?` operator to extract the `Result` value, propagating a `Result::Err` value to the caller [INFO] [stdout] | [INFO] [stdout] 168 | gen: gen?, [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `lexer` found for mutable reference `&mut Parser` in the current scope [INFO] [stdout] --> src/xref.rs:147:49 [INFO] [stdout] | [INFO] [stdout] 147 | table_state.stream_pos = parser.lexer().stream().pos(); [INFO] [stdout] | ^^^^^ private field, not a method [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/xref.rs:167:29 [INFO] [stdout] | [INFO] [stdout] 167 | offset: offset, [INFO] [stdout] | ^^^^^^ expected `i64`, found `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected type `i64` [INFO] [stdout] found enum `Result` [INFO] [stdout] help: use the `?` operator to extract the `Result` value, propagating a `Result::Err` value to the caller [INFO] [stdout] | [INFO] [stdout] 167 | offset: offset?, [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/xref.rs:168:26 [INFO] [stdout] | [INFO] [stdout] 168 | gen: gen, [INFO] [stdout] | ^^^ expected `i64`, found `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected type `i64` [INFO] [stdout] found enum `Result` [INFO] [stdout] help: use the `?` operator to extract the `Result` value, propagating a `Result::Err` value to the caller [INFO] [stdout] | [INFO] [stdout] 168 | gen: gen?, [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `lexer` found for mutable reference `&mut Parser` in the current scope [INFO] [stdout] --> src/xref.rs:189:45 [INFO] [stdout] | [INFO] [stdout] 189 | table_state.stream_pos = parser.lexer().stream().pos(); [INFO] [stdout] | ^^^^^ private field, not a method [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `lexer` found for mutable reference `&mut Parser` in the current scope [INFO] [stdout] --> src/xref.rs:189:45 [INFO] [stdout] | [INFO] [stdout] 189 | table_state.stream_pos = parser.lexer().stream().pos(); [INFO] [stdout] | ^^^^^ private field, not a method [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `lexer` found for reference `&Parser` in the current scope [INFO] [stdout] --> src/xref.rs:218:32 [INFO] [stdout] | [INFO] [stdout] 218 | stream_pos: parser.lexer().stream().pos(), [INFO] [stdout] | ^^^^^ private field, not a method [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/reader.rs:11:22 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn load_data(data: Vec) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_xref` [INFO] [stdout] --> src/reader.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let start_xref = { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_xref` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `startxref` [INFO] [stdout] --> src/reader.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let startxref = self.parse_startxref(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_startxref` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `start_xref` is never read [INFO] [stdout] --> src/reader.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | let mut start_xref = 0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `lexer` found for reference `&Parser` in the current scope [INFO] [stdout] --> src/xref.rs:218:32 [INFO] [stdout] | [INFO] [stdout] 218 | stream_pos: parser.lexer().stream().pos(), [INFO] [stdout] | ^^^^^ private field, not a method [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/primitives.rs:86:32 [INFO] [stdout] | [INFO] [stdout] 86 | if let Primitives::Int(num) = self { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/reader.rs:11:22 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn load_data(data: Vec) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_xref` [INFO] [stdout] --> src/reader.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let start_xref = { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_xref` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `startxref` [INFO] [stdout] --> src/reader.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let startxref = self.parse_startxref(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_startxref` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `start_xref` is never read [INFO] [stdout] --> src/reader.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | let mut start_xref = 0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `second_digit` is never read [INFO] [stdout] --> src/lexer.rs:335:17 [INFO] [stdout] | [INFO] [stdout] 335 | let mut second_digit: Option = None; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [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/lexer.rs:439:24 [INFO] [stdout] | [INFO] [stdout] 439 | while let Some(mut ch) = self.next_char() { [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: variable does not need to be mutable [INFO] [stdout] --> src/lexer.rs:468:13 [INFO] [stdout] | [INFO] [stdout] 468 | let mut next_obj = self.get_obj(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/primitives.rs:86:32 [INFO] [stdout] | [INFO] [stdout] 86 | if let Primitives::Int(num) = self { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/parser.rs:84:25 [INFO] [stdout] | [INFO] [stdout] 84 | let mut i = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:84:21 [INFO] [stdout] | [INFO] [stdout] 84 | let mut i = 0; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dict` [INFO] [stdout] --> src/parser.rs:145:27 [INFO] [stdout] | [INFO] [stdout] 145 | fn make_stream(&self, dict: HashMap) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dict` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 12 previous errors; 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `second_digit` is never read [INFO] [stdout] --> src/lexer.rs:335:17 [INFO] [stdout] | [INFO] [stdout] 335 | let mut second_digit: Option = None; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0599, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lexer.rs:439:24 [INFO] [stdout] | [INFO] [stdout] 439 | while let Some(mut ch) = self.next_char() { [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: variable does not need to be mutable [INFO] [stdout] --> src/lexer.rs:468:13 [INFO] [stdout] | [INFO] [stdout] 468 | let mut next_obj = self.get_obj(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/parser.rs:84:25 [INFO] [stdout] | [INFO] [stdout] 84 | let mut i = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `pdfbat` (lib) due to 13 previous errors; 17 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:84:21 [INFO] [stdout] | [INFO] [stdout] 84 | let mut i = 0; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dict` [INFO] [stdout] --> src/parser.rs:145:27 [INFO] [stdout] | [INFO] [stdout] 145 | fn make_stream(&self, dict: HashMap) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dict` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 12 previous errors; 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0599, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `pdfbat` (lib test) due to 13 previous errors; 18 warnings emitted [INFO] running `Command { std: "docker" "inspect" "6120473b4747394ee9a534985ff2910c00ead9005bd5ab8bd33f41b98d52134b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6120473b4747394ee9a534985ff2910c00ead9005bd5ab8bd33f41b98d52134b", kill_on_drop: false }` [INFO] [stdout] 6120473b4747394ee9a534985ff2910c00ead9005bd5ab8bd33f41b98d52134b