[INFO] fetching crate bgpfu-netconf 0.1.0... [INFO] checking bgpfu-netconf-0.1.0 against try#65132f36b923285d5da381c2fbafee6ce899e841 for pr-132712-1 [INFO] extracting crate bgpfu-netconf 0.1.0 into /workspace/builds/worker-5-tc2/source [INFO] validating manifest of crates.io crate bgpfu-netconf 0.1.0 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 bgpfu-netconf 0.1.0 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate bgpfu-netconf 0.1.0 [INFO] tweaked toml for crates.io crate bgpfu-netconf 0.1.0 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate crates.io crate bgpfu-netconf 0.1.0 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-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] b08ddd0e901d84bb39728b2278e0606688896a41a172f12b242f5d63113b205a [INFO] running `Command { std: "docker" "start" "-a" "b08ddd0e901d84bb39728b2278e0606688896a41a172f12b242f5d63113b205a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b08ddd0e901d84bb39728b2278e0606688896a41a172f12b242f5d63113b205a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b08ddd0e901d84bb39728b2278e0606688896a41a172f12b242f5d63113b205a", kill_on_drop: false }` [INFO] [stdout] b08ddd0e901d84bb39728b2278e0606688896a41a172f12b242f5d63113b205a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 77f73ec8f093a17044b288c88832ed4b814e3bd7ed8d623702eda3b5eb384e8f [INFO] running `Command { std: "docker" "start" "-a" "77f73ec8f093a17044b288c88832ed4b814e3bd7ed8d623702eda3b5eb384e8f", 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.154 [INFO] [stderr] Compiling proc-macro2 v1.0.82 [INFO] [stderr] Checking subtle v2.5.0 [INFO] [stderr] Compiling serde v1.0.201 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling cc v1.0.97 [INFO] [stderr] Checking zeroize v1.7.0 [INFO] [stderr] Checking bytes v1.6.0 [INFO] [stderr] Compiling platforms v3.4.0 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking opaque-debug v0.3.1 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking rustls-pki-types v1.7.0 [INFO] [stderr] Checking base64ct v1.6.0 [INFO] [stderr] Checking signature v2.2.0 [INFO] [stderr] Compiling thiserror v1.0.60 [INFO] [stderr] Checking anstyle-parse v0.2.4 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Checking ed25519 v2.2.3 [INFO] [stderr] Checking bit-vec v0.6.3 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling rustls v0.22.4 [INFO] [stderr] Checking anstyle v1.0.7 [INFO] [stderr] Checking anstyle-query v1.0.3 [INFO] [stderr] Checking colorchoice v1.0.1 [INFO] [stderr] Checking is_terminal_polyfill v1.70.0 [INFO] [stderr] Compiling curve25519-dalek v4.1.2 [INFO] [stderr] Checking bitflags v2.5.0 [INFO] [stderr] Checking clap_lex v0.7.0 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Checking regex-syntax v0.8.3 [INFO] [stderr] Checking md5 v0.7.0 [INFO] [stderr] Compiling pulldown-cmark v0.9.6 [INFO] [stderr] Checking flate2 v1.0.30 [INFO] [stderr] Checking anstream v0.6.14 [INFO] [stderr] Compiling anyhow v1.0.83 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Checking quick-xml v0.31.0 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking clap_builder v4.5.2 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Compiling syn v2.0.61 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking block-padding v0.3.3 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking inout v0.1.3 [INFO] [stderr] Checking getrandom v0.1.16 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking dirs-sys v0.4.1 [INFO] [stderr] Checking russh-cryptovec v0.7.2 [INFO] [stderr] Checking iri-string v0.7.2 [INFO] [stderr] Checking tracing-subscriber v0.3.18 [INFO] [stderr] Checking dirs v5.0.1 [INFO] [stderr] Checking rustls-pemfile v2.1.2 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking password-hash v0.4.2 [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 rand v0.8.5 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Checking polyval v0.6.2 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking aead v0.5.2 [INFO] [stderr] Checking poly1305 v0.8.0 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking pbkdf2 v0.12.2 [INFO] [stderr] Checking ghash v0.5.1 [INFO] [stderr] Checking blowfish v0.9.1 [INFO] [stderr] Checking aes v0.8.4 [INFO] [stderr] Checking ctr v0.9.2 [INFO] [stderr] Checking cbc v0.1.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking chacha20 v0.9.1 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking bcrypt-pbkdf v0.10.0 [INFO] [stderr] Checking pbkdf2 v0.11.0 [INFO] [stderr] Checking num-bigint v0.4.5 [INFO] [stderr] Checking uuid v1.8.0 [INFO] [stderr] Checking aes-gcm v0.10.3 [INFO] [stderr] Checking regex-automata v0.4.6 [INFO] [stderr] Checking yasna v0.5.2 [INFO] [stderr] Checking regex v1.10.4 [INFO] [stderr] Checking rustls-webpki v0.102.3 [INFO] [stderr] Compiling serde_derive v1.0.201 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.60 [INFO] [stderr] Compiling async-trait v0.1.80 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling clap_derive v4.5.4 [INFO] [stderr] Checking tokio v1.37.0 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking clap v4.5.4 [INFO] [stderr] Checking clap-verbosity-flag v2.2.0 [INFO] [stderr] Checking ed25519-dalek v2.1.1 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking tokio-stream v0.1.15 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking tokio-rustls v0.25.0 [INFO] [stderr] Checking serde_spanned v0.6.5 [INFO] [stderr] Checking toml_datetime v0.6.5 [INFO] [stderr] Checking russh-keys v0.38.0 [INFO] [stderr] Checking toml_edit v0.19.15 [INFO] [stderr] Checking russh v0.39.0 [INFO] [stderr] Checking toml v0.7.8 [INFO] [stderr] Checking version-sync v0.9.5 [INFO] [stderr] Checking bgpfu-netconf v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `netconf` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/session.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error: expected identifier, found keyword `use` [INFO] [stderr] --> src/session.rs:262:85 [INFO] [stderr] | [INFO] [stderr] 262 | ) -> Result::Ok, Error>> + use, Error> [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `rpc` found for struct `session::Session` in the current scope [INFO] [stderr] --> src/session.rs:338:14 [INFO] [stderr] | [INFO] [stderr] 74 | pub struct Session { [INFO] [stderr] | -------------------------------- method `rpc` not found for this struct [INFO] [stderr] ... [INFO] [stderr] 338 | self.rpc::(Builder::finish) [INFO] [stderr] | ^^^ method not found in `Session` [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0599`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: patterns are not allowed to reset the default binding mode in edition 2024 [INFO] [stdout] --> src/capabilities.rs:298:13 [INFO] [stdout] | [INFO] [stdout] 298 | Self::None | Self::Any(&[]) | Self::All(&[]) => f.write_str("none"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see 123076 [INFO] [stdout] = note: `--force-warn rust-2024-incompatible-pat` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: desugar the match ergonomics [INFO] [stdout] | [INFO] [stdout] 298 | &Self::None | &Self::Any(&[]) | &Self::All(&[]) => f.write_str("none"), [INFO] [stdout] | + + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: patterns are not allowed to reset the default binding mode in edition 2024 [INFO] [stdout] --> src/capabilities.rs:299:13 [INFO] [stdout] | [INFO] [stdout] 299 | / Self::One(ref capability) [INFO] [stdout] 300 | | | Self::Any(&[ref capability]) [INFO] [stdout] 301 | | | Self::All(&[ref capability]) => { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see 123076 [INFO] [stdout] help: desugar the match ergonomics [INFO] [stdout] | [INFO] [stdout] 299 ~ &Self::One(ref capability) [INFO] [stdout] 300 ~ | &Self::Any(&[ref capability]) [INFO] [stdout] 301 ~ | &Self::All(&[ref capability]) => { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/transport/ssh.rs:74:28 [INFO] [stdout] | [INFO] [stdout] 74 | if let Some(data) = to_send { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/transport/ssh.rs:76:25 [INFO] [stdout] | [INFO] [stdout] 76 | } else { [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 74 ~ match to_send { Some(data) => { [INFO] [stdout] 75 | channel.data(data.as_ref()).await?; [INFO] [stdout] 76 ~ } _ => { [INFO] [stdout] 77 | break; [INFO] [stdout] 78 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/transport/ssh.rs:82:28 [INFO] [stdout] | [INFO] [stdout] 82 | if let Some(msg) = msg { [INFO] [stdout] | ^^^^^^^^^^^^^^^^--- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/transport/ssh.rs:106:25 [INFO] [stdout] | [INFO] [stdout] 106 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 82 ~ match msg { Some(msg) => { [INFO] [stdout] 83 | tracing::debug!("processing received msg"); [INFO] [stdout] ... [INFO] [stdout] 105 | } [INFO] [stdout] 106 ~ } _ => { [INFO] [stdout] 107 | // TODO: what should we do if it's None? [INFO] [stdout] 108 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::future::Future::Reply as IntoResult>::Ok, error::Error>>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/session.rs:262:17 [INFO] [stdout] | [INFO] [stdout] 262 | ) -> Result::Ok, Error>>, Error> [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/session.rs:260:9 [INFO] [stdout] | [INFO] [stdout] 260 | &mut self, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [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] 262 | ) -> Result::Ok, Error>> + use, Error> [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `netconf` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/session.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error: expected identifier, found keyword `use` [INFO] [stderr] --> src/session.rs:262:85 [INFO] [stderr] | [INFO] [stderr] 262 | ) -> Result::Ok, Error>> + use, Error> [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `rpc` found for struct `session::Session` in the current scope [INFO] [stderr] --> src/session.rs:338:14 [INFO] [stderr] | [INFO] [stderr] 74 | pub struct Session { [INFO] [stderr] | -------------------------------- method `rpc` not found for this struct [INFO] [stderr] ... [INFO] [stdout] warning: patterns are not allowed to reset the default binding mode in edition 2024 [INFO] [stdout] --> src/capabilities.rs:298:13 [INFO] [stdout] | [INFO] [stdout] 298 | Self::None | Self::Any(&[]) | Self::All(&[]) => f.write_str("none"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see 123076 [INFO] [stdout] = note: `--force-warn rust-2024-incompatible-pat` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: desugar the match ergonomics [INFO] [stdout] | [INFO] [stdout] 298 | &Self::None | &Self::Any(&[]) | &Self::All(&[]) => f.write_str("none"), [INFO] [stdout] | + + + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 338 | self.rpc::(Builder::finish) [INFO] [stderr] | ^^^ method not found in `Session` [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0599`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: patterns are not allowed to reset the default binding mode in edition 2024 [INFO] [stdout] --> src/capabilities.rs:299:13 [INFO] [stdout] | [INFO] [stdout] 299 | / Self::One(ref capability) [INFO] [stdout] 300 | | | Self::Any(&[ref capability]) [INFO] [stdout] 301 | | | Self::All(&[ref capability]) => { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see 123076 [INFO] [stdout] help: desugar the match ergonomics [INFO] [stdout] | [INFO] [stdout] 299 ~ &Self::One(ref capability) [INFO] [stdout] 300 ~ | &Self::Any(&[ref capability]) [INFO] [stdout] 301 ~ | &Self::All(&[ref capability]) => { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/transport/ssh.rs:74:28 [INFO] [stdout] | [INFO] [stdout] 74 | if let Some(data) = to_send { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/transport/ssh.rs:76:25 [INFO] [stdout] | [INFO] [stdout] 76 | } else { [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 74 ~ match to_send { Some(data) => { [INFO] [stdout] 75 | channel.data(data.as_ref()).await?; [INFO] [stdout] 76 ~ } _ => { [INFO] [stdout] 77 | break; [INFO] [stdout] 78 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/transport/ssh.rs:82:28 [INFO] [stdout] | [INFO] [stdout] 82 | if let Some(msg) = msg { [INFO] [stdout] | ^^^^^^^^^^^^^^^^--- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/transport/ssh.rs:106:25 [INFO] [stdout] | [INFO] [stdout] 106 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 82 ~ match msg { Some(msg) => { [INFO] [stdout] 83 | tracing::debug!("processing received msg"); [INFO] [stdout] ... [INFO] [stdout] 105 | } [INFO] [stdout] 106 ~ } _ => { [INFO] [stdout] 107 | // TODO: what should we do if it's None? [INFO] [stdout] 108 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::future::Future::Reply as IntoResult>::Ok, error::Error>>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/session.rs:262:17 [INFO] [stdout] | [INFO] [stdout] 262 | ) -> Result::Ok, Error>>, Error> [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/session.rs:260:9 [INFO] [stdout] | [INFO] [stdout] 260 | &mut self, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [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] 262 | ) -> Result::Ok, Error>> + use, Error> [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating examples/tls.rs from 2021 edition to 2024 [INFO] [stderr] Migrating examples/ssh.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/versions.rs from 2021 edition to 2024 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 19.93s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking bgpfu-netconf v0.1.0 (/tmp/fixit) [INFO] [stdout] error[E0515]: cannot return value referencing local data `self` [INFO] [stdout] --> src/session.rs:338:9 [INFO] [stdout] | [INFO] [stdout] 338 | self.rpc::(Builder::finish) [INFO] [stdout] | ^--- [INFO] [stdout] | | [INFO] [stdout] | _________`self` is borrowed here [INFO] [stdout] | | [INFO] [stdout] 339 | | .await [INFO] [stdout] 340 | | .map(|fut| async move { fut.await.map(|()| drop(self)) }) [INFO] [stdout] | |_____________________________________________________________________^ returns a value referencing data owned by the current function [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/session.rs:338:9 [INFO] [stdout] | [INFO] [stdout] 338 | self.rpc::(Builder::finish) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 262 | ) -> Result::Ok, Error>> + use, Error> [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `self` because it is borrowed [INFO] [stdout] --> src/session.rs:340:18 [INFO] [stdout] | [INFO] [stdout] 336 | #[tracing::instrument(skip(self), level = "debug")] [INFO] [stdout] | - return type of async block `Result<{async block@src/session.rs:340:24: 340:34}, error::Error>` contains a lifetime `'1` [INFO] [stdout] 337 | pub async fn close(mut self) -> Result>, Error> { [INFO] [stdout] | -------- binding `self` declared here [INFO] [stdout] 338 | self.rpc::(Builder::finish) [INFO] [stdout] | ---- [INFO] [stdout] | | [INFO] [stdout] | _________borrow of `self` occurs here [INFO] [stdout] | | [INFO] [stdout] 339 | | .await [INFO] [stdout] 340 | | .map(|fut| async move { fut.await.map(|()| drop(self)) }) [INFO] [stdout] | |__________________^^^^^______________________________________----____- returning this value requires that `self` is borrowed for `'1` [INFO] [stdout] | | | [INFO] [stdout] | move out of `self` occurs here move occurs due to use in closure [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/session.rs:338:9 [INFO] [stdout] | [INFO] [stdout] 338 | self.rpc::(Builder::finish) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 262 | ) -> Result::Ok, Error>> + use, Error> [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0310]: the parameter type `T` may not live long enough [INFO] [stdout] --> src/session.rs:338:9 [INFO] [stdout] | [INFO] [stdout] 338 | self.rpc::(Builder::finish) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | the parameter type `T` must be valid for the static lifetime... [INFO] [stdout] | ...so that the type `T` will meet its required lifetime bounds [INFO] [stdout] | [INFO] [stdout] help: consider adding an explicit lifetime bound [INFO] [stdout] | [INFO] [stdout] 199 | impl Session { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local data `self` [INFO] [stdout] --> src/session.rs:338:9 [INFO] [stdout] | [INFO] [stdout] 338 | self.rpc::(Builder::finish) [INFO] [stdout] | ^--- [INFO] [stdout] | | [INFO] [stdout] | _________`self` is borrowed here [INFO] [stdout] | | [INFO] [stdout] 339 | | .await [INFO] [stdout] 340 | | .map(|fut| async move { fut.await.map(|()| drop(self)) }) [INFO] [stdout] | |_____________________________________________________________________^ returns a value referencing data owned by the current function [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/session.rs:338:9 [INFO] [stdout] | [INFO] [stdout] 338 | self.rpc::(Builder::finish) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 262 | ) -> Result::Ok, Error>> + use, Error> [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `self` because it is borrowed [INFO] [stdout] --> src/session.rs:340:18 [INFO] [stdout] | [INFO] [stdout] 336 | #[tracing::instrument(skip(self), level = "debug")] [INFO] [stdout] | - return type of async block `Result<{async block@src/session.rs:340:24: 340:34}, error::Error>` contains a lifetime `'1` [INFO] [stdout] 337 | pub async fn close(mut self) -> Result>, Error> { [INFO] [stdout] | -------- binding `self` declared here [INFO] [stdout] 338 | self.rpc::(Builder::finish) [INFO] [stdout] | ---- [INFO] [stdout] | | [INFO] [stdout] | _________borrow of `self` occurs here [INFO] [stdout] | | [INFO] [stdout] 339 | | .await [INFO] [stdout] 340 | | .map(|fut| async move { fut.await.map(|()| drop(self)) }) [INFO] [stdout] | |__________________^^^^^______________________________________----____- returning this value requires that `self` is borrowed for `'1` [INFO] [stdout] | | | [INFO] [stdout] | move out of `self` occurs here move occurs due to use in closure [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/session.rs:338:9 [INFO] [stdout] | [INFO] [stdout] 338 | self.rpc::(Builder::finish) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 262 | ) -> Result::Ok, Error>> + use, Error> [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0310]: the parameter type `T` may not live long enough [INFO] [stdout] --> src/session.rs:338:9 [INFO] [stdout] | [INFO] [stdout] 338 | self.rpc::(Builder::finish) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | the parameter type `T` must be valid for the static lifetime... [INFO] [stdout] | ...so that the type `T` will meet its required lifetime bounds [INFO] [stdout] | [INFO] [stdout] help: consider adding an explicit lifetime bound [INFO] [stdout] | [INFO] [stdout] 199 | impl Session { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: patterns are not allowed to reset the default binding mode in edition 2024 [INFO] [stdout] --> src/capabilities.rs:298:13 [INFO] [stdout] | [INFO] [stdout] 298 | Self::None | Self::Any(&[]) | Self::All(&[]) => f.write_str("none"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: desugar the match ergonomics [INFO] [stdout] | [INFO] [stdout] 298 | &Self::None | &Self::Any(&[]) | &Self::All(&[]) => f.write_str("none"), [INFO] [stdout] | + + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: patterns are not allowed to reset the default binding mode in edition 2024 [INFO] [stdout] --> src/capabilities.rs:299:13 [INFO] [stdout] | [INFO] [stdout] 299 | / Self::One(ref capability) [INFO] [stdout] 300 | | | Self::Any(&[ref capability]) [INFO] [stdout] 301 | | | Self::All(&[ref capability]) => { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: desugar the match ergonomics [INFO] [stdout] | [INFO] [stdout] 299 ~ &Self::One(ref capability) [INFO] [stdout] 300 ~ | &Self::Any(&[ref capability]) [INFO] [stdout] 301 ~ | &Self::All(&[ref capability]) => { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0310, E0505, E0515. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0310`. [INFO] [stdout] [INFO] [stderr] error: could not compile `bgpfu-netconf` (lib) due to 5 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: patterns are not allowed to reset the default binding mode in edition 2024 [INFO] [stdout] --> src/capabilities.rs:298:13 [INFO] [stdout] | [INFO] [stdout] 298 | Self::None | Self::Any(&[]) | Self::All(&[]) => f.write_str("none"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: desugar the match ergonomics [INFO] [stdout] | [INFO] [stdout] 298 | &Self::None | &Self::Any(&[]) | &Self::All(&[]) => f.write_str("none"), [INFO] [stdout] | + + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: patterns are not allowed to reset the default binding mode in edition 2024 [INFO] [stdout] --> src/capabilities.rs:299:13 [INFO] [stdout] | [INFO] [stdout] 299 | / Self::One(ref capability) [INFO] [stdout] 300 | | | Self::Any(&[ref capability]) [INFO] [stdout] 301 | | | Self::All(&[ref capability]) => { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: desugar the match ergonomics [INFO] [stdout] | [INFO] [stdout] 299 ~ &Self::One(ref capability) [INFO] [stdout] 300 ~ | &Self::Any(&[ref capability]) [INFO] [stdout] 301 ~ | &Self::All(&[ref capability]) => { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0310, E0505, E0515. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0310`. [INFO] [stdout] [INFO] [stderr] error: could not compile `bgpfu-netconf` (lib test) due to 5 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" "77f73ec8f093a17044b288c88832ed4b814e3bd7ed8d623702eda3b5eb384e8f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "77f73ec8f093a17044b288c88832ed4b814e3bd7ed8d623702eda3b5eb384e8f", kill_on_drop: false }` [INFO] [stdout] 77f73ec8f093a17044b288c88832ed4b814e3bd7ed8d623702eda3b5eb384e8f