[INFO] fetching crate stepflow 0.0.8... [INFO] checking stepflow-0.0.8 against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] extracting crate stepflow 0.0.8 into /workspace/builds/worker-4-tc2/source [INFO] validating manifest of crates.io crate stepflow 0.0.8 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 stepflow 0.0.8 [INFO] finished tweaking crates.io crate stepflow 0.0.8 [INFO] tweaked toml for crates.io crate stepflow 0.0.8 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate crates.io crate stepflow 0.0.8 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-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] dc441dfa3b6d2e5a78053e50d65269426bd8e8c8118128aa6b5aedfbf4ffc6af [INFO] running `Command { std: "docker" "start" "-a" "dc441dfa3b6d2e5a78053e50d65269426bd8e8c8118128aa6b5aedfbf4ffc6af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dc441dfa3b6d2e5a78053e50d65269426bd8e8c8118128aa6b5aedfbf4ffc6af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dc441dfa3b6d2e5a78053e50d65269426bd8e8c8118128aa6b5aedfbf4ffc6af", kill_on_drop: false }` [INFO] [stdout] dc441dfa3b6d2e5a78053e50d65269426bd8e8c8118128aa6b5aedfbf4ffc6af [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] 747d103800acaa94c2467925d7aecf24e93ce1674e1a5926f77244a2dfe8b742 [INFO] running `Command { std: "docker" "start" "-a" "747d103800acaa94c2467925d7aecf24e93ce1674e1a5926f77244a2dfe8b742", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling libc v0.2.92 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.67 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling serde_derive v1.0.125 [INFO] [stderr] Compiling serde v1.0.125 [INFO] [stderr] Checking itoa v0.4.7 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Compiling typenum v1.13.0 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Checking bytes v0.5.6 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Checking futures-core v0.3.13 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Checking pin-project-lite v0.2.6 [INFO] [stderr] Checking bytes v1.0.1 [INFO] [stderr] Checking tracing-core v0.1.17 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Checking regex-syntax v0.6.23 [INFO] [stderr] Checking futures-sink v0.3.13 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling httparse v1.3.5 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Checking tinyvec v1.1.1 [INFO] [stderr] Checking aho-corasick v0.7.15 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking pin-project-lite v0.1.12 [INFO] [stderr] Checking futures-task v0.3.13 [INFO] [stderr] Checking http v0.2.3 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Checking futures-util v0.3.13 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Compiling crossbeam-utils v0.8.3 [INFO] [stderr] Compiling indexmap v1.6.2 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.37 [INFO] [stderr] Checking signal-hook-registry v1.3.0 [INFO] [stderr] Checking rand_core v0.6.2 [INFO] [stderr] Checking time v0.1.43 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking unicode-normalization v0.1.17 [INFO] [stderr] Compiling pin-project-internal v0.4.28 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling ucd-trie v0.1.3 [INFO] [stderr] Checking rand_chacha v0.3.0 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking cpuid-bool v0.1.2 [INFO] [stderr] Checking once_cell v1.7.2 [INFO] [stderr] Checking rand v0.8.3 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Compiling pest v2.1.3 [INFO] [stderr] Checking thread_local v1.1.3 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Checking mio-uds v0.6.8 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking bstr v0.2.15 [INFO] [stderr] Checking urlencoding v1.1.1 [INFO] [stderr] Checking hashbrown v0.9.1 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Checking sha-1 v0.9.4 [INFO] [stderr] Checking idna v0.2.2 [INFO] [stderr] Compiling maplit v1.0.2 [INFO] [stderr] Checking walkdir v2.3.2 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking regex v1.4.5 [INFO] [stderr] Checking futures-channel v0.3.13 [INFO] [stderr] Checking input_buffer v0.3.1 [INFO] [stderr] Checking htmlescape v0.3.1 [INFO] [stderr] Checking try-lock v0.2.3 [INFO] [stderr] Checking base64 v0.12.3 [INFO] [stderr] Checking utf-8 v0.7.5 [INFO] [stderr] Compiling pest_meta v2.1.3 [INFO] [stderr] Checking safemem v0.3.3 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking tempfile v3.2.0 [INFO] [stderr] Checking url v2.2.1 [INFO] [stderr] Checking regex-automata v0.1.9 [INFO] [stderr] Checking http-body v0.3.1 [INFO] [stderr] Checking headers-core v0.2.0 [INFO] [stderr] Checking buf_redux v0.8.4 [INFO] [stderr] Checking socket2 v0.3.19 [INFO] [stderr] Checking twoway v0.1.8 [INFO] [stderr] Checking futures-io v0.3.13 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Checking tower-service v0.3.1 [INFO] [stderr] Checking dtoa v0.4.8 [INFO] [stderr] Checking deunicode v0.4.3 [INFO] [stderr] Checking httpdate v0.3.2 [INFO] [stderr] Checking tracing-log v0.1.2 [INFO] [stderr] Checking slug v0.1.4 [INFO] [stderr] Checking sharded-slab v0.1.1 [INFO] [stderr] Checking humansize v1.1.0 [INFO] [stderr] Checking smallvec v1.6.1 [INFO] [stderr] Checking headers v0.3.4 [INFO] [stderr] Checking scoped-tls v1.0.0 [INFO] [stderr] Checking futures v0.3.13 [INFO] [stderr] Checking tungstenite v0.11.1 [INFO] [stderr] Checking globset v0.4.6 [INFO] [stderr] Checking multipart v0.17.1 [INFO] [stderr] Checking matchers v0.0.1 [INFO] [stderr] Checking ignore v0.4.17 [INFO] [stderr] Compiling parse-zoneinfo v0.3.0 [INFO] [stderr] Checking globwalk v0.8.1 [INFO] [stderr] Compiling chrono-tz v0.5.3 [INFO] [stderr] Compiling pest_generator v2.1.3 [INFO] [stderr] Compiling tracing-attributes v0.1.15 [INFO] [stderr] Compiling tokio-macros v0.2.6 [INFO] [stderr] Compiling pin-project-internal v1.0.6 [INFO] [stderr] Compiling pest_derive v2.1.0 [INFO] [stderr] Checking tokio v0.2.25 [INFO] [stderr] Checking tracing v0.1.25 [INFO] [stderr] Checking pin-project v1.0.6 [INFO] [stderr] Checking tracing-futures v0.2.5 [INFO] [stderr] Checking pin-project v0.4.28 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking tokio-tungstenite v0.11.0 [INFO] [stderr] Checking h2 v0.2.7 [INFO] [stderr] Checking stepflow-base v0.0.5 [INFO] [stderr] Checking serde_urlencoded v0.6.1 [INFO] [stderr] Checking tracing-serde v0.1.2 [INFO] [stderr] Checking stepflow-data v0.0.5 [INFO] [stderr] Checking stepflow-step v0.0.5 [INFO] [stderr] Checking stepflow-action v0.0.6 [INFO] [stderr] Checking stepflow-session v0.0.7 [INFO] [stderr] Checking stepflow v0.0.8 (/opt/rustwide/workdir) [INFO] [stderr] Checking tracing-subscriber v0.2.17 [INFO] [stderr] Checking tera v1.7.0 [INFO] [stderr] Checking hyper v0.13.10 [INFO] [stderr] Checking warp v0.2.5 [INFO] [stdout] error[E0597]: `*val` does not live long enough [INFO] [stdout] --> examples/warp/main.rs:149:32 [INFO] [stdout] | [INFO] [stdout] 146 | fn redirect_from_advance(advance_result: AdvanceBlockedOn, session_id: &SessionId) -> Result { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 147 | match advance_result { [INFO] [stdout] 148 | AdvanceBlockedOn::ActionStartWith(_, val) => { [INFO] [stdout] | --- binding `val` declared here [INFO] [stdout] 149 | if let Some(uri) = val.downcast::() { [INFO] [stdout] | ^^^ borrowed value does not live long enough [INFO] [stdout] 150 | Ok(redirect_as_other(uri.val())) [INFO] [stdout] | ---------------------------- argument requires that `*val` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 154 | } [INFO] [stdout] | - `*val` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `done_uri` does not live long enough [INFO] [stdout] --> examples/warp/main.rs:160:35 [INFO] [stdout] | [INFO] [stdout] 146 | fn redirect_from_advance(advance_result: AdvanceBlockedOn, session_id: &SessionId) -> Result { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 159 | let done_uri = format!("/done/{}", session_id); [INFO] [stdout] | -------- binding `done_uri` declared here [INFO] [stdout] 160 | Ok(redirect_as_other(&done_uri[..])) [INFO] [stdout] | -------------------^^^^^^^^----- [INFO] [stdout] | | | [INFO] [stdout] | | borrowed value does not live long enough [INFO] [stdout] | argument requires that `done_uri` is borrowed for `'1` [INFO] [stdout] 161 | } [INFO] [stdout] | - `done_uri` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `session_id` [INFO] [stdout] --> examples/warp/main.rs:176:5 [INFO] [stdout] | [INFO] [stdout] 176 | redirect_from_advance(advance_result, &session_id) [INFO] [stdout] | ^ ----------- `session_id` is borrowed here [INFO] [stdout] | _____| [INFO] [stdout] | | [INFO] [stdout] 177 | | .map_err(|e| warp::reject::custom(WarpError(e))) [INFO] [stdout] | |________________________________________________________^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `session_id`, which is owned by the current function [INFO] [stdout] --> examples/warp/main.rs:255:19 [INFO] [stdout] | [INFO] [stdout] 255 | .and_then(|advance_result| redirect_from_advance(advance_result, &session_id)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ---------- `session_id` is borrowed here [INFO] [stdout] | | [INFO] [stdout] | may outlive borrowed value `session_id` [INFO] [stdout] | [INFO] [stdout] note: closure is returned here [INFO] [stdout] --> examples/warp/main.rs:260:45 [INFO] [stdout] | [INFO] [stdout] 260 | Ok(r) if field_errors.len() == 0 => Ok(r), [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: to force the closure to take ownership of `session_id` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 255 | .and_then(move |advance_result| redirect_from_advance(advance_result, &session_id)) [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `error` [INFO] [stdout] --> examples/warp/main.rs:263:13 [INFO] [stdout] | [INFO] [stdout] 263 | step_handler(session_id, step_name, session_store, templates, Some(&error)) [INFO] [stdout] | ^ ------ `error` is borrowed here [INFO] [stdout] | _____________| [INFO] [stdout] | | [INFO] [stdout] 264 | | .await [INFO] [stdout] 265 | | .map(|r| Box::new(r) as _) [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 `error` [INFO] [stdout] --> examples/warp/main.rs:268:13 [INFO] [stdout] | [INFO] [stdout] 268 | step_handler(session_id, step_name, session_store, templates, Some(&error)) [INFO] [stdout] | ^ ------ `error` is borrowed here [INFO] [stdout] | _____________| [INFO] [stdout] | | [INFO] [stdout] 269 | | .await [INFO] [stdout] 270 | | .map(|r| Box::new(r) as _) [INFO] [stdout] | |__________________________________________^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> examples/warp/main.rs:220:46 [INFO] [stdout] | [INFO] [stdout] 219 | templates: Arc>) [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 220 | -> Result, Rejection> { [INFO] [stdout] | ______________________________________________^ [INFO] [stdout] 221 | | [INFO] [stdout] 222 | | let mut field_errors: HashMap = HashMap::new(); [INFO] [stdout] 223 | | let state_data; [INFO] [stdout] ... | [INFO] [stdout] 272 | | } [INFO] [stdout] 273 | | } [INFO] [stdout] | |_^ returning this value requires that `'1` must outlive `'static` [INFO] [stdout] | [INFO] [stdout] help: to declare that the trait object captures data from argument `templates`, you can add an explicit `'_` lifetime bound [INFO] [stdout] | [INFO] [stdout] 220 | -> Result, Rejection> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0373, E0515, E0597. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0373`. [INFO] [stdout] [INFO] [stderr] error: could not compile `stepflow` (example "warp") due to 8 previous errors [INFO] running `Command { std: "docker" "inspect" "747d103800acaa94c2467925d7aecf24e93ce1674e1a5926f77244a2dfe8b742", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "747d103800acaa94c2467925d7aecf24e93ce1674e1a5926f77244a2dfe8b742", kill_on_drop: false }` [INFO] [stdout] 747d103800acaa94c2467925d7aecf24e93ce1674e1a5926f77244a2dfe8b742