[INFO] fetching crate num_enum_derive 0.7.5... [INFO] testing num_enum_derive-0.7.5 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-8 [INFO] extracting crate num_enum_derive 0.7.5 into /workspace/builds/worker-7-tc2/source [INFO] started tweaking crates.io crate num_enum_derive 0.7.5 [INFO] finished tweaking crates.io crate num_enum_derive 0.7.5 [INFO] tweaked toml for crates.io crate num_enum_derive 0.7.5 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate num_enum_derive 0.7.5 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate num_enum_derive 0.7.5 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8f814ed816c4bc19c22034fe82012121b8ed8b162ca193b3f18ad9686285a7b4 [INFO] running `Command { std: "docker" "start" "-a" "8f814ed816c4bc19c22034fe82012121b8ed8b162ca193b3f18ad9686285a7b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8f814ed816c4bc19c22034fe82012121b8ed8b162ca193b3f18ad9686285a7b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8f814ed816c4bc19c22034fe82012121b8ed8b162ca193b3f18ad9686285a7b4", kill_on_drop: false }` [INFO] [stdout] 8f814ed816c4bc19c22034fe82012121b8ed8b162ca193b3f18ad9686285a7b4 [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9029ddea9d1f764c99db0396d5a749af6b0e46064ea4c0411821b17aadbd28b0 [INFO] running `Command { std: "docker" "start" "-a" "9029ddea9d1f764c99db0396d5a749af6b0e46064ea4c0411821b17aadbd28b0", kill_on_drop: false }` [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling toml_datetime v0.6.7 [INFO] [stderr] Compiling syn v2.0.72 [INFO] [stderr] Compiling indexmap v2.2.6 [INFO] [stderr] Compiling toml_edit v0.21.1 [INFO] [stderr] Compiling proc-macro-crate v3.1.0 [INFO] [stderr] Compiling num_enum_derive v0.7.5 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.68s [INFO] running `Command { std: "docker" "inspect" "9029ddea9d1f764c99db0396d5a749af6b0e46064ea4c0411821b17aadbd28b0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9029ddea9d1f764c99db0396d5a749af6b0e46064ea4c0411821b17aadbd28b0", kill_on_drop: false }` [INFO] [stdout] 9029ddea9d1f764c99db0396d5a749af6b0e46064ea4c0411821b17aadbd28b0 [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1c4618a3ef6f0c6680325abd3a157364f5fe0ec7b6ff0c7d2230997e613ba2da [INFO] running `Command { std: "docker" "start" "-a" "1c4618a3ef6f0c6680325abd3a157364f5fe0ec7b6ff0c7d2230997e613ba2da", kill_on_drop: false }` [INFO] [stderr] Compiling num_enum_derive v0.7.5 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.23s [INFO] running `Command { std: "docker" "inspect" "1c4618a3ef6f0c6680325abd3a157364f5fe0ec7b6ff0c7d2230997e613ba2da", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1c4618a3ef6f0c6680325abd3a157364f5fe0ec7b6ff0c7d2230997e613ba2da", kill_on_drop: false }` [INFO] [stdout] 1c4618a3ef6f0c6680325abd3a157364f5fe0ec7b6ff0c7d2230997e613ba2da [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 8458b770c03fdc83d7b8207c136784491d07e0ff679fec1a13cb2f7d00b3c131 [INFO] running `Command { std: "docker" "start" "-a" "8458b770c03fdc83d7b8207c136784491d07e0ff679fec1a13cb2f7d00b3c131", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.07s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/num_enum_derive-a7db16dbe12adf31) [INFO] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test enum_attributes::test::missing_both ... ok [INFO] [stdout] test enum_attributes::test::extra_attr ... ok [INFO] [stdout] test enum_attributes::test::missing_constructor ... ok [INFO] [stdout] test enum_attributes::test::multiple_constructors ... ok [INFO] [stdout] test enum_attributes::test::parse_num_enum_attr_swapped_order ... ok [INFO] [stdout] test enum_attributes::test::multiple_names ... ok [INFO] [stdout] test enum_attributes::test::parse_num_enum_attr ... ok [INFO] [stdout] test enum_attributes::test::missing_name ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] Doc-tests num_enum_derive [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test src/lib.rs - derive_try_from_primitive (line 170) ... FAILED [INFO] [stdout] test src/lib.rs - derive_into_primitive (line 23) ... FAILED [INFO] [stdout] test src/lib.rs - derive_from_primitive (line 70) ... FAILED [INFO] [stdout] test src/lib.rs - derive_default (line 326) ... FAILED [INFO] [stdout] test src/lib.rs - derive_unsafe_from_primitive (line 276) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - derive_try_from_primitive (line 170) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `num_enum` [INFO] [stdout] --> src/lib.rs:171:5 [INFO] [stdout] | [INFO] [stdout] 171 | use num_enum::TryFromPrimitive; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `num_enum` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `num_enum`, use `cargo add num_enum` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Number: TryFrom` is not satisfied [INFO] [stdout] --> src/lib.rs:181:12 [INFO] [stdout] | [INFO] [stdout] 181 | let zero = Number::try_from(0u8); [INFO] [stdout] | ^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `From` is not implemented for `Number` [INFO] [stdout] --> src/lib.rs:176:1 [INFO] [stdout] | [INFO] [stdout] 176 | enum Number { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: required for `u8` to implement `Into` [INFO] [stdout] = note: required for `Number` to implement `TryFrom` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Number: TryFrom` is not satisfied [INFO] [stdout] --> src/lib.rs:184:13 [INFO] [stdout] | [INFO] [stdout] 184 | let three = Number::try_from(3u8); [INFO] [stdout] | ^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `From` is not implemented for `Number` [INFO] [stdout] --> src/lib.rs:176:1 [INFO] [stdout] | [INFO] [stdout] 176 | enum Number { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: required for `u8` to implement `Into` [INFO] [stdout] = note: required for `Number` to implement `TryFrom` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Number: From` is not satisfied [INFO] [stdout] --> src/lib.rs:181:12 [INFO] [stdout] | [INFO] [stdout] 181 | let zero = Number::try_from(0u8); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `From` is not implemented for `Number` [INFO] [stdout] --> src/lib.rs:176:1 [INFO] [stdout] | [INFO] [stdout] 176 | enum Number { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: required for `u8` to implement `Into` [INFO] [stdout] = note: required for `Number` to implement `TryFrom` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - derive_into_primitive (line 23) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `num_enum` [INFO] [stdout] --> src/lib.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use num_enum::IntoPrimitive; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `num_enum` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `num_enum`, use `cargo add num_enum` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `u8: From` is not satisfied [INFO] [stdout] --> src/lib.rs:33:29 [INFO] [stdout] | [INFO] [stdout] 33 | let zero: u8 = Number::Zero.into(); [INFO] [stdout] | ^^^^ the trait `From` is not implemented for `u8` [INFO] [stdout] | [INFO] [stdout] help: the following other types implement trait `From` [INFO] [stdout] --> /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/convert/num.rs:86:0 [INFO] [stdout] | [INFO] [stdout] = note: `u8` implements `From` [INFO] [stdout] --> /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/ascii/ascii_char.rs:1171:0 [INFO] [stdout] | [INFO] [stdout] = note: `u8` implements `From` [INFO] [stdout] = note: required for `Number` to implement `Into` [INFO] [stdout] = note: this error originates in the macro `impl_from` which comes from the expansion of the macro `into_int_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - derive_from_primitive (line 70) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `num_enum` [INFO] [stdout] --> src/lib.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | use num_enum::FromPrimitive; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `num_enum` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `num_enum`, use `cargo add num_enum` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `num_enum` in this scope [INFO] [stdout] --> src/lib.rs:77:7 [INFO] [stdout] | [INFO] [stdout] 77 | #[num_enum(default)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `num_enum` is an attribute that can be used by the derive macros `Default`, `FromPrimitive`, `IntoPrimitive`, `TryFromPrimitive` and `UnsafeFromPrimitive`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 75 + #[derive(Default, FromPrimitive, IntoPrimitive, TryFromPrimitive, UnsafeFromPrimitive)] [INFO] [stdout] 76 | enum Number { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:81:25 [INFO] [stdout] | [INFO] [stdout] 81 | let zero = Number::from(0u8); [INFO] [stdout] | ------------ ^^^ expected `Number`, found `u8` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/convert/mod.rs:592:7 [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:84:24 [INFO] [stdout] | [INFO] [stdout] 84 | let one = Number::from(1u8); [INFO] [stdout] | ------------ ^^^ expected `Number`, found `u8` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/convert/mod.rs:592:7 [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:87:24 [INFO] [stdout] | [INFO] [stdout] 87 | let two = Number::from(2u8); [INFO] [stdout] | ------------ ^^^ expected `Number`, found `u8` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/convert/mod.rs:592:7 [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - derive_default (line 326) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `num_enum` [INFO] [stdout] --> src/lib.rs:327:32 [INFO] [stdout] | [INFO] [stdout] 327 | #[derive(Debug, Eq, PartialEq, num_enum::Default)] [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `num_enum` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `default` in this scope [INFO] [stdout] --> src/lib.rs:331:7 [INFO] [stdout] | [INFO] [stdout] 331 | #[default] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider adding a derive [INFO] [stdout] | [INFO] [stdout] 329 + #[derive(Default)] [INFO] [stdout] 330 | enum Number { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `default` found for enum `Number` in the current scope [INFO] [stdout] --> src/lib.rs:335:33 [INFO] [stdout] | [INFO] [stdout] 329 | enum Number { [INFO] [stdout] | ----------- variant or associated item `default` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 335 | assert_eq!(Number::One, Number::default()); [INFO] [stdout] | ^^^^^^^ variant or associated item not found in `Number` [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 `default`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Default` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Number: Default` is not satisfied [INFO] [stdout] --> src/lib.rs:336:26 [INFO] [stdout] | [INFO] [stdout] 336 | assert_eq!(Number::One, ::default()); [INFO] [stdout] | ^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `Default` is not implemented for `Number` [INFO] [stdout] --> src/lib.rs:329:1 [INFO] [stdout] | [INFO] [stdout] 329 | enum Number { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - derive_unsafe_from_primitive (line 276) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `num_enum` [INFO] [stdout] --> src/lib.rs:277:5 [INFO] [stdout] | [INFO] [stdout] 277 | use num_enum::UnsafeFromPrimitive; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `num_enum` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `num_enum`, use `cargo add num_enum` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `unchecked_transmute_from` found for enum `Number` in the current scope [INFO] [stdout] --> src/lib.rs:289:26 [INFO] [stdout] | [INFO] [stdout] 281 | enum Number { [INFO] [stdout] | ----------- variant or associated item `unchecked_transmute_from` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 289 | unsafe { Number::unchecked_transmute_from(0_u8) }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ variant or associated item not found in `Number` [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `unchecked_transmute_from` found for enum `Number` in the current scope [INFO] [stdout] --> src/lib.rs:293:26 [INFO] [stdout] | [INFO] [stdout] 281 | enum Number { [INFO] [stdout] | ----------- variant or associated item `unchecked_transmute_from` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 293 | unsafe { Number::unchecked_transmute_from(1_u8) }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ variant or associated item not found in `Number` [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `unchecked_transmute_from` found for enum `Number` in the current scope [INFO] [stdout] --> src/lib.rs:298:21 [INFO] [stdout] | [INFO] [stdout] 281 | enum Number { [INFO] [stdout] | ----------- variant or associated item `unchecked_transmute_from` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 298 | let _ = Number::unchecked_transmute_from(2); // 2 is not a valid discriminant! [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ variant or associated item not found in `Number` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 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_default (line 326) [INFO] [stdout] src/lib.rs - derive_from_primitive (line 70) [INFO] [stdout] src/lib.rs - derive_into_primitive (line 23) [INFO] [stdout] src/lib.rs - derive_try_from_primitive (line 170) [INFO] [stdout] src/lib.rs - derive_unsafe_from_primitive (line 276) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.43s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "8458b770c03fdc83d7b8207c136784491d07e0ff679fec1a13cb2f7d00b3c131", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8458b770c03fdc83d7b8207c136784491d07e0ff679fec1a13cb2f7d00b3c131", kill_on_drop: false }` [INFO] [stdout] 8458b770c03fdc83d7b8207c136784491d07e0ff679fec1a13cb2f7d00b3c131