[INFO] fetching crate enum-map-derive 0.17.0... [INFO] testing enum-map-derive-0.17.0 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] extracting crate enum-map-derive 0.17.0 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate enum-map-derive 0.17.0 [INFO] finished tweaking crates.io crate enum-map-derive 0.17.0 [INFO] tweaked toml for crates.io crate enum-map-derive 0.17.0 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate enum-map-derive 0.17.0 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 4 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 078aaf0c1e05be53dd040de5d26a975406a5767277c69140f463518424944f64 [INFO] running `Command { std: "docker" "start" "-a" "078aaf0c1e05be53dd040de5d26a975406a5767277c69140f463518424944f64", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "078aaf0c1e05be53dd040de5d26a975406a5767277c69140f463518424944f64", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "078aaf0c1e05be53dd040de5d26a975406a5767277c69140f463518424944f64", kill_on_drop: false }` [INFO] [stdout] 078aaf0c1e05be53dd040de5d26a975406a5767277c69140f463518424944f64 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 01860b04b9fde0515c7e49ca875b6cee75058c96f2caf6107737219180f57931 [INFO] running `Command { std: "docker" "start" "-a" "01860b04b9fde0515c7e49ca875b6cee75058c96f2caf6107737219180f57931", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling enum-map-derive v0.17.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.85s [INFO] running `Command { std: "docker" "inspect" "01860b04b9fde0515c7e49ca875b6cee75058c96f2caf6107737219180f57931", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "01860b04b9fde0515c7e49ca875b6cee75058c96f2caf6107737219180f57931", kill_on_drop: false }` [INFO] [stdout] 01860b04b9fde0515c7e49ca875b6cee75058c96f2caf6107737219180f57931 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 4aef944c9ee80e80a8778a17c8eddff52640ec651963273cba387540bfe6cbcd [INFO] running `Command { std: "docker" "start" "-a" "4aef944c9ee80e80a8778a17c8eddff52640ec651963273cba387540bfe6cbcd", kill_on_drop: false }` [INFO] [stderr] Compiling enum-map-derive v0.17.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.16s [INFO] running `Command { std: "docker" "inspect" "4aef944c9ee80e80a8778a17c8eddff52640ec651963273cba387540bfe6cbcd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4aef944c9ee80e80a8778a17c8eddff52640ec651963273cba387540bfe6cbcd", kill_on_drop: false }` [INFO] [stdout] 4aef944c9ee80e80a8778a17c8eddff52640ec651963273cba387540bfe6cbcd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] e711c40cd3c719116acffff7b7a4d3db0068c2b984e7ec4c097257fd785a9ba0 [INFO] running `Command { std: "docker" "start" "-a" "e711c40cd3c719116acffff7b7a4d3db0068c2b984e7ec4c097257fd785a9ba0", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.01s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/enum_map_derive-412d8733ed032deb) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests enum_map_derive [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test src/lib.rs - derive_enum_map (line 31) ... FAILED [INFO] [stdout] test src/lib.rs - derive_enum_map (line 133) ... FAILED [INFO] [stdout] test src/lib.rs - derive_enum_map (line 97) ... FAILED [INFO] [stdout] test src/lib.rs - derive_enum_map (line 52) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - derive_enum_map (line 31) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `enum_map` [INFO] [stdout] --> src/lib.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 3 | use enum_map::Enum; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `enum_map` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `enum_map`, use `cargo add enum_map` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_usize` found for enum `A` in the current scope [INFO] [stdout] --> src/lib.rs:41:17 [INFO] [stdout] | [INFO] [stdout] 6 | enum A { [INFO] [stdout] | ------ method `into_usize` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 12 | assert_eq!(A::B.into_usize(), 0); [INFO] [stdout] | ^^^^^^^^^^ method not found in `A` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_usize` found for enum `A` in the current scope [INFO] [stdout] --> src/lib.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 6 | enum A { [INFO] [stdout] | ------ method `into_usize` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 13 | assert_eq!(A::C.into_usize(), 1); [INFO] [stdout] | ^^^^^^^^^^ method not found in `A` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_usize` found for enum `A` in the current scope [INFO] [stdout] --> src/lib.rs:43:17 [INFO] [stdout] | [INFO] [stdout] 6 | enum A { [INFO] [stdout] | ------ method `into_usize` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 14 | assert_eq!(A::D.into_usize(), 2); [INFO] [stdout] | ^^^^^^^^^^ method not found in `A` [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `from_usize` found for enum `A` in the current scope [INFO] [stdout] --> src/lib.rs:45:15 [INFO] [stdout] | [INFO] [stdout] 6 | enum A { [INFO] [stdout] | ------ variant or associated item `from_usize` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 16 | assert_eq!(A::from_usize(0), A::B); [INFO] [stdout] | ^^^^^^^^^^ variant or associated item not found in `A` [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `from_usize` found for enum `A` in the current scope [INFO] [stdout] --> src/lib.rs:46:15 [INFO] [stdout] | [INFO] [stdout] 6 | enum A { [INFO] [stdout] | ------ variant or associated item `from_usize` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 17 | assert_eq!(A::from_usize(1), A::C); [INFO] [stdout] | ^^^^^^^^^^ variant or associated item not found in `A` [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `from_usize` found for enum `A` in the current scope [INFO] [stdout] --> src/lib.rs:47:15 [INFO] [stdout] | [INFO] [stdout] 6 | enum A { [INFO] [stdout] | ------ variant or associated item `from_usize` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 18 | assert_eq!(A::from_usize(2), A::D); [INFO] [stdout] | ^^^^^^^^^^ variant or associated item not found in `A` [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 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 - derive_enum_map (line 133) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `enum_map` [INFO] [stdout] --> src/lib.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 3 | use enum_map::Enum; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `enum_map` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `enum_map`, use `cargo add enum_map` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_usize` found for struct `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:152:36 [INFO] [stdout] | [INFO] [stdout] 19 | struct Foo(bool, A, X); [INFO] [stdout] | ---------- method `into_usize` not found for this struct [INFO] [stdout] 20 | [INFO] [stdout] 21 | assert_eq!(Foo(false, A::B, X::Y ).into_usize(), 0); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Foo` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_usize` found for struct `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:153:35 [INFO] [stdout] | [INFO] [stdout] 19 | struct Foo(bool, A, X); [INFO] [stdout] | ---------- method `into_usize` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 22 | assert_eq!(Foo(true, A::B, X::Y ).into_usize(), 1); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Foo` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_usize` found for struct `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:154:36 [INFO] [stdout] | [INFO] [stdout] 19 | struct Foo(bool, A, X); [INFO] [stdout] | ---------- method `into_usize` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 23 | assert_eq!(Foo(false, A::D, X::Y ).into_usize(), 4); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Foo` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_usize` found for struct `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:155:35 [INFO] [stdout] | [INFO] [stdout] 19 | struct Foo(bool, A, X); [INFO] [stdout] | ---------- method `into_usize` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 24 | assert_eq!(Foo(true, A::C, X::Z ).into_usize(), 9); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Foo` [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_usize` found for struct `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:157:17 [INFO] [stdout] | [INFO] [stdout] 19 | struct Foo(bool, A, X); [INFO] [stdout] | ---------- function or associated item `from_usize` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 26 | assert_eq!(Foo::from_usize(0), Foo(false, A::B, X::Y)); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `Foo` [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_usize` found for struct `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:158:17 [INFO] [stdout] | [INFO] [stdout] 19 | struct Foo(bool, A, X); [INFO] [stdout] | ---------- function or associated item `from_usize` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 27 | assert_eq!(Foo::from_usize(1), Foo(true, A::B, X::Y)); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `Foo` [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_usize` found for struct `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:159:17 [INFO] [stdout] | [INFO] [stdout] 19 | struct Foo(bool, A, X); [INFO] [stdout] | ---------- function or associated item `from_usize` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 28 | assert_eq!(Foo::from_usize(4), Foo(false, A::D, X::Y)); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `Foo` [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_usize` found for struct `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:160:17 [INFO] [stdout] | [INFO] [stdout] 19 | struct Foo(bool, A, X); [INFO] [stdout] | ---------- function or associated item `from_usize` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 29 | assert_eq!(Foo::from_usize(9), Foo(true, A::C, X::Z)); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `Foo` [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 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 - derive_enum_map (line 97) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `enum_map` [INFO] [stdout] --> src/lib.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 3 | use enum_map::Enum; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `enum_map` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `enum_map`, use `cargo add enum_map` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_usize` found for struct `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:120:53 [INFO] [stdout] | [INFO] [stdout] 19 | struct Foo { [INFO] [stdout] | ---------- method `into_usize` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 25 | assert_eq!(Foo { bar: false, baz: A::B, end: X::Y }.into_usize(), 0); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Foo` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_usize` found for struct `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:121:52 [INFO] [stdout] | [INFO] [stdout] 19 | struct Foo { [INFO] [stdout] | ---------- method `into_usize` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 26 | assert_eq!(Foo { bar: true, baz: A::B, end: X::Y }.into_usize(), 1); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Foo` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_usize` found for struct `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:122:53 [INFO] [stdout] | [INFO] [stdout] 19 | struct Foo { [INFO] [stdout] | ---------- method `into_usize` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 27 | assert_eq!(Foo { bar: false, baz: A::D, end: X::Y }.into_usize(), 4); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Foo` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_usize` found for struct `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:123:52 [INFO] [stdout] | [INFO] [stdout] 19 | struct Foo { [INFO] [stdout] | ---------- method `into_usize` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 28 | assert_eq!(Foo { bar: true, baz: A::C, end: X::Z }.into_usize(), 9); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Foo` [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_usize` found for struct `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:125:17 [INFO] [stdout] | [INFO] [stdout] 19 | struct Foo { [INFO] [stdout] | ---------- function or associated item `from_usize` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 30 | assert_eq!(Foo::from_usize(0), Foo { bar: false, baz: A::B, end: X::Y }); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `Foo` [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_usize` found for struct `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:126:17 [INFO] [stdout] | [INFO] [stdout] 19 | struct Foo { [INFO] [stdout] | ---------- function or associated item `from_usize` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 31 | assert_eq!(Foo::from_usize(1), Foo { bar: true, baz: A::B, end: X::Y }); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `Foo` [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_usize` found for struct `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:127:17 [INFO] [stdout] | [INFO] [stdout] 19 | struct Foo { [INFO] [stdout] | ---------- function or associated item `from_usize` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 32 | assert_eq!(Foo::from_usize(4), Foo { bar: false, baz: A::D, end: X::Y }); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `Foo` [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_usize` found for struct `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:128:17 [INFO] [stdout] | [INFO] [stdout] 19 | struct Foo { [INFO] [stdout] | ---------- function or associated item `from_usize` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 33 | assert_eq!(Foo::from_usize(9), Foo { bar: true, baz: A::C, end: X::Z }); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `Foo` [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 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 - derive_enum_map (line 52) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `enum_map` [INFO] [stdout] --> src/lib.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 3 | use enum_map::Enum; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `enum_map` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `enum_map`, use `cargo add enum_map` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_usize` found for enum `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:75:34 [INFO] [stdout] | [INFO] [stdout] 19 | enum Foo { [INFO] [stdout] | -------- method `into_usize` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 25 | assert_eq!(Foo::Bar(false, A::B).into_usize(), 0); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Foo` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_usize` found for enum `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:76:34 [INFO] [stdout] | [INFO] [stdout] 19 | enum Foo { [INFO] [stdout] | -------- method `into_usize` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 26 | assert_eq!(Foo::Bar(false, A::D).into_usize(), 4); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Foo` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_usize` found for enum `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:77:33 [INFO] [stdout] | [INFO] [stdout] 19 | enum Foo { [INFO] [stdout] | -------- method `into_usize` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 27 | assert_eq!(Foo::Bar(true, A::B).into_usize(), 1); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Foo` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_usize` found for enum `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:78:33 [INFO] [stdout] | [INFO] [stdout] 19 | enum Foo { [INFO] [stdout] | -------- method `into_usize` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 28 | assert_eq!(Foo::Bar(true, A::C).into_usize(), 3); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Foo` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_usize` found for enum `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:79:23 [INFO] [stdout] | [INFO] [stdout] 19 | enum Foo { [INFO] [stdout] | -------- method `into_usize` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 29 | assert_eq!(Foo::Empty.into_usize(), 6); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Foo` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_usize` found for enum `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:80:44 [INFO] [stdout] | [INFO] [stdout] 19 | enum Foo { [INFO] [stdout] | -------- method `into_usize` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 30 | assert_eq!(Foo::Baz { fa: A::B, fx: X::Y }.into_usize(), 7); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Foo` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_usize` found for enum `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:81:44 [INFO] [stdout] | [INFO] [stdout] 19 | enum Foo { [INFO] [stdout] | -------- method `into_usize` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 31 | assert_eq!(Foo::Baz { fa: A::B, fx: X::Z }.into_usize(), 10); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Foo` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_usize` found for enum `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:82:44 [INFO] [stdout] | [INFO] [stdout] 19 | enum Foo { [INFO] [stdout] | -------- method `into_usize` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 32 | assert_eq!(Foo::Baz { fa: A::D, fx: X::Y }.into_usize(), 9); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Foo` [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `from_usize` found for enum `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 19 | enum Foo { [INFO] [stdout] | -------- variant or associated item `from_usize` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 34 | assert_eq!(Foo::from_usize(0), Foo::Bar(false, A::B)); [INFO] [stdout] | ^^^^^^^^^^ variant or associated item not found in `Foo` [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `from_usize` found for enum `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:85:17 [INFO] [stdout] | [INFO] [stdout] 19 | enum Foo { [INFO] [stdout] | -------- variant or associated item `from_usize` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 35 | assert_eq!(Foo::from_usize(4), Foo::Bar(false, A::D)); [INFO] [stdout] | ^^^^^^^^^^ variant or associated item not found in `Foo` [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `from_usize` found for enum `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:86:17 [INFO] [stdout] | [INFO] [stdout] 19 | enum Foo { [INFO] [stdout] | -------- variant or associated item `from_usize` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 36 | assert_eq!(Foo::from_usize(1), Foo::Bar(true, A::B)); [INFO] [stdout] | ^^^^^^^^^^ variant or associated item not found in `Foo` [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `from_usize` found for enum `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:87:17 [INFO] [stdout] | [INFO] [stdout] 19 | enum Foo { [INFO] [stdout] | -------- variant or associated item `from_usize` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 37 | assert_eq!(Foo::from_usize(3), Foo::Bar(true, A::C)); [INFO] [stdout] | ^^^^^^^^^^ variant or associated item not found in `Foo` [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `from_usize` found for enum `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:88:17 [INFO] [stdout] | [INFO] [stdout] 19 | enum Foo { [INFO] [stdout] | -------- variant or associated item `from_usize` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 38 | assert_eq!(Foo::from_usize(6), Foo::Empty); [INFO] [stdout] | ^^^^^^^^^^ variant or associated item not found in `Foo` [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `from_usize` found for enum `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:89:17 [INFO] [stdout] | [INFO] [stdout] 19 | enum Foo { [INFO] [stdout] | -------- variant or associated item `from_usize` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 39 | assert_eq!(Foo::from_usize(7), Foo::Baz { fa: A::B, fx: X::Y }); [INFO] [stdout] | ^^^^^^^^^^ variant or associated item not found in `Foo` [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `from_usize` found for enum `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:90:17 [INFO] [stdout] | [INFO] [stdout] 19 | enum Foo { [INFO] [stdout] | -------- variant or associated item `from_usize` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 40 | assert_eq!(Foo::from_usize(10), Foo::Baz { fa: A::B, fx: X::Z }); [INFO] [stdout] | ^^^^^^^^^^ variant or associated item not found in `Foo` [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `from_usize` found for enum `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:91:17 [INFO] [stdout] | [INFO] [stdout] 19 | enum Foo { [INFO] [stdout] | -------- variant or associated item `from_usize` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 41 | assert_eq!(Foo::from_usize(9), Foo::Baz { fa: A::D, fx: X::Y }); [INFO] [stdout] | ^^^^^^^^^^ variant or associated item not found in `Foo` [INFO] [stdout] [INFO] [stdout] error: aborting due to 17 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 - derive_enum_map (line 133) [INFO] [stdout] src/lib.rs - derive_enum_map (line 31) [INFO] [stdout] src/lib.rs - derive_enum_map (line 52) [INFO] [stdout] src/lib.rs - derive_enum_map (line 97) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.18s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "e711c40cd3c719116acffff7b7a4d3db0068c2b984e7ec4c097257fd785a9ba0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e711c40cd3c719116acffff7b7a4d3db0068c2b984e7ec4c097257fd785a9ba0", kill_on_drop: false }` [INFO] [stdout] e711c40cd3c719116acffff7b7a4d3db0068c2b984e7ec4c097257fd785a9ba0