[INFO] cloning repository https://github.com/bencef/dice-game-chance [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bencef/dice-game-chance" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbencef%2Fdice-game-chance", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbencef%2Fdice-game-chance'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3ece0d4e82515353b333a157531d40ef40e4b3f3 [INFO] checking bencef/dice-game-chance against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbencef%2Fdice-game-chance" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/bencef/dice-game-chance on toolchain 23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/bencef/dice-game-chance [INFO] finished tweaking git repo https://github.com/bencef/dice-game-chance [INFO] tweaked toml for git repo https://github.com/bencef/dice-game-chance written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/bencef/dice-game-chance already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3cf7e2e85f9f8887819b7bd6e06954703540d46527a89aef3d7a375749a3f01e [INFO] running `Command { std: "docker" "start" "-a" "3cf7e2e85f9f8887819b7bd6e06954703540d46527a89aef3d7a375749a3f01e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3cf7e2e85f9f8887819b7bd6e06954703540d46527a89aef3d7a375749a3f01e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3cf7e2e85f9f8887819b7bd6e06954703540d46527a89aef3d7a375749a3f01e", kill_on_drop: false }` [INFO] [stdout] 3cf7e2e85f9f8887819b7bd6e06954703540d46527a89aef3d7a375749a3f01e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6b741e97aa9f14e84e98c4ab061e031ba59c4b6ca3d9188f0d7e53763213bece [INFO] running `Command { std: "docker" "start" "-a" "6b741e97aa9f14e84e98c4ab061e031ba59c4b6ca3d9188f0d7e53763213bece", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v0.1.4 [INFO] [stderr] Compiling num-bigint v0.2.2 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Compiling num-rational v0.2.2 [INFO] [stderr] Checking bas v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `dice` is imported redundantly [INFO] [stdout] --> src/main.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 1 | mod dice; [INFO] [stdout] | --------- the item `dice` is already defined here [INFO] [stdout] ... [INFO] [stdout] 16 | use self::dice; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `dice` is imported redundantly [INFO] [stdout] --> src/main.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 1 | mod dice; [INFO] [stdout] | --------- the item `dice` is already defined here [INFO] [stdout] ... [INFO] [stdout] 16 | use self::dice; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/dice.rs:25:22 [INFO] [stdout] | [INFO] [stdout] 21 | fn add_two(orig: &u8) -> impl Fn(&u8) -> u8 { [INFO] [stdout] | ------------------ [INFO] [stdout] | | [INFO] [stdout] | the expected opaque type [INFO] [stdout] | the found opaque type [INFO] [stdout] ... [INFO] [stdout] 25 | new_throws.apply(orig_throws.map(add_two)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected opaque type `impl for<'a, 'b> Fn(&'b u8) -> u8` [INFO] [stdout] found opaque type `impl for<'a> Fn(&'a u8) -> u8` [INFO] [stdout] = note: distinct uses of `impl Trait` result in different opaque types [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> src/distribution.rs:41:22 [INFO] [stdout] | [INFO] [stdout] 41 | F: Fn(&T) -> U, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/dice.rs:25:22 [INFO] [stdout] | [INFO] [stdout] 21 | fn add_two(orig: &u8) -> impl Fn(&u8) -> u8 { [INFO] [stdout] | ------------------ [INFO] [stdout] | | [INFO] [stdout] | the expected opaque type [INFO] [stdout] | the found opaque type [INFO] [stdout] ... [INFO] [stdout] 25 | new_throws.apply(orig_throws.map(add_two)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected opaque type `impl for<'a, 'b> Fn(&'b u8) -> u8` [INFO] [stdout] found opaque type `impl for<'a> Fn(&'a u8) -> u8` [INFO] [stdout] = note: distinct uses of `impl Trait` result in different opaque types [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> src/distribution.rs:41:22 [INFO] [stdout] | [INFO] [stdout] 41 | F: Fn(&T) -> U, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:18:26 [INFO] [stdout] | [INFO] [stdout] 5 | fn collect(first: &u8) -> impl Fn(&u8) -> [u8; 2] { [INFO] [stdout] | ----------------------- [INFO] [stdout] | | [INFO] [stdout] | the expected opaque type [INFO] [stdout] | the found opaque type [INFO] [stdout] ... [INFO] [stdout] 18 | let collect_throws = d6.map(collect); [INFO] [stdout] | ^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected opaque type `impl for<'a, 'b> Fn(&'b u8) -> [u8; 2]` [INFO] [stdout] found opaque type `impl for<'a> Fn(&'a u8) -> [u8; 2]` [INFO] [stdout] = note: distinct uses of `impl Trait` result in different opaque types [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> src/distribution.rs:41:22 [INFO] [stdout] | [INFO] [stdout] 41 | F: Fn(&T) -> U, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:24:42 [INFO] [stdout] | [INFO] [stdout] 10 | fn compare(first: &bool) -> impl Fn(&bool) -> bool { [INFO] [stdout] | ---------------------- [INFO] [stdout] | | [INFO] [stdout] | the expected opaque type [INFO] [stdout] | the found opaque type [INFO] [stdout] ... [INFO] [stdout] 24 | let bas_after_sixty_five = bas.apply(sixty_five.map(compare)).normalized(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected opaque type `impl for<'a, 'b> Fn(&'b bool) -> bool` [INFO] [stdout] found opaque type `impl for<'a> Fn(&'a bool) -> bool` [INFO] [stdout] = note: distinct uses of `impl Trait` result in different opaque types [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> src/distribution.rs:41:22 [INFO] [stdout] | [INFO] [stdout] 41 | F: Fn(&T) -> U, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:18:26 [INFO] [stdout] | [INFO] [stdout] 5 | fn collect(first: &u8) -> impl Fn(&u8) -> [u8; 2] { [INFO] [stdout] | ----------------------- [INFO] [stdout] | | [INFO] [stdout] | the expected opaque type [INFO] [stdout] | the found opaque type [INFO] [stdout] ... [INFO] [stdout] 18 | let collect_throws = d6.map(collect); [INFO] [stdout] | ^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected opaque type `impl for<'a, 'b> Fn(&'b u8) -> [u8; 2]` [INFO] [stdout] found opaque type `impl for<'a> Fn(&'a u8) -> [u8; 2]` [INFO] [stdout] = note: distinct uses of `impl Trait` result in different opaque types [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> src/distribution.rs:41:22 [INFO] [stdout] | [INFO] [stdout] 41 | F: Fn(&T) -> U, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:24:42 [INFO] [stdout] | [INFO] [stdout] 10 | fn compare(first: &bool) -> impl Fn(&bool) -> bool { [INFO] [stdout] | ---------------------- [INFO] [stdout] | | [INFO] [stdout] | the expected opaque type [INFO] [stdout] | the found opaque type [INFO] [stdout] ... [INFO] [stdout] 24 | let bas_after_sixty_five = bas.apply(sixty_five.map(compare)).normalized(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected opaque type `impl for<'a, 'b> Fn(&'b bool) -> bool` [INFO] [stdout] found opaque type `impl for<'a> Fn(&'a bool) -> bool` [INFO] [stdout] = note: distinct uses of `impl Trait` result in different opaque types [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> src/distribution.rs:41:22 [INFO] [stdout] | [INFO] [stdout] 41 | F: Fn(&T) -> U, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `bas` (bin "bas" test) due to 4 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `bas` (bin "bas") due to 4 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "6b741e97aa9f14e84e98c4ab061e031ba59c4b6ca3d9188f0d7e53763213bece", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6b741e97aa9f14e84e98c4ab061e031ba59c4b6ca3d9188f0d7e53763213bece", kill_on_drop: false }` [INFO] [stdout] 6b741e97aa9f14e84e98c4ab061e031ba59c4b6ca3d9188f0d7e53763213bece