[INFO] fetching crate into_enum 0.1.0... [INFO] testing into_enum-0.1.0 against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-1 [INFO] extracting crate into_enum 0.1.0 into /workspace/builds/worker-0-tc1/source [INFO] started tweaking crates.io crate into_enum 0.1.0 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate into_enum 0.1.0 [INFO] tweaked toml for crates.io crate into_enum 0.1.0 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate into_enum 0.1.0 on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "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" "+562dee4820c458d823175268e41601d4c060588a" "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" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0d8928521ca304ff562524cd2e4b9e6e03c3ed9f67719f22a1a8b51ea4a2afe4 [INFO] running `Command { std: "docker" "start" "-a" "0d8928521ca304ff562524cd2e4b9e6e03c3ed9f67719f22a1a8b51ea4a2afe4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0d8928521ca304ff562524cd2e4b9e6e03c3ed9f67719f22a1a8b51ea4a2afe4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0d8928521ca304ff562524cd2e4b9e6e03c3ed9f67719f22a1a8b51ea4a2afe4", kill_on_drop: false }` [INFO] [stdout] 0d8928521ca304ff562524cd2e4b9e6e03c3ed9f67719f22a1a8b51ea4a2afe4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6f04d54ec97fb6332da355d5565b6de9b1add59c628a998d4a83f50d5e8a1378 [INFO] running `Command { std: "docker" "start" "-a" "6f04d54ec97fb6332da355d5565b6de9b1add59c628a998d4a83f50d5e8a1378", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Compiling into_enum v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.71s [INFO] running `Command { std: "docker" "inspect" "6f04d54ec97fb6332da355d5565b6de9b1add59c628a998d4a83f50d5e8a1378", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6f04d54ec97fb6332da355d5565b6de9b1add59c628a998d4a83f50d5e8a1378", kill_on_drop: false }` [INFO] [stdout] 6f04d54ec97fb6332da355d5565b6de9b1add59c628a998d4a83f50d5e8a1378 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7aa351bb672cf4a4573a46b82df3a87205bfe3ea0176de09acb11d5c356d7101 [INFO] running `Command { std: "docker" "start" "-a" "7aa351bb672cf4a4573a46b82df3a87205bfe3ea0176de09acb11d5c356d7101", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.106 [INFO] [stderr] Compiling quote v1.0.45 [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Compiling into_enum v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `derive_into_enum` [INFO] [stdout] --> tests/macro.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use derive_into_enum::IntoEnum; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `derive_into_enum` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `derive_into_enum`, use `cargo add derive_into_enum` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `into_enum` in this scope [INFO] [stdout] --> tests/macro.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | #[into_enum(skip)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `into_enum` is in scope, but it is a crate, not an attribute [INFO] [stdout] help: `into_enum` is an attribute that can be used by the derive macro `IntoEnum`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 8 + #[derive(IntoEnum)] [INFO] [stdout] 9 | enum TestEnum { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/macro.rs:20:24 [INFO] [stdout] | [INFO] [stdout] 20 | TestEnum::from(()), [INFO] [stdout] | -------------- ^^ expected `TestEnum`, found `()` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/convert/mod.rs:592:7 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/macro.rs:25:24 [INFO] [stdout] | [INFO] [stdout] 25 | TestEnum::from("1"), [INFO] [stdout] | -------------- ^^^ expected `TestEnum`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/convert/mod.rs:592:7 [INFO] [stdout] help: try wrapping the expression in a variant of `TestEnum` [INFO] [stdout] | [INFO] [stdout] 25 | TestEnum::from(compile_from::TestEnum::OneValue("1")), [INFO] [stdout] | +++++++++++++++++++++++++++++++++ + [INFO] [stdout] 25 | TestEnum::from(compile_from::TestEnum::SkippedDuplicate("1")), [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/macro.rs:30:24 [INFO] [stdout] | [INFO] [stdout] 30 | TestEnum::from(("1", "2")), [INFO] [stdout] | -------------- ^^^^^^^^^^ expected `TestEnum`, found `(&str, &str)` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected enum `TestEnum` [INFO] [stdout] found tuple `(&str, &str)` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/convert/mod.rs:592:7 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/macro.rs:53:31 [INFO] [stdout] | [INFO] [stdout] 53 | let _ = TestGeneric::from(ImplOne); [INFO] [stdout] | ----------------- ^^^^^^^ expected `TestGeneric<_>`, found `ImplOne` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected enum `TestGeneric<_>` [INFO] [stdout] found struct `ImplOne` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/convert/mod.rs:592:7 [INFO] [stdout] help: try wrapping the expression in `generic::TestGeneric::Generic` [INFO] [stdout] | [INFO] [stdout] 53 | let _ = TestGeneric::from(generic::TestGeneric::Generic(ImplOne)); [INFO] [stdout] | ++++++++++++++++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/macro.rs:54:31 [INFO] [stdout] | [INFO] [stdout] 54 | let _ = TestGeneric::from(ImplTwo); [INFO] [stdout] | ----------------- ^^^^^^^ expected `TestGeneric<_>`, found `ImplTwo` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected enum `TestGeneric<_>` [INFO] [stdout] found struct `ImplTwo` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/convert/mod.rs:592:7 [INFO] [stdout] help: try wrapping the expression in `generic::TestGeneric::Generic` [INFO] [stdout] | [INFO] [stdout] 54 | let _ = TestGeneric::from(generic::TestGeneric::Generic(ImplTwo)); [INFO] [stdout] | ++++++++++++++++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/macro.rs:55:42 [INFO] [stdout] | [INFO] [stdout] 55 | let _ = TestGeneric::::from(NoTraits); [INFO] [stdout] | ---------------------------- ^^^^^^^^ expected `TestGeneric`, found `NoTraits` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected enum `TestGeneric` [INFO] [stdout] found struct `NoTraits` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/convert/mod.rs:592:7 [INFO] [stdout] help: try wrapping the expression in `generic::TestGeneric::NonGeneric` [INFO] [stdout] | [INFO] [stdout] 55 | let _ = TestGeneric::::from(generic::TestGeneric::NonGeneric(NoTraits)); [INFO] [stdout] | +++++++++++++++++++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/macro.rs:56:42 [INFO] [stdout] | [INFO] [stdout] 56 | let _ = TestGeneric::::from(NoTraits); [INFO] [stdout] | ---------------------------- ^^^^^^^^ expected `TestGeneric`, found `NoTraits` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected enum `TestGeneric` [INFO] [stdout] found struct `NoTraits` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/convert/mod.rs:592:7 [INFO] [stdout] help: try wrapping the expression in `generic::TestGeneric::NonGeneric` [INFO] [stdout] | [INFO] [stdout] 56 | let _ = TestGeneric::::from(generic::TestGeneric::NonGeneric(NoTraits)); [INFO] [stdout] | +++++++++++++++++++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/macro.rs:57:42 [INFO] [stdout] | [INFO] [stdout] 57 | let _ = TestGeneric::::from(()); [INFO] [stdout] | ---------------------------- ^^ expected `TestGeneric`, found `()` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected enum `TestGeneric` [INFO] [stdout] found unit type `()` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/convert/mod.rs:592:7 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/macro.rs:58:42 [INFO] [stdout] | [INFO] [stdout] 58 | let _ = TestGeneric::::from(()); [INFO] [stdout] | ---------------------------- ^^ expected `TestGeneric`, found `()` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected enum `TestGeneric` [INFO] [stdout] found unit type `()` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/convert/mod.rs:592:7 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `into_enum` (test "macro") due to 11 previous errors [INFO] running `Command { std: "docker" "inspect" "7aa351bb672cf4a4573a46b82df3a87205bfe3ea0176de09acb11d5c356d7101", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7aa351bb672cf4a4573a46b82df3a87205bfe3ea0176de09acb11d5c356d7101", kill_on_drop: false }` [INFO] [stdout] 7aa351bb672cf4a4573a46b82df3a87205bfe3ea0176de09acb11d5c356d7101