[INFO] fetching crate proxy-stream 0.0.2... [INFO] checking proxy-stream-0.0.2 against try#65132f36b923285d5da381c2fbafee6ce899e841 for pr-132712-1 [INFO] extracting crate proxy-stream 0.0.2 into /workspace/builds/worker-7-tc2/source [INFO] validating manifest of crates.io crate proxy-stream 0.0.2 on toolchain 65132f36b923285d5da381c2fbafee6ce899e841 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate proxy-stream 0.0.2 [INFO] finished tweaking crates.io crate proxy-stream 0.0.2 [INFO] tweaked toml for crates.io crate proxy-stream 0.0.2 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate crates.io crate proxy-stream 0.0.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" "+65132f36b923285d5da381c2fbafee6ce899e841" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 11a2606273c9e5ad037f2d95c3dc14224e91ec22d9d919ceed13e06a209b36bc [INFO] running `Command { std: "docker" "start" "-a" "11a2606273c9e5ad037f2d95c3dc14224e91ec22d9d919ceed13e06a209b36bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "11a2606273c9e5ad037f2d95c3dc14224e91ec22d9d919ceed13e06a209b36bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "11a2606273c9e5ad037f2d95c3dc14224e91ec22d9d919ceed13e06a209b36bc", kill_on_drop: false }` [INFO] [stdout] 11a2606273c9e5ad037f2d95c3dc14224e91ec22d9d919ceed13e06a209b36bc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 51d9f185e9e21e0740c4c8233ae13740503cf42e90a223e61f3f4b75d4841c7d [INFO] running `Command { std: "docker" "start" "-a" "51d9f185e9e21e0740c4c8233ae13740503cf42e90a223e61f3f4b75d4841c7d", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Checking bytes v1.4.0 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Checking socket2 v0.5.3 [INFO] [stderr] Compiling syn v2.0.29 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Checking tokio v1.32.0 [INFO] [stderr] Checking proxy-stream v0.0.2 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stdout] warning: `impl AsyncSocket` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/lib.rs:88:17 [INFO] [stdout] | [INFO] [stdout] 88 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/lib.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | &self, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable [INFO] [stdout] --> src/lib.rs:86:17 [INFO] [stdout] | [INFO] [stdout] 86 | stream: impl AsyncSocket, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 87 | addr: impl ToSocketDestination, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 84 ~ pub async fn connect( [INFO] [stdout] 85 | &self, [INFO] [stdout] 86 ~ stream: T, [INFO] [stdout] 87 ~ addr: U, [INFO] [stdout] 88 ~ ) -> Result, ProxyStreamError> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl AsyncSocket` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/socks.rs:233:17 [INFO] [stdout] | [INFO] [stdout] 233 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/socks.rs:229:9 [INFO] [stdout] | [INFO] [stdout] 229 | &self, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable [INFO] [stdout] --> src/socks.rs:230:21 [INFO] [stdout] | [INFO] [stdout] 230 | mut socket: impl AsyncSocket, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 231 | command: Command, [INFO] [stdout] 232 | addr: impl ToSocketDestination, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 228 ~ pub async fn connect( [INFO] [stdout] 229 | &self, [INFO] [stdout] 230 ~ mut socket: T, [INFO] [stdout] 231 | command: Command, [INFO] [stdout] 232 ~ addr: U, [INFO] [stdout] 233 ~ ) -> Result, ProxyStreamError> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl AsyncSocket` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/lib.rs:88:17 [INFO] [stdout] | [INFO] [stdout] 88 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/lib.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | &self, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable [INFO] [stdout] --> src/lib.rs:86:17 [INFO] [stdout] | [INFO] [stdout] 86 | stream: impl AsyncSocket, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 87 | addr: impl ToSocketDestination, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 84 ~ pub async fn connect( [INFO] [stdout] 85 | &self, [INFO] [stdout] 86 ~ stream: T, [INFO] [stdout] 87 ~ addr: U, [INFO] [stdout] 88 ~ ) -> Result, ProxyStreamError> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl AsyncSocket` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/socks.rs:233:17 [INFO] [stdout] | [INFO] [stdout] 233 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/socks.rs:229:9 [INFO] [stdout] | [INFO] [stdout] 229 | &self, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable [INFO] [stdout] --> src/socks.rs:230:21 [INFO] [stdout] | [INFO] [stdout] 230 | mut socket: impl AsyncSocket, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 231 | command: Command, [INFO] [stdout] 232 | addr: impl ToSocketDestination, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 228 ~ pub async fn connect( [INFO] [stdout] 229 | &self, [INFO] [stdout] 230 ~ mut socket: T, [INFO] [stdout] 231 | command: Command, [INFO] [stdout] 232 ~ addr: U, [INFO] [stdout] 233 ~ ) -> Result, ProxyStreamError> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating examples/client.rs from 2021 edition to 2024 [INFO] [stderr] Migrating examples/server.rs from 2021 edition to 2024 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.12s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking proxy-stream v0.0.2 (/tmp/fixit) [INFO] [stdout] error[E0515]: cannot return value referencing local variable `socks` [INFO] [stdout] --> src/lib.rs:92:17 [INFO] [stdout] | [INFO] [stdout] 92 | socks.connect(stream, socks::Command::Connect, addr).await [INFO] [stdout] | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] | `socks` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules [INFO] [stdout] --> src/lib.rs:92:17 [INFO] [stdout] | [INFO] [stdout] 92 | socks.connect(stream, socks::Command::Connect, addr).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable [INFO] [stdout] --> src/socks.rs:230:21 [INFO] [stdout] | [INFO] [stdout] 230 | mut socket: impl AsyncSocket, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 231 | command: Command, [INFO] [stdout] 232 | addr: impl ToSocketDestination, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] --> src/socks.rs:228:25 [INFO] [stdout] | [INFO] [stdout] 228 ~ pub async fn connect( [INFO] [stdout] 229 | &self, [INFO] [stdout] 230 ~ mut socket: T, [INFO] [stdout] 231 | command: Command, [INFO] [stdout] 232 ~ addr: U, [INFO] [stdout] 233 ~ ) -> Result, ProxyStreamError> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `socks` [INFO] [stdout] --> src/lib.rs:92:17 [INFO] [stdout] | [INFO] [stdout] 92 | socks.connect(stream, socks::Command::Connect, addr).await [INFO] [stdout] | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] | `socks` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules [INFO] [stdout] --> src/lib.rs:92:17 [INFO] [stdout] | [INFO] [stdout] 92 | socks.connect(stream, socks::Command::Connect, addr).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: you could use a `use<...>` bound to explicitly specify captures, but argument-position `impl Trait`s are not nameable [INFO] [stdout] --> src/socks.rs:230:21 [INFO] [stdout] | [INFO] [stdout] 230 | mut socket: impl AsyncSocket, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 231 | command: Command, [INFO] [stdout] 232 | addr: impl ToSocketDestination, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] --> src/socks.rs:228:25 [INFO] [stdout] | [INFO] [stdout] 228 ~ pub async fn connect( [INFO] [stdout] 229 | &self, [INFO] [stdout] 230 ~ mut socket: T, [INFO] [stdout] 231 | command: Command, [INFO] [stdout] 232 ~ addr: U, [INFO] [stdout] 233 ~ ) -> Result, ProxyStreamError> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0515`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0515`. [INFO] [stdout] [INFO] [stderr] error: could not compile `proxy-stream` (lib test) due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `proxy-stream` (lib) due to 1 previous error [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "51d9f185e9e21e0740c4c8233ae13740503cf42e90a223e61f3f4b75d4841c7d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "51d9f185e9e21e0740c4c8233ae13740503cf42e90a223e61f3f4b75d4841c7d", kill_on_drop: false }` [INFO] [stdout] 51d9f185e9e21e0740c4c8233ae13740503cf42e90a223e61f3f4b75d4841c7d