[INFO] fetching crate webrtc-ice 0.10.0... [INFO] checking webrtc-ice-0.10.0 against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] extracting crate webrtc-ice 0.10.0 into /workspace/builds/worker-3-tc2/source [INFO] validating manifest of crates.io crate webrtc-ice 0.10.0 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 crates.io crate webrtc-ice 0.10.0 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate webrtc-ice 0.10.0 [INFO] tweaked toml for crates.io crate webrtc-ice 0.10.0 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate crates.io crate webrtc-ice 0.10.0 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-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] efcca46a4bad37162fc16c64fc577ee21bbc59874993efd0b2ce8347b6dbfa47 [INFO] running `Command { std: "docker" "start" "-a" "efcca46a4bad37162fc16c64fc577ee21bbc59874993efd0b2ce8347b6dbfa47", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "efcca46a4bad37162fc16c64fc577ee21bbc59874993efd0b2ce8347b6dbfa47", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "efcca46a4bad37162fc16c64fc577ee21bbc59874993efd0b2ce8347b6dbfa47", kill_on_drop: false }` [INFO] [stdout] efcca46a4bad37162fc16c64fc577ee21bbc59874993efd0b2ce8347b6dbfa47 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 64ffee043f59adf278343191c64c60cc38775267831adb05db38d5186dc31e57 [INFO] running `Command { std: "docker" "start" "-a" "64ffee043f59adf278343191c64c60cc38775267831adb05db38d5186dc31e57", 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] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Compiling syn v2.0.31 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Compiling async-trait v0.1.73 [INFO] [stderr] Compiling webrtc-util v0.8.0 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking nix v0.26.4 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling serde v1.0.188 [INFO] [stderr] Compiling rustix v0.38.12 [INFO] [stderr] Checking untrusted v0.7.1 [INFO] [stderr] Checking crc-catalog v2.2.0 [INFO] [stderr] Checking crc v3.0.1 [INFO] [stderr] Checking aho-corasick v1.0.5 [INFO] [stderr] Compiling serde_json v1.0.106 [INFO] [stderr] Checking subtle v2.5.0 [INFO] [stderr] Checking linux-raw-sys v0.4.7 [INFO] [stderr] Checking atomic-waker v1.1.1 [INFO] [stderr] Checking uuid v1.4.1 [INFO] [stderr] Checking waitgroup v0.1.2 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking iana-time-zone v0.1.57 [INFO] [stderr] Checking cpufeatures v0.2.9 [INFO] [stderr] Checking arc-swap v1.6.0 [INFO] [stderr] Checking chrono v0.4.30 [INFO] [stderr] Checking regex-automata v0.3.8 [INFO] [stderr] Checking is-terminal v0.4.9 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking md-5 v0.10.5 [INFO] [stderr] Checking sha1 v0.10.5 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling futures-macro v0.3.28 [INFO] [stderr] Compiling thiserror-impl v1.0.48 [INFO] [stderr] Compiling serde_derive v1.0.188 [INFO] [stderr] Compiling async-stream-impl v0.3.5 [INFO] [stderr] Checking regex v1.9.5 [INFO] [stderr] Checking env_logger v0.10.0 [INFO] [stderr] Checking async-stream v0.3.5 [INFO] [stderr] Checking tokio v1.32.0 [INFO] [stderr] Checking thiserror v1.0.48 [INFO] [stderr] Checking futures-executor v0.3.28 [INFO] [stderr] Checking futures v0.3.28 [INFO] [stderr] Checking tokio-util v0.7.8 [INFO] [stderr] Checking tokio-stream v0.1.14 [INFO] [stderr] Checking h2 v0.3.21 [INFO] [stderr] Checking tokio-test v0.4.3 [INFO] [stderr] Checking stun v0.5.0 [INFO] [stderr] Checking webrtc-mdns v0.6.0 [INFO] [stderr] Checking turn v0.7.0 [INFO] [stderr] Checking hyper v0.14.27 [INFO] [stderr] Checking webrtc-ice v0.10.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0597]: `s` does not live long enough [INFO] [stdout] --> examples/ping_pong.rs:290:64 [INFO] [stdout] | [INFO] [stdout] 289 | if let Some(s) = result { [INFO] [stdout] | - binding `s` declared here [INFO] [stdout] 290 | if let Ok(c) = unmarshal_candidate(&s) { [INFO] [stdout] | ^^ borrowed value does not live long enough [INFO] [stdout] 291 | println!("add_remote_candidate: {c}"); [INFO] [stdout] 292 | let c: Arc = Arc::new(c); [INFO] [stdout] | ----------- cast requires that `s` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 298 | }else{ [INFO] [stdout] | - `s` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `ice_agent` does not live long enough [INFO] [stdout] --> examples/ping_pong.rs:313:13 [INFO] [stdout] | [INFO] [stdout] 192 | let ice_agent = Arc::new( [INFO] [stdout] | --------- binding `ice_agent` declared here [INFO] [stdout] ... [INFO] [stdout] 313 | ice_agent.dial(cancel_rx, remote_ufrag, remote_pwd).await? [INFO] [stdout] | ^^^^^^^^^------------------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | cast requires that `ice_agent` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 406 | }; [INFO] [stdout] | - `ice_agent` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0597`. [INFO] [stdout] [INFO] [stderr] error: could not compile `webrtc-ice` (example "ping_pong") due to 3 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0515]: cannot return value referencing local variable `b_agent` [INFO] [stdout] --> src/agent/agent_transport_test.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 38 | let (a_conn, b_conn) = connect_with_vnet(&a_agent, &b_agent).await?; [INFO] [stdout] | -------- `b_agent` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 45 | Ok((a_conn, b_conn, a_agent, b_agent)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `a_agent` [INFO] [stdout] --> src/agent/agent_transport_test.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 38 | let (a_conn, b_conn) = connect_with_vnet(&a_agent, &b_agent).await?; [INFO] [stdout] | -------- `a_agent` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 45 | Ok((a_conn, b_conn, a_agent, b_agent)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `a_agent` because it is borrowed [INFO] [stdout] --> src/agent/agent_transport_test.rs:45:25 [INFO] [stdout] | [INFO] [stdout] 12 | ) -> Result<(Arc, Arc, Arc, Arc)> { [INFO] [stdout] | ---------------------------------------------------------------- return type of async function `std::result::Result<(std::sync::Arc, std::sync::Arc, std::sync::Arc, std::sync::Arc), error::Error>` contains a lifetime `'2` [INFO] [stdout] ... [INFO] [stdout] 24 | let a_agent = Arc::new(Agent::new(cfg0).await?); [INFO] [stdout] | ------- binding `a_agent` declared here [INFO] [stdout] ... [INFO] [stdout] 38 | let (a_conn, b_conn) = connect_with_vnet(&a_agent, &b_agent).await?; [INFO] [stdout] | -------- borrow of `a_agent` occurs here [INFO] [stdout] ... [INFO] [stdout] 45 | Ok((a_conn, b_conn, a_agent, b_agent)) [INFO] [stdout] | --------------------^^^^^^^----------- [INFO] [stdout] | | | [INFO] [stdout] | | move out of `a_agent` occurs here [INFO] [stdout] | returning this value requires that `a_agent` is borrowed for `'2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `b_agent` because it is borrowed [INFO] [stdout] --> src/agent/agent_transport_test.rs:45:34 [INFO] [stdout] | [INFO] [stdout] 12 | ) -> Result<(Arc, Arc, Arc, Arc)> { [INFO] [stdout] | ---------------------------------------------------------------- return type of async function `std::result::Result<(std::sync::Arc, std::sync::Arc, std::sync::Arc, std::sync::Arc), error::Error>` contains a lifetime `'1` [INFO] [stdout] ... [INFO] [stdout] 35 | let b_agent = Arc::new(Agent::new(cfg1).await?); [INFO] [stdout] | ------- binding `b_agent` declared here [INFO] [stdout] ... [INFO] [stdout] 38 | let (a_conn, b_conn) = connect_with_vnet(&a_agent, &b_agent).await?; [INFO] [stdout] | -------- borrow of `b_agent` occurs here [INFO] [stdout] ... [INFO] [stdout] 45 | Ok((a_conn, b_conn, a_agent, b_agent)) [INFO] [stdout] | -----------------------------^^^^^^^-- [INFO] [stdout] | | | [INFO] [stdout] | | move out of `b_agent` occurs here [INFO] [stdout] | returning this value requires that `b_agent` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `agent_a` does not live long enough [INFO] [stdout] --> src/agent/agent_vnet_test.rs:265:22 [INFO] [stdout] | [INFO] [stdout] 260 | let (accepted_tx, mut accepted_rx) = mpsc::channel(1); [INFO] [stdout] | ----------- lifetime `'1` appears in the type of `accepted_tx` [INFO] [stdout] ... [INFO] [stdout] 263 | let agent_a = Arc::clone(a_agent); [INFO] [stdout] | ------- binding `agent_a` declared here [INFO] [stdout] 264 | tokio::spawn(async move { [INFO] [stdout] 265 | let a_conn = agent_a.accept(a_cancel_rx, b_ufrag, b_pwd).await?; [INFO] [stdout] | ^^^^^^^------------------------------------ [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | argument requires that `agent_a` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 270 | }); [INFO] [stdout] | - `agent_a` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `b_agent` [INFO] [stdout] --> src/agent/agent_vnet_test.rs:341:5 [INFO] [stdout] | [INFO] [stdout] 334 | let (a_conn, b_conn) = connect_with_vnet(&a_agent, &b_agent).await?; [INFO] [stdout] | -------- `b_agent` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 341 | Ok((a_conn, b_conn)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `a_agent` [INFO] [stdout] --> src/agent/agent_vnet_test.rs:341:5 [INFO] [stdout] | [INFO] [stdout] 334 | let (a_conn, b_conn) = connect_with_vnet(&a_agent, &b_agent).await?; [INFO] [stdout] | -------- `a_agent` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 341 | Ok((a_conn, b_conn)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/agent/agent_vnet_test.rs:398:42 [INFO] [stdout] | [INFO] [stdout] 398 | Arc::new(unmarshal_candidate(c.marshal().as_str())?); [INFO] [stdout] | -----------------------------^^^^^^^^^^^------------- temporary value is freed at the end of this statement [INFO] [stdout] | | | [INFO] [stdout] | | creates a temporary value which is freed while still in use [INFO] [stdout] | cast requires that borrow lasts for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/agent/agent_vnet_test.rs:405:42 [INFO] [stdout] | [INFO] [stdout] 405 | Arc::new(unmarshal_candidate(c.marshal().as_str())?); [INFO] [stdout] | -----------------------------^^^^^^^^^^^------------- temporary value is freed at the end of this statement [INFO] [stdout] | | | [INFO] [stdout] | | creates a temporary value which is freed while still in use [INFO] [stdout] | cast requires that borrow lasts for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0505, E0515, E0597, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0505`. [INFO] [stdout] [INFO] [stderr] error: could not compile `webrtc-ice` (lib test) due to 10 previous errors [INFO] running `Command { std: "docker" "inspect" "64ffee043f59adf278343191c64c60cc38775267831adb05db38d5186dc31e57", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "64ffee043f59adf278343191c64c60cc38775267831adb05db38d5186dc31e57", kill_on_drop: false }` [INFO] [stdout] 64ffee043f59adf278343191c64c60cc38775267831adb05db38d5186dc31e57