[INFO] fetching crate enumx_derive 0.4.2... [INFO] testing enumx_derive-0.4.2 against master#432e145bd5a974c5b6f4dd9b352891bd7502b69d for pr-87041 [INFO] extracting crate enumx_derive 0.4.2 into /workspace/builds/worker-13/source [INFO] validating manifest of crates.io crate enumx_derive 0.4.2 on toolchain 432e145bd5a974c5b6f4dd9b352891bd7502b69d [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+432e145bd5a974c5b6f4dd9b352891bd7502b69d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate enumx_derive 0.4.2 [INFO] finished tweaking crates.io crate enumx_derive 0.4.2 [INFO] tweaked toml for crates.io crate enumx_derive 0.4.2 written to /workspace/builds/worker-13/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+432e145bd5a974c5b6f4dd9b352891bd7502b69d" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+432e145bd5a974c5b6f4dd9b352891bd7502b69d" "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-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+432e145bd5a974c5b6f4dd9b352891bd7502b69d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8b09748b2107492a17959f803c6d262536c884048eb39713008faee16f8ca0f5 [INFO] running `Command { std: "docker" "start" "-a" "8b09748b2107492a17959f803c6d262536c884048eb39713008faee16f8ca0f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8b09748b2107492a17959f803c6d262536c884048eb39713008faee16f8ca0f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8b09748b2107492a17959f803c6d262536c884048eb39713008faee16f8ca0f5", kill_on_drop: false }` [INFO] [stdout] 8b09748b2107492a17959f803c6d262536c884048eb39713008faee16f8ca0f5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+432e145bd5a974c5b6f4dd9b352891bd7502b69d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 365b5c90380a130435009dc6705929cc1e89fa1eb9843f75bbd75450a8671c54 [INFO] running `Command { std: "docker" "start" "-a" "365b5c90380a130435009dc6705929cc1e89fa1eb9843f75bbd75450a8671c54", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.73 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling enumx_derive v0.4.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 12.48s [INFO] running `Command { std: "docker" "inspect" "365b5c90380a130435009dc6705929cc1e89fa1eb9843f75bbd75450a8671c54", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "365b5c90380a130435009dc6705929cc1e89fa1eb9843f75bbd75450a8671c54", kill_on_drop: false }` [INFO] [stdout] 365b5c90380a130435009dc6705929cc1e89fa1eb9843f75bbd75450a8671c54 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+432e145bd5a974c5b6f4dd9b352891bd7502b69d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bcf3dacdb110ed64b4500a3d7de25d402404b5e5ac7982bd36541985065fe5f3 [INFO] running `Command { std: "docker" "start" "-a" "bcf3dacdb110ed64b4500a3d7de25d402404b5e5ac7982bd36541985065fe5f3", kill_on_drop: false }` [INFO] [stderr] Compiling enumx_derive v0.4.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.14s [INFO] running `Command { std: "docker" "inspect" "bcf3dacdb110ed64b4500a3d7de25d402404b5e5ac7982bd36541985065fe5f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bcf3dacdb110ed64b4500a3d7de25d402404b5e5ac7982bd36541985065fe5f3", kill_on_drop: false }` [INFO] [stdout] bcf3dacdb110ed64b4500a3d7de25d402404b5e5ac7982bd36541985065fe5f3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+432e145bd5a974c5b6f4dd9b352891bd7502b69d" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] cc5b26e5877660f03992e9806017a47616e69bef480f99e25ea354b0a731d15a [INFO] running `Command { std: "docker" "start" "-a" "cc5b26e5877660f03992e9806017a47616e69bef480f99e25ea354b0a731d15a", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.01s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/enumx_derive-dbd033b712925072) [INFO] [stdout] [INFO] [stderr] Doc-tests enumx_derive [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] [stdout] [INFO] [stdout] running 7 tests [INFO] [stdout] test src/lib.rs - def_impls (line 310) - compile ... FAILED [INFO] [stdout] test src/lib.rs - derive_exchange (line 546) - compile ... FAILED [INFO] [stdout] test src/lib.rs - Enum (line 94) ... FAILED [INFO] [stdout] test src/lib.rs - sum (line 1456) - compile ... FAILED [INFO] [stdout] test src/lib.rs - sum_err (line 1586) ... FAILED [INFO] [stdout] test src/lib.rs - Enum (line 107) ... ok [INFO] [stdout] test src/lib.rs - sum_err (line 1574) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - def_impls (line 310) stdout ---- [INFO] [stdout] error: cannot find macro `def_impls` in this scope [INFO] [stdout] --> src/lib.rs:311:1 [INFO] [stdout] | [INFO] [stdout] 3 | def_impls! { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] enumx_derive::def_impls [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - derive_exchange (line 546) stdout ---- [INFO] [stdout] error: cannot find derive macro `Exchange` in this scope [INFO] [stdout] --> src/lib.rs:547:11 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive( Exchange )] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Enum (line 94) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Type0` in this scope [INFO] [stdout] --> src/lib.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 4 | _0( Type0 ), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Type1` in this scope [INFO] [stdout] --> src/lib.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 5 | _1( Type1 ), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TypeM` in this scope [INFO] [stdout] --> src/lib.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 7 | _M( TypeM ), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - sum (line 1456) stdout ---- [INFO] [stdout] error[E0658]: attributes on expressions are experimental [INFO] [stdout] --> src/lib.rs:1460:9 [INFO] [stdout] | [INFO] [stdout] 6 | #[variant] 1_i32 [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #15701 for more information [INFO] [stdout] = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] error[E0658]: attributes on expressions are experimental [INFO] [stdout] --> src/lib.rs:1462:9 [INFO] [stdout] | [INFO] [stdout] 8 | #[variant] "false" [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #15701 for more information [INFO] [stdout] = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `sum` in this scope [INFO] [stdout] --> src/lib.rs:1457:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[sum] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `variant` in this scope [INFO] [stdout] --> src/lib.rs:1460:11 [INFO] [stdout] | [INFO] [stdout] 6 | #[variant] 1_i32 [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `variant` in this scope [INFO] [stdout] --> src/lib.rs:1462:11 [INFO] [stdout] | [INFO] [stdout] 8 | #[variant] "false" [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0308]: `if` and `else` have incompatible types [INFO] [stdout] --> src/lib.rs:1462:20 [INFO] [stdout] | [INFO] [stdout] 5 | / if cond { [INFO] [stdout] 6 | | #[variant] 1_i32 [INFO] [stdout] | | ----- expected because of this [INFO] [stdout] 7 | | } else { [INFO] [stdout] 8 | | #[variant] "false" [INFO] [stdout] | | ^^^^^^^ expected `i32`, found `&str` [INFO] [stdout] 9 | | } [INFO] [stdout] | |_____- `if` and `else` have incompatible types [INFO] [stdout] | [INFO] [stdout] help: you could change the return type to be a boxed trait object [INFO] [stdout] | [INFO] [stdout] 4 | fn f( cond: bool ) -> Box { [INFO] [stdout] | ^^^^^^^ ^ [INFO] [stdout] help: if you change the return type to expect trait objects, box the returned expressions [INFO] [stdout] | [INFO] [stdout] 6 | #[variant] Box::new(1_i32) [INFO] [stdout] 7 | } else { [INFO] [stdout] 8 | #[variant] Box::new("false") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0658. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - sum_err (line 1586) stdout ---- [INFO] [stdout] error: cannot find attribute `sum_err` in this scope [INFO] [stdout] --> src/lib.rs:1587:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[sum_err] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `sum` in this scope [INFO] [stdout] --> src/lib.rs:1588:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[sum( impl Clone )] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `impl Clone` [INFO] [stdout] --> src/lib.rs:1592:26 [INFO] [stdout] | [INFO] [stdout] 5 | fn foo( branch: i32 ) -> Result<(), impl Clone> { [INFO] [stdout] | ---------------------- expected `impl Clone` because of this [INFO] [stdout] ... [INFO] [stdout] 8 | 1 => Ok( Err( 0 )? ), [INFO] [stdout] | ^ the trait `From` is not implemented for `impl Clone` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = note: required because of the requirements on the impl of `FromResidual>` for `Result<(), impl Clone>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `impl Clone` [INFO] [stdout] --> src/lib.rs:1593:32 [INFO] [stdout] | [INFO] [stdout] 5 | fn foo( branch: i32 ) -> Result<(), impl Clone> { [INFO] [stdout] | ---------------------- expected `impl Clone` because of this [INFO] [stdout] ... [INFO] [stdout] 9 | 2 => Ok( Err( "lorum" )? ), [INFO] [stdout] | ^ the trait `From<&str>` is not implemented for `impl Clone` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = note: required because of the requirements on the impl of `FromResidual>` for `Result<(), impl Clone>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error[E0720]: cannot resolve opaque type [INFO] [stdout] --> src/lib.rs:1589:37 [INFO] [stdout] | [INFO] [stdout] 5 | fn foo( branch: i32 ) -> Result<(), impl Clone> { [INFO] [stdout] | ^^^^^^^^^^ recursive opaque type [INFO] [stdout] 6 | match branch % 3 { [INFO] [stdout] 7 | 0 => Ok(()), [INFO] [stdout] | ------ returning here with type `Result<(), impl Clone>` [INFO] [stdout] 8 | 1 => Ok( Err( 0 )? ), [INFO] [stdout] | --------------- returning here with type `Result<(), impl Clone>` [INFO] [stdout] 9 | 2 => Ok( Err( "lorum" )? ), [INFO] [stdout] | --------------------- returning here with type `Result<(), impl Clone>` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0720. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - sum_err (line 1574) stdout ---- [INFO] [stdout] error[E0658]: attributes on expressions are experimental [INFO] [stdout] --> src/lib.rs:1577:33 [INFO] [stdout] | [INFO] [stdout] 5 | Err( error ) => return Err( #[variant] error ), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #15701 for more information [INFO] [stdout] = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `variant` in this scope [INFO] [stdout] --> src/lib.rs:1577:35 [INFO] [stdout] | [INFO] [stdout] 5 | Err( error ) => return Err( #[variant] error ), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `expr` in this scope [INFO] [stdout] --> src/lib.rs:1575:7 [INFO] [stdout] | [INFO] [stdout] 3 | match expr { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1577:28 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_1574_0() { [INFO] [stdout] | - help: try adding a return type: `-> Result<_, _>` [INFO] [stdout] ... [INFO] [stdout] 5 | Err( error ) => return Err( #[variant] error ), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found enum `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `Result<_, _>` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425, E0658. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - Enum (line 94) [INFO] [stdout] src/lib.rs - def_impls (line 310) [INFO] [stdout] src/lib.rs - derive_exchange (line 546) [INFO] [stdout] src/lib.rs - sum (line 1456) [INFO] [stdout] src/lib.rs - sum_err (line 1574) [INFO] [stdout] src/lib.rs - sum_err (line 1586) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 1 passed; 6 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.30s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "cc5b26e5877660f03992e9806017a47616e69bef480f99e25ea354b0a731d15a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cc5b26e5877660f03992e9806017a47616e69bef480f99e25ea354b0a731d15a", kill_on_drop: false }` [INFO] [stdout] cc5b26e5877660f03992e9806017a47616e69bef480f99e25ea354b0a731d15a