[INFO] fetching crate doh-client 3.1.2... [INFO] checking doh-client-3.1.2 against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] extracting crate doh-client 3.1.2 into /workspace/builds/worker-0-tc2/source [INFO] validating manifest of crates.io crate doh-client 3.1.2 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 doh-client 3.1.2 [INFO] finished tweaking crates.io crate doh-client 3.1.2 [INFO] tweaked toml for crates.io crate doh-client 3.1.2 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate crates.io crate doh-client 3.1.2 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-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 9fe2168edb3be67bc581c24764943ec8821a722bc33ed3854e0dd6cf4fe51661 [INFO] running `Command { std: "docker" "start" "-a" "9fe2168edb3be67bc581c24764943ec8821a722bc33ed3854e0dd6cf4fe51661", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9fe2168edb3be67bc581c24764943ec8821a722bc33ed3854e0dd6cf4fe51661", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9fe2168edb3be67bc581c24764943ec8821a722bc33ed3854e0dd6cf4fe51661", kill_on_drop: false }` [INFO] [stdout] 9fe2168edb3be67bc581c24764943ec8821a722bc33ed3854e0dd6cf4fe51661 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] fbabb96a6ffcf1174bcb54c61c3486981c2fbe5707dcf707bc6ec6d9bfada914 [INFO] running `Command { std: "docker" "start" "-a" "fbabb96a6ffcf1174bcb54c61c3486981c2fbe5707dcf707bc6ec6d9bfada914", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling proc-macro2 v1.0.40 [INFO] [stderr] Compiling unicode-ident v1.0.1 [INFO] [stderr] Compiling quote v1.0.20 [INFO] [stderr] Checking once_cell v1.13.0 [INFO] [stderr] Compiling syn v1.0.98 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Checking pin-project-lite v0.2.9 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Checking bytes v1.1.0 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Checking futures-sink v0.3.21 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Checking slab v0.4.6 [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Checking untrusted v0.7.1 [INFO] [stderr] Checking futures-io v0.3.21 [INFO] [stderr] Compiling indexmap v1.9.1 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Checking tracing-core v0.1.28 [INFO] [stderr] Compiling httparse v1.7.1 [INFO] [stderr] Compiling rustls v0.20.6 [INFO] [stderr] Checking hashbrown v0.12.2 [INFO] [stderr] Checking regex-syntax v0.6.27 [INFO] [stderr] Checking itoa v1.0.2 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Checking rustls-pemfile v1.0.0 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking either v1.7.0 [INFO] [stderr] Checking rustls-native-certs v0.6.2 [INFO] [stderr] Checking http v0.2.8 [INFO] [stderr] Checking tracing v0.1.35 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking socket2 v0.4.4 [INFO] [stderr] Checking mio v0.8.4 [INFO] [stderr] Checking getrandom v0.2.7 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking ahash v0.7.6 [INFO] [stderr] Checking clap v3.2.8 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Checking regex v1.6.0 [INFO] [stderr] Checking lru v0.7.7 [INFO] [stderr] Checking env_logger v0.9.0 [INFO] [stderr] Checking sct v0.7.0 [INFO] [stderr] Checking webpki v0.22.0 [INFO] [stderr] Compiling tokio-macros v1.8.0 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling thiserror-impl v1.0.31 [INFO] [stderr] Checking tokio v1.19.2 [INFO] [stderr] Checking thiserror v1.0.31 [INFO] [stderr] Checking dns-message-parser v0.6.0 [INFO] [stderr] Checking futures-executor v0.3.21 [INFO] [stderr] Checking futures v0.3.21 [INFO] [stderr] Checking tokio-util v0.7.3 [INFO] [stderr] Checking tokio-socks v0.5.1 [INFO] [stderr] Checking async-http-proxy v1.2.5 [INFO] [stderr] Checking tokio-rustls v0.23.4 [INFO] [stderr] Checking h2 v0.3.13 [INFO] [stderr] Checking doh-client v3.1.2 (/opt/rustwide/workdir) [INFO] [stdout] error[E0505]: cannot move out of `guard_remote_session` because it is borrowed [INFO] [stdout] --> src/handler.rs:118:10 [INFO] [stdout] | [INFO] [stdout] 116 | let mut guard_remote_session = context.remote_session.lock().await; [INFO] [stdout] | ------------------------ binding `guard_remote_session` declared here [INFO] [stdout] 117 | let result = guard_remote_session.start_request(dns_request).await; [INFO] [stdout] | -------------------- borrow of `guard_remote_session` occurs here [INFO] [stdout] 118 | drop(guard_remote_session); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ move out of `guard_remote_session` occurs here [INFO] [stdout] 119 | match result { [INFO] [stdout] | ------ borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0503]: cannot use `dns_request.id` because it was mutably borrowed [INFO] [stdout] --> src/handler.rs:121:22 [INFO] [stdout] | [INFO] [stdout] 117 | let result = guard_remote_session.start_request(dns_request).await; [INFO] [stdout] | ----------- `*dns_request` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 121 | let id = dns_request.id; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of borrowed `*dns_request` [INFO] [stdout] ... [INFO] [stdout] 129 | } [INFO] [stdout] | - borrow might be used here, when `result` is dropped and runs the destructor for type `std::result::Result<(impl futures::Future), error::Error>>, u32), error::Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `guard_remote_session` because it is borrowed [INFO] [stdout] --> src/handler.rs:118:10 [INFO] [stdout] | [INFO] [stdout] 116 | let mut guard_remote_session = context.remote_session.lock().await; [INFO] [stdout] | ------------------------ binding `guard_remote_session` declared here [INFO] [stdout] 117 | let result = guard_remote_session.start_request(dns_request).await; [INFO] [stdout] | -------------------- borrow of `guard_remote_session` occurs here [INFO] [stdout] 118 | drop(guard_remote_session); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ move out of `guard_remote_session` occurs here [INFO] [stdout] 119 | match result { [INFO] [stdout] | ------ borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0503]: cannot use `dns_request.id` because it was mutably borrowed [INFO] [stdout] --> src/handler.rs:121:22 [INFO] [stdout] | [INFO] [stdout] 117 | let result = guard_remote_session.start_request(dns_request).await; [INFO] [stdout] | ----------- `*dns_request` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 121 | let id = dns_request.id; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of borrowed `*dns_request` [INFO] [stdout] ... [INFO] [stdout] 129 | } [INFO] [stdout] | - borrow might be used here, when `result` is dropped and runs the destructor for type `std::result::Result<(impl futures::Future), error::Error>>, u32), error::Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `self.send_request` as mutable more than once at a time [INFO] [stdout] --> src/remote/session.rs:135:17 [INFO] [stdout] | [INFO] [stdout] 120 | ) -> DohResult<( [INFO] [stdout] | __________- [INFO] [stdout] 121 | | impl Future)>>, [INFO] [stdout] 122 | | u32, [INFO] [stdout] 123 | | )> { [INFO] [stdout] | |______- return type of async function `std::result::Result<(impl futures::Future), error::Error>>, u32), error::Error>` contains a lifetime `'1` [INFO] [stdout] ... [INFO] [stdout] 132 | match self.send_request(data).await { [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] 133 | Ok(r) => Ok(r), [INFO] [stdout] | ----- returning this value requires that `*self` is borrowed for `'1` [INFO] [stdout] 134 | Err(e) => { [INFO] [stdout] 135 | self.send_request.take(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `self.send_request` as mutable more than once at a time [INFO] [stdout] --> src/remote/session.rs:135:17 [INFO] [stdout] | [INFO] [stdout] 120 | ) -> DohResult<( [INFO] [stdout] | __________- [INFO] [stdout] 121 | | impl Future)>>, [INFO] [stdout] 122 | | u32, [INFO] [stdout] 123 | | )> { [INFO] [stdout] | |______- return type of async function `std::result::Result<(impl futures::Future), error::Error>>, u32), error::Error>` contains a lifetime `'1` [INFO] [stdout] ... [INFO] [stdout] 132 | match self.send_request(data).await { [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] 133 | Ok(r) => Ok(r), [INFO] [stdout] | ----- returning this value requires that `*self` is borrowed for `'1` [INFO] [stdout] 134 | Err(e) => { [INFO] [stdout] 135 | self.send_request.take(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0499, E0503, E0505. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stderr] error: could not compile `doh-client` (lib test) due to 4 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0499, E0503, E0505. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stderr] error: could not compile `doh-client` (lib) due to 4 previous errors [INFO] running `Command { std: "docker" "inspect" "fbabb96a6ffcf1174bcb54c61c3486981c2fbe5707dcf707bc6ec6d9bfada914", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fbabb96a6ffcf1174bcb54c61c3486981c2fbe5707dcf707bc6ec6d9bfada914", kill_on_drop: false }` [INFO] [stdout] fbabb96a6ffcf1174bcb54c61c3486981c2fbe5707dcf707bc6ec6d9bfada914