[INFO] fetching crate myxine-core 0.1.1... [INFO] checking myxine-core-0.1.1 against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] extracting crate myxine-core 0.1.1 into /workspace/builds/worker-4-tc2/source [INFO] validating manifest of crates.io crate myxine-core 0.1.1 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 myxine-core 0.1.1 [INFO] finished tweaking crates.io crate myxine-core 0.1.1 [INFO] tweaked toml for crates.io crate myxine-core 0.1.1 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [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-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 6939affa3e5183ab6f3e042ca576ef58ef9b12275a8d698d2b6a3abe1c0309b3 [INFO] running `Command { std: "docker" "start" "-a" "6939affa3e5183ab6f3e042ca576ef58ef9b12275a8d698d2b6a3abe1c0309b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6939affa3e5183ab6f3e042ca576ef58ef9b12275a8d698d2b6a3abe1c0309b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6939affa3e5183ab6f3e042ca576ef58ef9b12275a8d698d2b6a3abe1c0309b3", kill_on_drop: false }` [INFO] [stdout] 6939affa3e5183ab6f3e042ca576ef58ef9b12275a8d698d2b6a3abe1c0309b3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] c90a880cbb940f4ce954213ade5875ab3e71b88b4c106dbb004a1549615c0f06 [INFO] running `Command { std: "docker" "start" "-a" "c90a880cbb940f4ce954213ade5875ab3e71b88b4c106dbb004a1549615c0f06", kill_on_drop: false }` [INFO] [stderr] Checking static_assertions v0.3.4 [INFO] [stderr] Checking pin-project-lite v0.1.12 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.39 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Compiling futures-macro v0.3.28 [INFO] [stderr] Compiling serde_derive v1.0.188 [INFO] [stderr] Compiling tokio-macros v0.2.6 [INFO] [stderr] Checking archery v0.3.0 [INFO] [stderr] Checking rpds v0.7.0 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking hopscotch v0.1.1 [INFO] [stderr] Checking mio-uds v0.6.8 [INFO] [stderr] Checking tokio v0.2.25 [INFO] [stderr] Checking futures-util v0.3.28 [INFO] [stderr] Checking serde v1.0.188 [INFO] [stderr] Checking futures-executor v0.3.28 [INFO] [stderr] Checking futures v0.3.28 [INFO] [stderr] Checking uuid v0.8.2 [INFO] [stderr] Checking serde_json v1.0.107 [INFO] [stderr] Checking myxine-core v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0502]: cannot borrow `content` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/page.rs:138:21 [INFO] [stdout] | [INFO] [stdout] 131 | pub async fn commands(&self) -> Option> { [INFO] [stdout] | -------------------------------------------- return type of async function `std::option::Option>` contains a lifetime `'1` [INFO] [stdout] ... [INFO] [stdout] 135 | let commands = content.commands(); [INFO] [stdout] | ------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 138 | match &mut *content { [INFO] [stdout] | ^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 154 | commands [INFO] [stdout] | -------- returning this value requires that `content` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `content` [INFO] [stdout] --> src/page.rs:154:9 [INFO] [stdout] | [INFO] [stdout] 135 | let commands = content.commands(); [INFO] [stdout] | ------- `content` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 154 | commands [INFO] [stdout] | ^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `content` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/page.rs:138:21 [INFO] [stdout] | [INFO] [stdout] 131 | pub async fn commands(&self) -> Option> { [INFO] [stdout] | -------------------------------------------- return type of async function `std::option::Option>` contains a lifetime `'1` [INFO] [stdout] ... [INFO] [stdout] 135 | let commands = content.commands(); [INFO] [stdout] | ------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 138 | match &mut *content { [INFO] [stdout] | ^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 154 | commands [INFO] [stdout] | -------- returning this value requires that `content` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `content` [INFO] [stdout] --> src/page.rs:154:9 [INFO] [stdout] | [INFO] [stdout] 135 | let commands = content.commands(); [INFO] [stdout] | ------- `content` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 154 | commands [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 `subscribers` [INFO] [stdout] --> src/page.rs:173:9 [INFO] [stdout] | [INFO] [stdout] 173 | subscribers.add_subscriber(subscription) [INFO] [stdout] | -----------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] | `subscribers` is borrowed here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `subscribers` [INFO] [stdout] --> src/page.rs:173:9 [INFO] [stdout] | [INFO] [stdout] 173 | subscribers.add_subscriber(subscription) [INFO] [stdout] | -----------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] | `subscribers` is borrowed here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `subscribers` does not live long enough [INFO] [stdout] --> src/page.rs:244:13 [INFO] [stdout] | [INFO] [stdout] 240 | let result = { [INFO] [stdout] | ------ borrow later stored here [INFO] [stdout] ... [INFO] [stdout] 243 | let mut subscribers = self.subscribers.lock().await; [INFO] [stdout] | --------------- binding `subscribers` declared here [INFO] [stdout] 244 | subscribers.add_one_off(subscription, moment, lagged) [INFO] [stdout] | ^^^^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] 245 | }; [INFO] [stdout] | - `subscribers` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `subscribers` does not live long enough [INFO] [stdout] --> src/page.rs:257:13 [INFO] [stdout] | [INFO] [stdout] 253 | let result = { [INFO] [stdout] | ------ borrow later stored here [INFO] [stdout] ... [INFO] [stdout] 256 | let mut subscribers = self.subscribers.lock().await; [INFO] [stdout] | --------------- binding `subscribers` declared here [INFO] [stdout] 257 | subscribers.add_one_off(subscription, 0, false) [INFO] [stdout] | ^^^^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] 258 | }; [INFO] [stdout] | - `subscribers` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `subscribers` does not live long enough [INFO] [stdout] --> src/page.rs:244:13 [INFO] [stdout] | [INFO] [stdout] 240 | let result = { [INFO] [stdout] | ------ borrow later stored here [INFO] [stdout] ... [INFO] [stdout] 243 | let mut subscribers = self.subscribers.lock().await; [INFO] [stdout] | --------------- binding `subscribers` declared here [INFO] [stdout] 244 | subscribers.add_one_off(subscription, moment, lagged) [INFO] [stdout] | ^^^^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] 245 | }; [INFO] [stdout] | - `subscribers` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `subscribers` does not live long enough [INFO] [stdout] --> src/page.rs:257:13 [INFO] [stdout] | [INFO] [stdout] 253 | let result = { [INFO] [stdout] | ------ borrow later stored here [INFO] [stdout] ... [INFO] [stdout] 256 | let mut subscribers = self.subscribers.lock().await; [INFO] [stdout] | --------------- binding `subscribers` declared here [INFO] [stdout] 257 | subscribers.add_one_off(subscription, 0, false) [INFO] [stdout] | ^^^^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] 258 | }; [INFO] [stdout] | - `subscribers` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/page.rs:345:25 [INFO] [stdout] | [INFO] [stdout] 345 | let (id, fut) = self [INFO] [stdout] | _________________________^ [INFO] [stdout] 346 | | .queries [INFO] [stdout] 347 | | .lock() [INFO] [stdout] 348 | | .await [INFO] [stdout] | |__________________^ creates a temporary value which is freed while still in use [INFO] [stdout] 349 | .request((script.clone(), statement_mode)); [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] ... [INFO] [stdout] 378 | } [INFO] [stdout] | - borrow might be used here, when `fut` is dropped and runs the destructor for type `impl futures::Future>>` [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/page.rs:345:25 [INFO] [stdout] | [INFO] [stdout] 345 | let (id, fut) = self [INFO] [stdout] | _________________________^ [INFO] [stdout] 346 | | .queries [INFO] [stdout] 347 | | .lock() [INFO] [stdout] 348 | | .await [INFO] [stdout] | |__________________^ creates a temporary value which is freed while still in use [INFO] [stdout] 349 | .request((script.clone(), statement_mode)); [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] ... [INFO] [stdout] 378 | } [INFO] [stdout] | - borrow might be used here, when `fut` is dropped and runs the destructor for type `impl futures::Future>>` [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0502, E0515, E0597, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `myxine-core` (lib test) due to 7 previous errors [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] Some errors have detailed explanations: E0502, E0515, E0597, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `myxine-core` (lib) due to 7 previous errors [INFO] running `Command { std: "docker" "inspect" "c90a880cbb940f4ce954213ade5875ab3e71b88b4c106dbb004a1549615c0f06", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c90a880cbb940f4ce954213ade5875ab3e71b88b4c106dbb004a1549615c0f06", kill_on_drop: false }` [INFO] [stdout] c90a880cbb940f4ce954213ade5875ab3e71b88b4c106dbb004a1549615c0f06