[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 beta-2025-02-18 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-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/ThomasdenH/pdf.js-wasm on toolchain beta-2025-02-18 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-02-18" "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-tc2/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" "+beta-2025-02-18" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-02-18" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8a063b09b95f555c4c543e23e403549f4c11ed31f752b63442e73df14649a33d [INFO] running `Command { std: "docker" "start" "-a" "8a063b09b95f555c4c543e23e403549f4c11ed31f752b63442e73df14649a33d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8a063b09b95f555c4c543e23e403549f4c11ed31f752b63442e73df14649a33d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8a063b09b95f555c4c543e23e403549f4c11ed31f752b63442e73df14649a33d", kill_on_drop: false }` [INFO] [stdout] 8a063b09b95f555c4c543e23e403549f4c11ed31f752b63442e73df14649a33d [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=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" "+beta-2025-02-18" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] faeef7dad21788577492b4c95e179384491200cc2ff72b00e179598522a365e8 [INFO] running `Command { std: "docker" "start" "-a" "faeef7dad21788577492b4c95e179384491200cc2ff72b00e179598522a365e8", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling syn v0.15.38 [INFO] [stderr] Compiling autocfg v0.1.4 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Compiling lazy_static v1.3.0 [INFO] [stderr] Compiling md5 v0.6.1 [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.33s [INFO] running `Command { std: "docker" "inspect" "faeef7dad21788577492b4c95e179384491200cc2ff72b00e179598522a365e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "faeef7dad21788577492b4c95e179384491200cc2ff72b00e179598522a365e8", kill_on_drop: false }` [INFO] [stdout] faeef7dad21788577492b4c95e179384491200cc2ff72b00e179598522a365e8 [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=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" "+beta-2025-02-18" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1e8d757bb51e9f23fe1251df485428de8b4d208dac79f1675a3a912deb1c6ccf [INFO] running `Command { std: "docker" "start" "-a" "1e8d757bb51e9f23fe1251df485428de8b4d208dac79f1675a3a912deb1c6ccf", 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 wasm-bindgen-test-macro v0.2.47 [INFO] [stderr] Compiling scoped-tls v1.0.0 [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] [stdout] error: older versions of the `wasm-bindgen` crate are incompatible with current versions of Rust; please update to `wasm-bindgen` v0.2.88 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `wasm-bindgen` (lib) due to 1 previous error [INFO] running `Command { std: "docker" "inspect" "1e8d757bb51e9f23fe1251df485428de8b4d208dac79f1675a3a912deb1c6ccf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1e8d757bb51e9f23fe1251df485428de8b4d208dac79f1675a3a912deb1c6ccf", kill_on_drop: false }` [INFO] [stdout] 1e8d757bb51e9f23fe1251df485428de8b4d208dac79f1675a3a912deb1c6ccf