[INFO] fetching crate samotop-core 0.13.1+smtp... [INFO] checking samotop-core-0.13.1+smtp against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] extracting crate samotop-core 0.13.1+smtp into /workspace/builds/worker-3-tc2/source [INFO] validating manifest of crates.io crate samotop-core 0.13.1+smtp 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 samotop-core 0.13.1+smtp [INFO] finished tweaking crates.io crate samotop-core 0.13.1+smtp [INFO] tweaked toml for crates.io crate samotop-core 0.13.1+smtp written to /workspace/builds/worker-3-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] [stderr] Blocking waiting for file lock on package cache [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] 73108a0a820f5b43029f25ab30e575c4f2185f1f74f9337543ceab030eba4933 [INFO] running `Command { std: "docker" "start" "-a" "73108a0a820f5b43029f25ab30e575c4f2185f1f74f9337543ceab030eba4933", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "73108a0a820f5b43029f25ab30e575c4f2185f1f74f9337543ceab030eba4933", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "73108a0a820f5b43029f25ab30e575c4f2185f1f74f9337543ceab030eba4933", kill_on_drop: false }` [INFO] [stdout] 73108a0a820f5b43029f25ab30e575c4f2185f1f74f9337543ceab030eba4933 [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] 6f97759c86ea9116edf8ae052d4aa3d2fca814ab7789b1c5c12fa81e9352b256 [INFO] running `Command { std: "docker" "start" "-a" "6f97759c86ea9116edf8ae052d4aa3d2fca814ab7789b1c5c12fa81e9352b256", kill_on_drop: false }` [INFO] [stderr] Checking value-bag v1.4.1 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Compiling rustix v0.37.23 [INFO] [stderr] Checking async-lock v2.8.0 [INFO] [stderr] Compiling async-io v1.13.0 [INFO] [stderr] Checking linux-raw-sys v0.3.8 [INFO] [stderr] Checking async-task v4.4.0 [INFO] [stderr] Checking atomic-waker v1.1.1 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Checking console v0.15.7 [INFO] [stderr] Checking similar v2.2.1 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking async-executor v1.5.1 [INFO] [stderr] Checking polling v2.8.0 [INFO] [stderr] Checking blocking v1.3.1 [INFO] [stderr] Checking kv-log-macro v1.0.7 [INFO] [stderr] Checking samotop-core v0.13.1+smtp (/opt/rustwide/workdir) [INFO] [stdout] warning: private item shadows public glob re-export [INFO] [stdout] --> src/lib.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | / struct PollFn { [INFO] [stdout] 55 | | f: F, [INFO] [stdout] 56 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: the name `PollFn` in the type namespace is supposed to be publicly re-exported here [INFO] [stdout] --> src/lib.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | pub use std::future::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] note: but the private item here shadows it [INFO] [stdout] --> src/lib.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | / struct PollFn { [INFO] [stdout] 55 | | f: F, [INFO] [stdout] 56 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: `#[warn(hidden_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking insta v1.31.0 [INFO] [stdout] error[E0502]: cannot borrow `state.session` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/smtp/rfc5321/data.rs:23:50 [INFO] [stdout] | [INFO] [stdout] 23 | match state.service().open_mail_body(&mut state.session).await { [INFO] [stdout] | --------------- ^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 43 | }; [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl mail::service::MailService` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `state.session` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/smtp/rfc5321/data.rs:29:21 [INFO] [stdout] | [INFO] [stdout] 23 | match state.service().open_mail_body(&mut state.session).await { [INFO] [stdout] | --------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 29 | state.session.reset(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 43 | }; [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl mail::service::MailService` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `state.session` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/smtp/rfc5321/data.rs:30:21 [INFO] [stdout] | [INFO] [stdout] 23 | match state.service().open_mail_body(&mut state.session).await { [INFO] [stdout] | --------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 30 | state.session.say_mail_queue_failed_temporarily(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 43 | }; [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl mail::service::MailService` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `state.session` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/smtp/rfc5321/data.rs:33:21 [INFO] [stdout] | [INFO] [stdout] 23 | match state.service().open_mail_body(&mut state.session).await { [INFO] [stdout] | --------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 33 | state.session.say_start_data_challenge(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 43 | }; [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl mail::service::MailService` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `state.session` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/smtp/rfc5321/data.rs:36:21 [INFO] [stdout] | [INFO] [stdout] 23 | match state.service().open_mail_body(&mut state.session).await { [INFO] [stdout] | --------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 36 | state.session.reset(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 43 | }; [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl mail::service::MailService` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `state.session` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/smtp/rfc5321/data.rs:37:21 [INFO] [stdout] | [INFO] [stdout] 23 | match state.service().open_mail_body(&mut state.session).await { [INFO] [stdout] | --------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 37 | state.session.say_mail_queue_refused(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 43 | }; [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl mail::service::MailService` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `state.session` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/smtp/rfc5321/data.rs:40:21 [INFO] [stdout] | [INFO] [stdout] 23 | match state.service().open_mail_body(&mut state.session).await { [INFO] [stdout] | --------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 40 | state.session.reset(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 43 | }; [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl mail::service::MailService` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `state.session` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/smtp/rfc5321/data.rs:41:21 [INFO] [stdout] | [INFO] [stdout] 23 | match state.service().open_mail_body(&mut state.session).await { [INFO] [stdout] | --------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 41 | state.session.say_mail_queue_failed_temporarily(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] 42 | } [INFO] [stdout] 43 | }; [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl mail::service::MailService` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `state.session` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/smtp/rfc5321/mail.rs:22:46 [INFO] [stdout] | [INFO] [stdout] 22 | match state.service().start_mail(&mut state.session).await { [INFO] [stdout] | --------------- ^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 41 | }) [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl mail::service::MailService` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `state.session` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/smtp/rfc5321/mail.rs:24:21 [INFO] [stdout] | [INFO] [stdout] 22 | match state.service().start_mail(&mut state.session).await { [INFO] [stdout] | --------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] 23 | R::Failed(failure, description) => { [INFO] [stdout] 24 | state.session.say_mail_failed(failure, description); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 41 | }) [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl mail::service::MailService` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0506]: cannot assign to `state.session.transaction.id` because it is borrowed [INFO] [stdout] --> src/smtp/rfc5321/mail.rs:33:25 [INFO] [stdout] | [INFO] [stdout] 22 | match state.service().start_mail(&mut state.session).await { [INFO] [stdout] | --------------- [INFO] [stdout] | | [INFO] [stdout] | `state.session.transaction.id` is borrowed here [INFO] [stdout] | a temporary with access to the borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 33 | state.session.transaction.id = id; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `state.session.transaction.id` is assigned to here but it was already borrowed [INFO] [stdout] ... [INFO] [stdout] 41 | }) [INFO] [stdout] | - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `impl mail::service::MailService` [INFO] [stdout] | [INFO] [stdout] help: consider adding semicolon after the expression so its temporaries are dropped sooner, before the local variables declared by the block are dropped [INFO] [stdout] | [INFO] [stdout] 40 | }; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `state.session` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/smtp/rfc5321/mail.rs:35:21 [INFO] [stdout] | [INFO] [stdout] 22 | match state.service().start_mail(&mut state.session).await { [INFO] [stdout] | --------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 35 | / state.session.say_ok_info(format!( [INFO] [stdout] 36 | | "Ok! Transaction {} started.", [INFO] [stdout] 37 | | state.session.transaction.id [INFO] [stdout] 38 | | )); [INFO] [stdout] | |______________________^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 41 | }) [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl mail::service::MailService` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `state.session` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/smtp/rfc5321/rcpt.rs:23:32 [INFO] [stdout] | [INFO] [stdout] 21 | match state [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | ___________________immutable borrow occurs here [INFO] [stdout] | | [INFO] [stdout] 22 | | .service() [INFO] [stdout] | |__________________________- a temporary with access to the immutable borrow is created here ... [INFO] [stdout] 23 | .add_recipient(&mut state.session, rcpt) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 39 | }; [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl mail::service::MailService` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `state.session.transaction.rcpts` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/smtp/rfc5321/rcpt.rs:27:21 [INFO] [stdout] | [INFO] [stdout] 21 | match state [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | ___________________immutable borrow occurs here [INFO] [stdout] | | [INFO] [stdout] 22 | | .service() [INFO] [stdout] | |__________________________- a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 27 | state.session.transaction.rcpts.push(rcpt); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 39 | }; [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl mail::service::MailService` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `state.session` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/smtp/rfc5321/rcpt.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 21 | match state [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | ___________________immutable borrow occurs here [INFO] [stdout] | | [INFO] [stdout] 22 | | .service() [INFO] [stdout] | |__________________________- a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 28 | state.session.say_ok(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 39 | }; [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl mail::service::MailService` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `state.session` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/smtp/rfc5321/rcpt.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 21 | match state [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | ___________________immutable borrow occurs here [INFO] [stdout] | | [INFO] [stdout] 22 | | .service() [INFO] [stdout] | |__________________________- a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 31 | state.session.say_rcpt_failed(failure, description); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 39 | }; [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl mail::service::MailService` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `state.session` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/smtp/rfc5321/rcpt.rs:34:21 [INFO] [stdout] | [INFO] [stdout] 21 | match state [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | ___________________immutable borrow occurs here [INFO] [stdout] | | [INFO] [stdout] 22 | | .service() [INFO] [stdout] | |__________________________- a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 34 | state.session.say_ok(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 39 | }; [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl mail::service::MailService` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `state.session` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/smtp/rfc5321/rcpt.rs:37:21 [INFO] [stdout] | [INFO] [stdout] 21 | match state [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | ___________________immutable borrow occurs here [INFO] [stdout] | | [INFO] [stdout] 22 | | .service() [INFO] [stdout] | |__________________________- a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 37 | state.session.say_ok_recipient_not_local(path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] 38 | } [INFO] [stdout] 39 | }; [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl mail::service::MailService` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 18 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0502, E0506. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `samotop-core` (lib) due to 19 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "6f97759c86ea9116edf8ae052d4aa3d2fca814ab7789b1c5c12fa81e9352b256", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6f97759c86ea9116edf8ae052d4aa3d2fca814ab7789b1c5c12fa81e9352b256", kill_on_drop: false }` [INFO] [stdout] 6f97759c86ea9116edf8ae052d4aa3d2fca814ab7789b1c5c12fa81e9352b256