[INFO] fetching crate union 0.1.7... [INFO] testing union-0.1.7 against try#8262275854dc0e5381c9d42d56257d94932c5a87 for pr-90799 [INFO] extracting crate union 0.1.7 into /workspace/builds/worker-4/source [INFO] validating manifest of crates.io crate union 0.1.7 on toolchain 8262275854dc0e5381c9d42d56257d94932c5a87 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8262275854dc0e5381c9d42d56257d94932c5a87" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate union 0.1.7 [INFO] finished tweaking crates.io crate union 0.1.7 [INFO] tweaked toml for crates.io crate union 0.1.7 written to /workspace/builds/worker-4/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8262275854dc0e5381c9d42d56257d94932c5a87" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8262275854dc0e5381c9d42d56257d94932c5a87" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded futures-io-preview v0.3.0-alpha.19 [INFO] [stderr] Downloaded futures-executor-preview v0.3.0-alpha.19 [INFO] [stderr] Downloaded futures-channel-preview v0.3.0-alpha.19 [INFO] [stderr] Downloaded futures-timer v1.0.3 [INFO] [stderr] Downloaded futures-preview v0.3.0-alpha.19 [INFO] [stderr] Downloaded futures-util-preview v0.3.0-alpha.19 [INFO] [stderr] Downloaded futures-join-macro-preview v0.3.0-alpha.19 [INFO] [stderr] Downloaded futures-sink-preview v0.3.0-alpha.19 [INFO] [stderr] Downloaded futures-core-preview v0.3.0-alpha.19 [INFO] [stderr] Downloaded futures-select-macro-preview v0.3.0-alpha.19 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+8262275854dc0e5381c9d42d56257d94932c5a87" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 31ba04fc1396863657d62d5e3e362fe318b9fd8553ec3d9fd0c0035b4889915a [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" "31ba04fc1396863657d62d5e3e362fe318b9fd8553ec3d9fd0c0035b4889915a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "31ba04fc1396863657d62d5e3e362fe318b9fd8553ec3d9fd0c0035b4889915a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "31ba04fc1396863657d62d5e3e362fe318b9fd8553ec3d9fd0c0035b4889915a", kill_on_drop: false }` [INFO] [stdout] 31ba04fc1396863657d62d5e3e362fe318b9fd8553ec3d9fd0c0035b4889915a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+8262275854dc0e5381c9d42d56257d94932c5a87" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3dce4e7d77be0d3da404e411ab96b2efbd53379f49205c51124f9832271acef2 [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" "3dce4e7d77be0d3da404e411ab96b2efbd53379f49205c51124f9832271acef2", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling syn v1.0.82 [INFO] [stderr] Compiling union_impl v0.1.3 [INFO] [stderr] Compiling union_export v0.1.3 [INFO] [stderr] Compiling union v0.1.7 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 15.96s [INFO] running `Command { std: "docker" "inspect" "3dce4e7d77be0d3da404e411ab96b2efbd53379f49205c51124f9832271acef2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3dce4e7d77be0d3da404e411ab96b2efbd53379f49205c51124f9832271acef2", kill_on_drop: false }` [INFO] [stdout] 3dce4e7d77be0d3da404e411ab96b2efbd53379f49205c51124f9832271acef2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+8262275854dc0e5381c9d42d56257d94932c5a87" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 590ff93e98ff6feb030320554ed48a1a1bd1f662b456bb5aa212beefa37f77f3 [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" "590ff93e98ff6feb030320554ed48a1a1bd1f662b456bb5aa212beefa37f77f3", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.108 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling slab v0.4.5 [INFO] [stderr] Compiling futures-core v0.3.18 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling futures-task v0.3.18 [INFO] [stderr] Compiling pin-project-lite v0.2.7 [INFO] [stderr] Compiling pin-project-lite v0.1.12 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling futures-util v0.3.18 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling openssl v0.10.38 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling once_cell v1.8.0 [INFO] [stderr] Compiling httparse v1.5.1 [INFO] [stderr] Compiling native-tls v0.2.8 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling futures-core-preview v0.3.0-alpha.19 [INFO] [stderr] Compiling futures-channel v0.3.18 [INFO] [stderr] Compiling futures-sink v0.3.18 [INFO] [stderr] Compiling futures-sink-preview v0.3.0-alpha.19 [INFO] [stderr] Compiling openssl-probe v0.1.4 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling ryu v1.0.6 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling encoding_rs v0.8.29 [INFO] [stderr] Compiling httpdate v0.3.2 [INFO] [stderr] Compiling gimli v0.26.1 [INFO] [stderr] Compiling tower-service v0.3.1 [INFO] [stderr] Compiling futures-io-preview v0.3.0-alpha.19 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling rustc-demangle v0.1.21 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling ipnet v2.3.1 [INFO] [stderr] Compiling tracing-core v0.1.21 [INFO] [stderr] Compiling backtrace v0.3.63 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling futures-timer v1.0.3 [INFO] [stderr] Compiling http v0.2.5 [INFO] [stderr] Compiling futures-channel-preview v0.3.0-alpha.19 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling openssl-sys v0.9.71 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling object v0.27.1 [INFO] [stderr] Compiling tracing v0.1.29 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling pin-project-internal v1.0.8 [INFO] [stderr] Compiling futures-select-macro-preview v0.3.0-alpha.19 [INFO] [stderr] Compiling futures-join-macro-preview v0.3.0-alpha.19 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling net2 v0.2.37 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling socket2 v0.3.19 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling tokio v0.2.25 [INFO] [stderr] Compiling futures-util-preview v0.3.0-alpha.19 [INFO] [stderr] Compiling addr2line v0.17.0 [INFO] [stderr] Compiling http-body v0.3.1 [INFO] [stderr] Compiling pin-project v1.0.8 [INFO] [stderr] Compiling tracing-futures v0.2.5 [INFO] [stderr] Compiling futures-executor-preview v0.3.0-alpha.19 [INFO] [stderr] Compiling futures-preview v0.3.0-alpha.19 [INFO] [stderr] Compiling serde_urlencoded v0.7.0 [INFO] [stderr] Compiling failure v0.1.8 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling tokio-tls v0.3.1 [INFO] [stderr] Compiling h2 v0.2.7 [INFO] [stderr] Compiling hyper v0.13.10 [INFO] [stderr] Compiling hyper-tls v0.4.3 [INFO] [stderr] Compiling reqwest v0.10.10 [INFO] [stderr] Compiling union v0.1.7 (/opt/rustwide/workdir) [INFO] [stdout] error[E0596]: cannot borrow `rt` as mutable, as it is not declared as mutable [INFO] [stdout] --> tests/union_async_spawn.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 63 | let rt = Runtime::new().unwrap(); [INFO] [stdout] | -- help: consider changing this to be mutable: `mut rt` [INFO] [stdout] 64 | / rt.block_on(async { [INFO] [stdout] 65 | | let product = union_async_spawn! { [INFO] [stdout] 66 | | ok(2u16), [INFO] [stdout] 67 | | ok(get_three().await), [INFO] [stdout] ... | [INFO] [stdout] 86 | | ); [INFO] [stdout] 87 | | }); [INFO] [stdout] | |__________^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `rt` as mutable, as it is not declared as mutable [INFO] [stdout] --> tests/union_async_spawn.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 92 | let rt = Runtime::new().unwrap(); [INFO] [stdout] | -- help: consider changing this to be mutable: `mut rt` [INFO] [stdout] 93 | / rt.block_on(async { [INFO] [stdout] 94 | | let product = union_async_spawn! { [INFO] [stdout] 95 | | ok(2u16).map(add_one_to_ok).and_then(add_one_ok), //4 [INFO] [stdout] 96 | | ok(get_three().await).and_then(add_one_ok).map(add_one_to_ok).map(add_one_to_ok).map(add_one_to_ok), //7 [INFO] [stdout] ... | [INFO] [stdout] 115 | | ); [INFO] [stdout] 116 | | }); [INFO] [stdout] | |__________^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `rt` as mutable, as it is not declared as mutable [INFO] [stdout] --> tests/union_async_spawn.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 120 | let rt = Runtime::new().unwrap(); [INFO] [stdout] | -- help: consider changing this to be mutable: `mut rt` [INFO] [stdout] 121 | / rt.block_on(async { [INFO] [stdout] 122 | | let product = union_async_spawn! { [INFO] [stdout] 123 | | ok(2u16) |> add_one_to_ok => add_one_ok, //4 [INFO] [stdout] 124 | | ok(get_three().await) => add_one_ok |> add_one_to_ok |> add_one_to_ok |> add_one_to_ok, //7 [INFO] [stdout] ... | [INFO] [stdout] 164 | | assert_eq!(none.await, None); [INFO] [stdout] 165 | | }); [INFO] [stdout] | |__________^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `rt` as mutable, as it is not declared as mutable [INFO] [stdout] --> tests/union_async_spawn.rs:171:9 [INFO] [stdout] | [INFO] [stdout] 170 | let rt = Runtime::new().unwrap(); [INFO] [stdout] | -- help: consider changing this to be mutable: `mut rt` [INFO] [stdout] 171 | / rt.block_on( [INFO] [stdout] 172 | | async { [INFO] [stdout] 173 | | let ok_value = union_async_spawn! { [INFO] [stdout] 174 | | ok(2u16), [INFO] [stdout] ... | [INFO] [stdout] 244 | | } [INFO] [stdout] 245 | | ); [INFO] [stdout] | |_________^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `rt` as mutable, as it is not declared as mutable [INFO] [stdout] --> tests/union_async_spawn.rs:251:9 [INFO] [stdout] | [INFO] [stdout] 250 | let rt = Runtime::new().unwrap(); [INFO] [stdout] | -- help: consider changing this to be mutable: `mut rt` [INFO] [stdout] 251 | / rt.block_on(async { [INFO] [stdout] 252 | | let product = union_async_spawn! { [INFO] [stdout] 253 | | let branch_0 = ok(2u16) ~|> { [INFO] [stdout] 254 | | let branch_0 = branch_0.as_ref().ok().map(Clone::clone); [INFO] [stdout] ... | [INFO] [stdout] 284 | | assert_eq!(product.await.unwrap(), 840); [INFO] [stdout] 285 | | }); [INFO] [stdout] | |__________^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `rt` as mutable, as it is not declared as mutable [INFO] [stdout] --> tests/union_async_spawn.rs:290:9 [INFO] [stdout] | [INFO] [stdout] 289 | let rt = Runtime::new().unwrap(); [INFO] [stdout] | -- help: consider changing this to be mutable: `mut rt` [INFO] [stdout] 290 | / rt.block_on(async { [INFO] [stdout] 291 | | use futures::lock::Mutex; [INFO] [stdout] 292 | | use std::sync::Arc; [INFO] [stdout] 293 | | use std::time::Duration; [INFO] [stdout] ... | [INFO] [stdout] 339 | | .unwrap(); [INFO] [stdout] 340 | | }); [INFO] [stdout] | |__________^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `rt` as mutable, as it is not declared as mutable [INFO] [stdout] --> tests/union_async_spawn.rs:346:9 [INFO] [stdout] | [INFO] [stdout] 345 | let rt = Runtime::new().unwrap(); [INFO] [stdout] | -- help: consider changing this to be mutable: `mut rt` [INFO] [stdout] 346 | / rt.block_on(async { [INFO] [stdout] 347 | | let values = union_async_spawn! { ok::<_,u8>(2), ok::<_,u8>(3) }.await; [INFO] [stdout] 348 | | assert_eq!(values.unwrap(), (2, 3)); [INFO] [stdout] 349 | | }); [INFO] [stdout] | |__________^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `rt` as mutable, as it is not declared as mutable [INFO] [stdout] --> tests/union_async_spawn.rs:355:9 [INFO] [stdout] | [INFO] [stdout] 354 | let rt = Runtime::new().unwrap(); [INFO] [stdout] | -- help: consider changing this to be mutable: `mut rt` [INFO] [stdout] 355 | / rt.block_on(async { [INFO] [stdout] 356 | | let value = union_async_spawn! { ready(Some(1)) }.await; [INFO] [stdout] 357 | | assert_eq!(value.unwrap(), 1); [INFO] [stdout] 358 | | }); [INFO] [stdout] | |__________^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `rt` as mutable, as it is not declared as mutable [INFO] [stdout] --> tests/union_async_spawn.rs:365:9 [INFO] [stdout] | [INFO] [stdout] 364 | let rt = Runtime::new().unwrap(); [INFO] [stdout] | -- help: consider changing this to be mutable: `mut rt` [INFO] [stdout] 365 | / rt.block_on(async { [INFO] [stdout] 366 | | let _fut = union_async_spawn! { [INFO] [stdout] 367 | | ready(panic!()), [INFO] [stdout] 368 | | ready(unreachable!()), [INFO] [stdout] 369 | | then => |a: Result, b: Result| ready(a) [INFO] [stdout] 370 | | }; [INFO] [stdout] 371 | | }); [INFO] [stdout] | |__________^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0596`. [INFO] [stdout] [INFO] [stderr] error: could not compile `union` due to 10 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0596]: cannot borrow `rt` as mutable, as it is not declared as mutable [INFO] [stdout] --> tests/union_async.rs:406:9 [INFO] [stdout] | [INFO] [stdout] 404 | let rt = ::tokio::runtime::Runtime::new().unwrap(); [INFO] [stdout] | -- help: consider changing this to be mutable: `mut rt` [INFO] [stdout] 405 | [INFO] [stdout] 406 | / rt.block_on(async { [INFO] [stdout] 407 | | [INFO] [stdout] 408 | | println!( [INFO] [stdout] 409 | | "Hello.\nThis's is the game where winner is the player, which value is the closest to {}", [INFO] [stdout] ... | [INFO] [stdout] 528 | | }.unwrap(); [INFO] [stdout] 529 | | }); [INFO] [stdout] | |__________^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0596`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "590ff93e98ff6feb030320554ed48a1a1bd1f662b456bb5aa212beefa37f77f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "590ff93e98ff6feb030320554ed48a1a1bd1f662b456bb5aa212beefa37f77f3", kill_on_drop: false }` [INFO] [stdout] 590ff93e98ff6feb030320554ed48a1a1bd1f662b456bb5aa212beefa37f77f3