[INFO] fetching crate variant_access_traits 0.3.1... [INFO] testing variant_access_traits-0.3.1 against 1.59.0 for beta-1.60-1 [INFO] extracting crate variant_access_traits 0.3.1 into /workspace/builds/worker-26/source [INFO] validating manifest of crates.io crate variant_access_traits 0.3.1 on toolchain 1.59.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.59.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate variant_access_traits 0.3.1 [INFO] finished tweaking crates.io crate variant_access_traits 0.3.1 [INFO] tweaked toml for crates.io crate variant_access_traits 0.3.1 written to /workspace/builds/worker-26/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.59.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.59.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 436b25dcda581a602e03e2cfff49c5e4b9585e4ba7ee861fbfceb77d51eb8dbd [INFO] running `Command { std: "docker" "start" "-a" "436b25dcda581a602e03e2cfff49c5e4b9585e4ba7ee861fbfceb77d51eb8dbd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "436b25dcda581a602e03e2cfff49c5e4b9585e4ba7ee861fbfceb77d51eb8dbd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "436b25dcda581a602e03e2cfff49c5e4b9585e4ba7ee861fbfceb77d51eb8dbd", kill_on_drop: false }` [INFO] [stdout] 436b25dcda581a602e03e2cfff49c5e4b9585e4ba7ee861fbfceb77d51eb8dbd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/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" "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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 181d5d05cd7c5a6a9b1ad1d8ea806d2be65d6494362cff83ef3ea0d521fa864e [INFO] running `Command { std: "docker" "start" "-a" "181d5d05cd7c5a6a9b1ad1d8ea806d2be65d6494362cff83ef3ea0d521fa864e", kill_on_drop: false }` [INFO] [stderr] Compiling variant_access_traits v0.3.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: field is never read: `enum_name` [INFO] [stdout] --> src/lib.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | enum_name : String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `requested_type` [INFO] [stdout] --> src/lib.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | requested_type: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.74s [INFO] running `Command { std: "docker" "inspect" "181d5d05cd7c5a6a9b1ad1d8ea806d2be65d6494362cff83ef3ea0d521fa864e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "181d5d05cd7c5a6a9b1ad1d8ea806d2be65d6494362cff83ef3ea0d521fa864e", kill_on_drop: false }` [INFO] [stdout] 181d5d05cd7c5a6a9b1ad1d8ea806d2be65d6494362cff83ef3ea0d521fa864e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/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" "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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ba697c39729a2954df827caeca775844ea7bf281464df0b275fc05bbd6a1d0a8 [INFO] running `Command { std: "docker" "start" "-a" "ba697c39729a2954df827caeca775844ea7bf281464df0b275fc05bbd6a1d0a8", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stdout] warning: field is never read: `enum_name` [INFO] [stdout] --> src/lib.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | enum_name : String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling variant_access_traits v0.3.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: field is never read: `requested_type` [INFO] [stdout] --> src/lib.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | requested_type: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `enum_name` [INFO] [stdout] --> src/lib.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | enum_name : String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `requested_type` [INFO] [stdout] --> src/lib.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | requested_type: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.43s [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "ba697c39729a2954df827caeca775844ea7bf281464df0b275fc05bbd6a1d0a8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ba697c39729a2954df827caeca775844ea7bf281464df0b275fc05bbd6a1d0a8", kill_on_drop: false }` [INFO] [stdout] ba697c39729a2954df827caeca775844ea7bf281464df0b275fc05bbd6a1d0a8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/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" "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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 53992bca99b711fb52cd664e5183dc86aea05ae5851fc5e83e3eb254853f569f [INFO] running `Command { std: "docker" "start" "-a" "53992bca99b711fb52cd664e5183dc86aea05ae5851fc5e83e3eb254853f569f", kill_on_drop: false }` [INFO] [stdout] [INFO] [stderr] warning: field is never read: `enum_name` [INFO] [stdout] running 0 tests [INFO] [stderr] --> src/lib.rs:7:5 [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stderr] 7 | enum_name : String, [INFO] [stdout] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field is never read: `requested_type` [INFO] [stderr] --> src/lib.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | requested_type: String, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `variant_access_traits` (lib) generated 2 warnings [INFO] [stderr] warning: `variant_access_traits` (lib test) generated 2 warnings (2 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.01s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/variant_access_traits-5318873773b10297) [INFO] [stderr] Doc-tests variant_access_traits [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test src/lib.rs - create_variant_from (line 183) ... FAILED [INFO] [stdout] test src/lib.rs - CreateVariantFrom (line 159) ... FAILED [INFO] [stdout] test src/lib.rs - GetVariant (line 82) ... FAILED [INFO] [stdout] test src/lib.rs - SetVariant (line 114) ... FAILED [INFO] [stdout] test src/lib.rs - ContainsVariant (line 49) ... FAILED [INFO] [stdout] test src/lib.rs - SetVariant (line 132) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - create_variant_from (line 183) stdout ---- [INFO] [stdout] error: expected identifier, found `(` [INFO] [stdout] --> src/lib.rs:187:3 [INFO] [stdout] | [INFO] [stdout] 7 | #[(VariantAccessDerive)] [INFO] [stdout] | ^ expected identifier [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `variant_access_derive` [INFO] [stdout] --> src/lib.rs:185:5 [INFO] [stdout] | [INFO] [stdout] 5 | use variant_access_derive::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `variant_access_derive` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 5 | use variant_access_traits::*; [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 E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - CreateVariantFrom (line 159) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `variant_access_derive` [INFO] [stdout] --> src/lib.rs:161:6 [INFO] [stdout] | [INFO] [stdout] 5 | use variant_access_derive::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `variant_access_derive` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 5 | use variant_access_traits::*; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `create_from` found for enum `Enum` in the current scope [INFO] [stdout] --> src/lib.rs:168:23 [INFO] [stdout] | [INFO] [stdout] 7 | enum Enum { [INFO] [stdout] | --------- variant or associated item `create_from` not found here [INFO] [stdout] ... [INFO] [stdout] 12 | let instance = Enum::create_from(false); // instance is now equal to Enum::F2(false) [INFO] [stdout] | ^^^^^^^^^^^ variant or associated item not found in `Enum` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - GetVariant (line 82) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `variant_access_derive` [INFO] [stdout] --> src/lib.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 5 | use variant_access_derive::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `variant_access_derive` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 5 | use variant_access_traits::*; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `VariantAccess` in this scope [INFO] [stdout] --> src/lib.rs:86:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(VariantAccess)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `f1` found for enum `Enum` in the current scope [INFO] [stdout] --> src/lib.rs:91:22 [INFO] [stdout] | [INFO] [stdout] 8 | enum Enum { [INFO] [stdout] | --------- variant or associated item `f1` not found here [INFO] [stdout] ... [INFO] [stdout] 12 | let instance = Enum::f1(42); [INFO] [stdout] | ^^ [INFO] [stdout] | | [INFO] [stdout] | variant or associated item not found in `Enum` [INFO] [stdout] | help: there is a variant with a similar name (notice the capitalization): `F1` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - SetVariant (line 114) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `variant_access_derive` [INFO] [stdout] --> src/lib.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 5 | use variant_access_derive::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `variant_access_derive` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 5 | use variant_access_traits::*; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `VariantAccess` in this scope [INFO] [stdout] --> src/lib.rs:118:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(VariantAccess)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_variant` found for enum `Enum` in the current scope [INFO] [stdout] --> src/lib.rs:125:10 [INFO] [stdout] | [INFO] [stdout] 8 | enum Enum { [INFO] [stdout] | --------- method `set_variant` not found for this [INFO] [stdout] ... [INFO] [stdout] 14 | instance.set_variant(false); // instance now is equal to Enum::F2(false) [INFO] [stdout] | ^^^^^^^^^^^ method not found in `Enum` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `set_variant`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `variant_access_traits::SetVariant` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - ContainsVariant (line 49) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `variant_access_derive` [INFO] [stdout] --> src/lib.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 5 | use variant_access_derive::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `variant_access_derive` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 5 | use variant_access_traits::*; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `VariantAccess` in this scope [INFO] [stdout] --> src/lib.rs:53:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(VariantAccess)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `has_variant` in this scope [INFO] [stdout] --> src/lib.rs:58:20 [INFO] [stdout] | [INFO] [stdout] 12 | let result: bool = has_variant::(); // assigns true to result [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `has_variant` in this scope [INFO] [stdout] --> src/lib.rs:59:20 [INFO] [stdout] | [INFO] [stdout] 13 | let result: bool = has_variant::(); // assigns false to result [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `contains_variant` found for enum `Enum` in the current scope [INFO] [stdout] --> src/lib.rs:62:23 [INFO] [stdout] | [INFO] [stdout] 8 | enum Enum { [INFO] [stdout] | --------- method `contains_variant` not found for this [INFO] [stdout] ... [INFO] [stdout] 16 | let result = instance.contains_variant::(); // result has value Ok(true) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ method not found in `Enum` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `contains_variant`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `variant_access_traits::ContainsVariant` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `contains_variant` found for enum `Enum` in the current scope [INFO] [stdout] --> src/lib.rs:63:23 [INFO] [stdout] | [INFO] [stdout] 8 | enum Enum { [INFO] [stdout] | --------- method `contains_variant` not found for this [INFO] [stdout] ... [INFO] [stdout] 17 | let result = instance.contains_variant::(); // result has value Ok(false) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ method not found in `Enum` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `contains_variant`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `variant_access_traits::ContainsVariant` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `contains_variant` found for enum `Enum` in the current scope [INFO] [stdout] --> src/lib.rs:64:23 [INFO] [stdout] | [INFO] [stdout] 8 | enum Enum { [INFO] [stdout] | --------- method `contains_variant` not found for this [INFO] [stdout] ... [INFO] [stdout] 18 | let result = instance.contains_variant::(); // result has value Err [INFO] [stdout] | ^^^^^^^^^^^^^^^^ method not found in `Enum` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `contains_variant`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `variant_access_traits::ContainsVariant` [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - SetVariant (line 132) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `variant_access_derive` [INFO] [stdout] --> src/lib.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 5 | use variant_access_derive::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `variant_access_derive` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 5 | use variant_access_traits::*; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `VariantAccess` in this scope [INFO] [stdout] --> src/lib.rs:136:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(VariantAccess)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_variant` found for enum `Enum` in the current scope [INFO] [stdout] --> src/lib.rs:143:10 [INFO] [stdout] | [INFO] [stdout] 8 | enum Enum { [INFO] [stdout] | --------- method `set_variant` not found for this [INFO] [stdout] ... [INFO] [stdout] 14 | instance.set_variant(1); // Is instance equal to Enum::F1(1) or Enum::F2(1) ??? [INFO] [stdout] | ^^^^^^^^^^^ method not found in `Enum` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `set_variant`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `variant_access_traits::SetVariant` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_variant` found for enum `Enum` in the current scope [INFO] [stdout] --> src/lib.rs:146:10 [INFO] [stdout] | [INFO] [stdout] 8 | enum Enum { [INFO] [stdout] | --------- method `set_variant` not found for this [INFO] [stdout] ... [INFO] [stdout] 17 | instance.set_variant(1 as i32); // instance equals Enum::F1(1) [INFO] [stdout] | ^^^^^^^^^^^ method not found in `Enum` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `set_variant`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `variant_access_traits::SetVariant` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_variant` found for enum `Enum` in the current scope [INFO] [stdout] --> src/lib.rs:147:10 [INFO] [stdout] | [INFO] [stdout] 8 | enum Enum { [INFO] [stdout] | --------- method `set_variant` not found for this [INFO] [stdout] ... [INFO] [stdout] 18 | instance.set_variant(1 as i64); // instance equal Enum::F2(1) [INFO] [stdout] | ^^^^^^^^^^^ method not found in `Enum` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `set_variant`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `variant_access_traits::SetVariant` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - ContainsVariant (line 49) [INFO] [stdout] src/lib.rs - CreateVariantFrom (line 159) [INFO] [stdout] src/lib.rs - GetVariant (line 82) [INFO] [stdout] src/lib.rs - SetVariant (line 114) [INFO] [stdout] src/lib.rs - SetVariant (line 132) [INFO] [stdout] src/lib.rs - create_variant_from (line 183) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 6 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.09s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "53992bca99b711fb52cd664e5183dc86aea05ae5851fc5e83e3eb254853f569f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "53992bca99b711fb52cd664e5183dc86aea05ae5851fc5e83e3eb254853f569f", kill_on_drop: false }` [INFO] [stdout] 53992bca99b711fb52cd664e5183dc86aea05ae5851fc5e83e3eb254853f569f