[INFO] fetching crate ifeq 0.1.3... [INFO] checking ifeq-0.1.3 against master#73f76b74efcaf21bd5424d87c66cd6ed7fe5c7de for pr-68325 [INFO] extracting crate ifeq 0.1.3 into /workspace/builds/worker-0/source [INFO] validating manifest of crates.io crate ifeq 0.1.3 on toolchain 73f76b74efcaf21bd5424d87c66cd6ed7fe5c7de [INFO] running `"/workspace/cargo-home/bin/cargo" "+73f76b74efcaf21bd5424d87c66cd6ed7fe5c7de" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking crates.io crate ifeq 0.1.3 [INFO] finished tweaking crates.io crate ifeq 0.1.3 [INFO] tweaked toml for crates.io crate ifeq 0.1.3 written to /workspace/builds/worker-0/source/Cargo.toml [INFO] running `"/workspace/cargo-home/bin/cargo" "+73f76b74efcaf21bd5424d87c66cd6ed7fe5c7de" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/workspace/cargo-home/bin/cargo" "+73f76b74efcaf21bd5424d87c66cd6ed7fe5c7de" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+73f76b74efcaf21bd5424d87c66cd6ed7fe5c7de" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] a516ffe27bf70c262c2addfdba853c07ce314afbff4a78d6e78385d45c969b4e [INFO] running `"docker" "start" "-a" "a516ffe27bf70c262c2addfdba853c07ce314afbff4a78d6e78385d45c969b4e"` [INFO] [stderr] Checking ifeq v0.1.3 (/opt/rustwide/workdir) [INFO] [stderr] error[E0658]: use of unstable library feature 'bool_to_option' [INFO] [stderr] --> src/lib.rs:68:31 [INFO] [stderr] | [INFO] [stderr] 68 | assert_eq!(9.if_eq(9).then(|| "It works"), "It works".to_owned()); [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: for more information, see https://github.com/rust-lang/rust/issues/64260 [INFO] [stderr] = help: add `#![feature(bool_to_option)]` to the crate attributes to enable [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/lib.rs:68:9 [INFO] [stderr] | [INFO] [stderr] 68 | assert_eq!(9.if_eq(9).then(|| "It works"), "It works".to_owned()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `std::option::Option`, found struct `std::string::String` [INFO] [stderr] | [INFO] [stderr] = note: expected enum `std::option::Option<&str>` [INFO] [stderr] found struct `std::string::String` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0658]: use of unstable library feature 'bool_to_option' [INFO] [stderr] --> src/lib.rs:69:31 [INFO] [stderr] | [INFO] [stderr] 69 | assert_eq!(9.if_eq(9).then(|| (0..100).collect::>().len()), 100); [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: for more information, see https://github.com/rust-lang/rust/issues/64260 [INFO] [stderr] = help: add `#![feature(bool_to_option)]` to the crate attributes to enable [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/lib.rs:69:9 [INFO] [stderr] | [INFO] [stderr] 69 | assert_eq!(9.if_eq(9).then(|| (0..100).collect::>().len()), 100); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | expected enum `std::option::Option`, found integer [INFO] [stderr] | help: try using a variant of the expected enum: `Some(* right_val)` [INFO] [stderr] | [INFO] [stderr] = note: expected enum `std::option::Option` [INFO] [stderr] found type `{integer}` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0658]: use of unstable library feature 'bool_to_option' [INFO] [stderr] --> src/lib.rs:70:41 [INFO] [stderr] | [INFO] [stderr] 70 | assert_eq!("alma".if_eq("alma").then(|| "ok"), "ok"); [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: for more information, see https://github.com/rust-lang/rust/issues/64260 [INFO] [stderr] = help: add `#![feature(bool_to_option)]` to the crate attributes to enable [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/lib.rs:70:9 [INFO] [stderr] | [INFO] [stderr] 70 | assert_eq!("alma".if_eq("alma").then(|| "ok"), "ok"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | expected enum `std::option::Option`, found `&str` [INFO] [stderr] | help: try using a variant of the expected enum: `Some(* right_val)` [INFO] [stderr] | [INFO] [stderr] = note: expected enum `std::option::Option<&str>` [INFO] [stderr] found reference `&str` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0658]: use of unstable library feature 'bool_to_option' [INFO] [stderr] --> src/lib.rs:71:41 [INFO] [stderr] | [INFO] [stderr] 71 | assert_ne!("alma".if_eq("alma").then(|| "ok"), "_ok"); [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: for more information, see https://github.com/rust-lang/rust/issues/64260 [INFO] [stderr] = help: add `#![feature(bool_to_option)]` to the crate attributes to enable [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/lib.rs:71:9 [INFO] [stderr] | [INFO] [stderr] 71 | assert_ne!("alma".if_eq("alma").then(|| "ok"), "_ok"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | expected enum `std::option::Option`, found `&str` [INFO] [stderr] | help: try using a variant of the expected enum: `Some(* right_val)` [INFO] [stderr] | [INFO] [stderr] = note: expected enum `std::option::Option<&str>` [INFO] [stderr] found reference `&str` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: aborting due to 8 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0308, E0658. [INFO] [stderr] For more information about an error, try `rustc --explain E0308`. [INFO] [stderr] error: could not compile `ifeq`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "a516ffe27bf70c262c2addfdba853c07ce314afbff4a78d6e78385d45c969b4e"` [INFO] running `"docker" "rm" "-f" "a516ffe27bf70c262c2addfdba853c07ce314afbff4a78d6e78385d45c969b4e"` [INFO] [stdout] a516ffe27bf70c262c2addfdba853c07ce314afbff4a78d6e78385d45c969b4e