[INFO] fetching crate flatline 0.0.11... [INFO] checking flatline-0.0.11 against try#65132f36b923285d5da381c2fbafee6ce899e841 for pr-132712-1 [INFO] extracting crate flatline 0.0.11 into /workspace/builds/worker-7-tc2/source [INFO] validating manifest of crates.io crate flatline 0.0.11 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 flatline 0.0.11 [INFO] finished tweaking crates.io crate flatline 0.0.11 [INFO] tweaked toml for crates.io crate flatline 0.0.11 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate crates.io crate flatline 0.0.11 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] 747c3b034a14e32c669820d80601bdd9839d6529f229260de319299f67d2227d [INFO] running `Command { std: "docker" "start" "-a" "747c3b034a14e32c669820d80601bdd9839d6529f229260de319299f67d2227d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "747c3b034a14e32c669820d80601bdd9839d6529f229260de319299f67d2227d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "747c3b034a14e32c669820d80601bdd9839d6529f229260de319299f67d2227d", kill_on_drop: false }` [INFO] [stdout] 747c3b034a14e32c669820d80601bdd9839d6529f229260de319299f67d2227d [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] 5326ac281b3031c35c44c3ffb201e9a28c8d85fd3d23a4e9fc8b2fcad69dcc30 [INFO] running `Command { std: "docker" "start" "-a" "5326ac281b3031c35c44c3ffb201e9a28c8d85fd3d23a4e9fc8b2fcad69dcc30", 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 proc-macro2 v1.0.81 [INFO] [stderr] Compiling libc v0.2.154 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling cc v1.0.96 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Checking subtle v2.5.0 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling crc32fast v1.4.0 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling openssl v0.10.64 [INFO] [stderr] Compiling either v1.11.0 [INFO] [stderr] Compiling openssl-src v300.2.3+3.2.1 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Checking cpufeatures v0.2.12 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking bitflags v2.5.0 [INFO] [stderr] Checking bytes v1.6.0 [INFO] [stderr] Checking getrandom v0.2.14 [INFO] [stderr] Compiling syn v2.0.60 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking inout v0.1.3 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking parking_lot v0.12.2 [INFO] [stderr] Checking pbkdf2 v0.12.2 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking blowfish v0.9.1 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Compiling openssl-sys v0.9.102 [INFO] [stderr] Compiling libz-sys v1.1.16 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Checking bcrypt-pbkdf v0.10.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking flate2 v1.0.30 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling darling_core v0.20.8 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling snafu-derive v0.8.4 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling derive-new v0.6.0 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling async-trait v0.1.80 [INFO] [stderr] Checking tokio v1.37.0 [INFO] [stderr] Compiling darling_macro v0.20.8 [INFO] [stderr] Checking snafu v0.8.4 [INFO] [stderr] Compiling darling v0.20.8 [INFO] [stderr] Compiling custom_debug_derive v0.6.1 [INFO] [stderr] Checking flatline v0.0.11 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/cipher/mod.rs (3 fixes) [INFO] [stderr] Fixed src/session.rs (9 fixes) [INFO] [stderr] Fixed src/ssh/buffer.rs (12 fixes) [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/sftp.rs:1265:5 [INFO] [stdout] | [INFO] [stdout] 1265 | pub async fn write_file_buf(&mut self, file: &mut File, data: &[u8]) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! [INFO] [stdout] = note: for more information, see issue #123748 [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: Default` will fail [INFO] [stdout] --> src/sftp.rs:1300:13 [INFO] [stdout] | [INFO] [stdout] 1300 | self.wait_for_status(id, Status::no_eof).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn dependency-on-unit-never-type-fallback` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: relative drop order changing in Rust 2024 [INFO] [stdout] --> src/session.rs:333:10 [INFO] [stdout] | [INFO] [stdout] 309 | let openssh = KeyParser::default(); [INFO] [stdout] | ------- [INFO] [stdout] | | [INFO] [stdout] | `openssh` calls a custom destructor [INFO] [stdout] | `openssh` will be dropped later as of Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 333 | .await [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value will be stored in a temporary; let us call it `#1` [INFO] [stdout] | up until Edition 2021 `#1` is dropped last but will be dropped earlier in Edition 2024 [INFO] [stdout] 334 | } [INFO] [stdout] | - now the temporary value is dropped here, before the local variables in the block or statement [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] note: `#1` invokes this custom destructor [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.37.0/src/sync/oneshot.rs:1072:1 [INFO] [stdout] | [INFO] [stdout] 1072 | impl Drop for Receiver { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `openssh` may invoke a custom destructor because it contains a trait object [INFO] [stdout] = note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages [INFO] [stdout] = note: `--force-warn tail-expr-drop-order` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/test.rs (2 fixes) [INFO] [stderr] Migrating examples/x11.rs from 2021 edition to 2024 [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/sftp.rs:1265:5 [INFO] [stdout] | [INFO] [stdout] 1265 | pub async fn write_file_buf(&mut self, file: &mut File, data: &[u8]) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! [INFO] [stdout] = note: for more information, see issue #123748 [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: Default` will fail [INFO] [stdout] --> src/sftp.rs:1300:13 [INFO] [stdout] | [INFO] [stdout] 1300 | self.wait_for_status(id, Status::no_eof).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn dependency-on-unit-never-type-fallback` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating examples/direct_tcpip.rs from 2021 edition to 2024 [INFO] [stderr] Migrating examples/hostkey.rs from 2021 edition to 2024 [INFO] [stderr] Migrating examples/hello_world.rs from 2021 edition to 2024 [INFO] [stderr] Migrating examples/password.rs from 2021 edition to 2024 [INFO] [stderr] Migrating examples/keyboard_interactive.rs from 2021 edition to 2024 [INFO] [stderr] Migrating examples/sftp_write.rs from 2021 edition to 2024 [INFO] [stderr] Migrating examples/rexchange.rs from 2021 edition to 2024 [INFO] [stderr] Migrating examples/sftp_read.rs from 2021 edition to 2024 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 52.19s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking flatline v0.0.11 (/tmp/fixit) [INFO] [stdout] error[E0277]: the trait bound `!: Default` is not satisfied [INFO] [stdout] --> src/sftp.rs:1300:13 [INFO] [stdout] | [INFO] [stdout] 1300 | self.wait_for_status(id, Status::no_eof).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Default` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #48950 for more information) [INFO] [stdout] = help: did you intend to use the type `()` here instead? [INFO] [stdout] note: required by a bound in `sftp::Status::no_eof` [INFO] [stdout] --> src/sftp.rs:562:18 [INFO] [stdout] | [INFO] [stdout] 562 | fn no_eof(&self, msg: String) -> Result { [INFO] [stdout] | ^^^^^^^ required by this bound in `Status::no_eof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: Default` is not satisfied [INFO] [stdout] --> src/sftp.rs:1300:38 [INFO] [stdout] | [INFO] [stdout] 1300 | self.wait_for_status(id, Status::no_eof).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `Default` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #48950 for more information) [INFO] [stdout] = help: did you intend to use the type `()` here instead? [INFO] [stdout] note: required by a bound in `sftp::Status::no_eof` [INFO] [stdout] --> src/sftp.rs:562:18 [INFO] [stdout] | [INFO] [stdout] 562 | fn no_eof(&self, msg: String) -> Result { [INFO] [stdout] | ^^^^^^^ required by this bound in `Status::no_eof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: Default` is not satisfied [INFO] [stdout] --> src/sftp.rs:1300:13 [INFO] [stdout] | [INFO] [stdout] 1300 | self.wait_for_status(id, Status::no_eof).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Default` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #48950 for more information) [INFO] [stdout] = help: did you intend to use the type `()` here instead? [INFO] [stdout] note: required by a bound in `sftp::Status::no_eof` [INFO] [stdout] --> src/sftp.rs:562:18 [INFO] [stdout] | [INFO] [stdout] 562 | fn no_eof(&self, msg: String) -> Result { [INFO] [stdout] | ^^^^^^^ required by this bound in `Status::no_eof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: Default` is not satisfied [INFO] [stdout] --> src/sftp.rs:1300:38 [INFO] [stdout] | [INFO] [stdout] 1300 | self.wait_for_status(id, Status::no_eof).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `Default` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #48950 for more information) [INFO] [stdout] = help: did you intend to use the type `()` here instead? [INFO] [stdout] note: required by a bound in `sftp::Status::no_eof` [INFO] [stdout] --> src/sftp.rs:562:18 [INFO] [stdout] | [INFO] [stdout] 562 | fn no_eof(&self, msg: String) -> Result { [INFO] [stdout] | ^^^^^^^ required by this bound in `Status::no_eof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `flatline` (lib) due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `flatline` (lib test) due to 2 previous errors [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" "5326ac281b3031c35c44c3ffb201e9a28c8d85fd3d23a4e9fc8b2fcad69dcc30", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5326ac281b3031c35c44c3ffb201e9a28c8d85fd3d23a4e9fc8b2fcad69dcc30", kill_on_drop: false }` [INFO] [stdout] 5326ac281b3031c35c44c3ffb201e9a28c8d85fd3d23a4e9fc8b2fcad69dcc30