[INFO] fetching crate clia-ntex-session 0.3.0... [INFO] checking clia-ntex-session-0.3.0 against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] extracting crate clia-ntex-session 0.3.0 into /workspace/builds/worker-6-tc2/source [INFO] validating manifest of crates.io crate clia-ntex-session 0.3.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 clia-ntex-session 0.3.0 [INFO] finished tweaking crates.io crate clia-ntex-session 0.3.0 [INFO] tweaked toml for crates.io crate clia-ntex-session 0.3.0 written to /workspace/builds/worker-6-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-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] d230acabcd9af47656dee4d53bde9052ac5f4fda0d6f6ad728effc7594778374 [INFO] running `Command { std: "docker" "start" "-a" "d230acabcd9af47656dee4d53bde9052ac5f4fda0d6f6ad728effc7594778374", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d230acabcd9af47656dee4d53bde9052ac5f4fda0d6f6ad728effc7594778374", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d230acabcd9af47656dee4d53bde9052ac5f4fda0d6f6ad728effc7594778374", kill_on_drop: false }` [INFO] [stdout] d230acabcd9af47656dee4d53bde9052ac5f4fda0d6f6ad728effc7594778374 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] b0a34d7afa8aeb5b1cbc1ade0993bc32ac7e63b89d4c3e502674f6559f91280d [INFO] running `Command { std: "docker" "start" "-a" "b0a34d7afa8aeb5b1cbc1ade0993bc32ac7e63b89d4c3e502674f6559f91280d", kill_on_drop: false }` [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Checking subtle v2.5.0 [INFO] [stderr] Checking futures-sink v0.3.28 [INFO] [stderr] Checking futures-micro v0.5.0 [INFO] [stderr] Checking event-listener v2.5.3 [INFO] [stderr] Checking futures-timer v3.0.2 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking socket2 v0.5.4 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Compiling syn v2.0.37 [INFO] [stderr] Checking ntex-service v1.2.6 [INFO] [stderr] Checking inout v0.1.3 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Compiling thiserror v1.0.48 [INFO] [stderr] Compiling time-core v0.1.1 [INFO] [stderr] Checking regex-syntax v0.7.5 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking async-oneshot v0.5.0 [INFO] [stderr] Compiling polling v2.8.0 [INFO] [stderr] Compiling cookie v0.17.0 [INFO] [stderr] Compiling serde_json v1.0.107 [INFO] [stderr] Compiling time-macros v0.2.14 [INFO] [stderr] Checking deranged v0.3.8 [INFO] [stderr] Compiling ntex-macros v0.1.3 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking nanorand v0.7.0 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking universal-hash v0.5.1 [INFO] [stderr] Checking aead v0.5.2 [INFO] [stderr] Checking tokio v1.32.0 [INFO] [stderr] Checking polyval v0.6.1 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking sha2 v0.10.7 [INFO] [stderr] Checking concurrent-queue v2.2.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking ctr v0.9.2 [INFO] [stderr] Checking aes v0.8.3 [INFO] [stderr] Checking sha-1 v0.10.1 [INFO] [stderr] Checking ghash v0.5.0 [INFO] [stderr] Checking hkdf v0.12.3 [INFO] [stderr] Checking async-channel v1.9.0 [INFO] [stderr] Checking aes-gcm v0.10.2 [INFO] [stderr] Checking regex-automata v0.3.8 [INFO] [stderr] Checking time v0.3.28 [INFO] [stderr] Checking regex v1.9.5 [INFO] [stderr] Checking ntex-rt v0.4.9 [INFO] [stderr] Checking ntex-util v0.3.2 [INFO] [stderr] Compiling serde_derive v1.0.188 [INFO] [stderr] Compiling thiserror-impl v1.0.48 [INFO] [stderr] Compiling futures-macro v0.3.28 [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 ntex-bytes v0.1.19 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking ntex-codec v0.6.2 [INFO] [stderr] Checking ntex-http v0.1.10 [INFO] [stderr] Checking ntex-router v0.5.2 [INFO] [stderr] Checking ntex-io v0.3.4 [INFO] [stderr] Checking ntex-tls v0.3.1 [INFO] [stderr] Checking ntex-tokio v0.3.0 [INFO] [stderr] Checking ntex-connect v0.3.1 [INFO] [stderr] Checking ntex-h2 v0.3.3 [INFO] [stderr] Checking ntex v0.7.4 [INFO] [stderr] Checking clia-ntex-session v0.3.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0505]: cannot move out of `res` because it is borrowed [INFO] [stdout] --> src/cookie.rs:330:25 [INFO] [stdout] | [INFO] [stdout] 326 | ctx.call(&self.service, req).await.map(|mut res| { [INFO] [stdout] | ------- binding `res` declared here [INFO] [stdout] 327 | match Session::get_changes(&mut res) { [INFO] [stdout] | ------------------------------ [INFO] [stdout] | | | [INFO] [stdout] | | borrow of `res` occurs here [INFO] [stdout] | a temporary with access to the borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 330 | res.checked_expr::(|res| inner.set_cookie(res, state)) [INFO] [stdout] | ^^^ move out of `res` occurs here [INFO] [stdout] ... [INFO] [stdout] 353 | }) [INFO] [stdout] | - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `(SessionStatus, std::option::Option>)` [INFO] [stdout] | [INFO] [stdout] = note: the temporary is part of an expression at the end of a block; [INFO] [stdout] consider forcing this temporary to be dropped sooner, before the block's local variables are dropped [INFO] [stdout] help: for example, you could save the expression's value in a new local variable `x` and then make `x` be the expression at the end of the block [INFO] [stdout] | [INFO] [stdout] 327 ~ let x = match Session::get_changes(&mut res) { [INFO] [stdout] 328 | (SessionStatus::Changed, Some(state)) [INFO] [stdout] ... [INFO] [stdout] 351 | _ => res, [INFO] [stdout] 352 ~ }; x [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `res` because it is borrowed [INFO] [stdout] --> src/cookie.rs:333:25 [INFO] [stdout] | [INFO] [stdout] 326 | ctx.call(&self.service, req).await.map(|mut res| { [INFO] [stdout] | ------- binding `res` declared here [INFO] [stdout] 327 | match Session::get_changes(&mut res) { [INFO] [stdout] | ------------------------------ [INFO] [stdout] | | | [INFO] [stdout] | | borrow of `res` occurs here [INFO] [stdout] | a temporary with access to the borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 333 | res.checked_expr::(|res| inner.set_cookie(res, state)) [INFO] [stdout] | ^^^ move out of `res` occurs here [INFO] [stdout] ... [INFO] [stdout] 353 | }) [INFO] [stdout] | - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `(SessionStatus, std::option::Option>)` [INFO] [stdout] | [INFO] [stdout] = note: the temporary is part of an expression at the end of a block; [INFO] [stdout] consider forcing this temporary to be dropped sooner, before the block's local variables are dropped [INFO] [stdout] help: for example, you could save the expression's value in a new local variable `x` and then make `x` be the expression at the end of the block [INFO] [stdout] | [INFO] [stdout] 327 ~ let x = match Session::get_changes(&mut res) { [INFO] [stdout] 328 | (SessionStatus::Changed, Some(state)) [INFO] [stdout] ... [INFO] [stdout] 351 | _ => res, [INFO] [stdout] 352 ~ }; x [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `res` because it is borrowed [INFO] [stdout] --> src/cookie.rs:340:29 [INFO] [stdout] | [INFO] [stdout] 326 | ctx.call(&self.service, req).await.map(|mut res| { [INFO] [stdout] | ------- binding `res` declared here [INFO] [stdout] 327 | match Session::get_changes(&mut res) { [INFO] [stdout] | ------------------------------ [INFO] [stdout] | | | [INFO] [stdout] | | borrow of `res` occurs here [INFO] [stdout] | a temporary with access to the borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 340 | res.checked_expr::(|res| { [INFO] [stdout] | ^^^ move out of `res` occurs here [INFO] [stdout] ... [INFO] [stdout] 353 | }) [INFO] [stdout] | - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `(SessionStatus, std::option::Option>)` [INFO] [stdout] | [INFO] [stdout] = note: the temporary is part of an expression at the end of a block; [INFO] [stdout] consider forcing this temporary to be dropped sooner, before the block's local variables are dropped [INFO] [stdout] help: for example, you could save the expression's value in a new local variable `x` and then make `x` be the expression at the end of the block [INFO] [stdout] | [INFO] [stdout] 327 ~ let x = match Session::get_changes(&mut res) { [INFO] [stdout] 328 | (SessionStatus::Changed, Some(state)) [INFO] [stdout] ... [INFO] [stdout] 351 | _ => res, [INFO] [stdout] 352 ~ }; x [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `res` because it is borrowed [INFO] [stdout] --> src/cookie.rs:344:29 [INFO] [stdout] | [INFO] [stdout] 326 | ctx.call(&self.service, req).await.map(|mut res| { [INFO] [stdout] | ------- binding `res` declared here [INFO] [stdout] 327 | match Session::get_changes(&mut res) { [INFO] [stdout] | ------------------------------ [INFO] [stdout] | | | [INFO] [stdout] | | borrow of `res` occurs here [INFO] [stdout] | a temporary with access to the borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 344 | res [INFO] [stdout] | ^^^ move out of `res` occurs here [INFO] [stdout] ... [INFO] [stdout] 353 | }) [INFO] [stdout] | - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `(SessionStatus, std::option::Option>)` [INFO] [stdout] | [INFO] [stdout] = note: the temporary is part of an expression at the end of a block; [INFO] [stdout] consider forcing this temporary to be dropped sooner, before the block's local variables are dropped [INFO] [stdout] help: for example, you could save the expression's value in a new local variable `x` and then make `x` be the expression at the end of the block [INFO] [stdout] | [INFO] [stdout] 327 ~ let x = match Session::get_changes(&mut res) { [INFO] [stdout] 328 | (SessionStatus::Changed, Some(state)) [INFO] [stdout] ... [INFO] [stdout] 351 | _ => res, [INFO] [stdout] 352 ~ }; x [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `res` as mutable more than once at a time [INFO] [stdout] --> src/cookie.rs:348:53 [INFO] [stdout] | [INFO] [stdout] 327 | match Session::get_changes(&mut res) { [INFO] [stdout] | ------------------------------ [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | a temporary with access to the first borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 348 | let _ = inner.remove_cookie(&mut res); [INFO] [stdout] | ^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 353 | }) [INFO] [stdout] | - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `(SessionStatus, std::option::Option>)` [INFO] [stdout] | [INFO] [stdout] = note: the temporary is part of an expression at the end of a block; [INFO] [stdout] consider forcing this temporary to be dropped sooner, before the block's local variables are dropped [INFO] [stdout] help: for example, you could save the expression's value in a new local variable `x` and then make `x` be the expression at the end of the block [INFO] [stdout] | [INFO] [stdout] 327 ~ let x = match Session::get_changes(&mut res) { [INFO] [stdout] 328 | (SessionStatus::Changed, Some(state)) [INFO] [stdout] ... [INFO] [stdout] 351 | _ => res, [INFO] [stdout] 352 ~ }; x [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `res` because it is borrowed [INFO] [stdout] --> src/cookie.rs:349:25 [INFO] [stdout] | [INFO] [stdout] 326 | ctx.call(&self.service, req).await.map(|mut res| { [INFO] [stdout] | ------- binding `res` declared here [INFO] [stdout] 327 | match Session::get_changes(&mut res) { [INFO] [stdout] | ------------------------------ [INFO] [stdout] | | | [INFO] [stdout] | | borrow of `res` occurs here [INFO] [stdout] | a temporary with access to the borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 349 | res [INFO] [stdout] | ^^^ move out of `res` occurs here [INFO] [stdout] ... [INFO] [stdout] 353 | }) [INFO] [stdout] | - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `(SessionStatus, std::option::Option>)` [INFO] [stdout] | [INFO] [stdout] = note: the temporary is part of an expression at the end of a block; [INFO] [stdout] consider forcing this temporary to be dropped sooner, before the block's local variables are dropped [INFO] [stdout] help: for example, you could save the expression's value in a new local variable `x` and then make `x` be the expression at the end of the block [INFO] [stdout] | [INFO] [stdout] 327 ~ let x = match Session::get_changes(&mut res) { [INFO] [stdout] 328 | (SessionStatus::Changed, Some(state)) [INFO] [stdout] ... [INFO] [stdout] 351 | _ => res, [INFO] [stdout] 352 ~ }; x [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `res` because it is borrowed [INFO] [stdout] --> src/cookie.rs:351:26 [INFO] [stdout] | [INFO] [stdout] 326 | ctx.call(&self.service, req).await.map(|mut res| { [INFO] [stdout] | ------- binding `res` declared here [INFO] [stdout] 327 | match Session::get_changes(&mut res) { [INFO] [stdout] | ------------------------------ [INFO] [stdout] | | | [INFO] [stdout] | | borrow of `res` occurs here [INFO] [stdout] | a temporary with access to the borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 351 | _ => res, [INFO] [stdout] | ^^^ move out of `res` occurs here [INFO] [stdout] 352 | } [INFO] [stdout] 353 | }) [INFO] [stdout] | - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `(SessionStatus, std::option::Option>)` [INFO] [stdout] | [INFO] [stdout] = note: the temporary is part of an expression at the end of a block; [INFO] [stdout] consider forcing this temporary to be dropped sooner, before the block's local variables are dropped [INFO] [stdout] help: for example, you could save the expression's value in a new local variable `x` and then make `x` be the expression at the end of the block [INFO] [stdout] | [INFO] [stdout] 327 ~ let x = match Session::get_changes(&mut res) { [INFO] [stdout] 328 | (SessionStatus::Changed, Some(state)) [INFO] [stdout] ... [INFO] [stdout] 351 | _ => res, [INFO] [stdout] 352 ~ }; x [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: E0499, E0505. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stderr] error: could not compile `clia-ntex-session` (lib) due to 8 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0505]: cannot move out of `res` because it is borrowed [INFO] [stdout] --> src/cookie.rs:330:25 [INFO] [stdout] | [INFO] [stdout] 326 | ctx.call(&self.service, req).await.map(|mut res| { [INFO] [stdout] | ------- binding `res` declared here [INFO] [stdout] 327 | match Session::get_changes(&mut res) { [INFO] [stdout] | ------------------------------ [INFO] [stdout] | | | [INFO] [stdout] | | borrow of `res` occurs here [INFO] [stdout] | a temporary with access to the borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 330 | res.checked_expr::(|res| inner.set_cookie(res, state)) [INFO] [stdout] | ^^^ move out of `res` occurs here [INFO] [stdout] ... [INFO] [stdout] 353 | }) [INFO] [stdout] | - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `(SessionStatus, std::option::Option>)` [INFO] [stdout] | [INFO] [stdout] = note: the temporary is part of an expression at the end of a block; [INFO] [stdout] consider forcing this temporary to be dropped sooner, before the block's local variables are dropped [INFO] [stdout] help: for example, you could save the expression's value in a new local variable `x` and then make `x` be the expression at the end of the block [INFO] [stdout] | [INFO] [stdout] 327 ~ let x = match Session::get_changes(&mut res) { [INFO] [stdout] 328 | (SessionStatus::Changed, Some(state)) [INFO] [stdout] ... [INFO] [stdout] 351 | _ => res, [INFO] [stdout] 352 ~ }; x [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `res` because it is borrowed [INFO] [stdout] --> src/cookie.rs:333:25 [INFO] [stdout] | [INFO] [stdout] 326 | ctx.call(&self.service, req).await.map(|mut res| { [INFO] [stdout] | ------- binding `res` declared here [INFO] [stdout] 327 | match Session::get_changes(&mut res) { [INFO] [stdout] | ------------------------------ [INFO] [stdout] | | | [INFO] [stdout] | | borrow of `res` occurs here [INFO] [stdout] | a temporary with access to the borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 333 | res.checked_expr::(|res| inner.set_cookie(res, state)) [INFO] [stdout] | ^^^ move out of `res` occurs here [INFO] [stdout] ... [INFO] [stdout] 353 | }) [INFO] [stdout] | - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `(SessionStatus, std::option::Option>)` [INFO] [stdout] | [INFO] [stdout] = note: the temporary is part of an expression at the end of a block; [INFO] [stdout] consider forcing this temporary to be dropped sooner, before the block's local variables are dropped [INFO] [stdout] help: for example, you could save the expression's value in a new local variable `x` and then make `x` be the expression at the end of the block [INFO] [stdout] | [INFO] [stdout] 327 ~ let x = match Session::get_changes(&mut res) { [INFO] [stdout] 328 | (SessionStatus::Changed, Some(state)) [INFO] [stdout] ... [INFO] [stdout] 351 | _ => res, [INFO] [stdout] 352 ~ }; x [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `res` because it is borrowed [INFO] [stdout] --> src/cookie.rs:340:29 [INFO] [stdout] | [INFO] [stdout] 326 | ctx.call(&self.service, req).await.map(|mut res| { [INFO] [stdout] | ------- binding `res` declared here [INFO] [stdout] 327 | match Session::get_changes(&mut res) { [INFO] [stdout] | ------------------------------ [INFO] [stdout] | | | [INFO] [stdout] | | borrow of `res` occurs here [INFO] [stdout] | a temporary with access to the borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 340 | res.checked_expr::(|res| { [INFO] [stdout] | ^^^ move out of `res` occurs here [INFO] [stdout] ... [INFO] [stdout] 353 | }) [INFO] [stdout] | - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `(SessionStatus, std::option::Option>)` [INFO] [stdout] | [INFO] [stdout] = note: the temporary is part of an expression at the end of a block; [INFO] [stdout] consider forcing this temporary to be dropped sooner, before the block's local variables are dropped [INFO] [stdout] help: for example, you could save the expression's value in a new local variable `x` and then make `x` be the expression at the end of the block [INFO] [stdout] | [INFO] [stdout] 327 ~ let x = match Session::get_changes(&mut res) { [INFO] [stdout] 328 | (SessionStatus::Changed, Some(state)) [INFO] [stdout] ... [INFO] [stdout] 351 | _ => res, [INFO] [stdout] 352 ~ }; x [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `res` because it is borrowed [INFO] [stdout] --> src/cookie.rs:344:29 [INFO] [stdout] | [INFO] [stdout] 326 | ctx.call(&self.service, req).await.map(|mut res| { [INFO] [stdout] | ------- binding `res` declared here [INFO] [stdout] 327 | match Session::get_changes(&mut res) { [INFO] [stdout] | ------------------------------ [INFO] [stdout] | | | [INFO] [stdout] | | borrow of `res` occurs here [INFO] [stdout] | a temporary with access to the borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 344 | res [INFO] [stdout] | ^^^ move out of `res` occurs here [INFO] [stdout] ... [INFO] [stdout] 353 | }) [INFO] [stdout] | - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `(SessionStatus, std::option::Option>)` [INFO] [stdout] | [INFO] [stdout] = note: the temporary is part of an expression at the end of a block; [INFO] [stdout] consider forcing this temporary to be dropped sooner, before the block's local variables are dropped [INFO] [stdout] help: for example, you could save the expression's value in a new local variable `x` and then make `x` be the expression at the end of the block [INFO] [stdout] | [INFO] [stdout] 327 ~ let x = match Session::get_changes(&mut res) { [INFO] [stdout] 328 | (SessionStatus::Changed, Some(state)) [INFO] [stdout] ... [INFO] [stdout] 351 | _ => res, [INFO] [stdout] 352 ~ }; x [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `res` as mutable more than once at a time [INFO] [stdout] --> src/cookie.rs:348:53 [INFO] [stdout] | [INFO] [stdout] 327 | match Session::get_changes(&mut res) { [INFO] [stdout] | ------------------------------ [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | a temporary with access to the first borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 348 | let _ = inner.remove_cookie(&mut res); [INFO] [stdout] | ^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 353 | }) [INFO] [stdout] | - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `(SessionStatus, std::option::Option>)` [INFO] [stdout] | [INFO] [stdout] = note: the temporary is part of an expression at the end of a block; [INFO] [stdout] consider forcing this temporary to be dropped sooner, before the block's local variables are dropped [INFO] [stdout] help: for example, you could save the expression's value in a new local variable `x` and then make `x` be the expression at the end of the block [INFO] [stdout] | [INFO] [stdout] 327 ~ let x = match Session::get_changes(&mut res) { [INFO] [stdout] 328 | (SessionStatus::Changed, Some(state)) [INFO] [stdout] ... [INFO] [stdout] 351 | _ => res, [INFO] [stdout] 352 ~ }; x [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `res` because it is borrowed [INFO] [stdout] --> src/cookie.rs:349:25 [INFO] [stdout] | [INFO] [stdout] 326 | ctx.call(&self.service, req).await.map(|mut res| { [INFO] [stdout] | ------- binding `res` declared here [INFO] [stdout] 327 | match Session::get_changes(&mut res) { [INFO] [stdout] | ------------------------------ [INFO] [stdout] | | | [INFO] [stdout] | | borrow of `res` occurs here [INFO] [stdout] | a temporary with access to the borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 349 | res [INFO] [stdout] | ^^^ move out of `res` occurs here [INFO] [stdout] ... [INFO] [stdout] 353 | }) [INFO] [stdout] | - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `(SessionStatus, std::option::Option>)` [INFO] [stdout] | [INFO] [stdout] = note: the temporary is part of an expression at the end of a block; [INFO] [stdout] consider forcing this temporary to be dropped sooner, before the block's local variables are dropped [INFO] [stdout] help: for example, you could save the expression's value in a new local variable `x` and then make `x` be the expression at the end of the block [INFO] [stdout] | [INFO] [stdout] 327 ~ let x = match Session::get_changes(&mut res) { [INFO] [stdout] 328 | (SessionStatus::Changed, Some(state)) [INFO] [stdout] ... [INFO] [stdout] 351 | _ => res, [INFO] [stdout] 352 ~ }; x [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `res` because it is borrowed [INFO] [stdout] --> src/cookie.rs:351:26 [INFO] [stdout] | [INFO] [stdout] 326 | ctx.call(&self.service, req).await.map(|mut res| { [INFO] [stdout] | ------- binding `res` declared here [INFO] [stdout] 327 | match Session::get_changes(&mut res) { [INFO] [stdout] | ------------------------------ [INFO] [stdout] | | | [INFO] [stdout] | | borrow of `res` occurs here [INFO] [stdout] | a temporary with access to the borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 351 | _ => res, [INFO] [stdout] | ^^^ move out of `res` occurs here [INFO] [stdout] 352 | } [INFO] [stdout] 353 | }) [INFO] [stdout] | - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `(SessionStatus, std::option::Option>)` [INFO] [stdout] | [INFO] [stdout] = note: the temporary is part of an expression at the end of a block; [INFO] [stdout] consider forcing this temporary to be dropped sooner, before the block's local variables are dropped [INFO] [stdout] help: for example, you could save the expression's value in a new local variable `x` and then make `x` be the expression at the end of the block [INFO] [stdout] | [INFO] [stdout] 327 ~ let x = match Session::get_changes(&mut res) { [INFO] [stdout] 328 | (SessionStatus::Changed, Some(state)) [INFO] [stdout] ... [INFO] [stdout] 351 | _ => res, [INFO] [stdout] 352 ~ }; x [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: E0499, E0505. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stderr] error: could not compile `clia-ntex-session` (lib test) due to 8 previous errors [INFO] running `Command { std: "docker" "inspect" "b0a34d7afa8aeb5b1cbc1ade0993bc32ac7e63b89d4c3e502674f6559f91280d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b0a34d7afa8aeb5b1cbc1ade0993bc32ac7e63b89d4c3e502674f6559f91280d", kill_on_drop: false }` [INFO] [stdout] b0a34d7afa8aeb5b1cbc1ade0993bc32ac7e63b89d4c3e502674f6559f91280d