[INFO] cloning repository https://github.com/ThomasdenH/pdf.js-wasm [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ThomasdenH/pdf.js-wasm" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FThomasdenH%2Fpdf.js-wasm", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FThomasdenH%2Fpdf.js-wasm'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] dcd6d1a541828ed149534ca35a5dda2f62b4e766 [INFO] testing ThomasdenH/pdf.js-wasm against 1.85.0 for beta-1.86-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FThomasdenH%2Fpdf.js-wasm" "/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/ThomasdenH/pdf.js-wasm on toolchain 1.85.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.85.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ThomasdenH/pdf.js-wasm [INFO] finished tweaking git repo https://github.com/ThomasdenH/pdf.js-wasm [INFO] tweaked toml for git repo https://github.com/ThomasdenH/pdf.js-wasm written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ThomasdenH/pdf.js-wasm 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" "+1.85.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wasm-bindgen-test-macro v0.2.47 [INFO] [stderr] Downloaded wee_alloc v0.4.4 [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.47 [INFO] [stderr] Downloaded wasm-bindgen-test v0.2.47 [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.47 [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.47 [INFO] [stderr] Downloaded md5 v0.6.1 [INFO] [stderr] Downloaded wasm-bindgen-futures v0.3.24 [INFO] [stderr] Downloaded wasm-bindgen-backend v0.2.47 [INFO] [stderr] Downloaded js-sys v0.3.24 [INFO] [stderr] Downloaded wasm-bindgen v0.2.47 [INFO] [stderr] Downloaded syn v0.15.38 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0b9b96830fcdbf956f10d155858168b5b88daa08b85a6888ea75f0cd8cf550b0 [INFO] running `Command { std: "docker" "start" "-a" "0b9b96830fcdbf956f10d155858168b5b88daa08b85a6888ea75f0cd8cf550b0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0b9b96830fcdbf956f10d155858168b5b88daa08b85a6888ea75f0cd8cf550b0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0b9b96830fcdbf956f10d155858168b5b88daa08b85a6888ea75f0cd8cf550b0", kill_on_drop: false }` [INFO] [stdout] 0b9b96830fcdbf956f10d155858168b5b88daa08b85a6888ea75f0cd8cf550b0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5d68bc4057b0b4f5072b0ece27e7e2c01a9db6a1ddde387ccbe92ec2700ee131 [INFO] running `Command { std: "docker" "start" "-a" "5d68bc4057b0b4f5072b0ece27e7e2c01a9db6a1ddde387ccbe92ec2700ee131", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling autocfg v0.1.4 [INFO] [stderr] Compiling syn v0.15.38 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Compiling md5 v0.6.1 [INFO] [stderr] Compiling lazy_static v1.3.0 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling quote v0.6.12 [INFO] [stderr] Compiling pdfjs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `arc_four_cipher::ArcFourCipher` [INFO] [stdout] --> src/core/crypto.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use arc_four_cipher::ArcFourCipher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/shared/util.rs:5:51 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Copy, Clone, Hash, Debug, Eq, PartialEq, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `console_error_panic_hook`, `default`, and `wee_alloc` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `FromPrimitive` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/shared/util.rs:5:66 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Copy, Clone, Hash, Debug, Eq, PartialEq, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `console_error_panic_hook`, `default`, and `wee_alloc` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `ToPrimitive` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Upper` and `Lower` are never constructed [INFO] [stdout] --> src/core/core_utils.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Casing { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 3 | Upper, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 4 | Lower, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Casing` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ROMAN_NUMBER_MAP_HUNDREDS` is never used [INFO] [stdout] --> src/core/core_utils.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const ROMAN_NUMBER_MAP_HUNDREDS: [&str; 10] = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ROMAN_NUMBER_MAP_TENS` is never used [INFO] [stdout] --> src/core/core_utils.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const ROMAN_NUMBER_MAP_TENS: [&str; 10] = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ROMAN_NUMBER_MAP_ONES` is never used [INFO] [stdout] --> src/core/core_utils.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const ROMAN_NUMBER_MAP_ONES: [&str; 10] = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_roman_numerals` is never used [INFO] [stdout] --> src/core/core_utils.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn to_roman_numerals(number: u32, casing: Casing) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_md5` is never used [INFO] [stdout] --> src/core/crypto.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn calculate_md5(data: &[u8], offset: usize, length: usize) -> [u8; 16] { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_md5_wasm` is never used [INFO] [stdout] --> src/core/crypto.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn calculate_md5_wasm(data: &[u8], offset: usize, length: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `encrypt_block`, and `decrypt_block` are never used [INFO] [stdout] --> src/core/crypto/arc_four_cipher.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl ArcFourCipher { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 14 | #[cfg_attr(target_arch = "wasm32", wasm_bindgen(constructor))] [INFO] [stdout] 15 | pub fn new(key: &[u8]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn encrypt_block(&mut self, data: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn decrypt_block(&mut self, data: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_ADLER32_LENGTH` is never used [INFO] [stdout] --> src/core/parser.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | const MAX_ADLER32_LENGTH: usize = 5552; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute_adler_32` is never used [INFO] [stdout] --> src/core/parser.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn compute_adler_32(bytes: &[u8]) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_verbosity_level` is never used [INFO] [stdout] --> src/shared/util.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn set_verbosity_level(level: VerbosityLevel) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verbosity_level` is never used [INFO] [stdout] --> src/shared/util.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn verbosity_level() -> VerbosityLevel { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `info` is never used [INFO] [stdout] --> src/shared/util.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn info(msg: &str) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `warn` is never used [INFO] [stdout] --> src/shared/util.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn warn(msg: &str) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_space` is never used [INFO] [stdout] --> src/shared/util.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn is_space(ch: char) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/shared/util.rs:5:51 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Copy, Clone, Hash, Debug, Eq, PartialEq, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_VerbosityLevel` [INFO] [stdout] 6 | pub enum VerbosityLevel { [INFO] [stdout] | -------------- `VerbosityLevel` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/shared/util.rs:5:66 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Copy, Clone, Hash, Debug, Eq, PartialEq, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_VerbosityLevel` [INFO] [stdout] 6 | pub enum VerbosityLevel { [INFO] [stdout] | -------------- `VerbosityLevel` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.40s [INFO] running `Command { std: "docker" "inspect" "5d68bc4057b0b4f5072b0ece27e7e2c01a9db6a1ddde387ccbe92ec2700ee131", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d68bc4057b0b4f5072b0ece27e7e2c01a9db6a1ddde387ccbe92ec2700ee131", kill_on_drop: false }` [INFO] [stdout] 5d68bc4057b0b4f5072b0ece27e7e2c01a9db6a1ddde387ccbe92ec2700ee131 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 43a0eadcb4c4c58c12291ce2fa64cc6ef2265ef36a665929e5ef0d433c99978b [INFO] running `Command { std: "docker" "start" "-a" "43a0eadcb4c4c58c12291ce2fa64cc6ef2265ef36a665929e5ef0d433c99978b", kill_on_drop: false }` [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.47 [INFO] [stderr] Compiling cfg-if v0.1.9 [INFO] [stderr] Compiling bumpalo v2.4.3 [INFO] [stderr] Compiling wasm-bindgen v0.2.47 [INFO] [stderr] Compiling futures v0.1.27 [INFO] [stderr] Compiling scoped-tls v1.0.0 [INFO] [stderr] Compiling wasm-bindgen-test-macro v0.2.47 [INFO] [stdout] warning: unused import: `arc_four_cipher::ArcFourCipher` [INFO] [stdout] --> src/core/crypto.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use arc_four_cipher::ArcFourCipher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/shared/util.rs:5:51 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Copy, Clone, Hash, Debug, Eq, PartialEq, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `console_error_panic_hook`, `default`, and `wee_alloc` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `FromPrimitive` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/shared/util.rs:5:66 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Copy, Clone, Hash, Debug, Eq, PartialEq, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `console_error_panic_hook`, `default`, and `wee_alloc` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `ToPrimitive` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Upper` and `Lower` are never constructed [INFO] [stdout] --> src/core/core_utils.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Casing { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 3 | Upper, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 4 | Lower, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Casing` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ROMAN_NUMBER_MAP_HUNDREDS` is never used [INFO] [stdout] --> src/core/core_utils.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const ROMAN_NUMBER_MAP_HUNDREDS: [&str; 10] = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ROMAN_NUMBER_MAP_TENS` is never used [INFO] [stdout] --> src/core/core_utils.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const ROMAN_NUMBER_MAP_TENS: [&str; 10] = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ROMAN_NUMBER_MAP_ONES` is never used [INFO] [stdout] --> src/core/core_utils.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const ROMAN_NUMBER_MAP_ONES: [&str; 10] = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_roman_numerals` is never used [INFO] [stdout] --> src/core/core_utils.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn to_roman_numerals(number: u32, casing: Casing) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_md5` is never used [INFO] [stdout] --> src/core/crypto.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn calculate_md5(data: &[u8], offset: usize, length: usize) -> [u8; 16] { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_md5_wasm` is never used [INFO] [stdout] --> src/core/crypto.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn calculate_md5_wasm(data: &[u8], offset: usize, length: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `encrypt_block`, and `decrypt_block` are never used [INFO] [stdout] --> src/core/crypto/arc_four_cipher.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl ArcFourCipher { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 14 | #[cfg_attr(target_arch = "wasm32", wasm_bindgen(constructor))] [INFO] [stdout] 15 | pub fn new(key: &[u8]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn encrypt_block(&mut self, data: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn decrypt_block(&mut self, data: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_ADLER32_LENGTH` is never used [INFO] [stdout] --> src/core/parser.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | const MAX_ADLER32_LENGTH: usize = 5552; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute_adler_32` is never used [INFO] [stdout] --> src/core/parser.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn compute_adler_32(bytes: &[u8]) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_verbosity_level` is never used [INFO] [stdout] --> src/shared/util.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn set_verbosity_level(level: VerbosityLevel) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verbosity_level` is never used [INFO] [stdout] --> src/shared/util.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn verbosity_level() -> VerbosityLevel { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `info` is never used [INFO] [stdout] --> src/shared/util.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn info(msg: &str) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `warn` is never used [INFO] [stdout] --> src/shared/util.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn warn(msg: &str) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_space` is never used [INFO] [stdout] --> src/shared/util.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn is_space(ch: char) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/shared/util.rs:5:51 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Copy, Clone, Hash, Debug, Eq, PartialEq, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_VerbosityLevel` [INFO] [stdout] 6 | pub enum VerbosityLevel { [INFO] [stdout] | -------------- `VerbosityLevel` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/shared/util.rs:5:66 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Copy, Clone, Hash, Debug, Eq, PartialEq, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_VerbosityLevel` [INFO] [stdout] 6 | pub enum VerbosityLevel { [INFO] [stdout] | -------------- `VerbosityLevel` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling log v0.4.6 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.47 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.47 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.47 [INFO] [stderr] Compiling js-sys v0.3.24 [INFO] [stderr] Compiling console_error_panic_hook v0.1.6 [INFO] [stderr] Compiling wasm-bindgen-futures v0.3.24 [INFO] [stderr] Compiling wasm-bindgen-test v0.2.47 [INFO] [stderr] Compiling pdfjs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `arc_four_cipher::ArcFourCipher` [INFO] [stdout] --> src/core/crypto.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use arc_four_cipher::ArcFourCipher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/shared/util.rs:5:51 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Copy, Clone, Hash, Debug, Eq, PartialEq, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `console_error_panic_hook`, `default`, and `wee_alloc` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `FromPrimitive` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/shared/util.rs:5:66 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Copy, Clone, Hash, Debug, Eq, PartialEq, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `console_error_panic_hook`, `default`, and `wee_alloc` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `ToPrimitive` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_md5` is never used [INFO] [stdout] --> src/core/crypto.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn calculate_md5(data: &[u8], offset: usize, length: usize) -> [u8; 16] { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_md5_wasm` is never used [INFO] [stdout] --> src/core/crypto.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn calculate_md5_wasm(data: &[u8], offset: usize, length: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `encrypt_block`, and `decrypt_block` are never used [INFO] [stdout] --> src/core/crypto/arc_four_cipher.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl ArcFourCipher { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 14 | #[cfg_attr(target_arch = "wasm32", wasm_bindgen(constructor))] [INFO] [stdout] 15 | pub fn new(key: &[u8]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn encrypt_block(&mut self, data: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn decrypt_block(&mut self, data: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_verbosity_level` is never used [INFO] [stdout] --> src/shared/util.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn set_verbosity_level(level: VerbosityLevel) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verbosity_level` is never used [INFO] [stdout] --> src/shared/util.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn verbosity_level() -> VerbosityLevel { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `info` is never used [INFO] [stdout] --> src/shared/util.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn info(msg: &str) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `warn` is never used [INFO] [stdout] --> src/shared/util.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn warn(msg: &str) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_space` is never used [INFO] [stdout] --> src/shared/util.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn is_space(ch: char) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/shared/util.rs:5:51 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Copy, Clone, Hash, Debug, Eq, PartialEq, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_VerbosityLevel` [INFO] [stdout] 6 | pub enum VerbosityLevel { [INFO] [stdout] | -------------- `VerbosityLevel` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/shared/util.rs:5:66 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Copy, Clone, Hash, Debug, Eq, PartialEq, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_VerbosityLevel` [INFO] [stdout] 6 | pub enum VerbosityLevel { [INFO] [stdout] | -------------- `VerbosityLevel` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 8.92s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: wasm-bindgen v0.2.47 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "43a0eadcb4c4c58c12291ce2fa64cc6ef2265ef36a665929e5ef0d433c99978b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "43a0eadcb4c4c58c12291ce2fa64cc6ef2265ef36a665929e5ef0d433c99978b", kill_on_drop: false }` [INFO] [stdout] 43a0eadcb4c4c58c12291ce2fa64cc6ef2265ef36a665929e5ef0d433c99978b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 5d5904ee2a3cab809b400b2a1e0984617b05af0f085c02d5c0713cb5d7c8c9b4 [INFO] running `Command { std: "docker" "start" "-a" "5d5904ee2a3cab809b400b2a1e0984617b05af0f085c02d5c0713cb5d7c8c9b4", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `arc_four_cipher::ArcFourCipher` [INFO] [stderr] --> src/core/crypto.rs:8:9 [INFO] [stderr] | [INFO] [stderr] 8 | pub use arc_four_cipher::ArcFourCipher; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stderr] --> src/shared/util.rs:5:51 [INFO] [stderr] | [INFO] [stderr] 5 | #[derive(Copy, Clone, Hash, Debug, Eq, PartialEq, FromPrimitive, ToPrimitive)] [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `console_error_panic_hook`, `default`, and `wee_alloc` [INFO] [stderr] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `FromPrimitive` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stderr] --> src/shared/util.rs:5:66 [INFO] [stderr] | [INFO] [stderr] 5 | #[derive(Copy, Clone, Hash, Debug, Eq, PartialEq, FromPrimitive, ToPrimitive)] [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `console_error_panic_hook`, `default`, and `wee_alloc` [INFO] [stderr] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `ToPrimitive` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variants `Upper` and `Lower` are never constructed [INFO] [stderr] --> src/core/core_utils.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 2 | pub enum Casing { [INFO] [stderr] | ------ variants in this enum [INFO] [stderr] 3 | Upper, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 4 | Lower, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Casing` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: constant `ROMAN_NUMBER_MAP_HUNDREDS` is never used [INFO] [stderr] --> src/core/core_utils.rs:7:7 [INFO] [stderr] | [INFO] [stderr] 7 | const ROMAN_NUMBER_MAP_HUNDREDS: [&str; 10] = [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `ROMAN_NUMBER_MAP_TENS` is never used [INFO] [stderr] --> src/core/core_utils.rs:10:7 [INFO] [stderr] | [INFO] [stderr] 10 | const ROMAN_NUMBER_MAP_TENS: [&str; 10] = [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `ROMAN_NUMBER_MAP_ONES` is never used [INFO] [stderr] --> src/core/core_utils.rs:13:7 [INFO] [stderr] | [INFO] [stderr] 13 | const ROMAN_NUMBER_MAP_ONES: [&str; 10] = [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `to_roman_numerals` is never used [INFO] [stderr] --> src/core/core_utils.rs:19:8 [INFO] [stderr] | [INFO] [stderr] 19 | pub fn to_roman_numerals(number: u32, casing: Casing) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `calculate_md5` is never used [INFO] [stderr] --> src/core/crypto.rs:10:8 [INFO] [stderr] | [INFO] [stderr] 10 | pub fn calculate_md5(data: &[u8], offset: usize, length: usize) -> [u8; 16] { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `calculate_md5_wasm` is never used [INFO] [stderr] --> src/core/crypto.rs:15:8 [INFO] [stderr] | [INFO] [stderr] 15 | pub fn calculate_md5_wasm(data: &[u8], offset: usize, length: usize) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `encrypt_block`, and `decrypt_block` are never used [INFO] [stderr] --> src/core/crypto/arc_four_cipher.rs:15:12 [INFO] [stderr] | [INFO] [stderr] 13 | impl ArcFourCipher { [INFO] [stderr] | ------------------ associated items in this implementation [INFO] [stderr] 14 | #[cfg_attr(target_arch = "wasm32", wasm_bindgen(constructor))] [INFO] [stderr] 15 | pub fn new(key: &[u8]) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 30 | pub fn encrypt_block(&mut self, data: &[u8]) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 46 | pub fn decrypt_block(&mut self, data: &[u8]) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `MAX_ADLER32_LENGTH` is never used [INFO] [stderr] --> src/core/parser.rs:1:7 [INFO] [stderr] | [INFO] [stderr] 1 | const MAX_ADLER32_LENGTH: usize = 5552; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `compute_adler_32` is never used [INFO] [stderr] --> src/core/parser.rs:3:8 [INFO] [stderr] | [INFO] [stderr] 3 | pub fn compute_adler_32(bytes: &[u8]) -> u32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `set_verbosity_level` is never used [INFO] [stderr] --> src/shared/util.rs:16:8 [INFO] [stderr] | [INFO] [stderr] 16 | pub fn set_verbosity_level(level: VerbosityLevel) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `verbosity_level` is never used [INFO] [stderr] --> src/shared/util.rs:20:8 [INFO] [stderr] | [INFO] [stderr] 20 | pub fn verbosity_level() -> VerbosityLevel { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `info` is never used [INFO] [stderr] --> src/shared/util.rs:27:8 [INFO] [stderr] | [INFO] [stderr] 27 | pub fn info(msg: &str) { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `warn` is never used [INFO] [stderr] --> src/shared/util.rs:32:8 [INFO] [stderr] | [INFO] [stderr] 32 | pub fn warn(msg: &str) { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `is_space` is never used [INFO] [stderr] --> src/shared/util.rs:37:8 [INFO] [stderr] | [INFO] [stderr] 37 | pub fn is_space(ch: char) -> bool { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/shared/util.rs:5:51 [INFO] [stderr] | [INFO] [stderr] 5 | #[derive(Copy, Clone, Hash, Debug, Eq, PartialEq, FromPrimitive, ToPrimitive)] [INFO] [stderr] | ^------------ [INFO] [stderr] | | [INFO] [stderr] | `FromPrimitive` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_VerbosityLevel` [INFO] [stderr] 6 | pub enum VerbosityLevel { [INFO] [stderr] | -------------- `VerbosityLevel` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/shared/util.rs:5:66 [INFO] [stderr] | [INFO] [stderr] 5 | #[derive(Copy, Clone, Hash, Debug, Eq, PartialEq, FromPrimitive, ToPrimitive)] [INFO] [stderr] | ^---------- [INFO] [stderr] | | [INFO] [stderr] | `ToPrimitive` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_VerbosityLevel` [INFO] [stderr] 6 | pub enum VerbosityLevel { [INFO] [stderr] | -------------- `VerbosityLevel` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `pdfjs` (lib) generated 20 warnings (run `cargo fix --lib -p pdfjs` to apply 1 suggestion) [INFO] [stderr] warning: function `calculate_md5` is never used [INFO] [stderr] --> src/core/crypto.rs:10:8 [INFO] [stderr] | [INFO] [stderr] 10 | pub fn calculate_md5(data: &[u8], offset: usize, length: usize) -> [u8; 16] { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `pdfjs` (lib test) generated 13 warnings (12 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: wasm-bindgen v0.2.47 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/pdfjs-29dc083d73bc5de7) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test core::core_utils::test_to_roman_numerals_lowercase ... ok [INFO] [stdout] test core::core_utils::test_to_roman_numerals_uppercase ... ok [INFO] [stdout] test core::parser::test_compute_adler_32 ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s [INFO] [stdout] [INFO] [stderr] Doc-tests pdfjs [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "5d5904ee2a3cab809b400b2a1e0984617b05af0f085c02d5c0713cb5d7c8c9b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d5904ee2a3cab809b400b2a1e0984617b05af0f085c02d5c0713cb5d7c8c9b4", kill_on_drop: false }` [INFO] [stdout] 5d5904ee2a3cab809b400b2a1e0984617b05af0f085c02d5c0713cb5d7c8c9b4