[INFO] fetching crate screenplay-doc-parser-rs 0.1.8... [INFO] checking screenplay-doc-parser-rs-0.1.8 against master#8c32e313cccf7df531e2d49ffb8227bb92304aee for pr-145608-1 [INFO] extracting crate screenplay-doc-parser-rs 0.1.8 into /workspace/builds/worker-7-tc1/source [INFO] started tweaking crates.io crate screenplay-doc-parser-rs 0.1.8 [INFO] finished tweaking crates.io crate screenplay-doc-parser-rs 0.1.8 [INFO] tweaked toml for crates.io crate screenplay-doc-parser-rs 0.1.8 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate screenplay-doc-parser-rs 0.1.8 on toolchain 8c32e313cccf7df531e2d49ffb8227bb92304aee [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate screenplay-doc-parser-rs 0.1.8 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" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded mupdf-basic-text-extractor v0.4.0 [INFO] [stderr] Downloaded mupdf v0.5.0 [INFO] [stderr] Downloaded mupdf-sys v0.5.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 15ba0795f75d31dd2adaffd2a8bd175480ab3b1c5a620d53e132addd392d774b [INFO] running `Command { std: "docker" "start" "-a" "15ba0795f75d31dd2adaffd2a8bd175480ab3b1c5a620d53e132addd392d774b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "15ba0795f75d31dd2adaffd2a8bd175480ab3b1c5a620d53e132addd392d774b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "15ba0795f75d31dd2adaffd2a8bd175480ab3b1c5a620d53e132addd392d774b", kill_on_drop: false }` [INFO] [stdout] 15ba0795f75d31dd2adaffd2a8bd175480ab3b1c5a620d53e132addd392d774b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] da58aa51875fe4b9c728f5d9cb8484cabd35e426e3fdcadaf4e4d8b4d398ceeb [INFO] running `Command { std: "docker" "start" "-a" "da58aa51875fe4b9c728f5d9cb8484cabd35e426e3fdcadaf4e4d8b4d398ceeb", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Checking getrandom v0.3.3 [INFO] [stderr] Checking dateparser v0.2.1 [INFO] [stderr] Checking uuid v1.17.0 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Checking screenplay-doc-parser-rs v0.1.8 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fmt::Error` [INFO] [stdout] --> src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/reports.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | collections::{HashMap, HashSet}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/reports.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | ) -> Option<(Vec<&'a screenplay_document::LocationID>)> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 17 - ) -> Option<(Vec<&'a screenplay_document::LocationID>)> { [INFO] [stdout] 17 + ) -> Option> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/reports.rs:1095:39 [INFO] [stdout] | [INFO] [stdout] 1095 | let scenes_within_page_range: Vec<(_)> = scenes_ordered [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1095 - let scenes_within_page_range: Vec<(_)> = scenes_ordered [INFO] [stdout] 1095 + let scenes_within_page_range: Vec<_> = scenes_ordered [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/reports.rs:1116:39 [INFO] [stdout] | [INFO] [stdout] 1116 | let scenes_within_page_range: Vec<(_)> = scenes_ordered [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1116 - let scenes_within_page_range: Vec<(_)> = scenes_ordered [INFO] [stdout] 1116 + let scenes_within_page_range: Vec<_> = scenes_ordered [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::panic` [INFO] [stdout] --> src/screenplay_document.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use core::panic; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Instant` [INFO] [stdout] --> src/screenplay_document.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | time::{Instant, }, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::num` [INFO] [stdout] --> src/pdf_parser.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use core::num; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::time` [INFO] [stdout] --> src/pdf_parser.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use core::time; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> src/pdf_parser.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Not` [INFO] [stdout] --> src/pdf_parser.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::ops::Not; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::id` [INFO] [stdout] --> src/pdf_parser.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::process::id; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::RwLockReadGuard` [INFO] [stdout] --> src/pdf_parser.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::sync::RwLockReadGuard; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::panicking` [INFO] [stdout] --> src/pdf_parser.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::thread::panicking; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/pdf_parser.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/pdf_parser.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 40 | unimplemented!(); [INFO] [stdout] | ---------------- any code following this expression is unreachable [INFO] [stdout] 41 | let mut x_pos_vec: Vec = Vec::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/reports.rs:169:16 [INFO] [stdout] | [INFO] [stdout] 169 | .map(|(s, scn)| &scn.story_locations) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scn` [INFO] [stdout] --> src/reports.rs:190:68 [INFO] [stdout] | [INFO] [stdout] 190 | let all_locations_vec: Vec<_> = all_locations.iter().map(|(id, scn)| id).collect(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scene_id` [INFO] [stdout] --> src/reports.rs:227:23 [INFO] [stdout] | [INFO] [stdout] 227 | .filter_map(|(scene_id, scene)| { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scene_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scene` [INFO] [stdout] --> src/reports.rs:269:33 [INFO] [stdout] | [INFO] [stdout] 269 | let Some((scene_id, scene)) = [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_scene` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ln` [INFO] [stdout] --> src/reports.rs:268:26 [INFO] [stdout] | [INFO] [stdout] 268 | .filter(|(coord, ln)| { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ln` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scn` [INFO] [stdout] --> src/reports.rs:542:26 [INFO] [stdout] | [INFO] [stdout] 542 | for (scn_id, scn) in &filtered { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a_id` [INFO] [stdout] --> src/reports.rs:622:26 [INFO] [stdout] | [INFO] [stdout] 622 | all_scenes.sort_by(|(a_id, a_scn), (b_id, b_scn)| { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_a_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b_id` [INFO] [stdout] --> src/reports.rs:622:41 [INFO] [stdout] | [INFO] [stdout] 622 | all_scenes.sort_by(|(a_id, a_scn), (b_id, b_scn)| { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_b_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scn` [INFO] [stdout] --> src/reports.rs:745:26 [INFO] [stdout] | [INFO] [stdout] 745 | for (scn_id, scn) in &scenes_in_range { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scene_id` [INFO] [stdout] --> src/reports.rs:960:10 [INFO] [stdout] | [INFO] [stdout] 960 | for (scene_id, checked_scene) in scene_ids { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scene_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scn_id` [INFO] [stdout] --> src/reports.rs:1097:19 [INFO] [stdout] | [INFO] [stdout] 1097 | .filter(|(scn_id, scn)| pages_range.0 < scn.start.page && scn.start.page < pages_range.1) [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scn_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scn_id` [INFO] [stdout] --> src/reports.rs:1118:19 [INFO] [stdout] | [INFO] [stdout] 1118 | .filter(|(scn_id, scn)| pages_range.0 < scn.start.page && scn.start.page < pages_range.1) [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scn_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Error` [INFO] [stdout] --> src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/reports.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | collections::{HashMap, HashSet}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/reports.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | ) -> Option<(Vec<&'a screenplay_document::LocationID>)> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 17 - ) -> Option<(Vec<&'a screenplay_document::LocationID>)> { [INFO] [stdout] 17 + ) -> Option> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/reports.rs:1095:39 [INFO] [stdout] | [INFO] [stdout] 1095 | let scenes_within_page_range: Vec<(_)> = scenes_ordered [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1095 - let scenes_within_page_range: Vec<(_)> = scenes_ordered [INFO] [stdout] 1095 + let scenes_within_page_range: Vec<_> = scenes_ordered [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/reports.rs:1116:39 [INFO] [stdout] | [INFO] [stdout] 1116 | let scenes_within_page_range: Vec<(_)> = scenes_ordered [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1116 - let scenes_within_page_range: Vec<(_)> = scenes_ordered [INFO] [stdout] 1116 + let scenes_within_page_range: Vec<_> = scenes_ordered [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::panic` [INFO] [stdout] --> src/screenplay_document.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use core::panic; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Instant` [INFO] [stdout] --> src/screenplay_document.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | time::{Instant, }, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::num` [INFO] [stdout] --> src/pdf_parser.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use core::num; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::time` [INFO] [stdout] --> src/pdf_parser.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use core::time; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> src/pdf_parser.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Not` [INFO] [stdout] --> src/pdf_parser.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::ops::Not; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::id` [INFO] [stdout] --> src/pdf_parser.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::process::id; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::RwLockReadGuard` [INFO] [stdout] --> src/pdf_parser.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::sync::RwLockReadGuard; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::panicking` [INFO] [stdout] --> src/pdf_parser.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::thread::panicking; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/pdf_parser.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EnvironmentStrings` and `TimeOfDayCollection` [INFO] [stdout] --> src/lib.rs:18:31 [INFO] [stdout] | [INFO] [stdout] 18 | screenplay_document::{EnvironmentStrings, SPType, TimeOfDayCollection}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pdfdoc` [INFO] [stdout] --> src/pdf_parser.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | pdfdoc: &pdf_document::PDFDocument, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pdfdoc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pdf_word` [INFO] [stdout] --> src/pdf_parser.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 84 | pdf_word: &pdf_document::Word, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pdf_word` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `element_indentaions_pts` [INFO] [stdout] --> src/pdf_parser.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 85 | element_indentaions_pts: &ElementIndentationsPoints, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_element_indentaions_pts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pdf_word` [INFO] [stdout] --> src/pdf_parser.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | pdf_word: &pdf_document::Word, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pdf_word` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_line` [INFO] [stdout] --> src/pdf_parser.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | new_line: &screenplay_document::Line, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `element_indentaions_pts` [INFO] [stdout] --> src/pdf_parser.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | element_indentaions_pts: &ElementIndentationsPoints, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_element_indentaions_pts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time_of_day_strs` [INFO] [stdout] --> src/pdf_parser.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | time_of_day_strs: &screenplay_document::TimeOfDayCollection, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_time_of_day_strs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `environment_strs` [INFO] [stdout] --> src/pdf_parser.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | environment_strs: &screenplay_document::EnvironmentStrings, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_environment_strs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r_marker` [INFO] [stdout] --> src/pdf_parser.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | r_marker: &String, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_r_marker` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/pdf_parser.rs:162:17 [INFO] [stdout] | [INFO] [stdout] 159 | SPType::SP_SCENE_HEADING(SceneHeadingElement::Location) => { [INFO] [stdout] | ------------------------------------------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 162 | SPType::SP_SCENE_HEADING(SceneHeadingElement::Location) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rightedge` [INFO] [stdout] --> src/pdf_parser.rs:298:21 [INFO] [stdout] | [INFO] [stdout] 298 | let rightedge: f64 = wordwidth + pdf_word.position.x; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rightedge` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pdf_l_idx` [INFO] [stdout] --> src/pdf_parser.rs:387:14 [INFO] [stdout] | [INFO] [stdout] 387 | for (pdf_l_idx, pdf_line) in pdf_page.lines.iter().enumerate() { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pdf_l_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pdf_parser.rs:368:13 [INFO] [stdout] | [INFO] [stdout] 368 | let mut line_height: f64 = 12.0; //This line height could be identified either here in-line or in [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/pdf_parser.rs:378:13 [INFO] [stdout] | [INFO] [stdout] 378 | let mut current_resolution: f64 = 72.0; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/pdf_parser.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 40 | unimplemented!(); [INFO] [stdout] | ---------------- any code following this expression is unreachable [INFO] [stdout] 41 | let mut x_pos_vec: Vec = Vec::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `mupdf_basic_parser` [INFO] [stdout] --> src/lib.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | mupdf_basic_parser::get_pdf_obj_from_filepath("test_data/VCR2L.pdf".to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `mupdf_basic_parser` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/lib.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | #[cfg(feature = "mupdf-basic-parsing")] [INFO] [stdout] | ------------------------------- the item is gated behind the `mupdf-basic-parsing` feature [INFO] [stdout] 10 | pub mod mupdf_basic_parser; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: to make use of source file src/mupdf_basic_parser.rs, use `mod mupdf_basic_parser` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 1 + mod mupdf_basic_parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/reports.rs:169:16 [INFO] [stdout] | [INFO] [stdout] 169 | .map(|(s, scn)| &scn.story_locations) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scn` [INFO] [stdout] --> src/reports.rs:190:68 [INFO] [stdout] | [INFO] [stdout] 190 | let all_locations_vec: Vec<_> = all_locations.iter().map(|(id, scn)| id).collect(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scene_id` [INFO] [stdout] --> src/reports.rs:227:23 [INFO] [stdout] | [INFO] [stdout] 227 | .filter_map(|(scene_id, scene)| { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scene_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scene` [INFO] [stdout] --> src/reports.rs:269:33 [INFO] [stdout] | [INFO] [stdout] 269 | let Some((scene_id, scene)) = [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_scene` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ln` [INFO] [stdout] --> src/reports.rs:268:26 [INFO] [stdout] | [INFO] [stdout] 268 | .filter(|(coord, ln)| { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ln` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scn` [INFO] [stdout] --> src/reports.rs:542:26 [INFO] [stdout] | [INFO] [stdout] 542 | for (scn_id, scn) in &filtered { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a_id` [INFO] [stdout] --> src/reports.rs:622:26 [INFO] [stdout] | [INFO] [stdout] 622 | all_scenes.sort_by(|(a_id, a_scn), (b_id, b_scn)| { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_a_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b_id` [INFO] [stdout] --> src/reports.rs:622:41 [INFO] [stdout] | [INFO] [stdout] 622 | all_scenes.sort_by(|(a_id, a_scn), (b_id, b_scn)| { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_b_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scn` [INFO] [stdout] --> src/reports.rs:745:26 [INFO] [stdout] | [INFO] [stdout] 745 | for (scn_id, scn) in &scenes_in_range { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scene_id` [INFO] [stdout] --> src/reports.rs:960:10 [INFO] [stdout] | [INFO] [stdout] 960 | for (scene_id, checked_scene) in scene_ids { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scene_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scn_id` [INFO] [stdout] --> src/reports.rs:1097:19 [INFO] [stdout] | [INFO] [stdout] 1097 | .filter(|(scn_id, scn)| pages_range.0 < scn.start.page && scn.start.page < pages_range.1) [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scn_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scn_id` [INFO] [stdout] --> src/reports.rs:1118:19 [INFO] [stdout] | [INFO] [stdout] 1118 | .filter(|(scn_id, scn)| pages_range.0 < scn.start.page && scn.start.page < pages_range.1) [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scn_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pdfdoc` [INFO] [stdout] --> src/pdf_parser.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | pdfdoc: &pdf_document::PDFDocument, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pdfdoc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pdf_word` [INFO] [stdout] --> src/pdf_parser.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 84 | pdf_word: &pdf_document::Word, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pdf_word` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `element_indentaions_pts` [INFO] [stdout] --> src/pdf_parser.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 85 | element_indentaions_pts: &ElementIndentationsPoints, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_element_indentaions_pts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pdf_word` [INFO] [stdout] --> src/pdf_parser.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | pdf_word: &pdf_document::Word, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pdf_word` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_line` [INFO] [stdout] --> src/pdf_parser.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | new_line: &screenplay_document::Line, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `element_indentaions_pts` [INFO] [stdout] --> src/pdf_parser.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | element_indentaions_pts: &ElementIndentationsPoints, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_element_indentaions_pts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time_of_day_strs` [INFO] [stdout] --> src/pdf_parser.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | time_of_day_strs: &screenplay_document::TimeOfDayCollection, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_time_of_day_strs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `environment_strs` [INFO] [stdout] --> src/pdf_parser.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | environment_strs: &screenplay_document::EnvironmentStrings, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_environment_strs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r_marker` [INFO] [stdout] --> src/pdf_parser.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | r_marker: &String, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_r_marker` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/pdf_parser.rs:162:17 [INFO] [stdout] | [INFO] [stdout] 159 | SPType::SP_SCENE_HEADING(SceneHeadingElement::Location) => { [INFO] [stdout] | ------------------------------------------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 162 | SPType::SP_SCENE_HEADING(SceneHeadingElement::Location) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rightedge` [INFO] [stdout] --> src/pdf_parser.rs:298:21 [INFO] [stdout] | [INFO] [stdout] 298 | let rightedge: f64 = wordwidth + pdf_word.position.x; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rightedge` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pdf_l_idx` [INFO] [stdout] --> src/pdf_parser.rs:387:14 [INFO] [stdout] | [INFO] [stdout] 387 | for (pdf_l_idx, pdf_line) in pdf_page.lines.iter().enumerate() { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pdf_l_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pdf_parser.rs:368:13 [INFO] [stdout] | [INFO] [stdout] 368 | let mut line_height: f64 = 12.0; //This line height could be identified either here in-line or in [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/pdf_parser.rs:378:13 [INFO] [stdout] | [INFO] [stdout] 378 | let mut current_resolution: f64 = 72.0; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `new_word` is never read [INFO] [stdout] --> src/lib.rs:28:17 [INFO] [stdout] | [INFO] [stdout] 28 | let mut new_word = pdf_document::Word::default(); [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: unused variable: `inches` [INFO] [stdout] --> src/lib.rs:30:21 [INFO] [stdout] | [INFO] [stdout] 30 | if let Some(inches) = y_height_inches { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_inches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `y_height_pts` is never read [INFO] [stdout] --> src/lib.rs:47:17 [INFO] [stdout] | [INFO] [stdout] 47 | let mut y_height_pts = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `screenplay-doc-parser-rs` (lib test) due to 1 previous error; 46 warnings emitted [INFO] running `Command { std: "docker" "inspect" "da58aa51875fe4b9c728f5d9cb8484cabd35e426e3fdcadaf4e4d8b4d398ceeb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "da58aa51875fe4b9c728f5d9cb8484cabd35e426e3fdcadaf4e4d8b4d398ceeb", kill_on_drop: false }` [INFO] [stdout] da58aa51875fe4b9c728f5d9cb8484cabd35e426e3fdcadaf4e4d8b4d398ceeb