[INFO] fetching crate wither_derive 0.9.0... [INFO] testing wither_derive-0.9.0 against beta-2025-10-28 for beta-1.92-2 [INFO] extracting crate wither_derive 0.9.0 into /workspace/builds/worker-5-tc2/source [INFO] started tweaking crates.io crate wither_derive 0.9.0 [INFO] finished tweaking crates.io crate wither_derive 0.9.0 [INFO] tweaked toml for crates.io crate wither_derive 0.9.0 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate wither_derive 0.9.0 on toolchain beta-2025-10-28 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-10-28" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-10-28" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 44 packages to latest compatible versions [INFO] [stderr] Adding darling v0.10.2 (available: v0.21.3) [INFO] [stderr] Adding syn v1.0.109 (available: v2.0.108) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-10-28" "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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-10-28" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d04680acfb08d31b4e2911ba1a285ab3f1cf3cd691bf680cd05d9f469ffb3658 [INFO] running `Command { std: "docker" "start" "-a" "d04680acfb08d31b4e2911ba1a285ab3f1cf3cd691bf680cd05d9f469ffb3658", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d04680acfb08d31b4e2911ba1a285ab3f1cf3cd691bf680cd05d9f469ffb3658", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d04680acfb08d31b4e2911ba1a285ab3f1cf3cd691bf680cd05d9f469ffb3658", kill_on_drop: false }` [INFO] [stdout] d04680acfb08d31b4e2911ba1a285ab3f1cf3cd691bf680cd05d9f469ffb3658 [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=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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-10-28" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 72d290c4b83db44637a17ab9c32a2cd19c5c9f9b0370a2cb34cf2bd537e62f68 [INFO] running `Command { std: "docker" "start" "-a" "72d290c4b83db44637a17ab9c32a2cd19c5c9f9b0370a2cb34cf2bd537e62f68", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling strsim v0.9.3 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling regex-syntax v0.8.8 [INFO] [stderr] Compiling syn v2.0.108 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling aho-corasick v1.1.4 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Compiling darling_core v0.10.2 [INFO] [stderr] Compiling regex v1.12.2 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling darling_macro v0.10.2 [INFO] [stderr] Compiling darling v0.10.2 [INFO] [stderr] Compiling wither_derive v0.9.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 27.74s [INFO] running `Command { std: "docker" "inspect" "72d290c4b83db44637a17ab9c32a2cd19c5c9f9b0370a2cb34cf2bd537e62f68", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72d290c4b83db44637a17ab9c32a2cd19c5c9f9b0370a2cb34cf2bd537e62f68", kill_on_drop: false }` [INFO] [stdout] 72d290c4b83db44637a17ab9c32a2cd19c5c9f9b0370a2cb34cf2bd537e62f68 [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=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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-10-28" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b15c3d55bdec8b06feef03c74b5de310a5adafedf76439ea412c757f8727a6bb [INFO] running `Command { std: "docker" "start" "-a" "b15c3d55bdec8b06feef03c74b5de310a5adafedf76439ea412c757f8727a6bb", kill_on_drop: false }` [INFO] [stderr] Compiling target-triple v1.0.0 [INFO] [stderr] Compiling winnow v0.7.13 [INFO] [stderr] Compiling toml_datetime v0.7.3 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling serde_spanned v1.0.3 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling toml_writer v1.0.4 [INFO] [stderr] Compiling glob v0.3.3 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling wither_derive v0.9.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling toml_parser v1.0.4 [INFO] [stderr] Compiling toml v0.9.8 [INFO] [stderr] Compiling trybuild v1.0.113 [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 9.31s [INFO] running `Command { std: "docker" "inspect" "b15c3d55bdec8b06feef03c74b5de310a5adafedf76439ea412c757f8727a6bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b15c3d55bdec8b06feef03c74b5de310a5adafedf76439ea412c757f8727a6bb", kill_on_drop: false }` [INFO] [stdout] b15c3d55bdec8b06feef03c74b5de310a5adafedf76439ea412c757f8727a6bb [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=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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-10-28" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 902f2e1f2751d592ab68e9c66ca1fe50a4d108d44498331feb2b80523b45a248 [INFO] running `Command { std: "docker" "start" "-a" "902f2e1f2751d592ab68e9c66ca1fe50a4d108d44498331feb2b80523b45a248", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.09s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/wither_derive-c069e050c5dec8bb) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stderr] Compiling proc-macro2 v1.0.103 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling unicode-ident v1.0.22 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling strsim v0.9.3 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling regex-syntax v0.8.8 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling aho-corasick v1.1.4 [INFO] [stderr] Compiling syn v2.0.108 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling darling_core v0.10.2 [INFO] [stderr] Compiling regex v1.12.2 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling darling_macro v0.10.2 [INFO] [stderr] Compiling darling v0.10.2 [INFO] [stdout] test test::derive_tests has been running for over 60 seconds [INFO] [stderr] Compiling wither_derive v0.9.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling wither_derive-tests v0.0.0 (/opt/rustwide/target/tests/trybuild/wither_derive) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 03s [INFO] [stderr] [INFO] [stderr] [INFO] [stderr] test tests/pass/model-collection-name.rs [should pass] ... error [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `wither` [INFO] [stderr] --> tests/pass/model-collection-name.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use wither::prelude::*; [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] [INFO] [stderr] error: cannot find derive macro `Model` in this scope [INFO] [stderr] --> tests/pass/model-collection-name.rs:4:34 [INFO] [stderr] | [INFO] [stderr] 4 | #[derive(Serialize, Deserialize, Model, Default)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] help: consider importing this derive macro [INFO] [stderr] | [INFO] [stderr] 1 + use wither_derive::Model; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error: cannot find attribute `model` in this scope [INFO] [stderr] --> tests/pass/model-collection-name.rs:5:3 [INFO] [stderr] | [INFO] [stderr] 5 | #[model(collection_name="derivations")] [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `wither` [INFO] [stderr] --> tests/pass/model-collection-name.rs:8:20 [INFO] [stderr] | [INFO] [stderr] 8 | pub id: Option, [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] [INFO] [stderr] error[E0599]: no associated item named `COLLECTION_NAME` found for struct `DerivedModel` in the current scope [INFO] [stderr] --> tests/pass/model-collection-name.rs:13:30 [INFO] [stderr] | [INFO] [stderr] 6 | struct DerivedModel { [INFO] [stderr] | ------------------- associated item `COLLECTION_NAME` not found for this struct [INFO] [stderr] ... [INFO] [stderr] 13 | assert_eq!(DerivedModel::COLLECTION_NAME, "derivations"); [INFO] [stderr] | ^^^^^^^^^^^^^^^ associated item not found in `DerivedModel` [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] [INFO] [stderr] test tests/pass/model-index.rs [should pass] ... error [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `wither` [INFO] [stderr] --> tests/pass/model-index.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use wither::bson::doc; [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `wither` [INFO] [stderr] --> tests/pass/model-index.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use wither::Model; [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] [INFO] [stderr] error: cannot find attribute `model` in this scope [INFO] [stderr] --> tests/pass/model-index.rs:6:3 [INFO] [stderr] | [INFO] [stderr] 6 | #[model( [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] help: `model` is an attribute that can be used by the derive macro `Model`, you might be missing a `derive` attribute [INFO] [stderr] | [INFO] [stderr] 11+ #[derive(Model)] [INFO] [stderr] 12| struct DerivedModel { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `wither` [INFO] [stderr] --> tests/pass/model-index.rs:13:20 [INFO] [stderr] | [INFO] [stderr] 13 | pub id: Option, [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] [INFO] [stderr] error[E0659]: `doc` is ambiguous [INFO] [stderr] --> tests/pass/model-index.rs:5:19 [INFO] [stderr] | [INFO] [stderr] 5 | #[derive(Default, Serialize, Deserialize, Model)] [INFO] [stderr] | ^^^^^^^^^ ambiguous name [INFO] [stderr] | [INFO] [stderr] = note: ambiguous because of a name conflict with a builtin attribute [INFO] [stderr] = note: `doc` could refer to a built-in attribute [INFO] [stderr] note: `doc` could also refer to the unresolved item imported here [INFO] [stderr] --> tests/pass/model-index.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use wither::bson::doc; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: use `crate::doc` to refer to this unresolved item unambiguously [INFO] [stderr] = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0659]: `doc` is ambiguous [INFO] [stderr] --> tests/pass/model-index.rs:5:30 [INFO] [stderr] | [INFO] [stderr] 5 | #[derive(Default, Serialize, Deserialize, Model)] [INFO] [stderr] | ^^^^^^^^^^^ ambiguous name [INFO] [stderr] | [INFO] [stderr] = note: ambiguous because of a name conflict with a builtin attribute [INFO] [stderr] = note: `doc` could refer to a built-in attribute [INFO] [stderr] note: `doc` could also refer to the unresolved item imported here [INFO] [stderr] --> tests/pass/model-index.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use wither::bson::doc; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: use `crate::doc` to refer to this unresolved item unambiguously [INFO] [stderr] = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `indexes` found for struct `DerivedModel` in the current scope [INFO] [stderr] --> tests/pass/model-index.rs:18:33 [INFO] [stderr] | [INFO] [stderr] 11 | struct DerivedModel { [INFO] [stderr] | ------------------- function or associated item `indexes` not found for this struct [INFO] [stderr] ... [INFO] [stderr] 18 | let indexes = DerivedModel::indexes(); [INFO] [stderr] | ^^^^^^^ function or associated item not found in `DerivedModel` [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] [INFO] [stderr] test tests/pass/model-read-concern.rs [should pass] ... error [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `wither` [INFO] [stderr] --> tests/pass/model-read-concern.rs:40:9 [INFO] [stderr] | [INFO] [stderr] 40 | use wither::mongodb::options::ReadConcern; [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `wither` [INFO] [stderr] --> tests/pass/model-read-concern.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use wither::Model; [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] [INFO] [stderr] error: cannot find attribute `model` in this scope [INFO] [stderr] --> tests/pass/model-read-concern.rs:5:3 [INFO] [stderr] | [INFO] [stderr] 5 | #[model(read_concern="local")] [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] help: `model` is an attribute that can be used by the derive macro `Model`, you might be missing a `derive` attribute [INFO] [stderr] | [INFO] [stderr] 6 + #[derive(Model)] [INFO] [stderr] 7 | struct Model0 { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error: cannot find attribute `model` in this scope [INFO] [stderr] --> tests/pass/model-read-concern.rs:12:3 [INFO] [stderr] | [INFO] [stderr] 12 | #[model(read_concern="majority")] [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] help: `model` is an attribute that can be used by the derive macro `Model`, you might be missing a `derive` attribute [INFO] [stderr] | [INFO] [stderr] 13 + #[derive(Model)] [INFO] [stderr] 14 | struct Model1 { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error: cannot find attribute `model` in this scope [INFO] [stderr] --> tests/pass/model-read-concern.rs:19:3 [INFO] [stderr] | [INFO] [stderr] 19 | #[model(read_concern="linearizable")] [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] help: `model` is an attribute that can be used by the derive macro `Model`, you might be missing a `derive` attribute [INFO] [stderr] | [INFO] [stderr] 20 + #[derive(Model)] [INFO] [stderr] 21 | struct Model2 { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error: cannot find attribute `model` in this scope [INFO] [stderr] --> tests/pass/model-read-concern.rs:26:3 [INFO] [stderr] | [INFO] [stderr] 26 | #[model(read_concern="available")] [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] help: `model` is an attribute that can be used by the derive macro `Model`, you might be missing a `derive` attribute [INFO] [stderr] | [INFO] [stderr] 27 + #[derive(Model)] [INFO] [stderr] 28 | struct Model3 { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error: cannot find attribute `model` in this scope [INFO] [stderr] --> tests/pass/model-read-concern.rs:33:3 [INFO] [stderr] | [INFO] [stderr] 33 | #[model(read_concern(custom="custom-concern"))] [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] help: `model` is an attribute that can be used by the derive macro `Model`, you might be missing a `derive` attribute [INFO] [stderr] | [INFO] [stderr] 34 + #[derive(Model)] [INFO] [stderr] 35 | struct Model4 { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `wither` [INFO] [stderr] --> tests/pass/model-read-concern.rs:8:20 [INFO] [stderr] | [INFO] [stderr] 8 | pub id: Option, [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `wither` [INFO] [stderr] --> tests/pass/model-read-concern.rs:15:20 [INFO] [stderr] | [INFO] [stderr] 15 | pub id: Option, [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `wither` [INFO] [stderr] --> tests/pass/model-read-concern.rs:22:20 [INFO] [stderr] | [INFO] [stderr] 22 | pub id: Option, [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `wither` [INFO] [stderr] --> tests/pass/model-read-concern.rs:29:20 [INFO] [stderr] | [INFO] [stderr] 29 | pub id: Option, [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `wither` [INFO] [stderr] --> tests/pass/model-read-concern.rs:36:20 [INFO] [stderr] | [INFO] [stderr] 36 | pub id: Option, [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `read_concern` found for struct `Model0` in the current scope [INFO] [stderr] --> tests/pass/model-read-concern.rs:46:24 [INFO] [stderr] | [INFO] [stderr] 6 | struct Model0 { [INFO] [stderr] | ------------- function or associated item `read_concern` not found for this struct [INFO] [stderr] ... [INFO] [stderr] 46 | assert_eq!(Model0::read_concern(), Some(ReadConcern::local())); [INFO] [stderr] | ^^^^^^^^^^^^ function or associated item not found in `Model0` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `read_concern` found for struct `Model1` in the current scope [INFO] [stderr] --> tests/pass/model-read-concern.rs:47:24 [INFO] [stderr] | [INFO] [stderr] 13 | struct Model1 { [INFO] [stderr] | ------------- function or associated item `read_concern` not found for this struct [INFO] [stderr] ... [INFO] [stderr] 47 | assert_eq!(Model1::read_concern(), Some(ReadConcern::majority())); [INFO] [stderr] | ^^^^^^^^^^^^ function or associated item not found in `Model1` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `read_concern` found for struct `Model2` in the current scope [INFO] [stderr] --> tests/pass/model-read-concern.rs:48:24 [INFO] [stderr] | [INFO] [stderr] 20 | struct Model2 { [INFO] [stderr] | ------------- function or associated item `read_concern` not found for this struct [INFO] [stderr] ... [INFO] [stderr] 48 | assert_eq!(Model2::read_concern(), Some(ReadConcern::linearizable())); [INFO] [stderr] | ^^^^^^^^^^^^ function or associated item not found in `Model2` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `read_concern` found for struct `Model3` in the current scope [INFO] [stderr] --> tests/pass/model-read-concern.rs:49:24 [INFO] [stderr] | [INFO] [stderr] 27 | struct Model3 { [INFO] [stderr] | ------------- function or associated item `read_concern` not found for this struct [INFO] [stderr] ... [INFO] [stderr] 49 | assert_eq!(Model3::read_concern(), Some(ReadConcern::available())); [INFO] [stderr] | ^^^^^^^^^^^^ function or associated item not found in `Model3` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `read_concern` found for struct `Model4` in the current scope [INFO] [stderr] --> tests/pass/model-read-concern.rs:50:24 [INFO] [stderr] | [INFO] [stderr] 34 | struct Model4 { [INFO] [stderr] | ------------- function or associated item `read_concern` not found for this struct [INFO] [stderr] ... [INFO] [stderr] 50 | assert_eq!(Model4::read_concern(), Some(ReadConcern::custom(String::from("custom-concern")))); [INFO] [stderr] | ^^^^^^^^^^^^ function or associated item not found in `Model4` [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] [INFO] [stderr] test tests/pass/model-selection-criteria.rs [should pass] ... error [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `wither` [INFO] [stderr] --> tests/pass/model-selection-criteria.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use wither::prelude::*; [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] [INFO] [stderr] error: cannot find derive macro `Model` in this scope [INFO] [stderr] --> tests/pass/model-selection-criteria.rs:4:34 [INFO] [stderr] | [INFO] [stderr] 4 | #[derive(Serialize, Deserialize, Model, Default)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] help: consider importing this derive macro [INFO] [stderr] | [INFO] [stderr] 1 + use wither_derive::Model; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error: cannot find attribute `model` in this scope [INFO] [stderr] --> tests/pass/model-selection-criteria.rs:5:3 [INFO] [stderr] | [INFO] [stderr] 5 | #[model(selection_criteria="DerivedModel::get_selection_criteria")] [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `wither` [INFO] [stderr] --> tests/pass/model-selection-criteria.rs:8:20 [INFO] [stderr] | [INFO] [stderr] 8 | pub id: Option, [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `wither` [INFO] [stderr] --> tests/pass/model-selection-criteria.rs:13:57 [INFO] [stderr] | [INFO] [stderr] 13 | assert_eq!(DerivedModel::selection_criteria(), Some(wither::mongodb::options::SelectionCriteria::ReadPreference( [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `wither` [INFO] [stderr] --> tests/pass/model-selection-criteria.rs:14:9 [INFO] [stderr] | [INFO] [stderr] 14 | wither::mongodb::options::ReadPreference::Primary [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `wither` [INFO] [stderr] --> tests/pass/model-selection-criteria.rs:19:40 [INFO] [stderr] | [INFO] [stderr] 19 | pub fn get_selection_criteria() -> wither::mongodb::options::SelectionCriteria { [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `wither` [INFO] [stderr] --> tests/pass/model-selection-criteria.rs:20:9 [INFO] [stderr] | [INFO] [stderr] 20 | wither::mongodb::options::SelectionCriteria::ReadPreference( [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `wither` [INFO] [stderr] --> tests/pass/model-selection-criteria.rs:21:13 [INFO] [stderr] | [INFO] [stderr] 21 | wither::mongodb::options::ReadPreference::Primary [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `selection_criteria` found for struct `DerivedModel` in the current scope [INFO] [stderr] --> tests/pass/model-selection-criteria.rs:13:30 [INFO] [stderr] | [INFO] [stderr] 6 | struct DerivedModel { [INFO] [stderr] | ------------------- function or associated item `selection_criteria` not found for this struct [INFO] [stderr] ... [INFO] [stderr] 13 | assert_eq!(DerivedModel::selection_criteria(), Some(wither::mongodb::options::SelectionCriteria::ReadPreference( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ function or associated item not found in `DerivedModel` [INFO] [stderr] | [INFO] [stderr] help: there is an associated function `get_selection_criteria` with a similar name [INFO] [stderr] | [INFO] [stderr] 13 | assert_eq!(DerivedModel::get_selection_criteria(), Some(wither::mongodb::options::SelectionCriteria::ReadPreference( [INFO] [stderr] | ++++ [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] [INFO] [stderr] test tests/pass/model-skip-serde-checks.rs [should pass] ... error [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error[E0432]: unresolved import `wither` [INFO] [stderr] --> tests/pass/model-skip-serde-checks.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use wither::Model; [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] [INFO] [stderr] error: cannot find attribute `model` in this scope [INFO] [stderr] --> tests/pass/model-skip-serde-checks.rs:6:3 [INFO] [stderr] | [INFO] [stderr] 6 | #[model(skip_serde_checks)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] help: `model` is an attribute that can be used by the derive macro `Model`, you might be missing a `derive` attribute [INFO] [stderr] | [INFO] [stderr] 7 + #[derive(Model)] [INFO] [stderr] 8 | struct DerivedModel { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `wither` [INFO] [stderr] --> tests/pass/model-skip-serde-checks.rs:8:20 [INFO] [stderr] | [INFO] [stderr] 8 | pub id: Option, [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] [INFO] [stderr] test tests/pass/model-write-concern.rs [should pass] ... error [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `wither` [INFO] [stderr] --> tests/pass/model-write-concern.rs:47:9 [INFO] [stderr] | [INFO] [stderr] 47 | use wither::mongodb::options::WriteConcern; [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `wither` [INFO] [stderr] --> tests/pass/model-write-concern.rs:48:9 [INFO] [stderr] | [INFO] [stderr] 48 | use wither::mongodb::options::Acknowledgment; [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `wither` [INFO] [stderr] --> tests/pass/model-write-concern.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use wither::Model; [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] [INFO] [stderr] error: cannot find attribute `model` in this scope [INFO] [stderr] --> tests/pass/model-write-concern.rs:5:3 [INFO] [stderr] | [INFO] [stderr] 5 | #[model(write_concern(w="majority", w_timeout=10, journal=true))] [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] help: `model` is an attribute that can be used by the derive macro `Model`, you might be missing a `derive` attribute [INFO] [stderr] | [INFO] [stderr] 6 + #[derive(Model)] [INFO] [stderr] 7 | struct Model0 { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error: cannot find attribute `model` in this scope [INFO] [stderr] --> tests/pass/model-write-concern.rs:12:3 [INFO] [stderr] | [INFO] [stderr] 12 | #[model(write_concern(w(nodes=3), w_timeout=0, journal=false))] [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] help: `model` is an attribute that can be used by the derive macro `Model`, you might be missing a `derive` attribute [INFO] [stderr] | [INFO] [stderr] 13 + #[derive(Model)] [INFO] [stderr] 14 | struct Model1 { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error: cannot find attribute `model` in this scope [INFO] [stderr] --> tests/pass/model-write-concern.rs:19:3 [INFO] [stderr] | [INFO] [stderr] 19 | #[model(write_concern(w(custom="custom")))] [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] help: `model` is an attribute that can be used by the derive macro `Model`, you might be missing a `derive` attribute [INFO] [stderr] | [INFO] [stderr] 20 + #[derive(Model)] [INFO] [stderr] 21 | struct Model2 { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error: cannot find attribute `model` in this scope [INFO] [stderr] --> tests/pass/model-write-concern.rs:26:3 [INFO] [stderr] | [INFO] [stderr] 26 | #[model(write_concern(w_timeout=999))] [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] help: `model` is an attribute that can be used by the derive macro `Model`, you might be missing a `derive` attribute [INFO] [stderr] | [INFO] [stderr] 27 + #[derive(Model)] [INFO] [stderr] 28 | struct Model3 { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error: cannot find attribute `model` in this scope [INFO] [stderr] --> tests/pass/model-write-concern.rs:33:3 [INFO] [stderr] | [INFO] [stderr] 33 | #[model(write_concern(journal=true))] [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] help: `model` is an attribute that can be used by the derive macro `Model`, you might be missing a `derive` attribute [INFO] [stderr] | [INFO] [stderr] 34 + #[derive(Model)] [INFO] [stderr] 35 | struct Model4 { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error: cannot find attribute `model` in this scope [INFO] [stderr] --> tests/pass/model-write-concern.rs:40:3 [INFO] [stderr] | [INFO] [stderr] 40 | #[model(write_concern())] [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] help: `model` is an attribute that can be used by the derive macro `Model`, you might be missing a `derive` attribute [INFO] [stderr] | [INFO] [stderr] 41 + #[derive(Model)] [INFO] [stderr] 42 | struct Model5 { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `wither` [INFO] [stderr] --> tests/pass/model-write-concern.rs:8:20 [INFO] [stderr] | [INFO] [stderr] 8 | pub id: Option, [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `wither` [INFO] [stderr] --> tests/pass/model-write-concern.rs:15:20 [INFO] [stderr] | [INFO] [stderr] 15 | pub id: Option, [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `wither` [INFO] [stderr] --> tests/pass/model-write-concern.rs:22:20 [INFO] [stderr] | [INFO] [stderr] 22 | pub id: Option, [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `wither` [INFO] [stderr] --> tests/pass/model-write-concern.rs:29:20 [INFO] [stderr] | [INFO] [stderr] 29 | pub id: Option, [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `wither` [INFO] [stderr] --> tests/pass/model-write-concern.rs:36:20 [INFO] [stderr] | [INFO] [stderr] 36 | pub id: Option, [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `wither` [INFO] [stderr] --> tests/pass/model-write-concern.rs:43:20 [INFO] [stderr] | [INFO] [stderr] 43 | pub id: Option, [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `write_concern` found for struct `Model0` in the current scope [INFO] [stderr] --> tests/pass/model-write-concern.rs:55:24 [INFO] [stderr] | [INFO] [stderr] 6 | struct Model0 { [INFO] [stderr] | ------------- function or associated item `write_concern` not found for this struct [INFO] [stderr] ... [INFO] [stderr] 55 | assert_eq!(Model0::write_concern(), Some(WriteConcern::builder() [INFO] [stderr] | ^^^^^^^^^^^^^ function or associated item not found in `Model0` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `write_concern` found for struct `Model1` in the current scope [INFO] [stderr] --> tests/pass/model-write-concern.rs:60:24 [INFO] [stderr] | [INFO] [stderr] 13 | struct Model1 { [INFO] [stderr] | ------------- function or associated item `write_concern` not found for this struct [INFO] [stderr] ... [INFO] [stderr] 60 | assert_eq!(Model1::write_concern(), Some(WriteConcern::builder() [INFO] [stderr] | ^^^^^^^^^^^^^ function or associated item not found in `Model1` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `write_concern` found for struct `Model2` in the current scope [INFO] [stderr] --> tests/pass/model-write-concern.rs:65:24 [INFO] [stderr] | [INFO] [stderr] 20 | struct Model2 { [INFO] [stderr] | ------------- function or associated item `write_concern` not found for this struct [INFO] [stderr] ... [INFO] [stderr] 65 | assert_eq!(Model2::write_concern(), Some(WriteConcern::builder() [INFO] [stderr] | ^^^^^^^^^^^^^ function or associated item not found in `Model2` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `write_concern` found for struct `Model3` in the current scope [INFO] [stderr] --> tests/pass/model-write-concern.rs:68:24 [INFO] [stderr] | [INFO] [stderr] 27 | struct Model3 { [INFO] [stderr] | ------------- function or associated item `write_concern` not found for this struct [INFO] [stderr] ... [INFO] [stderr] 68 | assert_eq!(Model3::write_concern(), Some(WriteConcern::builder() [INFO] [stderr] | ^^^^^^^^^^^^^ function or associated item not found in `Model3` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `write_concern` found for struct `Model4` in the current scope [INFO] [stderr] --> tests/pass/model-write-concern.rs:71:24 [INFO] [stderr] | [INFO] [stderr] 34 | struct Model4 { [INFO] [stderr] | ------------- function or associated item `write_concern` not found for this struct [INFO] [stderr] ... [INFO] [stderr] 71 | assert_eq!(Model4::write_concern(), Some(WriteConcern::builder() [INFO] [stderr] | ^^^^^^^^^^^^^ function or associated item not found in `Model4` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `write_concern` found for struct `Model5` in the current scope [INFO] [stderr] --> tests/pass/model-write-concern.rs:73:24 [INFO] [stderr] | [INFO] [stderr] 41 | struct Model5 { [INFO] [stderr] | ------------- function or associated item `write_concern` not found for this struct [INFO] [stderr] ... [INFO] [stderr] 73 | assert_eq!(Model5::write_concern(), Some(WriteConcern::builder().build())); [INFO] [stderr] | ^^^^^^^^^^^^^ function or associated item not found in `Model5` [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] [INFO] [stderr] test tests/fail/field-id-incorrect-serde-rename-value.rs [should fail to compile] ... mismatch [INFO] [stderr] [INFO] [stderr] EXPECTED: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error: the serde `rename` attr for wither::Model ID fields should be `rename="_id"` [INFO] [stderr] --> $DIR/field-id-incorrect-serde-rename-value.rs:6:13 [INFO] [stderr] | [INFO] [stderr] 6 | #[serde(rename="_bad", skip_serializing_if="Option::is_none")] [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] [INFO] [stderr] ACTUAL OUTPUT: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error[E0432]: unresolved import `wither` [INFO] [stderr] --> tests/fail/field-id-incorrect-serde-rename-value.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use wither::Model; [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `wither` [INFO] [stderr] --> tests/fail/field-id-incorrect-serde-rename-value.rs:7:16 [INFO] [stderr] | [INFO] [stderr] 7 | id: Option, [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] note: If the actual output is the correct output you can bless it by rerunning [INFO] [stderr] your test with the environment variable TRYBUILD=overwrite [INFO] [stderr] [INFO] [stderr] test tests/fail/field-id-incorrect-serde-skip-value.rs [should fail to compile] ... mismatch [INFO] [stderr] [INFO] [stderr] EXPECTED: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error: the serde `skip_serializing_if` attr for wither::Model ID fields should be `skip_serializing_if="Option::is_none"` [INFO] [stderr] --> $DIR/field-id-incorrect-serde-skip-value.rs:6:27 [INFO] [stderr] | [INFO] [stderr] 6 | #[serde(rename="_id", skip_serializing_if="Option::is_some")] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] [INFO] [stderr] ACTUAL OUTPUT: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error[E0432]: unresolved import `wither` [INFO] [stderr] --> tests/fail/field-id-incorrect-serde-skip-value.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use wither::Model; [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `wither` [INFO] [stderr] --> tests/fail/field-id-incorrect-serde-skip-value.rs:7:16 [INFO] [stderr] | [INFO] [stderr] 7 | id: Option, [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] note: If the actual output is the correct output you can bless it by rerunning [INFO] [stderr] your test with the environment variable TRYBUILD=overwrite [INFO] [stderr] [INFO] [stderr] test tests/fail/field-id-incorrect-type.rs [should fail to compile] ... mismatch [INFO] [stderr] [INFO] [stderr] EXPECTED: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> $DIR/field-id-incorrect-type.rs:4:34 [INFO] [stderr] | [INFO] [stderr] 4 | #[derive(Serialize, Deserialize, Model)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] | | [INFO] [stderr] | expected struct `wither::bson::oid::ObjectId`, found struct `std::string::String` [INFO] [stderr] | expected `std::option::Option` because of return type [INFO] [stderr] | [INFO] [stderr] = note: expected enum `std::option::Option` [INFO] [stderr] found enum `std::option::Option` [INFO] [stderr] = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> $DIR/field-id-incorrect-type.rs:4:34 [INFO] [stderr] | [INFO] [stderr] 4 | #[derive(Serialize, Deserialize, Model)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] | | [INFO] [stderr] | expected struct `std::string::String`, found struct `wither::bson::oid::ObjectId` [INFO] [stderr] | help: try using a conversion method: `Model.to_string()` [INFO] [stderr] | [INFO] [stderr] = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] [INFO] [stderr] ACTUAL OUTPUT: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error[E0432]: unresolved import `wither` [INFO] [stderr] --> tests/fail/field-id-incorrect-type.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use wither::Model; [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] note: If the actual output is the correct output you can bless it by rerunning [INFO] [stderr] your test with the environment variable TRYBUILD=overwrite [INFO] [stderr] [INFO] [stderr] test tests/fail/field-id-missing-serde-attrs.rs [should fail to compile] ... mismatch [INFO] [stderr] [INFO] [stderr] EXPECTED: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error: the ID field of wither::Models must have the attribute `#[serde(rename="_id", skip_serializing_if="Option::is_none")]` [INFO] [stderr] --> $DIR/field-id-missing-serde-attrs.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | id: Option, [INFO] [stderr] | ^^ [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] [INFO] [stderr] ACTUAL OUTPUT: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error[E0432]: unresolved import `wither` [INFO] [stderr] --> tests/fail/field-id-missing-serde-attrs.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use wither::Model; [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `wither` [INFO] [stderr] --> tests/fail/field-id-missing-serde-attrs.rs:6:16 [INFO] [stderr] | [INFO] [stderr] 6 | id: Option, [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] note: If the actual output is the correct output you can bless it by rerunning [INFO] [stderr] your test with the environment variable TRYBUILD=overwrite [INFO] [stderr] [INFO] [stderr] test tests/fail/field-id-missing.rs [should fail to compile] ... mismatch [INFO] [stderr] [INFO] [stderr] EXPECTED: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error: wither models must have a field `id` of type `Option` [INFO] [stderr] --> $DIR/field-id-missing.rs:5:8 [INFO] [stderr] | [INFO] [stderr] 5 | struct BadModel { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] [INFO] [stderr] ACTUAL OUTPUT: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error[E0432]: unresolved import `wither` [INFO] [stderr] --> tests/fail/field-id-missing.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use wither::Model; [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] note: If the actual output is the correct output you can bless it by rerunning [INFO] [stderr] your test with the environment variable TRYBUILD=overwrite [INFO] [stderr] [INFO] [stderr] test tests/fail/model-attr-invalid.rs [should fail to compile] ... mismatch [INFO] [stderr] [INFO] [stderr] EXPECTED: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error: wither expected this attribute to be formatted as a meta list, eg: `#[model(...)]` [INFO] [stderr] --> $DIR/model-attr-invalid.rs:5:3 [INFO] [stderr] | [INFO] [stderr] 5 | #[model=""] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] [INFO] [stderr] ACTUAL OUTPUT: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error[E0432]: unresolved import `wither` [INFO] [stderr] --> tests/fail/model-attr-invalid.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use wither::Model; [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] [INFO] [stderr] error: cannot find attribute `model` in this scope [INFO] [stderr] --> tests/fail/model-attr-invalid.rs:5:3 [INFO] [stderr] | [INFO] [stderr] 5 | #[model=""] [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] help: `model` is an attribute that can be used by the derive macro `Model`, you might be missing a `derive` attribute [INFO] [stderr] | [INFO] [stderr] 6 + #[derive(Model)] [INFO] [stderr] 7 | struct BadModel { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `wither` [INFO] [stderr] --> tests/fail/model-attr-invalid.rs:8:20 [INFO] [stderr] | [INFO] [stderr] 8 | pub id: Option, [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] note: If the actual output is the correct output you can bless it by rerunning [INFO] [stderr] your test with the environment variable TRYBUILD=overwrite [INFO] [stderr] [INFO] [stderr] test tests/fail/model-collection-name-zero-length.rs [should fail to compile] ... mismatch [INFO] [stderr] [INFO] [stderr] EXPECTED: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error: wither model collection names must be at least one character in length [INFO] [stderr] --> $DIR/model-collection-name-zero-length.rs:5:9 [INFO] [stderr] | [INFO] [stderr] 5 | #[model(collection_name="")] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] [INFO] [stderr] ACTUAL OUTPUT: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error[E0432]: unresolved import `wither` [INFO] [stderr] --> tests/fail/model-collection-name-zero-length.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use wither::Model; [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] [INFO] [stderr] error: cannot find attribute `model` in this scope [INFO] [stderr] --> tests/fail/model-collection-name-zero-length.rs:5:3 [INFO] [stderr] | [INFO] [stderr] 5 | #[model(collection_name="")] [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] help: `model` is an attribute that can be used by the derive macro `Model`, you might be missing a `derive` attribute [INFO] [stderr] | [INFO] [stderr] 6 + #[derive(Model)] [INFO] [stderr] 7 | struct BadModel { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `wither` [INFO] [stderr] --> tests/fail/model-collection-name-zero-length.rs:8:20 [INFO] [stderr] | [INFO] [stderr] 8 | pub id: Option, [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] note: If the actual output is the correct output you can bless it by rerunning [INFO] [stderr] your test with the environment variable TRYBUILD=overwrite [INFO] [stderr] [INFO] [stderr] test tests/fail/model-enum.rs [should fail to compile] ... mismatch [INFO] [stderr] [INFO] [stderr] EXPECTED: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error: only structs can be used as wither models [INFO] [stderr] --> $DIR/model-enum.rs:5:1 [INFO] [stderr] | [INFO] [stderr] 5 | enum BadModel {} [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] [INFO] [stderr] ACTUAL OUTPUT: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error[E0432]: unresolved import `wither` [INFO] [stderr] --> tests/fail/model-enum.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use wither::Model; [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] note: If the actual output is the correct output you can bless it by rerunning [INFO] [stderr] your test with the environment variable TRYBUILD=overwrite [INFO] [stderr] [INFO] [stderr] test tests/fail/model-no-fields.rs [should fail to compile] ... mismatch [INFO] [stderr] [INFO] [stderr] EXPECTED: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error: wither models must have named fields [INFO] [stderr] --> $DIR/model-no-fields.rs:5:1 [INFO] [stderr] | [INFO] [stderr] 5 | struct BadModel; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] [INFO] [stderr] ACTUAL OUTPUT: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error[E0432]: unresolved import `wither` [INFO] [stderr] --> tests/fail/model-no-fields.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use wither::Model; [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] note: If the actual output is the correct output you can bless it by rerunning [INFO] [stderr] your test with the environment variable TRYBUILD=overwrite [INFO] [stderr] [INFO] [stderr] test tests/fail/model-read-concern-invalid-syntax.rs [should fail to compile] ... mismatch [INFO] [stderr] [INFO] [stderr] EXPECTED: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error: malformed attribute [INFO] [stderr] [INFO] [stderr] = help: expected literal [INFO] [stderr] [INFO] [stderr] --> $DIR/model-read-concern-invalid-syntax.rs:5:1 [INFO] [stderr] | [INFO] [stderr] 5 | #[model(read_concern=ReadConcern::Majority)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `read_concern` found for struct `DerivedModel` in the current scope [INFO] [stderr] --> $DIR/model-read-concern-invalid-syntax.rs:12:27 [INFO] [stderr] | [INFO] [stderr] 6 | struct DerivedModel { [INFO] [stderr] | ------------------- function or associated item `read_concern` not found for this [INFO] [stderr] ... [INFO] [stderr] 12 | assert!(DerivedModel::read_concern().is_none()); [INFO] [stderr] | ^^^^^^^^^^^^ function or associated item not found in `DerivedModel` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `read_concern`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `Model` [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] [INFO] [stderr] ACTUAL OUTPUT: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error[E0432]: unresolved import `wither` [INFO] [stderr] --> tests/fail/model-read-concern-invalid-syntax.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use wither::Model; [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] [INFO] [stderr] error: cannot find attribute `model` in this scope [INFO] [stderr] --> tests/fail/model-read-concern-invalid-syntax.rs:5:3 [INFO] [stderr] | [INFO] [stderr] 5 | #[model(read_concern=ReadConcern::Majority)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] help: `model` is an attribute that can be used by the derive macro `Model`, you might be missing a `derive` attribute [INFO] [stderr] | [INFO] [stderr] 6 + #[derive(Model)] [INFO] [stderr] 7 | struct DerivedModel { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `wither` [INFO] [stderr] --> tests/fail/model-read-concern-invalid-syntax.rs:8:20 [INFO] [stderr] | [INFO] [stderr] 8 | pub id: Option, [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `read_concern` found for struct `DerivedModel` in the current scope [INFO] [stderr] --> tests/fail/model-read-concern-invalid-syntax.rs:12:27 [INFO] [stderr] | [INFO] [stderr] 6 | struct DerivedModel { [INFO] [stderr] | ------------------- function or associated item `read_concern` not found for this struct [INFO] [stderr] ... [INFO] [stderr] 12 | assert!(DerivedModel::read_concern().is_none()); [INFO] [stderr] | ^^^^^^^^^^^^ function or associated item not found in `DerivedModel` [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] note: If the actual output is the correct output you can bless it by rerunning [INFO] [stderr] your test with the environment variable TRYBUILD=overwrite [INFO] [stderr] [INFO] [stderr] test tests/fail/model-read-concern-invalid.rs [should fail to compile] ... mismatch [INFO] [stderr] [INFO] [stderr] EXPECTED: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error: malformed wither model read concern attribute [INFO] [stderr] [INFO] [stderr] = help: Unknown literal value `invalid` [INFO] [stderr] [INFO] [stderr] --> $DIR/model-read-concern-invalid.rs:5:9 [INFO] [stderr] | [INFO] [stderr] 5 | #[model(read_concern="invalid")] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] [INFO] [stderr] ACTUAL OUTPUT: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error[E0432]: unresolved import `wither` [INFO] [stderr] --> tests/fail/model-read-concern-invalid.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use wither::Model; [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] [INFO] [stderr] error: cannot find attribute `model` in this scope [INFO] [stderr] --> tests/fail/model-read-concern-invalid.rs:5:3 [INFO] [stderr] | [INFO] [stderr] 5 | #[model(read_concern="invalid")] [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] help: `model` is an attribute that can be used by the derive macro `Model`, you might be missing a `derive` attribute [INFO] [stderr] | [INFO] [stderr] 6 + #[derive(Model)] [INFO] [stderr] 7 | struct BadModel { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `wither` [INFO] [stderr] --> tests/fail/model-read-concern-invalid.rs:8:20 [INFO] [stderr] | [INFO] [stderr] 8 | pub id: Option, [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] note: If the actual output is the correct output you can bless it by rerunning [INFO] [stderr] your test with the environment variable TRYBUILD=overwrite [INFO] [stderr] [INFO] [stderr] test tests/fail/model-selection-criteria-invalid-fn-path.rs [should fail to compile] ... mismatch [INFO] [stderr] [INFO] [stderr] EXPECTED: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error[E0599]: no function or associated item named `get_selection_criteria` found for struct `BadModel` in the current scope [INFO] [stderr] --> $DIR/model-selection-criteria-invalid-fn-path.rs:5:28 [INFO] [stderr] | [INFO] [stderr] 5 | #[model(selection_criteria="BadModel::get_selection_criteria")] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `BadModel` [INFO] [stderr] 6 | struct BadModel { [INFO] [stderr] | --------------- function or associated item `get_selection_criteria` not found for this [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] [INFO] [stderr] ACTUAL OUTPUT: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error[E0432]: unresolved import `wither` [INFO] [stderr] --> tests/fail/model-selection-criteria-invalid-fn-path.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use wither::Model; [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] [INFO] [stderr] error: cannot find attribute `model` in this scope [INFO] [stderr] --> tests/fail/model-selection-criteria-invalid-fn-path.rs:5:3 [INFO] [stderr] | [INFO] [stderr] 5 | #[model(selection_criteria="BadModel::get_selection_criteria")] [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] help: `model` is an attribute that can be used by the derive macro `Model`, you might be missing a `derive` attribute [INFO] [stderr] | [INFO] [stderr] 6 + #[derive(Model)] [INFO] [stderr] 7 | struct BadModel { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `wither` [INFO] [stderr] --> tests/fail/model-selection-criteria-invalid-fn-path.rs:8:20 [INFO] [stderr] | [INFO] [stderr] 8 | pub id: Option, [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] note: If the actual output is the correct output you can bless it by rerunning [INFO] [stderr] your test with the environment variable TRYBUILD=overwrite [INFO] [stderr] [INFO] [stderr] test tests/fail/model-unrecognized-attr.rs [should fail to compile] ... mismatch [INFO] [stderr] [INFO] [stderr] EXPECTED: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error: unrecognized wither model attribute [INFO] [stderr] --> $DIR/model-unrecognized-attr.rs:5:9 [INFO] [stderr] | [INFO] [stderr] 5 | #[model(bad_attr="val")] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] [INFO] [stderr] ACTUAL OUTPUT: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error[E0432]: unresolved import `wither` [INFO] [stderr] --> tests/fail/model-unrecognized-attr.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use wither::Model; [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] [INFO] [stderr] error: cannot find attribute `model` in this scope [INFO] [stderr] --> tests/fail/model-unrecognized-attr.rs:5:3 [INFO] [stderr] | [INFO] [stderr] 5 | #[model(bad_attr="val")] [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] help: `model` is an attribute that can be used by the derive macro `Model`, you might be missing a `derive` attribute [INFO] [stderr] | [INFO] [stderr] 6 + #[derive(Model)] [INFO] [stderr] 7 | struct BadModel { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `wither` [INFO] [stderr] --> tests/fail/model-unrecognized-attr.rs:8:20 [INFO] [stderr] | [INFO] [stderr] 8 | pub id: Option, [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] note: If the actual output is the correct output you can bless it by rerunning [INFO] [stderr] your test with the environment variable TRYBUILD=overwrite [INFO] [stderr] [INFO] [stderr] test tests/fail/model-write-concern-ack-invalid.rs [should fail to compile] ... mismatch [INFO] [stderr] [INFO] [stderr] EXPECTED: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error: malformed attribute [INFO] [stderr] [INFO] [stderr] = help: expected literal [INFO] [stderr] [INFO] [stderr] --> $DIR/model-write-concern-ack-invalid.rs:5:1 [INFO] [stderr] | [INFO] [stderr] 5 | #[model(write_concern(w=WriteConcern::Majority, w_timeout=10, journal=false))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `write_concern` found for struct `DerivedModel` in the current scope [INFO] [stderr] --> $DIR/model-write-concern-ack-invalid.rs:12:27 [INFO] [stderr] | [INFO] [stderr] 6 | struct DerivedModel { [INFO] [stderr] | ------------------- function or associated item `write_concern` not found for this [INFO] [stderr] ... [INFO] [stderr] 12 | assert!(DerivedModel::write_concern().is_none()); [INFO] [stderr] | ^^^^^^^^^^^^^ function or associated item not found in `DerivedModel` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `write_concern`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `Model` [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] [INFO] [stderr] ACTUAL OUTPUT: [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] error[E0432]: unresolved import `wither` [INFO] [stderr] --> tests/fail/model-write-concern-ack-invalid.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use wither::Model; [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] [INFO] [stderr] error: cannot find attribute `model` in this scope [INFO] [stderr] --> tests/fail/model-write-concern-ack-invalid.rs:5:3 [INFO] [stderr] | [INFO] [stderr] 5 | #[model(write_concern(w=WriteConcern::Majority, w_timeout=10, journal=false))] [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] help: `model` is an attribute that can be used by the derive macro `Model`, you might be missing a `derive` attribute [INFO] [stderr] | [INFO] [stderr] 6 + #[derive(Model)] [INFO] [stderr] 7 | struct DerivedModel { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `wither` [INFO] [stderr] --> tests/fail/model-write-concern-ack-invalid.rs:8:20 [INFO] [stderr] | [INFO] [stderr] 8 | pub id: Option, [INFO] [stderr] | ^^^^^^ use of unresolved module or unlinked crate `wither` [INFO] [stderr] | [INFO] [stderr] = help: if you wanted to use a crate named `wither`, use `cargo add wither` to add it to your `Cargo.toml` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `write_concern` found for struct `DerivedModel` in the current scope [INFO] [stderr] --> tests/fail/model-write-concern-ack-invalid.rs:12:27 [INFO] [stderr] | [INFO] [stderr] 6 | struct DerivedModel { [INFO] [stderr] | ------------------- function or associated item `write_concern` not found for this struct [INFO] [stderr] ... [INFO] [stderr] 12 | assert!(DerivedModel::write_concern().is_none()); [INFO] [stderr] | ^^^^^^^^^^^^^ function or associated item not found in `DerivedModel` [INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ [INFO] [stderr] note: If the actual output is the correct output you can bless it by rerunning [INFO] [stderr] your test with the environment variable TRYBUILD=overwrite [INFO] [stderr] [INFO] [stderr] [INFO] [stderr] [INFO] [stderr] error: test failed, to rerun pass `--lib` [INFO] [stdout] test test::derive_tests ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- test::derive_tests stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'test::derive_tests' (17) panicked at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/trybuild-1.0.113/src/run.rs:102:13: [INFO] [stdout] 20 of 20 tests failed [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7b239c9ba102 - std::backtrace_rs::backtrace::libunwind::trace::h16acf28769fcd909 [INFO] [stdout] at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x7b239c9ba102 - std::backtrace_rs::backtrace::trace_unsynchronized::hb5541aa5d4f92513 [INFO] [stdout] at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x7b239c9ba102 - std::sys::backtrace::_print_fmt::h8ac8268cb667a306 [INFO] [stdout] at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x7b239c9ba102 - ::fmt::h47627beda0767f4c [INFO] [stdout] at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x7b239c9ea88f - core::fmt::rt::Argument::fmt::h686a01ad57c1c92a [INFO] [stdout] at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x7b239c9ea88f - core::fmt::write::h8a63064c67176fd8 [INFO] [stdout] at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/core/src/fmt/mod.rs:1469:25 [INFO] [stdout] 6: 0x7b239c96b703 - std::io::default_write_fmt::hd4797e693c0ec256 [INFO] [stdout] at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x7b239c96b703 - std::io::Write::write_fmt::h791e240ad2720c99 [INFO] [stdout] at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x7b239c980dd2 - std::sys::backtrace::BacktraceLock::print::h4634d27c0afbaebb [INFO] [stdout] at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x7b239c98918a - std::panicking::default_hook::{{closure}}::h23e0299d4738b766 [INFO] [stdout] at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x7b239c98901c - std::panicking::default_hook::hfeec6294e8751b62 [INFO] [stdout] at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x5f924f2d7a3e - as core::ops::function::Fn>::call::h3f5a16438cee2b4e [INFO] [stdout] at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/alloc/src/boxed.rs:2019:9 [INFO] [stdout] 12: 0x5f924f2d7a3e - test::test_main_with_exit_callback::{{closure}}::h9214498cef9aafc5 [INFO] [stdout] at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x7b239c98983f - as core::ops::function::Fn>::call::hdb18da3e68df7464 [INFO] [stdout] at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/alloc/src/boxed.rs:2019:9 [INFO] [stdout] 14: 0x7b239c98983f - std::panicking::panic_with_hook::hd57cd463d793ed79 [INFO] [stdout] at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x7b239c9895ea - std::panicking::panic_handler::{{closure}}::hddd6216c3fddee3b [INFO] [stdout] at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x7b239c980f09 - std::sys::backtrace::__rust_end_short_backtrace::h5e7a56f283378525 [INFO] [stdout] at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x7b239c95d0cd - __rustc[256c90bb7e548b45]::rust_begin_unwind [INFO] [stdout] at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x7b239c9fa890 - core::panicking::panic_fmt::hf19c198748ef6a95 [INFO] [stdout] at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/core/src/panicking.rs:80:14 [INFO] [stdout] 19: 0x5f924f180f33 - trybuild::run::::run::h9af91f70d4e59c96 [INFO] [stdout] 20: 0x5f924f179fc5 - ::drop::h3dec00463a1309e6 [INFO] [stdout] 21: 0x5f924f0ce567 - core::ptr::drop_in_place::ha9f3328f48f67503 [INFO] [stdout] at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/core/src/ptr/mod.rs:805:1 [INFO] [stdout] 22: 0x5f924f0ce3bb - wither_derive::test::derive_tests::hc742600a442572fc [INFO] [stdout] at /opt/rustwide/workdir/src/lib.rs:39:5 [INFO] [stdout] 23: 0x5f924f0ce3e7 - wither_derive::test::derive_tests::{{closure}}::h9949b289a9843a1b [INFO] [stdout] at /opt/rustwide/workdir/src/lib.rs:35:22 [INFO] [stdout] 24: 0x5f924f0ce516 - core::ops::function::FnOnce::call_once::hf5ffcfb9d9afafc1 [INFO] [stdout] at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x5f924f2d788b - core::ops::function::FnOnce::call_once::h43f43c5185cf39c2 [INFO] [stdout] at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 26: 0x5f924f2d788b - test::__rust_begin_short_backtrace::hc4fa634eb2764bdc [INFO] [stdout] at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/test/src/lib.rs:663:18 [INFO] [stdout] 27: 0x5f924f2ebea8 - test::run_test_in_process::{{closure}}::h9f4b799a5211b72a [INFO] [stdout] at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/test/src/lib.rs:686:74 [INFO] [stdout] 28: 0x5f924f2ebea8 - as core::ops::function::FnOnce<()>>::call_once::ha572bf7dc5230a8f [INFO] [stdout] at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 29: 0x5f924f2ebea8 - std::panicking::catch_unwind::do_call::hfd6ff51f25dd177b [INFO] [stdout] at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/std/src/panicking.rs:590:40 [INFO] [stdout] 30: 0x5f924f2ebea8 - std::panicking::catch_unwind::h8609b446221def5f [INFO] [stdout] at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/std/src/panicking.rs:553:19 [INFO] [stdout] 31: 0x5f924f2ebea8 - std::panic::catch_unwind::h362f73cc48531e26 [INFO] [stdout] at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/std/src/panic.rs:359:14 [INFO] [stdout] 32: 0x5f924f2ebea8 - test::run_test_in_process::hf52fd21d696aae67 [INFO] [stdout] at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/test/src/lib.rs:686:27 [INFO] [stdout] 33: 0x5f924f2ebea8 - test::run_test::{{closure}}::h7e780b8354e6d007 [INFO] [stdout] at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/test/src/lib.rs:607:43 [INFO] [stdout] 34: 0x5f924f2c4c74 - test::run_test::{{closure}}::hdc2695f2276aad3e [INFO] [stdout] at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/test/src/lib.rs:637:41 [INFO] [stdout] 35: 0x5f924f2c4c74 - std::sys::backtrace::__rust_begin_short_backtrace::h2555b2113ed90fc9 [INFO] [stdout] at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 36: 0x5f924f2c85aa - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h99800d480987dfb6 [INFO] [stdout] at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/std/src/thread/mod.rs:562:17 [INFO] [stdout] 37: 0x5f924f2c85aa - as core::ops::function::FnOnce<()>>::call_once::hbbb69b5294b2221b [INFO] [stdout] at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 38: 0x5f924f2c85aa - std::panicking::catch_unwind::do_call::h495689350c27df20 [INFO] [stdout] at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/std/src/panicking.rs:590:40 [INFO] [stdout] 39: 0x5f924f2c85aa - std::panicking::catch_unwind::hf22437c51d1b3740 [INFO] [stdout] at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/std/src/panicking.rs:553:19 [INFO] [stdout] 40: 0x5f924f2c85aa - std::panic::catch_unwind::habda1a57de8231f8 [INFO] [stdout] at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/std/src/panic.rs:359:14 [INFO] [stdout] 41: 0x5f924f2c85aa - std::thread::Builder::spawn_unchecked_::{{closure}}::h5833d8dda8c7e80b [INFO] [stdout] at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/std/src/thread/mod.rs:560:30 [INFO] [stdout] 42: 0x5f924f2c85aa - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha2910283a5058402 [INFO] [stdout] at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 43: 0x7b239c97b72f - as core::ops::function::FnOnce>::call_once::he4d85cb537521972 [INFO] [stdout] at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/alloc/src/boxed.rs:2005:9 [INFO] [stdout] 44: 0x7b239c97b72f - std::sys::thread::unix::Thread::new::thread_start::hbaf586a9e50a98cd [INFO] [stdout] at /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/std/src/sys/thread/unix.rs:126:17 [INFO] [stdout] 45: 0x7b239c715aa4 - [INFO] [stdout] 46: 0x7b239c7a2a64 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] test::derive_tests [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 70.76s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "902f2e1f2751d592ab68e9c66ca1fe50a4d108d44498331feb2b80523b45a248", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "902f2e1f2751d592ab68e9c66ca1fe50a4d108d44498331feb2b80523b45a248", kill_on_drop: false }` [INFO] [stdout] 902f2e1f2751d592ab68e9c66ca1fe50a4d108d44498331feb2b80523b45a248