[INFO] fetching crate enumx_derive 0.4.0... [INFO] testing enumx_derive-0.4.0 against beta-2021-01-01 for beta-1.50-1 [INFO] extracting crate enumx_derive 0.4.0 into /workspace/builds/worker-8/source [INFO] validating manifest of crates.io crate enumx_derive 0.4.0 on toolchain beta-2021-01-01 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2021-01-01" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate enumx_derive 0.4.0 [INFO] finished tweaking crates.io crate enumx_derive 0.4.0 [INFO] tweaked toml for crates.io crate enumx_derive 0.4.0 written to /workspace/builds/worker-8/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2021-01-01" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2021-01-01" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-01-01" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 665c7853bc92867e9354d6975291bcdd1e317268bf3b79bd9c0f791a9bdf3edb [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "665c7853bc92867e9354d6975291bcdd1e317268bf3b79bd9c0f791a9bdf3edb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "665c7853bc92867e9354d6975291bcdd1e317268bf3b79bd9c0f791a9bdf3edb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "665c7853bc92867e9354d6975291bcdd1e317268bf3b79bd9c0f791a9bdf3edb", kill_on_drop: false }` [INFO] [stdout] 665c7853bc92867e9354d6975291bcdd1e317268bf3b79bd9c0f791a9bdf3edb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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=warn" "-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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-01-01" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] aee89aae9976887af251975c018542ab026125ab365218c18d0e78a8aed032d0 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "aee89aae9976887af251975c018542ab026125ab365218c18d0e78a8aed032d0", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.57 [INFO] [stderr] Compiling indexmap v1.6.1 [INFO] [stderr] Compiling enumx_derive v0.4.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: panic message contains braces [INFO] [stdout] --> src/lib.rs:154:43 [INFO] [stdout] | [INFO] [stdout] 154 | _ => panic!( "expect _def!{{}}" ), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(panic_fmt)]` on by default [INFO] [stdout] = note: this message is not used as a format string, but will be in a future Rust edition [INFO] [stdout] help: add a "{}" format string to use the message literally [INFO] [stdout] | [INFO] [stdout] 154 | _ => panic!( "{}", "expect _def!{{}}" ), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains braces [INFO] [stdout] --> src/lib.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | panic!( "`enum`s deriving `FromVariant`/`Proto` should be in the form of \"enum MyEnum { Foo(Type), Bar(AnotherType),... }\"" ); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 451 | syntax_error!(); [INFO] [stdout] | ---------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this message is not used as a format string, but will be in a future Rust edition [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: add a "{}" format string to use the message literally [INFO] [stdout] | [INFO] [stdout] 79 | panic!( "{}", "`enum`s deriving `FromVariant`/`Proto` should be in the form of \"enum MyEnum { Foo(Type), Bar(AnotherType),... }\"" ); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains braces [INFO] [stdout] --> src/lib.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | panic!( "`enum`s deriving `FromVariant`/`Proto` should be in the form of \"enum MyEnum { Foo(Type), Bar(AnotherType),... }\"" ); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 512 | syntax_error!(); [INFO] [stdout] | ---------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this message is not used as a format string, but will be in a future Rust edition [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: add a "{}" format string to use the message literally [INFO] [stdout] | [INFO] [stdout] 79 | panic!( "{}", "`enum`s deriving `FromVariant`/`Proto` should be in the form of \"enum MyEnum { Foo(Type), Bar(AnotherType),... }\"" ); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains braces [INFO] [stdout] --> src/lib.rs:966:43 [INFO] [stdout] | [INFO] [stdout] 966 | panic!("def_impls!{ impl }: Variant!() should have no argument"); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: this message is not used as a format string, but will be in a future Rust edition [INFO] [stdout] help: add a "{}" format string to use the message literally [INFO] [stdout] | [INFO] [stdout] 966 | panic!("{}", "def_impls!{ impl }: Variant!() should have no argument"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains braces [INFO] [stdout] --> src/lib.rs:1021:39 [INFO] [stdout] | [INFO] [stdout] 1021 | panic!("def_impls!{ impl }: Variants!() should have no argument"); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: this message is not used as a format string, but will be in a future Rust edition [INFO] [stdout] help: add a "{}" format string to use the message literally [INFO] [stdout] | [INFO] [stdout] 1021 | panic!("{}", "def_impls!{ impl }: Variants!() should have no argument"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains braces [INFO] [stdout] --> src/lib.rs:1039:43 [INFO] [stdout] | [INFO] [stdout] 1039 | panic!("def_impls!{ impl }: Variants!() should have no argument"); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: this message is not used as a format string, but will be in a future Rust edition [INFO] [stdout] help: add a "{}" format string to use the message literally [INFO] [stdout] | [INFO] [stdout] 1039 | panic!("{}", "def_impls!{ impl }: Variants!() should have no argument"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains unused formatting placeholders [INFO] [stdout] --> src/lib.rs:1181:64 [INFO] [stdout] | [INFO] [stdout] 1181 | ... panic!( "The enum's variants are unknown to `def_impls!{}`. Consider using `_def!{}` to provide the variants of the enum defined el... [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: this message is not used as a format string when given without arguments, but will be in a future Rust edition [INFO] [stdout] help: add the missing arguments [INFO] [stdout] | [INFO] [stdout] 1181 | panic!( "The enum's variants are unknown to `def_impls!{}`. Consider using `_def!{}` to provide the variants of the enum defined elsewhere.", ... ); [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: or add a "{}" format string to use the message literally [INFO] [stdout] | [INFO] [stdout] 1181 | panic!( "{}", "The enum's variants are unknown to `def_impls!{}`. Consider using `_def!{}` to provide the variants of the enum defined elsewhere." ); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 15.24s [INFO] running `Command { std: "docker" "inspect" "aee89aae9976887af251975c018542ab026125ab365218c18d0e78a8aed032d0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aee89aae9976887af251975c018542ab026125ab365218c18d0e78a8aed032d0", kill_on_drop: false }` [INFO] [stdout] aee89aae9976887af251975c018542ab026125ab365218c18d0e78a8aed032d0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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=warn" "-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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-01-01" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] aafe19b652942bed2625032b70331eedb1e8941c8596b5e810de2ea138b7ac36 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "aafe19b652942bed2625032b70331eedb1e8941c8596b5e810de2ea138b7ac36", kill_on_drop: false }` [INFO] [stderr] Compiling enumx_derive v0.4.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: panic message contains braces [INFO] [stdout] --> src/lib.rs:154:43 [INFO] [stdout] | [INFO] [stdout] 154 | _ => panic!( "expect _def!{{}}" ), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(panic_fmt)]` on by default [INFO] [stdout] = note: this message is not used as a format string, but will be in a future Rust edition [INFO] [stdout] help: add a "{}" format string to use the message literally [INFO] [stdout] | [INFO] [stdout] 154 | _ => panic!( "{}", "expect _def!{{}}" ), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains braces [INFO] [stdout] --> src/lib.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | panic!( "`enum`s deriving `FromVariant`/`Proto` should be in the form of \"enum MyEnum { Foo(Type), Bar(AnotherType),... }\"" ); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 451 | syntax_error!(); [INFO] [stdout] | ---------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this message is not used as a format string, but will be in a future Rust edition [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: add a "{}" format string to use the message literally [INFO] [stdout] | [INFO] [stdout] 79 | panic!( "{}", "`enum`s deriving `FromVariant`/`Proto` should be in the form of \"enum MyEnum { Foo(Type), Bar(AnotherType),... }\"" ); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains braces [INFO] [stdout] --> src/lib.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | panic!( "`enum`s deriving `FromVariant`/`Proto` should be in the form of \"enum MyEnum { Foo(Type), Bar(AnotherType),... }\"" ); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 512 | syntax_error!(); [INFO] [stdout] | ---------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this message is not used as a format string, but will be in a future Rust edition [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: add a "{}" format string to use the message literally [INFO] [stdout] | [INFO] [stdout] 79 | panic!( "{}", "`enum`s deriving `FromVariant`/`Proto` should be in the form of \"enum MyEnum { Foo(Type), Bar(AnotherType),... }\"" ); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains braces [INFO] [stdout] --> src/lib.rs:966:43 [INFO] [stdout] | [INFO] [stdout] 966 | panic!("def_impls!{ impl }: Variant!() should have no argument"); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: this message is not used as a format string, but will be in a future Rust edition [INFO] [stdout] help: add a "{}" format string to use the message literally [INFO] [stdout] | [INFO] [stdout] 966 | panic!("{}", "def_impls!{ impl }: Variant!() should have no argument"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains braces [INFO] [stdout] --> src/lib.rs:1021:39 [INFO] [stdout] | [INFO] [stdout] 1021 | panic!("def_impls!{ impl }: Variants!() should have no argument"); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: this message is not used as a format string, but will be in a future Rust edition [INFO] [stdout] help: add a "{}" format string to use the message literally [INFO] [stdout] | [INFO] [stdout] 1021 | panic!("{}", "def_impls!{ impl }: Variants!() should have no argument"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains braces [INFO] [stdout] --> src/lib.rs:1039:43 [INFO] [stdout] | [INFO] [stdout] 1039 | panic!("def_impls!{ impl }: Variants!() should have no argument"); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: this message is not used as a format string, but will be in a future Rust edition [INFO] [stdout] help: add a "{}" format string to use the message literally [INFO] [stdout] | [INFO] [stdout] 1039 | panic!("{}", "def_impls!{ impl }: Variants!() should have no argument"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains unused formatting placeholders [INFO] [stdout] --> src/lib.rs:1181:64 [INFO] [stdout] | [INFO] [stdout] 1181 | ... panic!( "The enum's variants are unknown to `def_impls!{}`. Consider using `_def!{}` to provide the variants of the enum defined el... [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: this message is not used as a format string when given without arguments, but will be in a future Rust edition [INFO] [stdout] help: add the missing arguments [INFO] [stdout] | [INFO] [stdout] 1181 | panic!( "The enum's variants are unknown to `def_impls!{}`. Consider using `_def!{}` to provide the variants of the enum defined elsewhere.", ... ); [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: or add a "{}" format string to use the message literally [INFO] [stdout] | [INFO] [stdout] 1181 | panic!( "{}", "The enum's variants are unknown to `def_impls!{}`. Consider using `_def!{}` to provide the variants of the enum defined elsewhere." ); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains braces [INFO] [stdout] --> src/lib.rs:154:43 [INFO] [stdout] | [INFO] [stdout] 154 | _ => panic!( "expect _def!{{}}" ), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(panic_fmt)]` on by default [INFO] [stdout] = note: this message is not used as a format string, but will be in a future Rust edition [INFO] [stdout] help: add a "{}" format string to use the message literally [INFO] [stdout] | [INFO] [stdout] 154 | _ => panic!( "{}", "expect _def!{{}}" ), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains braces [INFO] [stdout] --> src/lib.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | panic!( "`enum`s deriving `FromVariant`/`Proto` should be in the form of \"enum MyEnum { Foo(Type), Bar(AnotherType),... }\"" ); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 451 | syntax_error!(); [INFO] [stdout] | ---------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this message is not used as a format string, but will be in a future Rust edition [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: add a "{}" format string to use the message literally [INFO] [stdout] | [INFO] [stdout] 79 | panic!( "{}", "`enum`s deriving `FromVariant`/`Proto` should be in the form of \"enum MyEnum { Foo(Type), Bar(AnotherType),... }\"" ); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains braces [INFO] [stdout] --> src/lib.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | panic!( "`enum`s deriving `FromVariant`/`Proto` should be in the form of \"enum MyEnum { Foo(Type), Bar(AnotherType),... }\"" ); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 512 | syntax_error!(); [INFO] [stdout] | ---------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this message is not used as a format string, but will be in a future Rust edition [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: add a "{}" format string to use the message literally [INFO] [stdout] | [INFO] [stdout] 79 | panic!( "{}", "`enum`s deriving `FromVariant`/`Proto` should be in the form of \"enum MyEnum { Foo(Type), Bar(AnotherType),... }\"" ); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains braces [INFO] [stdout] --> src/lib.rs:966:43 [INFO] [stdout] | [INFO] [stdout] 966 | panic!("def_impls!{ impl }: Variant!() should have no argument"); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: this message is not used as a format string, but will be in a future Rust edition [INFO] [stdout] help: add a "{}" format string to use the message literally [INFO] [stdout] | [INFO] [stdout] 966 | panic!("{}", "def_impls!{ impl }: Variant!() should have no argument"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains braces [INFO] [stdout] --> src/lib.rs:1021:39 [INFO] [stdout] | [INFO] [stdout] 1021 | panic!("def_impls!{ impl }: Variants!() should have no argument"); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: this message is not used as a format string, but will be in a future Rust edition [INFO] [stdout] help: add a "{}" format string to use the message literally [INFO] [stdout] | [INFO] [stdout] 1021 | panic!("{}", "def_impls!{ impl }: Variants!() should have no argument"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains braces [INFO] [stdout] --> src/lib.rs:1039:43 [INFO] [stdout] | [INFO] [stdout] 1039 | panic!("def_impls!{ impl }: Variants!() should have no argument"); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: this message is not used as a format string, but will be in a future Rust edition [INFO] [stdout] help: add a "{}" format string to use the message literally [INFO] [stdout] | [INFO] [stdout] 1039 | panic!("{}", "def_impls!{ impl }: Variants!() should have no argument"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains unused formatting placeholders [INFO] [stdout] --> src/lib.rs:1181:64 [INFO] [stdout] | [INFO] [stdout] 1181 | ... panic!( "The enum's variants are unknown to `def_impls!{}`. Consider using `_def!{}` to provide the variants of the enum defined el... [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: this message is not used as a format string when given without arguments, but will be in a future Rust edition [INFO] [stdout] help: add the missing arguments [INFO] [stdout] | [INFO] [stdout] 1181 | panic!( "The enum's variants are unknown to `def_impls!{}`. Consider using `_def!{}` to provide the variants of the enum defined elsewhere.", ... ); [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: or add a "{}" format string to use the message literally [INFO] [stdout] | [INFO] [stdout] 1181 | panic!( "{}", "The enum's variants are unknown to `def_impls!{}`. Consider using `_def!{}` to provide the variants of the enum defined elsewhere." ); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.47s [INFO] running `Command { std: "docker" "inspect" "aafe19b652942bed2625032b70331eedb1e8941c8596b5e810de2ea138b7ac36", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aafe19b652942bed2625032b70331eedb1e8941c8596b5e810de2ea138b7ac36", kill_on_drop: false }` [INFO] [stdout] aafe19b652942bed2625032b70331eedb1e8941c8596b5e810de2ea138b7ac36 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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=warn" "-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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-01-01" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] d9fcc680a09004fc8badbe09051e0a5eefd24b9aaf80eafe77135a34825e7cf0 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "d9fcc680a09004fc8badbe09051e0a5eefd24b9aaf80eafe77135a34825e7cf0", kill_on_drop: false }` [INFO] [stderr] warning: panic message contains braces [INFO] [stderr] --> src/lib.rs:154:43 [INFO] [stderr] | [INFO] [stderr] 154 | _ => panic!( "expect _def!{{}}" ), [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(panic_fmt)]` on by default [INFO] [stderr] = note: this message is not used as a format string, but will be in a future Rust edition [INFO] [stderr] help: add a "{}" format string to use the message literally [INFO] [stderr] | [INFO] [stderr] 154 | _ => panic!( "{}", "expect _def!{{}}" ), [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: panic message contains braces [INFO] [stderr] --> src/lib.rs:79:9 [INFO] [stderr] | [INFO] [stderr] 79 | panic!( "`enum`s deriving `FromVariant`/`Proto` should be in the form of \"enum MyEnum { Foo(Type), Bar(AnotherType),... }\"" ); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 451 | syntax_error!(); [INFO] [stderr] | ---------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this message is not used as a format string, but will be in a future Rust edition [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: add a "{}" format string to use the message literally [INFO] [stderr] | [INFO] [stderr] 79 | panic!( "{}", "`enum`s deriving `FromVariant`/`Proto` should be in the form of \"enum MyEnum { Foo(Type), Bar(AnotherType),... }\"" ); [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: panic message contains braces [INFO] [stderr] --> src/lib.rs:79:9 [INFO] [stderr] | [INFO] [stderr] 79 | panic!( "`enum`s deriving `FromVariant`/`Proto` should be in the form of \"enum MyEnum { Foo(Type), Bar(AnotherType),... }\"" ); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 512 | syntax_error!(); [INFO] [stderr] | ---------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this message is not used as a format string, but will be in a future Rust edition [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: add a "{}" format string to use the message literally [INFO] [stderr] | [INFO] [stderr] 79 | panic!( "{}", "`enum`s deriving `FromVariant`/`Proto` should be in the form of \"enum MyEnum { Foo(Type), Bar(AnotherType),... }\"" ); [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: panic message contains braces [INFO] [stderr] --> src/lib.rs:966:43 [INFO] [stderr] | [INFO] [stderr] 966 | panic!("def_impls!{ impl }: Variant!() should have no argument"); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: this message is not used as a format string, but will be in a future Rust edition [INFO] [stderr] help: add a "{}" format string to use the message literally [INFO] [stderr] | [INFO] [stderr] 966 | panic!("{}", "def_impls!{ impl }: Variant!() should have no argument"); [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: panic message contains braces [INFO] [stderr] --> src/lib.rs:1021:39 [INFO] [stderr] | [INFO] [stderr] 1021 | panic!("def_impls!{ impl }: Variants!() should have no argument"); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: this message is not used as a format string, but will be in a future Rust edition [INFO] [stderr] help: add a "{}" format string to use the message literally [INFO] [stderr] | [INFO] [stderr] 1021 | panic!("{}", "def_impls!{ impl }: Variants!() should have no argument"); [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: panic message contains braces [INFO] [stderr] --> src/lib.rs:1039:43 [INFO] [stderr] | [INFO] [stderr] 1039 | panic!("def_impls!{ impl }: Variants!() should have no argument"); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: this message is not used as a format string, but will be in a future Rust edition [INFO] [stderr] help: add a "{}" format string to use the message literally [INFO] [stderr] | [INFO] [stderr] 1039 | panic!("{}", "def_impls!{ impl }: Variants!() should have no argument"); [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: panic message contains unused formatting placeholders [INFO] [stderr] --> src/lib.rs:1181:64 [INFO] [stderr] | [INFO] [stderr] 1181 | ... panic!( "The enum's variants are unknown to `def_impls!{}`. Consider using `_def!{}` to provide the variants of the enum defined el... [INFO] [stderr] | ^^ ^^ [INFO] [stderr] | [INFO] [stderr] = note: this message is not used as a format string when given without arguments, but will be in a future Rust edition [INFO] [stderr] help: add the missing arguments [INFO] [stderr] | [INFO] [stderr] 1181 | panic!( "The enum's variants are unknown to `def_impls!{}`. Consider using `_def!{}` to provide the variants of the enum defined elsewhere.", ... ); [INFO] [stderr] | ^^^^^ [INFO] [stderr] help: or add a "{}" format string to use the message literally [INFO] [stderr] | [INFO] [stderr] 1181 | panic!( "{}", "The enum's variants are unknown to `def_impls!{}`. Consider using `_def!{}` to provide the variants of the enum defined elsewhere." ); [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 7 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: panic message contains braces [INFO] [stderr] --> src/lib.rs:154:43 [INFO] [stderr] | [INFO] [stderr] 154 | _ => panic!( "expect _def!{{}}" ), [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(panic_fmt)]` on by default [INFO] [stderr] = note: this message is not used as a format string, but will be in a future Rust edition [INFO] [stderr] help: add a "{}" format string to use the message literally [INFO] [stderr] | [INFO] [stderr] 154 | _ => panic!( "{}", "expect _def!{{}}" ), [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: panic message contains braces [INFO] [stderr] --> src/lib.rs:79:9 [INFO] [stderr] | [INFO] [stderr] 79 | panic!( "`enum`s deriving `FromVariant`/`Proto` should be in the form of \"enum MyEnum { Foo(Type), Bar(AnotherType),... }\"" ); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 451 | syntax_error!(); [INFO] [stderr] | ---------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this message is not used as a format string, but will be in a future Rust edition [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: add a "{}" format string to use the message literally [INFO] [stderr] | [INFO] [stderr] 79 | panic!( "{}", "`enum`s deriving `FromVariant`/`Proto` should be in the form of \"enum MyEnum { Foo(Type), Bar(AnotherType),... }\"" ); [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: panic message contains braces [INFO] [stderr] --> src/lib.rs:79:9 [INFO] [stderr] | [INFO] [stderr] 79 | panic!( "`enum`s deriving `FromVariant`/`Proto` should be in the form of \"enum MyEnum { Foo(Type), Bar(AnotherType),... }\"" ); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 512 | syntax_error!(); [INFO] [stderr] | ---------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this message is not used as a format string, but will be in a future Rust edition [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: add a "{}" format string to use the message literally [INFO] [stderr] | [INFO] [stderr] 79 | panic!( "{}", "`enum`s deriving `FromVariant`/`Proto` should be in the form of \"enum MyEnum { Foo(Type), Bar(AnotherType),... }\"" ); [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: panic message contains braces [INFO] [stderr] --> src/lib.rs:966:43 [INFO] [stderr] | [INFO] [stderr] 966 | panic!("def_impls!{ impl }: Variant!() should have no argument"); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: this message is not used as a format string, but will be in a future Rust edition [INFO] [stderr] help: add a "{}" format string to use the message literally [INFO] [stderr] | [INFO] [stderr] 966 | panic!("{}", "def_impls!{ impl }: Variant!() should have no argument"); [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: panic message contains braces [INFO] [stderr] --> src/lib.rs:1021:39 [INFO] [stderr] | [INFO] [stderr] 1021 | panic!("def_impls!{ impl }: Variants!() should have no argument"); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: this message is not used as a format string, but will be in a future Rust edition [INFO] [stderr] help: add a "{}" format string to use the message literally [INFO] [stderr] | [INFO] [stderr] 1021 | panic!("{}", "def_impls!{ impl }: Variants!() should have no argument"); [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: panic message contains braces [INFO] [stderr] --> src/lib.rs:1039:43 [INFO] [stderr] | [INFO] [stderr] 1039 | panic!("def_impls!{ impl }: Variants!() should have no argument"); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: this message is not used as a format string, but will be in a future Rust edition [INFO] [stderr] help: add a "{}" format string to use the message literally [INFO] [stderr] | [INFO] [stderr] 1039 | panic!("{}", "def_impls!{ impl }: Variants!() should have no argument"); [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: panic message contains unused formatting placeholders [INFO] [stderr] --> src/lib.rs:1181:64 [INFO] [stderr] | [INFO] [stderr] 1181 | ... panic!( "The enum's variants are unknown to `def_impls!{}`. Consider using `_def!{}` to provide the variants of the enum defined el... [INFO] [stderr] | ^^ ^^ [INFO] [stderr] | [INFO] [stderr] = note: this message is not used as a format string when given without arguments, but will be in a future Rust edition [INFO] [stderr] help: add the missing arguments [INFO] [stderr] | [INFO] [stderr] 1181 | panic!( "The enum's variants are unknown to `def_impls!{}`. Consider using `_def!{}` to provide the variants of the enum defined elsewhere.", ... ); [INFO] [stderr] | ^^^^^ [INFO] [stderr] help: or add a "{}" format string to use the message literally [INFO] [stderr] | [INFO] [stderr] 1181 | panic!( "{}", "The enum's variants are unknown to `def_impls!{}`. Consider using `_def!{}` to provide the variants of the enum defined elsewhere." ); [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 7 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.01s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/enumx_derive-dd823b812e81ccb0 [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 enumx_derive [INFO] [stdout] [INFO] [stdout] running 7 tests [INFO] [stdout] test src/lib.rs - Enum (line 92) ... FAILED [INFO] [stdout] test src/lib.rs - derive_exchange (line 544) ... FAILED [INFO] [stdout] test src/lib.rs - def_impls (line 308) ... FAILED [INFO] [stdout] test src/lib.rs - sum (line 1454) ... FAILED [INFO] [stdout] test src/lib.rs - sum_err (line 1584) ... FAILED [INFO] [stdout] test src/lib.rs - Enum (line 105) ... ok [INFO] [stdout] test src/lib.rs - sum_err (line 1572) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - Enum (line 92) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Type0` in this scope [INFO] [stdout] --> src/lib.rs:94: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:95: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:97: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 - derive_exchange (line 544) stdout ---- [INFO] [stdout] error: cannot find derive macro `Exchange` in this scope [INFO] [stdout] --> src/lib.rs:545: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 - def_impls (line 308) stdout ---- [INFO] [stdout] error: cannot find macro `def_impls` in this scope [INFO] [stdout] --> src/lib.rs:309: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 - sum (line 1454) stdout ---- [INFO] [stdout] error[E0658]: attributes on expressions are experimental [INFO] [stdout] --> src/lib.rs:1458:9 [INFO] [stdout] | [INFO] [stdout] 6 | #[variant] 1_i32 [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #15701 for more information [INFO] [stdout] [INFO] [stdout] error[E0658]: attributes on expressions are experimental [INFO] [stdout] --> src/lib.rs:1460:9 [INFO] [stdout] | [INFO] [stdout] 8 | #[variant] "false" [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #15701 for more information [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `sum` in this scope [INFO] [stdout] --> src/lib.rs:1455: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:1458: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:1460: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:1460: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 1584) stdout ---- [INFO] [stdout] error: cannot find attribute `sum_err` in this scope [INFO] [stdout] --> src/lib.rs:1585: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:1586: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:1590: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 by `from` [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `impl Clone` [INFO] [stdout] --> src/lib.rs:1591: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 by `from` [INFO] [stdout] [INFO] [stdout] error[E0720]: cannot resolve opaque type [INFO] [stdout] --> src/lib.rs:1587: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 `std::result::Result<(), impl Clone>` [INFO] [stdout] 8 | 1 => Ok( Err( 0 )? ), [INFO] [stdout] | --------------- returning here with type `std::result::Result<(), impl Clone>` [INFO] [stdout] 9 | 2 => Ok( Err( "lorum" )? ), [INFO] [stdout] | --------------------- returning here with type `std::result::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 1572) stdout ---- [INFO] [stdout] error[E0658]: attributes on expressions are experimental [INFO] [stdout] --> src/lib.rs:1575: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] [INFO] [stdout] error: cannot find attribute `variant` in this scope [INFO] [stdout] --> src/lib.rs:1575: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:1573: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:1575:28 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_1572_0() { [INFO] [stdout] | - help: try adding a return type: `-> std::result::Result<_, _>` [INFO] [stdout] ... [INFO] [stdout] 5 | Err( error ) => return Err( #[variant] error ), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found enum `std::result::Result` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `std::result::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 92) [INFO] [stdout] src/lib.rs - def_impls (line 308) [INFO] [stdout] src/lib.rs - derive_exchange (line 544) [INFO] [stdout] src/lib.rs - sum (line 1454) [INFO] [stdout] src/lib.rs - sum_err (line 1572) [INFO] [stdout] src/lib.rs - sum_err (line 1584) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 1 passed; 6 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.65s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "d9fcc680a09004fc8badbe09051e0a5eefd24b9aaf80eafe77135a34825e7cf0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d9fcc680a09004fc8badbe09051e0a5eefd24b9aaf80eafe77135a34825e7cf0", kill_on_drop: false }` [INFO] [stdout] d9fcc680a09004fc8badbe09051e0a5eefd24b9aaf80eafe77135a34825e7cf0