[INFO] fetching crate variant_access_traits 0.3.1... [INFO] testing variant_access_traits-0.3.1 against 1.60.0 for beta-1.61-1 [INFO] extracting crate variant_access_traits 0.3.1 into /workspace/builds/worker-27/source [INFO] validating manifest of crates.io crate variant_access_traits 0.3.1 on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.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-27/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-27/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-27/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ec0ab9fcb09692e2afb5c0bba6d9a315691dfb7ab93cc9b39c44c2db11e17374 [INFO] running `Command { std: "docker" "start" "-a" "ec0ab9fcb09692e2afb5c0bba6d9a315691dfb7ab93cc9b39c44c2db11e17374", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ec0ab9fcb09692e2afb5c0bba6d9a315691dfb7ab93cc9b39c44c2db11e17374", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ec0ab9fcb09692e2afb5c0bba6d9a315691dfb7ab93cc9b39c44c2db11e17374", kill_on_drop: false }` [INFO] [stdout] ec0ab9fcb09692e2afb5c0bba6d9a315691dfb7ab93cc9b39c44c2db11e17374 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-27/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-27/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 81b67a6960db677a21a6494f2350604b9fb5c583fa25b7699361a2facb0c2018 [INFO] running `Command { std: "docker" "start" "-a" "81b67a6960db677a21a6494f2350604b9fb5c583fa25b7699361a2facb0c2018", 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] note: `VariantAccessError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/lib.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `VariantAccessError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/lib.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.10s [INFO] running `Command { std: "docker" "inspect" "81b67a6960db677a21a6494f2350604b9fb5c583fa25b7699361a2facb0c2018", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "81b67a6960db677a21a6494f2350604b9fb5c583fa25b7699361a2facb0c2018", kill_on_drop: false }` [INFO] [stdout] 81b67a6960db677a21a6494f2350604b9fb5c583fa25b7699361a2facb0c2018 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-27/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-27/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] db406cfd88345d97a157a5abb8b1b4df4ddff4f9ccd89e858c6f0dc2c5a9cae0 [INFO] running `Command { std: "docker" "start" "-a" "db406cfd88345d97a157a5abb8b1b4df4ddff4f9ccd89e858c6f0dc2c5a9cae0", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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] note: `VariantAccessError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/lib.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `VariantAccessError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/lib.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `VariantAccessError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/lib.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `VariantAccessError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/lib.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.11s [INFO] running `Command { std: "docker" "inspect" "db406cfd88345d97a157a5abb8b1b4df4ddff4f9ccd89e858c6f0dc2c5a9cae0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "db406cfd88345d97a157a5abb8b1b4df4ddff4f9ccd89e858c6f0dc2c5a9cae0", kill_on_drop: false }` [INFO] [stdout] db406cfd88345d97a157a5abb8b1b4df4ddff4f9ccd89e858c6f0dc2c5a9cae0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-27/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-27/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] ca4f6a12269b143979b84bd5ea4065696247a4110d2572bd250f9d7ec8401fda [INFO] running `Command { std: "docker" "start" "-a" "ca4f6a12269b143979b84bd5ea4065696247a4110d2572bd250f9d7ec8401fda", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: field is never read: `enum_name` [INFO] [stderr] --> src/lib.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | enum_name : String, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] note: `VariantAccessError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/lib.rs:5:10 [INFO] [stderr] | [INFO] [stderr] 5 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `VariantAccessError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/lib.rs:5:10 [INFO] [stderr] | [INFO] [stderr] 5 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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.49s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/variant_access_traits-bfb208cf4e70c0cd) [INFO] [stderr] Doc-tests variant_access_traits [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [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 132) ... FAILED [INFO] [stdout] test src/lib.rs - SetVariant (line 114) ... FAILED [INFO] [stdout] test src/lib.rs - ContainsVariant (line 49) ... 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 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] ---- 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] [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.11s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "ca4f6a12269b143979b84bd5ea4065696247a4110d2572bd250f9d7ec8401fda", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ca4f6a12269b143979b84bd5ea4065696247a4110d2572bd250f9d7ec8401fda", kill_on_drop: false }` [INFO] [stdout] ca4f6a12269b143979b84bd5ea4065696247a4110d2572bd250f9d7ec8401fda