[INFO] fetching crate validate-ro 0.3.2... [INFO] testing validate-ro-0.3.2 against try#b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b for pr-145330-1 [INFO] extracting crate validate-ro 0.3.2 into /workspace/builds/worker-5-tc2/source [INFO] started tweaking crates.io crate validate-ro 0.3.2 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate validate-ro 0.3.2 [INFO] tweaked toml for crates.io crate validate-ro 0.3.2 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate validate-ro 0.3.2 on toolchain b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate validate-ro 0.3.2 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" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5e8bc6110723b70412c75273576bf5aa08bb35a4c30792b4aa7f161fe2d46275 [INFO] running `Command { std: "docker" "start" "-a" "5e8bc6110723b70412c75273576bf5aa08bb35a4c30792b4aa7f161fe2d46275", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5e8bc6110723b70412c75273576bf5aa08bb35a4c30792b4aa7f161fe2d46275", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5e8bc6110723b70412c75273576bf5aa08bb35a4c30792b4aa7f161fe2d46275", kill_on_drop: false }` [INFO] [stdout] 5e8bc6110723b70412c75273576bf5aa08bb35a4c30792b4aa7f161fe2d46275 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d72784a9d397bc44602c35eb509cd576212c846ee53b390ada94596f7ae63d21 [INFO] running `Command { std: "docker" "start" "-a" "d72784a9d397bc44602c35eb509cd576212c846ee53b390ada94596f7ae63d21", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling zerocopy v0.8.25 [INFO] [stderr] Compiling crunchy v0.2.3 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling icu_properties_data v2.0.0 [INFO] [stderr] Compiling cc v1.2.22 [INFO] [stderr] Compiling smallvec v1.15.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling semver v1.0.26 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling tinyvec v1.9.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling time-core v0.1.4 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling hashbrown v0.15.3 [INFO] [stderr] Compiling tap v1.0.1 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Compiling wyz v0.5.1 [INFO] [stderr] Compiling deranged v0.4.0 [INFO] [stderr] Compiling rustc_version_runtime v0.3.0 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling data-encoding v2.9.0 [INFO] [stderr] Compiling funty v2.0.0 [INFO] [stderr] Compiling indexmap v2.9.0 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling resolv-conf v0.7.4 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling socket2 v0.5.9 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling const-random v0.1.18 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling bitvec v1.0.1 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling unicode-properties v0.1.3 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling pbkdf2 v0.11.0 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling sha-1 v0.10.1 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling webpki-roots v0.25.4 [INFO] [stderr] Compiling rand v0.9.1 [INFO] [stderr] Compiling take_mut v0.2.2 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling typed-builder v0.10.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling derive-syn-parse v0.2.0 [INFO] [stderr] Compiling macro_magic_core_macros v0.5.1 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling enum-as-inner v0.6.1 [INFO] [stderr] Compiling derive-where v1.4.0 [INFO] [stderr] Compiling tokio v1.45.0 [INFO] [stderr] Compiling macro_magic_core v0.5.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling derive_more v0.99.20 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling macro_magic_macros v0.5.1 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling macro_magic v0.5.1 [INFO] [stderr] Compiling mongodb-internal-macros v3.2.3 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling serde_with_macros v3.12.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.0 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling uuid v1.16.0 [INFO] [stderr] Compiling serde_bytes v0.11.17 [INFO] [stderr] Compiling serde_with v3.12.0 [INFO] [stderr] Compiling hickory-proto v0.24.4 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling bson v2.14.0 [INFO] [stderr] Compiling hickory-resolver v0.24.4 [INFO] [stderr] Compiling mongodb v3.2.3 [INFO] [stderr] Compiling validate-ro v0.3.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `macros::*` [INFO] [stdout] --> src/lib.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | pub use macros::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 49s [INFO] running `Command { std: "docker" "inspect" "d72784a9d397bc44602c35eb509cd576212c846ee53b390ada94596f7ae63d21", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d72784a9d397bc44602c35eb509cd576212c846ee53b390ada94596f7ae63d21", kill_on_drop: false }` [INFO] [stdout] d72784a9d397bc44602c35eb509cd576212c846ee53b390ada94596f7ae63d21 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 81a27673be04bebfd5dbdabdc1a9bfe8804232ca538eab08ce245df5cf5dc292 [INFO] running `Command { std: "docker" "start" "-a" "81a27673be04bebfd5dbdabdc1a9bfe8804232ca538eab08ce245df5cf5dc292", kill_on_drop: false }` [INFO] [stderr] Compiling validate-ro v0.3.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `macros::*` [INFO] [stdout] --> src/lib.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | pub use macros::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `macros::*` [INFO] [stdout] --> src/lib.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | pub use macros::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.79s [INFO] running `Command { std: "docker" "inspect" "81a27673be04bebfd5dbdabdc1a9bfe8804232ca538eab08ce245df5cf5dc292", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "81a27673be04bebfd5dbdabdc1a9bfe8804232ca538eab08ce245df5cf5dc292", kill_on_drop: false }` [INFO] [stdout] 81a27673be04bebfd5dbdabdc1a9bfe8804232ca538eab08ce245df5cf5dc292 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 3d2cd3852fe6c26390c48fbf0e87e76761da2f724466d9b71d79a4f6dbae0b02 [INFO] running `Command { std: "docker" "start" "-a" "3d2cd3852fe6c26390c48fbf0e87e76761da2f724466d9b71d79a4f6dbae0b02", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `macros::*` [INFO] [stderr] --> src/lib.rs:64:9 [INFO] [stderr] | [INFO] [stderr] 64 | pub use macros::*; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `validate-ro` (lib) generated 1 warning (run `cargo fix --lib -p validate-ro` to apply 1 suggestion) [INFO] [stderr] warning: `validate-ro` (lib test) generated 1 warning (1 duplicate) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.22s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/validate_ro-7ddba7cb01178d22) [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] [stderr] Running tests/main.rs (/opt/rustwide/target/debug/deps/main-630398b16f5c5c19) [INFO] [stdout] [INFO] [stdout] running 9 tests [INFO] [stdout] test test_custom_validator_in_form ... ok [INFO] [stdout] test test_default_validator_in_form ... ok [INFO] [stdout] test test_form_validator_break_on_first_error ... ok [INFO] [stdout] test test_form_validator_success ... ok [INFO] [stdout] test test_rules_macro_validation ... ok [INFO] [stdout] test test_nested_rules_validation ... ok [INFO] [stdout] test test_rules_validation ... ok [INFO] [stdout] test test_form_validator_with_errors ... ok [INFO] [stdout] test test_form_validator_missing_required_field ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] Running tests/rules.rs (/opt/rustwide/target/debug/deps/rules-21a032516a91d884) [INFO] [stdout] [INFO] [stdout] running 13 tests [INFO] [stdout] test test_email ... ok [INFO] [stdout] test test_custom_validator ... ok [INFO] [stdout] test test_accepted ... ok [INFO] [stdout] test test_in_values ... ok [INFO] [stdout] test test_extensions ... ok [INFO] [stdout] test test_length_validators ... ok [INFO] [stdout] test test_not_in_values ... ok [INFO] [stdout] test test_type_validators ... ok [INFO] [stdout] test test_numeric_validators ... ok [INFO] [stdout] test test_required ... ok [INFO] [stdout] test test_regex ... ok [INFO] [stdout] test test_url ... ok [INFO] [stdout] test test_ip ... ok [INFO] [stderr] Doc-tests validate_ro [INFO] [stdout] [INFO] [stdout] test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 26 tests [INFO] [stdout] test src/rules.rs - rules::Rule::extensions (line 572) ... FAILED [INFO] [stdout] test src/rules.rs - rules::Rule::max_length (line 273) ... FAILED [INFO] [stdout] test src/rules.rs - rules::Rule::max_value (line 333) ... FAILED [INFO] [stdout] test src/rules.rs - rules::Rule::in_values (line 438) ... FAILED [INFO] [stdout] test src/rules.rs - rules::Rule::float (line 173) ... FAILED [INFO] [stdout] test src/rules.rs - rules::Rule::integer (line 200) ... FAILED [INFO] [stdout] test src/rules.rs - rules::Rule::array (line 92) ... FAILED [INFO] [stdout] test src/rules.rs - rules::Rule::ip (line 534) ... FAILED [INFO] [stdout] test src/rules.rs - rules::Rule::equal (line 293) ... FAILED [INFO] [stdout] test src/rules.rs - rules::Rule::numeric (line 349) ... FAILED [INFO] [stdout] test src/rules.rs - rules::Rule::regex (line 482) ... FAILED [INFO] [stdout] test src/rules.rs - rules::Rule::not_in_values (line 460) ... FAILED [INFO] [stdout] test src/rules.rs - rules::Rule::boolean (line 146) ... FAILED [INFO] [stdout] test src/rules.rs - rules::Rule::accepted (line 378) ... FAILED [INFO] [stdout] test src/rules.rs - rules::Rule::min_value (line 313) ... FAILED [INFO] [stdout] test src/rules.rs - rules::Rule::url (line 500) ... FAILED [INFO] [stdout] test src/rules.rs - rules::Rule::object (line 119) ... FAILED [INFO] [stdout] test src/rules.rs - rules::Rule::length (line 232) ... FAILED [INFO] [stdout] test src/rules.rs - rules::Rule::min_length (line 253) ... FAILED [INFO] [stdout] test src/rules.rs - rules::Rule::unique (line 623) ... FAILED [INFO] [stdout] test src/rules.rs - rules::Rule::custom (line 593) ... ok [INFO] [stdout] test src/rules.rs - rules::Rule::email (line 417) ... ok [INFO] [stdout] test src/lib.rs - Rules (line 70) ... ok [INFO] [stdout] test src/rules.rs - rules::Rule::required (line 56) ... ok [INFO] [stdout] test src/lib.rs - (line 18) ... ok [INFO] [stdout] test src/lib.rs - FormValidator (line 151) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/rules.rs - rules::Rule::extensions (line 572) stdout ---- [INFO] [stdout] error[E0599]: no method named `validate` found for opaque type `impl Validator` in the current scope [INFO] [stdout] --> src/rules.rs:578:19 [INFO] [stdout] | [INFO] [stdout] 9 | assert!(validator.validate(&json!("image.png")).is_ok()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/traits.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn validate(&self, value: &Value) -> ValidationResult; [INFO] [stdout] | -------- the method is available for `impl Validator` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `validate_async` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/traits.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `Validator` which provides `validate` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use crate::validate_ro::traits::Validator; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules.rs - rules::Rule::max_length (line 273) stdout ---- [INFO] [stdout] error[E0599]: no method named `validate` found for opaque type `impl Validator` in the current scope [INFO] [stdout] --> src/rules.rs:279:19 [INFO] [stdout] | [INFO] [stdout] 9 | assert!(validator.validate(&json!("short")).is_ok()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/traits.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn validate(&self, value: &Value) -> ValidationResult; [INFO] [stdout] | -------- the method is available for `impl Validator` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `validate_async` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/traits.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `Validator` which provides `validate` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use crate::validate_ro::traits::Validator; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules.rs - rules::Rule::max_value (line 333) stdout ---- [INFO] [stdout] error[E0599]: no method named `validate` found for opaque type `impl Validator` in the current scope [INFO] [stdout] --> src/rules.rs:339:19 [INFO] [stdout] | [INFO] [stdout] 9 | assert!(validator.validate(&json!(75)).is_ok()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/traits.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn validate(&self, value: &Value) -> ValidationResult; [INFO] [stdout] | -------- the method is available for `impl Validator` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `validate_async` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/traits.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `Validator` which provides `validate` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use crate::validate_ro::traits::Validator; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules.rs - rules::Rule::in_values (line 438) stdout ---- [INFO] [stdout] error[E0599]: no method named `validate` found for opaque type `impl Validator` in the current scope [INFO] [stdout] --> src/rules.rs:444:19 [INFO] [stdout] | [INFO] [stdout] 9 | assert!(validator.validate(&json!("red")).is_ok()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/traits.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn validate(&self, value: &Value) -> ValidationResult; [INFO] [stdout] | -------- the method is available for `impl Validator` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `validate_async` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/traits.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `Validator` which provides `validate` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use crate::validate_ro::traits::Validator; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules.rs - rules::Rule::float (line 173) stdout ---- [INFO] [stdout] error[E0599]: no method named `validate` found for opaque type `impl Validator` in the current scope [INFO] [stdout] --> src/rules.rs:179:19 [INFO] [stdout] | [INFO] [stdout] 9 | assert!(validator.validate(&json!(3.14)).is_ok()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/traits.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn validate(&self, value: &Value) -> ValidationResult; [INFO] [stdout] | -------- the method is available for `impl Validator` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `validate_async` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/traits.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `Validator` which provides `validate` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use crate::validate_ro::traits::Validator; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules.rs - rules::Rule::integer (line 200) stdout ---- [INFO] [stdout] error[E0599]: no method named `validate` found for opaque type `impl Validator` in the current scope [INFO] [stdout] --> src/rules.rs:206:19 [INFO] [stdout] | [INFO] [stdout] 9 | assert!(validator.validate(&json!(42)).is_ok()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/traits.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn validate(&self, value: &Value) -> ValidationResult; [INFO] [stdout] | -------- the method is available for `impl Validator` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `validate_async` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/traits.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `Validator` which provides `validate` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use crate::validate_ro::traits::Validator; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules.rs - rules::Rule::array (line 92) stdout ---- [INFO] [stdout] error[E0599]: no method named `validate` found for opaque type `impl Validator` in the current scope [INFO] [stdout] --> src/rules.rs:98:19 [INFO] [stdout] | [INFO] [stdout] 9 | assert!(validator.validate(&json!([1, 2, 3])).is_ok()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/traits.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn validate(&self, value: &Value) -> ValidationResult; [INFO] [stdout] | -------- the method is available for `impl Validator` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `validate_async` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/traits.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `Validator` which provides `validate` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use crate::validate_ro::traits::Validator; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules.rs - rules::Rule::ip (line 534) stdout ---- [INFO] [stdout] error[E0599]: no method named `validate` found for opaque type `impl Validator` in the current scope [INFO] [stdout] --> src/rules.rs:540:19 [INFO] [stdout] | [INFO] [stdout] 9 | assert!(validator.validate(&json!("192.168.1.1")).is_ok()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/traits.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn validate(&self, value: &Value) -> ValidationResult; [INFO] [stdout] | -------- the method is available for `impl Validator` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `validate_async` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/traits.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `Validator` which provides `validate` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use crate::validate_ro::traits::Validator; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules.rs - rules::Rule::equal (line 293) stdout ---- [INFO] [stdout] error[E0599]: no method named `validate` found for opaque type `impl Validator` in the current scope [INFO] [stdout] --> src/rules.rs:299:19 [INFO] [stdout] | [INFO] [stdout] 9 | assert!(validator.validate(&json!("expected")).is_ok()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/traits.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn validate(&self, value: &Value) -> ValidationResult; [INFO] [stdout] | -------- the method is available for `impl Validator` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `validate_async` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/traits.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `Validator` which provides `validate` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use crate::validate_ro::traits::Validator; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules.rs - rules::Rule::numeric (line 349) stdout ---- [INFO] [stdout] error[E0599]: no method named `validate` found for opaque type `impl Validator` in the current scope [INFO] [stdout] --> src/rules.rs:355:19 [INFO] [stdout] | [INFO] [stdout] 9 | assert!(validator.validate(&json!("123.45")).is_ok()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/traits.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn validate(&self, value: &Value) -> ValidationResult; [INFO] [stdout] | -------- the method is available for `impl Validator` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `validate_async` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/traits.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `Validator` which provides `validate` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use crate::validate_ro::traits::Validator; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules.rs - rules::Rule::regex (line 482) stdout ---- [INFO] [stdout] error[E0599]: no method named `validate` found for opaque type `impl Validator` in the current scope [INFO] [stdout] --> src/rules.rs:488:19 [INFO] [stdout] | [INFO] [stdout] 9 | assert!(validator.validate(&json!("123-456")).is_ok()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/traits.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn validate(&self, value: &Value) -> ValidationResult; [INFO] [stdout] | -------- the method is available for `impl Validator` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `validate_async` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/traits.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `Validator` which provides `validate` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use crate::validate_ro::traits::Validator; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules.rs - rules::Rule::not_in_values (line 460) stdout ---- [INFO] [stdout] error[E0599]: no method named `validate` found for opaque type `impl Validator` in the current scope [INFO] [stdout] --> src/rules.rs:466:19 [INFO] [stdout] | [INFO] [stdout] 9 | assert!(validator.validate(&json!("user")).is_ok()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/traits.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn validate(&self, value: &Value) -> ValidationResult; [INFO] [stdout] | -------- the method is available for `impl Validator` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `validate_async` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/traits.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `Validator` which provides `validate` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use crate::validate_ro::traits::Validator; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules.rs - rules::Rule::boolean (line 146) stdout ---- [INFO] [stdout] error[E0599]: no method named `validate` found for opaque type `impl Validator` in the current scope [INFO] [stdout] --> src/rules.rs:152:19 [INFO] [stdout] | [INFO] [stdout] 9 | assert!(validator.validate(&json!(true)).is_ok()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/traits.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn validate(&self, value: &Value) -> ValidationResult; [INFO] [stdout] | -------- the method is available for `impl Validator` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `validate_async` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/traits.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `Validator` which provides `validate` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use crate::validate_ro::traits::Validator; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules.rs - rules::Rule::accepted (line 378) stdout ---- [INFO] [stdout] error[E0599]: no method named `validate` found for opaque type `impl Validator` in the current scope [INFO] [stdout] --> src/rules.rs:384:19 [INFO] [stdout] | [INFO] [stdout] 9 | assert!(validator.validate(&json!("yes")).is_ok()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/traits.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn validate(&self, value: &Value) -> ValidationResult; [INFO] [stdout] | -------- the method is available for `impl Validator` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `validate_async` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/traits.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `Validator` which provides `validate` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use crate::validate_ro::traits::Validator; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `validate` found for opaque type `impl Validator` in the current scope [INFO] [stdout] --> src/rules.rs:385:19 [INFO] [stdout] | [INFO] [stdout] 10 | assert!(validator.validate(&json!(true)).is_ok()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/traits.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn validate(&self, value: &Value) -> ValidationResult; [INFO] [stdout] | -------- the method is available for `impl Validator` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `validate_async` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/traits.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `Validator` which provides `validate` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use crate::validate_ro::traits::Validator; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules.rs - rules::Rule::min_value (line 313) stdout ---- [INFO] [stdout] error[E0599]: no method named `validate` found for opaque type `impl Validator` in the current scope [INFO] [stdout] --> src/rules.rs:319:19 [INFO] [stdout] | [INFO] [stdout] 9 | assert!(validator.validate(&json!(21)).is_ok()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/traits.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn validate(&self, value: &Value) -> ValidationResult; [INFO] [stdout] | -------- the method is available for `impl Validator` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `validate_async` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/traits.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `Validator` which provides `validate` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use crate::validate_ro::traits::Validator; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules.rs - rules::Rule::url (line 500) stdout ---- [INFO] [stdout] error[E0599]: no method named `validate` found for opaque type `impl Validator` in the current scope [INFO] [stdout] --> src/rules.rs:506:19 [INFO] [stdout] | [INFO] [stdout] 9 | assert!(validator.validate(&json!("https://example.com")).is_ok()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/traits.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn validate(&self, value: &Value) -> ValidationResult; [INFO] [stdout] | -------- the method is available for `impl Validator` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `validate_async` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/traits.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `Validator` which provides `validate` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use crate::validate_ro::traits::Validator; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules.rs - rules::Rule::object (line 119) stdout ---- [INFO] [stdout] error[E0599]: no method named `validate` found for opaque type `impl Validator` in the current scope [INFO] [stdout] --> src/rules.rs:125:19 [INFO] [stdout] | [INFO] [stdout] 9 | assert!(validator.validate(&json!({"key": "value"})).is_ok()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/traits.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn validate(&self, value: &Value) -> ValidationResult; [INFO] [stdout] | -------- the method is available for `impl Validator` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `validate_async` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/traits.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `Validator` which provides `validate` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use crate::validate_ro::traits::Validator; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules.rs - rules::Rule::length (line 232) stdout ---- [INFO] [stdout] error[E0599]: no method named `validate` found for opaque type `impl Validator` in the current scope [INFO] [stdout] --> src/rules.rs:238:19 [INFO] [stdout] | [INFO] [stdout] 9 | assert!(validator.validate(&json!("abc")).is_ok()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/traits.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn validate(&self, value: &Value) -> ValidationResult; [INFO] [stdout] | -------- the method is available for `impl Validator` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `validate_async` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/traits.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `Validator` which provides `validate` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use crate::validate_ro::traits::Validator; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `validate` found for opaque type `impl Validator` in the current scope [INFO] [stdout] --> src/rules.rs:239:19 [INFO] [stdout] | [INFO] [stdout] 10 | assert!(validator.validate(&json!([1, 2, 3])).is_ok()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/traits.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn validate(&self, value: &Value) -> ValidationResult; [INFO] [stdout] | -------- the method is available for `impl Validator` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `validate_async` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/traits.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `Validator` which provides `validate` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use crate::validate_ro::traits::Validator; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules.rs - rules::Rule::min_length (line 253) stdout ---- [INFO] [stdout] error[E0599]: no method named `validate` found for opaque type `impl Validator` in the current scope [INFO] [stdout] --> src/rules.rs:259:19 [INFO] [stdout] | [INFO] [stdout] 9 | assert!(validator.validate(&json!("long enough")).is_ok()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/traits.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn validate(&self, value: &Value) -> ValidationResult; [INFO] [stdout] | -------- the method is available for `impl Validator` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `validate_async` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/traits.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `Validator` which provides `validate` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use crate::validate_ro::traits::Validator; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rules.rs - rules::Rule::unique (line 623) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `user_id` in this scope [INFO] [stdout] --> src/rules.rs:631:53 [INFO] [stdout] | [INFO] [stdout] 11 | let validator = Rule::unique("users", "email", Some(user_id)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/rules.rs - rules::Rule::accepted (line 378) [INFO] [stdout] src/rules.rs - rules::Rule::array (line 92) [INFO] [stdout] src/rules.rs - rules::Rule::boolean (line 146) [INFO] [stdout] src/rules.rs - rules::Rule::equal (line 293) [INFO] [stdout] src/rules.rs - rules::Rule::extensions (line 572) [INFO] [stdout] src/rules.rs - rules::Rule::float (line 173) [INFO] [stdout] src/rules.rs - rules::Rule::in_values (line 438) [INFO] [stdout] src/rules.rs - rules::Rule::integer (line 200) [INFO] [stdout] src/rules.rs - rules::Rule::ip (line 534) [INFO] [stdout] src/rules.rs - rules::Rule::length (line 232) [INFO] [stdout] src/rules.rs - rules::Rule::max_length (line 273) [INFO] [stdout] src/rules.rs - rules::Rule::max_value (line 333) [INFO] [stdout] src/rules.rs - rules::Rule::min_length (line 253) [INFO] [stdout] src/rules.rs - rules::Rule::min_value (line 313) [INFO] [stdout] src/rules.rs - rules::Rule::not_in_values (line 460) [INFO] [stdout] src/rules.rs - rules::Rule::numeric (line 349) [INFO] [stdout] src/rules.rs - rules::Rule::object (line 119) [INFO] [stdout] src/rules.rs - rules::Rule::regex (line 482) [INFO] [stdout] src/rules.rs - rules::Rule::unique (line 623) [INFO] [stdout] src/rules.rs - rules::Rule::url (line 500) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 6 passed; 20 failed; 0 ignored; 0 measured; 0 filtered out; finished in 4.75s [INFO] [stdout] [INFO] [stdout] all doctests ran in 5.15s; merged doctests compilation took 0.40s [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "3d2cd3852fe6c26390c48fbf0e87e76761da2f724466d9b71d79a4f6dbae0b02", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3d2cd3852fe6c26390c48fbf0e87e76761da2f724466d9b71d79a4f6dbae0b02", kill_on_drop: false }` [INFO] [stdout] 3d2cd3852fe6c26390c48fbf0e87e76761da2f724466d9b71d79a4f6dbae0b02