[INFO] fetching crate into_enum 0.1.0... [INFO] checking into_enum-0.1.0 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] extracting crate into_enum 0.1.0 into /workspace/builds/worker-6-tc2/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-6-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate into_enum 0.1.0 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 79af86ac174d55fd7954fd5f905d725fb9184287918830277556e1424148bc31 [INFO] running `Command { std: "docker" "start" "-a" "79af86ac174d55fd7954fd5f905d725fb9184287918830277556e1424148bc31", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "79af86ac174d55fd7954fd5f905d725fb9184287918830277556e1424148bc31", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "79af86ac174d55fd7954fd5f905d725fb9184287918830277556e1424148bc31", kill_on_drop: false }` [INFO] [stdout] 79af86ac174d55fd7954fd5f905d725fb9184287918830277556e1424148bc31 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e524ade16558ad480d3025b7e2321b0bb18501ab8bb5cdbf0e71be04ff8f1934 [INFO] running `Command { std: "docker" "start" "-a" "e524ade16558ad480d3025b7e2321b0bb18501ab8bb5cdbf0e71be04ff8f1934", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Checking unicode-ident v1.0.18 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Checking 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] [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/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/convert/mod.rs:596:8 [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/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/convert/mod.rs:596:8 [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 `(&'static str, &'static str)` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/convert/mod.rs:596:8 [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/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/convert/mod.rs:596:8 [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/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/convert/mod.rs:596:8 [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/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/convert/mod.rs:596:8 [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/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/convert/mod.rs:596:8 [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/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/convert/mod.rs:596:8 [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/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/convert/mod.rs:596:8 [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" "e524ade16558ad480d3025b7e2321b0bb18501ab8bb5cdbf0e71be04ff8f1934", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e524ade16558ad480d3025b7e2321b0bb18501ab8bb5cdbf0e71be04ff8f1934", kill_on_drop: false }` [INFO] [stdout] e524ade16558ad480d3025b7e2321b0bb18501ab8bb5cdbf0e71be04ff8f1934