[INFO] fetching crate enum-map-derive 0.17.0... [INFO] testing enum-map-derive-0.17.0 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate enum-map-derive 0.17.0 into /workspace/builds/worker-7-tc2/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-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate enum-map-derive 0.17.0 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "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" "+b83b707f97d809763b7861afa7638871f3339a33" "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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 001a97823264bbdbbbc694d243a2a83d452adad1127367a65d005ba085ad53d9 [INFO] running `Command { std: "docker" "start" "-a" "001a97823264bbdbbbc694d243a2a83d452adad1127367a65d005ba085ad53d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "001a97823264bbdbbbc694d243a2a83d452adad1127367a65d005ba085ad53d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "001a97823264bbdbbbc694d243a2a83d452adad1127367a65d005ba085ad53d9", kill_on_drop: false }` [INFO] [stdout] 001a97823264bbdbbbc694d243a2a83d452adad1127367a65d005ba085ad53d9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ba4b3d600a10fc66b5ebd46402a2e0aa35714ae6bb04ff061096b70f9c6e7a54 [INFO] running `Command { std: "docker" "start" "-a" "ba4b3d600a10fc66b5ebd46402a2e0aa35714ae6bb04ff061096b70f9c6e7a54", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling enum-map-derive v0.17.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.83s [INFO] running `Command { std: "docker" "inspect" "ba4b3d600a10fc66b5ebd46402a2e0aa35714ae6bb04ff061096b70f9c6e7a54", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ba4b3d600a10fc66b5ebd46402a2e0aa35714ae6bb04ff061096b70f9c6e7a54", kill_on_drop: false }` [INFO] [stdout] ba4b3d600a10fc66b5ebd46402a2e0aa35714ae6bb04ff061096b70f9c6e7a54 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f17315e651c2d19ebc4eebaea004ed0788b3e8e6124a0255e18ed5f4a395214b [INFO] running `Command { std: "docker" "start" "-a" "f17315e651c2d19ebc4eebaea004ed0788b3e8e6124a0255e18ed5f4a395214b", 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.51s [INFO] running `Command { std: "docker" "inspect" "f17315e651c2d19ebc4eebaea004ed0788b3e8e6124a0255e18ed5f4a395214b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f17315e651c2d19ebc4eebaea004ed0788b3e8e6124a0255e18ed5f4a395214b", kill_on_drop: false }` [INFO] [stdout] f17315e651c2d19ebc4eebaea004ed0788b3e8e6124a0255e18ed5f4a395214b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 3e10acda6caeb90b8fee3b4aa028e72680a4c80ebb242e710e38fc357c8994cd [INFO] running `Command { std: "docker" "start" "-a" "3e10acda6caeb90b8fee3b4aa028e72680a4c80ebb242e710e38fc357c8994cd", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/enum_map_derive-c6061b78bc36848e) [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 133) ... FAILED [INFO] [stdout] test src/lib.rs - derive_enum_map (line 97) ... FAILED [INFO] [stdout] test src/lib.rs - derive_enum_map (line 31) ... 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 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 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 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.26s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "3e10acda6caeb90b8fee3b4aa028e72680a4c80ebb242e710e38fc357c8994cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3e10acda6caeb90b8fee3b4aa028e72680a4c80ebb242e710e38fc357c8994cd", kill_on_drop: false }` [INFO] [stdout] 3e10acda6caeb90b8fee3b4aa028e72680a4c80ebb242e710e38fc357c8994cd