[INFO] fetching crate nerve-ai 0.1.2... [INFO] checking nerve-ai-0.1.2 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate nerve-ai 0.1.2 into /workspace/builds/worker-0-tc2/source [INFO] validating manifest of crates.io crate nerve-ai 0.1.2 on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate nerve-ai 0.1.2 [INFO] finished tweaking crates.io crate nerve-ai 0.1.2 [INFO] tweaked toml for crates.io crate nerve-ai 0.1.2 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate crates.io crate nerve-ai 0.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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a12715e509160280a3f42f0b9217b6a1bdba587566ed989c3c669de736aefb14 [INFO] running `Command { std: "docker" "start" "-a" "a12715e509160280a3f42f0b9217b6a1bdba587566ed989c3c669de736aefb14", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a12715e509160280a3f42f0b9217b6a1bdba587566ed989c3c669de736aefb14", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a12715e509160280a3f42f0b9217b6a1bdba587566ed989c3c669de736aefb14", kill_on_drop: false }` [INFO] [stdout] a12715e509160280a3f42f0b9217b6a1bdba587566ed989c3c669de736aefb14 [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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d8c47c2449ddf3891745621d7ca298e76c49239d3a3a2f638e72afab4400d6a0 [INFO] running `Command { std: "docker" "start" "-a" "d8c47c2449ddf3891745621d7ca298e76c49239d3a3a2f638e72afab4400d6a0", 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.85 [INFO] [stderr] Compiling cc v1.0.99 [INFO] [stderr] Checking memchr v2.7.2 [INFO] [stderr] Checking bytes v1.6.0 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Checking rustls-pki-types v1.7.0 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking untrusted v0.9.0 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Checking subtle v2.5.0 [INFO] [stderr] Compiling openssl v0.10.64 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Compiling rustls v0.23.10 [INFO] [stderr] Checking tower-layer v0.3.2 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking webpki-roots v0.26.2 [INFO] [stderr] Compiling syn v2.0.66 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking http-body v1.0.0 [INFO] [stderr] Checking http-body-util v0.1.1 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Checking anstyle-parse v0.2.4 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking rustls-pemfile v2.1.2 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling openssl-sys v0.9.102 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking url v2.5.2 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling rustls v0.22.4 [INFO] [stderr] Checking iana-time-zone v0.1.60 [INFO] [stderr] Checking ipnet v2.9.0 [INFO] [stderr] Checking sync_wrapper v1.0.1 [INFO] [stderr] Checking either v1.12.0 [INFO] [stderr] Checking anstyle-query v1.1.0 [INFO] [stderr] Checking anstream v0.6.14 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking eventsource-stream v0.2.3 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Checking linked-hash-map v0.5.6 [INFO] [stderr] Checking bytemuck v1.16.1 [INFO] [stderr] Checking weezl v0.1.8 [INFO] [stderr] Checking futures-timer v3.0.3 [INFO] [stderr] Checking clap_lex v0.7.1 [INFO] [stderr] Checking clap_builder v4.5.6 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking stringreader v0.1.1 [INFO] [stderr] Checking trim-in-place v0.1.7 [INFO] [stderr] Checking colored v2.1.0 [INFO] [stderr] Checking itertools v0.13.0 [INFO] [stderr] Checking memory-stats v1.1.0 [INFO] [stderr] Checking simple-home-dir v0.3.5 [INFO] [stderr] Checking xml-rs v0.8.20 [INFO] [stderr] Checking regex v1.10.5 [INFO] [stderr] Checking human_bytes v0.4.3 [INFO] [stderr] Checking duration-string v0.4.0 [INFO] [stderr] Checking env_filter v0.1.0 [INFO] [stderr] Checking env_logger v0.11.3 [INFO] [stderr] Compiling linkme-impl v0.2.10 [INFO] [stderr] Compiling intertrait-macros v0.2.2 [INFO] [stderr] Compiling tokio-macros v2.3.0 [INFO] [stderr] Compiling serde_derive v1.0.203 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Checking rustls-webpki v0.102.4 [INFO] [stderr] Compiling thiserror-impl v1.0.61 [INFO] [stderr] Compiling bitcode_derive v0.6.0 [INFO] [stderr] Checking tokio v1.38.0 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking thiserror v1.0.61 [INFO] [stderr] Compiling async-trait v0.1.80 [INFO] [stderr] Checking linkme v0.2.10 [INFO] [stderr] Compiling clap_derive v4.5.5 [INFO] [stderr] Checking intertrait v0.2.2 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking serde v1.0.203 [INFO] [stderr] Checking clap v4.5.6 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking tokio-rustls v0.26.0 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking sha256 v1.5.0 [INFO] [stderr] Checking h2 v0.4.5 [INFO] [stderr] Checking serde_json v1.0.117 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking bitcode v0.6.0 [INFO] [stderr] Checking serde_trim v1.1.0 [INFO] [stderr] Checking serde_yaml v0.9.34+deprecated [INFO] [stderr] Checking ureq v2.9.7 [INFO] [stderr] Checking lopdf v0.32.0 [INFO] [stderr] Checking hyper v1.3.1 [INFO] [stderr] Checking openai_api_rust v0.1.9 [INFO] [stderr] Checking mini-rag v0.2.3 [INFO] [stderr] Checking hyper-util v0.1.5 [INFO] [stderr] Checking hyper-rustls v0.27.2 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking reqwest v0.12.5 [INFO] [stderr] Checking reqwest-eventsource v0.6.0 [INFO] [stderr] Checking ollama-rs v0.1.9 [INFO] [stderr] Checking groq-api-rs v0.1.0 [INFO] [stderr] Checking nerve-ai v0.1.2 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `nerve` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/agent/generator/mod.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[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/agent/generator/mod.rs:125:6 [INFO] [stderr] | [INFO] [stderr] 125 | ($name:expr_2021, $url:expr_2021, $port:expr_2021, $model_name:expr_2021, $context_window:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/agent/generator/mod.rs:125:23 [INFO] [stderr] | [INFO] [stderr] 125 | ($name:expr_2021, $url:expr_2021, $port:expr_2021, $model_name:expr_2021, $context_window:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/agent/generator/mod.rs:125:39 [INFO] [stderr] | [INFO] [stderr] 125 | ($name:expr_2021, $url:expr_2021, $port:expr_2021, $model_name:expr_2021, $context_window:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/agent/generator/mod.rs:125:56 [INFO] [stderr] | [INFO] [stderr] 125 | ($name:expr_2021, $url:expr_2021, $port:expr_2021, $model_name:expr_2021, $context_window:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/agent/generator/mod.rs:125:79 [INFO] [stderr] | [INFO] [stderr] 125 | ($name:expr_2021, $url:expr_2021, $port:expr_2021, $model_name:expr_2021, $context_window:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error: aborting due to 5 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/agent/generator/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | ($name:expr, $url:expr, $port:expr, $model_name:expr, $context_window:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 125 | ($name:expr_2021, $url:expr, $port:expr, $model_name:expr, $context_window:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/agent/generator/mod.rs:125:23 [INFO] [stdout] | [INFO] [stdout] 125 | ($name:expr, $url:expr, $port:expr, $model_name:expr, $context_window:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 125 | ($name:expr, $url:expr_2021, $port:expr, $model_name:expr, $context_window:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/agent/generator/mod.rs:125:35 [INFO] [stdout] | [INFO] [stdout] 125 | ($name:expr, $url:expr, $port:expr, $model_name:expr, $context_window:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 125 | ($name:expr, $url:expr, $port:expr_2021, $model_name:expr, $context_window:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/agent/generator/mod.rs:125:53 [INFO] [stdout] | [INFO] [stdout] 125 | ($name:expr, $url:expr, $port:expr, $model_name:expr, $context_window:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 125 | ($name:expr, $url:expr, $port:expr, $model_name:expr_2021, $context_window:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/agent/generator/mod.rs:125:75 [INFO] [stdout] | [INFO] [stdout] 125 | ($name:expr, $url:expr, $port:expr, $model_name:expr, $context_window:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 125 | ($name:expr, $url:expr, $port:expr, $model_name:expr, $context_window:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to deprecated safe function `std::env::set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/main.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | std::env::set_var("RUST_LOG", "info,openai_api_rust=warn"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #27970 [INFO] [stdout] = note: `--force-warn deprecated-safe-2024` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: you can wrap the call in an `unsafe` block if you can guarantee that the environment access only happens in single-threaded code [INFO] [stdout] | [INFO] [stdout] 30 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 31 ~ unsafe { std::env::set_var("RUST_LOG", "info,openai_api_rust=warn") }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RecallMemory` is never constructed [INFO] [stdout] --> src/agent/namespaces/memory/mod.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 97 | struct RecallMemory {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RecallMemory` has a derived impl for the trait `Default`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/main.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | if let Err(error) = agent.step().await { [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/main.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | } [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] 46 ~ match agent.step().await { Err(error) => { [INFO] [stdout] 47 | log::error!("{}", error.to_string()); [INFO] [stdout] 48 | return Err(error); [INFO] [stdout] 49 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/mod.rs:235:12 [INFO] [stdout] | [INFO] [stdout] 235 | if let Err(err) = ret { [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/agent/mod.rs:241:9 [INFO] [stdout] | [INFO] [stdout] 241 | } 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] 235 ~ match ret { Err(err) => { [INFO] [stdout] 236 | mut_state.metrics.errors.errored_actions += 1; [INFO] [stdout] ... [INFO] [stdout] 240 | error = Some(err.to_string()); [INFO] [stdout] 241 ~ } _ => { [INFO] [stdout] 242 | let ret = ret.unwrap(); [INFO] [stdout] ... [INFO] [stdout] 247 | result = ret; [INFO] [stdout] 248 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/mod.rs:313:20 [INFO] [stdout] | [INFO] [stdout] 313 | if let Err(err) = self.validate(&inv, &action) { [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/agent/mod.rs:316:17 [INFO] [stdout] | [INFO] [stdout] 316 | } 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] 313 ~ match self.validate(&inv, &action) { Err(err) => { [INFO] [stdout] 314 | self.on_invalid_action(inv.clone(), Some(err.to_string())) [INFO] [stdout] 315 | .await; [INFO] [stdout] 316 ~ } _ => { [INFO] [stdout] 317 | self.on_valid_action().await; [INFO] [stdout] ... [INFO] [stdout] 345 | } [INFO] [stdout] 346 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/mod.rs:320:38 [INFO] [stdout] | [INFO] [stdout] 320 | let timeout = if let Some(action_tm) = action.timeout().as_ref() { [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/agent/mod.rs:322:21 [INFO] [stdout] | [INFO] [stdout] 322 | } else if let Some(task_tm) = self.task_timeout.as_ref() { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 320 ~ let timeout = match action.timeout().as_ref() { Some(action_tm) => { [INFO] [stdout] 321 | *action_tm [INFO] [stdout] 322 ~ } _ => if let Some(task_tm) = self.task_timeout.as_ref() { [INFO] [stdout] 323 | *task_tm [INFO] [stdout] ... [INFO] [stdout] 326 | Duration::from_secs(60 * 60 * 24 * 30) [INFO] [stdout] 327 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/generator/mod.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | if let Some(caps) = RETRY_TIME_PARSER.captures_iter(error).next() { [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/agent/generator/mod.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | } else if CONN_RESET_PARSER.captures_iter(error).next().is_some() { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 73 ~ match RETRY_TIME_PARSER.captures_iter(error).next() { Some(caps) => { [INFO] [stdout] 74 | if caps.len() == 2 { [INFO] [stdout] ... [INFO] [stdout] 105 | } [INFO] [stdout] 106 ~ } _ => if CONN_RESET_PARSER.captures_iter(error).next().is_some() { [INFO] [stdout] 107 | let retry_time = Duration::from_secs(5); [INFO] [stdout] ... [INFO] [stdout] 115 | return true; [INFO] [stdout] 116 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/namespaces/filesystem/mod.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | if let Ok(paths) = ret { [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/agent/namespaces/filesystem/mod.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 111 | } 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] 84 ~ match ret { Ok(paths) => { [INFO] [stdout] 85 | let mut output = format!("Contents of {} :\n\n", &folder); [INFO] [stdout] ... [INFO] [stdout] 110 | Ok(Some(output)) [INFO] [stdout] 111 ~ } _ => { [INFO] [stdout] 112 | Err(anyhow!("can't read {}: {:?}", folder, ret)) [INFO] [stdout] 113 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/namespaces/filesystem/mod.rs:88:20 [INFO] [stdout] | [INFO] [stdout] 88 | if let Ok(entry) = path { [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/agent/namespaces/filesystem/mod.rs:103:17 [INFO] [stdout] | [INFO] [stdout] 103 | } 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] 88 ~ match path { Ok(entry) => { [INFO] [stdout] 89 | let full_path = entry.path().canonicalize().unwrap(); [INFO] [stdout] ... [INFO] [stdout] 102 | ); [INFO] [stdout] 103 ~ } _ => { [INFO] [stdout] 104 | log::error!("{:?}", path); [INFO] [stdout] 105 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/namespaces/filesystem/mod.rs:142:12 [INFO] [stdout] | [INFO] [stdout] 142 | if let Ok(contents) = ret { [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/agent/namespaces/filesystem/mod.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | } 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] 142 ~ match ret { Ok(contents) => { [INFO] [stdout] 143 | log::info!("read-file '{filepath}' -> {} bytes", contents.len()); [INFO] [stdout] 144 | Ok(Some(contents)) [INFO] [stdout] 145 ~ } _ => { [INFO] [stdout] 146 | let err = ret.err().unwrap(); [INFO] [stdout] 147 | Err(anyhow!(err)) [INFO] [stdout] 148 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/namespaces/http/mod.rs:92:34 [INFO] [stdout] | [INFO] [stdout] 92 | let mut http_target = if let Some(val) = lock.get_variable("HTTP_TARGET") { [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/agent/namespaces/http/mod.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | } 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] 92 ~ let mut http_target = match lock.get_variable("HTTP_TARGET") { Some(val) => { [INFO] [stdout] 93 | val.to_owned() [INFO] [stdout] 94 ~ } _ => { [INFO] [stdout] 95 | return Err(anyhow!("HTTP_TARGET not defined")); [INFO] [stdout] 96 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/namespaces/memory/mod.rs:126:12 [INFO] [stdout] | [INFO] [stdout] 126 | if let Some(memory) = state.lock().await.get_storage("memories")?.get_tagged(key) { [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/agent/namespaces/memory/mod.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | } 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] 126 ~ match state.lock().await.get_storage("memories")?.get_tagged(key) { Some(memory) => { [INFO] [stdout] 127 | Ok(Some(memory)) [INFO] [stdout] 128 ~ } _ => { [INFO] [stdout] 129 | Err(anyhow!("memory '{}' not found", key)) [INFO] [stdout] 130 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/serialization/xml/parsing.rs:109:12 [INFO] [stdout] | [INFO] [stdout] 109 | if let Ok(event) = event { [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/agent/serialization/xml/parsing.rs:147:9 [INFO] [stdout] | [INFO] [stdout] 147 | } 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] 109 ~ match event { Ok(event) => { [INFO] [stdout] 110 | log::debug!("{:?}", &event); [INFO] [stdout] ... [INFO] [stdout] 146 | } [INFO] [stdout] 147 ~ } _ => { [INFO] [stdout] 148 | break; [INFO] [stdout] 149 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/serialization/xml/parsing.rs:136:24 [INFO] [stdout] | [INFO] [stdout] 136 | if let Ok(inv) = ret { [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/agent/serialization/xml/parsing.rs:138:21 [INFO] [stdout] | [INFO] [stdout] 138 | } 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] 136 ~ match ret { Ok(inv) => { [INFO] [stdout] 137 | parsed.invocations.push(inv); [INFO] [stdout] 138 ~ } _ => { [INFO] [stdout] 139 | log::error!("{:?}", ret.err().unwrap()); [INFO] [stdout] 140 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/state/mod.rs:107:53 [INFO] [stdout] | [INFO] [stdout] 107 | let rag: Option = if let Some(config) = task.get_rag_config() { [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/agent/state/mod.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | } 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] 107 ~ let rag: Option = match task.get_rag_config() { Some(config) => { [INFO] [stdout] 108 | let mut v_store = mini_rag::VectorStore::new(embedder, config)?; [INFO] [stdout] ... [INFO] [stdout] 115 | Some(v_store) [INFO] [stdout] 116 ~ } _ => { [INFO] [stdout] 117 | None [INFO] [stdout] 118 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/state/mod.rs:185:12 [INFO] [stdout] | [INFO] [stdout] 185 | if let Some(rag) = &self.rag { [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/agent/state/mod.rs:187:9 [INFO] [stdout] | [INFO] [stdout] 187 | } 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] 185 ~ match &self.rag { Some(rag) => { [INFO] [stdout] 186 | rag.retrieve(query, top_k).await [INFO] [stdout] 187 ~ } _ => { [INFO] [stdout] 188 | Err(anyhow!("no RAG engine has been configured")) [INFO] [stdout] 189 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/state/mod.rs:210:12 [INFO] [stdout] | [INFO] [stdout] 210 | if let Some(storage) = self.storages.get(name) { [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/agent/state/mod.rs:212:9 [INFO] [stdout] | [INFO] [stdout] 212 | } 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] 210 ~ match self.storages.get(name) { Some(storage) => { [INFO] [stdout] 211 | Ok(storage) [INFO] [stdout] 212 ~ } _ => { [INFO] [stdout] 213 | Err(anyhow!("storage {name} not found")) [INFO] [stdout] 214 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/state/mod.rs:218:12 [INFO] [stdout] | [INFO] [stdout] 218 | if let Some(storage) = self.storages.get_mut(name) { [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/agent/state/mod.rs:220:9 [INFO] [stdout] | [INFO] [stdout] 220 | } 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] 218 ~ match self.storages.get_mut(name) { Some(storage) => { [INFO] [stdout] 219 | Ok(storage) [INFO] [stdout] 220 ~ } _ => { [INFO] [stdout] 221 | Err(anyhow!("storage {name} not found")) [INFO] [stdout] 222 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/state/storage.rs:144:12 [INFO] [stdout] | [INFO] [stdout] 144 | if let Some(old) = self.inner.shift_remove(key) { [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/agent/state/storage.rs:154:9 [INFO] [stdout] | [INFO] [stdout] 154 | } 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] 144 ~ match self.inner.shift_remove(key) { Some(old) => { [INFO] [stdout] 145 | self.on_event(Event::StorageUpdate { [INFO] [stdout] ... [INFO] [stdout] 153 | Some(old.data) [INFO] [stdout] 154 ~ } _ => { [INFO] [stdout] 155 | None [INFO] [stdout] 156 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/state/storage.rs:182:12 [INFO] [stdout] | [INFO] [stdout] 182 | if let Some(old) = self.inner.shift_remove(&tag) { [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/agent/state/storage.rs:192:9 [INFO] [stdout] | [INFO] [stdout] 192 | } 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] 182 ~ match self.inner.shift_remove(&tag) { Some(old) => { [INFO] [stdout] 183 | self.on_event(Event::StorageUpdate { [INFO] [stdout] ... [INFO] [stdout] 191 | Some(old.data) [INFO] [stdout] 192 ~ } _ => { [INFO] [stdout] 193 | None [INFO] [stdout] 194 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/state/storage.rs:200:12 [INFO] [stdout] | [INFO] [stdout] 200 | if let Some(entry) = self.inner.get_mut(&tag) { [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/agent/state/storage.rs:213:9 [INFO] [stdout] | [INFO] [stdout] 213 | } 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] 200 ~ match self.inner.get_mut(&tag) { Some(entry) => { [INFO] [stdout] 201 | let prev = entry.complete; [INFO] [stdout] ... [INFO] [stdout] 212 | Some(prev) [INFO] [stdout] 213 ~ } _ => { [INFO] [stdout] 214 | None [INFO] [stdout] 215 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/state/storage.rs:221:12 [INFO] [stdout] | [INFO] [stdout] 221 | if let Some(entry) = self.inner.get_mut(&tag) { [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/agent/state/storage.rs:234:9 [INFO] [stdout] | [INFO] [stdout] 234 | } 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] 221 ~ match self.inner.get_mut(&tag) { Some(entry) => { [INFO] [stdout] 222 | let prev = entry.complete; [INFO] [stdout] ... [INFO] [stdout] 233 | Some(prev) [INFO] [stdout] 234 ~ } _ => { [INFO] [stdout] 235 | None [INFO] [stdout] 236 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/state/storage.rs:257:12 [INFO] [stdout] | [INFO] [stdout] 257 | if let Some(old) = self.inner.shift_remove(&tag) { [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/agent/state/storage.rs:266:9 [INFO] [stdout] | [INFO] [stdout] 266 | } 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] 257 ~ match self.inner.shift_remove(&tag) { Some(old) => { [INFO] [stdout] 258 | self.on_event(Event::StorageUpdate { [INFO] [stdout] ... [INFO] [stdout] 265 | Some(old.data) [INFO] [stdout] 266 ~ } _ => { [INFO] [stdout] 267 | None [INFO] [stdout] 268 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/task/tasklet.rs:147:12 [INFO] [stdout] | [INFO] [stdout] 147 | if let Ok(output) = output { [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/agent/task/tasklet.rs:199:9 [INFO] [stdout] | [INFO] [stdout] 199 | } 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] 147 ~ match output { Ok(output) => { [INFO] [stdout] 148 | let err = String::from_utf8_lossy(&output.stderr).trim().to_string(); [INFO] [stdout] ... [INFO] [stdout] 198 | } [INFO] [stdout] 199 ~ } _ => { [INFO] [stdout] 200 | let err = output.err().unwrap().to_string(); [INFO] [stdout] 201 | log::error!("{}", &err); [INFO] [stdout] 202 | Err(anyhow!(err)) [INFO] [stdout] 203 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/task/tasklet.rs:287:12 [INFO] [stdout] | [INFO] [stdout] 287 | if let Err(err) = canon { [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/agent/task/tasklet.rs:289:9 [INFO] [stdout] | [INFO] [stdout] 289 | } 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] 287 ~ match canon { Err(err) => { [INFO] [stdout] 288 | Err(anyhow!("could not read {filepath}: {err}")) [INFO] [stdout] 289 ~ } _ => { [INFO] [stdout] 290 | let canon = canon.unwrap(); [INFO] [stdout] ... [INFO] [stdout] 319 | Ok(tasklet) [INFO] [stdout] 320 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/task/variables.rs:66:15 [INFO] [stdout] | [INFO] [stdout] 66 | } else if let Some(cached) = var_cache.get(var_name) { [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/agent/task/variables.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 69 | } else if let Some(var_default) = var_default { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 66 ~ } else { match var_cache.get(var_name) { Some(cached) => { [INFO] [stdout] 67 | // get from cached [INFO] [stdout] 68 | cached.to_string() [INFO] [stdout] 69 ~ } _ => if let Some(var_default) = var_default { [INFO] [stdout] 70 | // get from default [INFO] [stdout] ... [INFO] [stdout] 77 | var_value [INFO] [stdout] 78 ~ }}}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/cli.rs:73:27 [INFO] [stdout] | [INFO] [stdout] 73 | let caps = if let Some(caps) = LOCAL_GENERATOR_PARSER.captures_iter(raw).next() { [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/cli.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | } 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] 73 ~ let caps = match LOCAL_GENERATOR_PARSER.captures_iter(raw).next() { Some(caps) => { [INFO] [stdout] 74 | caps [INFO] [stdout] 75 ~ } _ => { [INFO] [stdout] 76 | return Err(anyhow!("can't parse '{raw}' {what} string")); [INFO] [stdout] 77 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/cli.rs:101:27 [INFO] [stdout] | [INFO] [stdout] 101 | let caps = if let Some(caps) = PUBLIC_GENERATOR_PARSER.captures_iter(raw).next() { [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/cli.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | } 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] 101 ~ let caps = match PUBLIC_GENERATOR_PARSER.captures_iter(raw).next() { Some(caps) => { [INFO] [stdout] 102 | caps [INFO] [stdout] 103 ~ } _ => { [INFO] [stdout] 104 | return Err(anyhow!( [INFO] [stdout] 105 | "can't parse {raw} {what} string, invalid expression" [INFO] [stdout] 106 | )); [INFO] [stdout] 107 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/ui/text.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | while let Some(event) = events_rx.recv().await { [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/ui/text.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 132 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/ui/text.rs:27:24 [INFO] [stdout] | [INFO] [stdout] 27 | if let Err(e) = std::fs::write(prompt_path, data) { [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/ui/text.rs:29:21 [INFO] [stdout] | [INFO] [stdout] 29 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 27 ~ match std::fs::write(prompt_path, data) { Err(e) => { [INFO] [stdout] 28 | log::error!("error writing {}: {:?}", prompt_path, e); [INFO] [stdout] 29 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 35 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `nerve` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/agent/generator/mod.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[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/agent/generator/mod.rs:125:6 [INFO] [stderr] | [INFO] [stderr] 125 | ($name:expr_2021, $url:expr_2021, $port:expr_2021, $model_name:expr_2021, $context_window:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/agent/generator/mod.rs:125:23 [INFO] [stderr] | [INFO] [stderr] 125 | ($name:expr_2021, $url:expr_2021, $port:expr_2021, $model_name:expr_2021, $context_window:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/agent/generator/mod.rs:125:39 [INFO] [stderr] | [INFO] [stderr] 125 | ($name:expr_2021, $url:expr_2021, $port:expr_2021, $model_name:expr_2021, $context_window:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/agent/generator/mod.rs:125:56 [INFO] [stderr] | [INFO] [stderr] 125 | ($name:expr_2021, $url:expr_2021, $port:expr_2021, $model_name:expr_2021, $context_window:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/agent/generator/mod.rs:125:79 [INFO] [stderr] | [INFO] [stderr] 125 | ($name:expr_2021, $url:expr_2021, $port:expr_2021, $model_name:expr_2021, $context_window:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error: aborting due to 5 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/agent/generator/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | ($name:expr, $url:expr, $port:expr, $model_name:expr, $context_window:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 125 | ($name:expr_2021, $url:expr, $port:expr, $model_name:expr, $context_window:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/agent/generator/mod.rs:125:23 [INFO] [stdout] | [INFO] [stdout] 125 | ($name:expr, $url:expr, $port:expr, $model_name:expr, $context_window:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 125 | ($name:expr, $url:expr_2021, $port:expr, $model_name:expr, $context_window:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/agent/generator/mod.rs:125:35 [INFO] [stdout] | [INFO] [stdout] 125 | ($name:expr, $url:expr, $port:expr, $model_name:expr, $context_window:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 125 | ($name:expr, $url:expr, $port:expr_2021, $model_name:expr, $context_window:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/agent/generator/mod.rs:125:53 [INFO] [stdout] | [INFO] [stdout] 125 | ($name:expr, $url:expr, $port:expr, $model_name:expr, $context_window:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 125 | ($name:expr, $url:expr, $port:expr, $model_name:expr_2021, $context_window:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/agent/generator/mod.rs:125:75 [INFO] [stdout] | [INFO] [stdout] 125 | ($name:expr, $url:expr, $port:expr, $model_name:expr, $context_window:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 125 | ($name:expr, $url:expr, $port:expr, $model_name:expr, $context_window:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to deprecated safe function `std::env::set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/main.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | std::env::set_var("RUST_LOG", "info,openai_api_rust=warn"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #27970 [INFO] [stdout] = note: `--force-warn deprecated-safe-2024` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: you can wrap the call in an `unsafe` block if you can guarantee that the environment access only happens in single-threaded code [INFO] [stdout] | [INFO] [stdout] 30 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 31 ~ unsafe { std::env::set_var("RUST_LOG", "info,openai_api_rust=warn") }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RecallMemory` is never constructed [INFO] [stdout] --> src/agent/namespaces/memory/mod.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 97 | struct RecallMemory {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RecallMemory` has a derived impl for the trait `Default`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/main.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | if let Err(error) = agent.step().await { [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/main.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | } [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] 46 ~ match agent.step().await { Err(error) => { [INFO] [stdout] 47 | log::error!("{}", error.to_string()); [INFO] [stdout] 48 | return Err(error); [INFO] [stdout] 49 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/mod.rs:235:12 [INFO] [stdout] | [INFO] [stdout] 235 | if let Err(err) = ret { [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/agent/mod.rs:241:9 [INFO] [stdout] | [INFO] [stdout] 241 | } 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] 235 ~ match ret { Err(err) => { [INFO] [stdout] 236 | mut_state.metrics.errors.errored_actions += 1; [INFO] [stdout] ... [INFO] [stdout] 240 | error = Some(err.to_string()); [INFO] [stdout] 241 ~ } _ => { [INFO] [stdout] 242 | let ret = ret.unwrap(); [INFO] [stdout] ... [INFO] [stdout] 247 | result = ret; [INFO] [stdout] 248 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/mod.rs:313:20 [INFO] [stdout] | [INFO] [stdout] 313 | if let Err(err) = self.validate(&inv, &action) { [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/agent/mod.rs:316:17 [INFO] [stdout] | [INFO] [stdout] 316 | } 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] 313 ~ match self.validate(&inv, &action) { Err(err) => { [INFO] [stdout] 314 | self.on_invalid_action(inv.clone(), Some(err.to_string())) [INFO] [stdout] 315 | .await; [INFO] [stdout] 316 ~ } _ => { [INFO] [stdout] 317 | self.on_valid_action().await; [INFO] [stdout] ... [INFO] [stdout] 345 | } [INFO] [stdout] 346 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/mod.rs:320:38 [INFO] [stdout] | [INFO] [stdout] 320 | let timeout = if let Some(action_tm) = action.timeout().as_ref() { [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/agent/mod.rs:322:21 [INFO] [stdout] | [INFO] [stdout] 322 | } else if let Some(task_tm) = self.task_timeout.as_ref() { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 320 ~ let timeout = match action.timeout().as_ref() { Some(action_tm) => { [INFO] [stdout] 321 | *action_tm [INFO] [stdout] 322 ~ } _ => if let Some(task_tm) = self.task_timeout.as_ref() { [INFO] [stdout] 323 | *task_tm [INFO] [stdout] ... [INFO] [stdout] 326 | Duration::from_secs(60 * 60 * 24 * 30) [INFO] [stdout] 327 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/generator/mod.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | if let Some(caps) = RETRY_TIME_PARSER.captures_iter(error).next() { [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/agent/generator/mod.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | } else if CONN_RESET_PARSER.captures_iter(error).next().is_some() { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 73 ~ match RETRY_TIME_PARSER.captures_iter(error).next() { Some(caps) => { [INFO] [stdout] 74 | if caps.len() == 2 { [INFO] [stdout] ... [INFO] [stdout] 105 | } [INFO] [stdout] 106 ~ } _ => if CONN_RESET_PARSER.captures_iter(error).next().is_some() { [INFO] [stdout] 107 | let retry_time = Duration::from_secs(5); [INFO] [stdout] ... [INFO] [stdout] 115 | return true; [INFO] [stdout] 116 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/namespaces/filesystem/mod.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | if let Ok(paths) = ret { [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/agent/namespaces/filesystem/mod.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 111 | } 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] 84 ~ match ret { Ok(paths) => { [INFO] [stdout] 85 | let mut output = format!("Contents of {} :\n\n", &folder); [INFO] [stdout] ... [INFO] [stdout] 110 | Ok(Some(output)) [INFO] [stdout] 111 ~ } _ => { [INFO] [stdout] 112 | Err(anyhow!("can't read {}: {:?}", folder, ret)) [INFO] [stdout] 113 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/namespaces/filesystem/mod.rs:88:20 [INFO] [stdout] | [INFO] [stdout] 88 | if let Ok(entry) = path { [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/agent/namespaces/filesystem/mod.rs:103:17 [INFO] [stdout] | [INFO] [stdout] 103 | } 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] 88 ~ match path { Ok(entry) => { [INFO] [stdout] 89 | let full_path = entry.path().canonicalize().unwrap(); [INFO] [stdout] ... [INFO] [stdout] 102 | ); [INFO] [stdout] 103 ~ } _ => { [INFO] [stdout] 104 | log::error!("{:?}", path); [INFO] [stdout] 105 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/namespaces/filesystem/mod.rs:142:12 [INFO] [stdout] | [INFO] [stdout] 142 | if let Ok(contents) = ret { [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/agent/namespaces/filesystem/mod.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | } 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] 142 ~ match ret { Ok(contents) => { [INFO] [stdout] 143 | log::info!("read-file '{filepath}' -> {} bytes", contents.len()); [INFO] [stdout] 144 | Ok(Some(contents)) [INFO] [stdout] 145 ~ } _ => { [INFO] [stdout] 146 | let err = ret.err().unwrap(); [INFO] [stdout] 147 | Err(anyhow!(err)) [INFO] [stdout] 148 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/namespaces/http/mod.rs:92:34 [INFO] [stdout] | [INFO] [stdout] 92 | let mut http_target = if let Some(val) = lock.get_variable("HTTP_TARGET") { [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/agent/namespaces/http/mod.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | } 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] 92 ~ let mut http_target = match lock.get_variable("HTTP_TARGET") { Some(val) => { [INFO] [stdout] 93 | val.to_owned() [INFO] [stdout] 94 ~ } _ => { [INFO] [stdout] 95 | return Err(anyhow!("HTTP_TARGET not defined")); [INFO] [stdout] 96 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/namespaces/memory/mod.rs:126:12 [INFO] [stdout] | [INFO] [stdout] 126 | if let Some(memory) = state.lock().await.get_storage("memories")?.get_tagged(key) { [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/agent/namespaces/memory/mod.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | } 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] 126 ~ match state.lock().await.get_storage("memories")?.get_tagged(key) { Some(memory) => { [INFO] [stdout] 127 | Ok(Some(memory)) [INFO] [stdout] 128 ~ } _ => { [INFO] [stdout] 129 | Err(anyhow!("memory '{}' not found", key)) [INFO] [stdout] 130 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/serialization/xml/parsing.rs:109:12 [INFO] [stdout] | [INFO] [stdout] 109 | if let Ok(event) = event { [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/agent/serialization/xml/parsing.rs:147:9 [INFO] [stdout] | [INFO] [stdout] 147 | } 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] 109 ~ match event { Ok(event) => { [INFO] [stdout] 110 | log::debug!("{:?}", &event); [INFO] [stdout] ... [INFO] [stdout] 146 | } [INFO] [stdout] 147 ~ } _ => { [INFO] [stdout] 148 | break; [INFO] [stdout] 149 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/serialization/xml/parsing.rs:136:24 [INFO] [stdout] | [INFO] [stdout] 136 | if let Ok(inv) = ret { [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/agent/serialization/xml/parsing.rs:138:21 [INFO] [stdout] | [INFO] [stdout] 138 | } 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] 136 ~ match ret { Ok(inv) => { [INFO] [stdout] 137 | parsed.invocations.push(inv); [INFO] [stdout] 138 ~ } _ => { [INFO] [stdout] 139 | log::error!("{:?}", ret.err().unwrap()); [INFO] [stdout] 140 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/state/mod.rs:107:53 [INFO] [stdout] | [INFO] [stdout] 107 | let rag: Option = if let Some(config) = task.get_rag_config() { [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/agent/state/mod.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | } 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] 107 ~ let rag: Option = match task.get_rag_config() { Some(config) => { [INFO] [stdout] 108 | let mut v_store = mini_rag::VectorStore::new(embedder, config)?; [INFO] [stdout] ... [INFO] [stdout] 115 | Some(v_store) [INFO] [stdout] 116 ~ } _ => { [INFO] [stdout] 117 | None [INFO] [stdout] 118 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/state/mod.rs:185:12 [INFO] [stdout] | [INFO] [stdout] 185 | if let Some(rag) = &self.rag { [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/agent/state/mod.rs:187:9 [INFO] [stdout] | [INFO] [stdout] 187 | } 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] 185 ~ match &self.rag { Some(rag) => { [INFO] [stdout] 186 | rag.retrieve(query, top_k).await [INFO] [stdout] 187 ~ } _ => { [INFO] [stdout] 188 | Err(anyhow!("no RAG engine has been configured")) [INFO] [stdout] 189 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/state/mod.rs:210:12 [INFO] [stdout] | [INFO] [stdout] 210 | if let Some(storage) = self.storages.get(name) { [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/agent/state/mod.rs:212:9 [INFO] [stdout] | [INFO] [stdout] 212 | } 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] 210 ~ match self.storages.get(name) { Some(storage) => { [INFO] [stdout] 211 | Ok(storage) [INFO] [stdout] 212 ~ } _ => { [INFO] [stdout] 213 | Err(anyhow!("storage {name} not found")) [INFO] [stdout] 214 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/state/mod.rs:218:12 [INFO] [stdout] | [INFO] [stdout] 218 | if let Some(storage) = self.storages.get_mut(name) { [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/agent/state/mod.rs:220:9 [INFO] [stdout] | [INFO] [stdout] 220 | } 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] 218 ~ match self.storages.get_mut(name) { Some(storage) => { [INFO] [stdout] 219 | Ok(storage) [INFO] [stdout] 220 ~ } _ => { [INFO] [stdout] 221 | Err(anyhow!("storage {name} not found")) [INFO] [stdout] 222 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/state/storage.rs:144:12 [INFO] [stdout] | [INFO] [stdout] 144 | if let Some(old) = self.inner.shift_remove(key) { [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/agent/state/storage.rs:154:9 [INFO] [stdout] | [INFO] [stdout] 154 | } 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] 144 ~ match self.inner.shift_remove(key) { Some(old) => { [INFO] [stdout] 145 | self.on_event(Event::StorageUpdate { [INFO] [stdout] ... [INFO] [stdout] 153 | Some(old.data) [INFO] [stdout] 154 ~ } _ => { [INFO] [stdout] 155 | None [INFO] [stdout] 156 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/state/storage.rs:182:12 [INFO] [stdout] | [INFO] [stdout] 182 | if let Some(old) = self.inner.shift_remove(&tag) { [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/agent/state/storage.rs:192:9 [INFO] [stdout] | [INFO] [stdout] 192 | } 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] 182 ~ match self.inner.shift_remove(&tag) { Some(old) => { [INFO] [stdout] 183 | self.on_event(Event::StorageUpdate { [INFO] [stdout] ... [INFO] [stdout] 191 | Some(old.data) [INFO] [stdout] 192 ~ } _ => { [INFO] [stdout] 193 | None [INFO] [stdout] 194 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/state/storage.rs:200:12 [INFO] [stdout] | [INFO] [stdout] 200 | if let Some(entry) = self.inner.get_mut(&tag) { [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/agent/state/storage.rs:213:9 [INFO] [stdout] | [INFO] [stdout] 213 | } 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] 200 ~ match self.inner.get_mut(&tag) { Some(entry) => { [INFO] [stdout] 201 | let prev = entry.complete; [INFO] [stdout] ... [INFO] [stdout] 212 | Some(prev) [INFO] [stdout] 213 ~ } _ => { [INFO] [stdout] 214 | None [INFO] [stdout] 215 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/state/storage.rs:221:12 [INFO] [stdout] | [INFO] [stdout] 221 | if let Some(entry) = self.inner.get_mut(&tag) { [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/agent/state/storage.rs:234:9 [INFO] [stdout] | [INFO] [stdout] 234 | } 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] 221 ~ match self.inner.get_mut(&tag) { Some(entry) => { [INFO] [stdout] 222 | let prev = entry.complete; [INFO] [stdout] ... [INFO] [stdout] 233 | Some(prev) [INFO] [stdout] 234 ~ } _ => { [INFO] [stdout] 235 | None [INFO] [stdout] 236 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/state/storage.rs:257:12 [INFO] [stdout] | [INFO] [stdout] 257 | if let Some(old) = self.inner.shift_remove(&tag) { [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/agent/state/storage.rs:266:9 [INFO] [stdout] | [INFO] [stdout] 266 | } 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] 257 ~ match self.inner.shift_remove(&tag) { Some(old) => { [INFO] [stdout] 258 | self.on_event(Event::StorageUpdate { [INFO] [stdout] ... [INFO] [stdout] 265 | Some(old.data) [INFO] [stdout] 266 ~ } _ => { [INFO] [stdout] 267 | None [INFO] [stdout] 268 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/task/tasklet.rs:147:12 [INFO] [stdout] | [INFO] [stdout] 147 | if let Ok(output) = output { [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/agent/task/tasklet.rs:199:9 [INFO] [stdout] | [INFO] [stdout] 199 | } 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] 147 ~ match output { Ok(output) => { [INFO] [stdout] 148 | let err = String::from_utf8_lossy(&output.stderr).trim().to_string(); [INFO] [stdout] ... [INFO] [stdout] 198 | } [INFO] [stdout] 199 ~ } _ => { [INFO] [stdout] 200 | let err = output.err().unwrap().to_string(); [INFO] [stdout] 201 | log::error!("{}", &err); [INFO] [stdout] 202 | Err(anyhow!(err)) [INFO] [stdout] 203 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/task/tasklet.rs:287:12 [INFO] [stdout] | [INFO] [stdout] 287 | if let Err(err) = canon { [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/agent/task/tasklet.rs:289:9 [INFO] [stdout] | [INFO] [stdout] 289 | } 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] 287 ~ match canon { Err(err) => { [INFO] [stdout] 288 | Err(anyhow!("could not read {filepath}: {err}")) [INFO] [stdout] 289 ~ } _ => { [INFO] [stdout] 290 | let canon = canon.unwrap(); [INFO] [stdout] ... [INFO] [stdout] 319 | Ok(tasklet) [INFO] [stdout] 320 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/agent/task/variables.rs:66:15 [INFO] [stdout] | [INFO] [stdout] 66 | } else if let Some(cached) = var_cache.get(var_name) { [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/agent/task/variables.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 69 | } else if let Some(var_default) = var_default { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 66 ~ } else { match var_cache.get(var_name) { Some(cached) => { [INFO] [stdout] 67 | // get from cached [INFO] [stdout] 68 | cached.to_string() [INFO] [stdout] 69 ~ } _ => if let Some(var_default) = var_default { [INFO] [stdout] 70 | // get from default [INFO] [stdout] ... [INFO] [stdout] 77 | var_value [INFO] [stdout] 78 ~ }}}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/cli.rs:73:27 [INFO] [stdout] | [INFO] [stdout] 73 | let caps = if let Some(caps) = LOCAL_GENERATOR_PARSER.captures_iter(raw).next() { [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/cli.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | } 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] 73 ~ let caps = match LOCAL_GENERATOR_PARSER.captures_iter(raw).next() { Some(caps) => { [INFO] [stdout] 74 | caps [INFO] [stdout] 75 ~ } _ => { [INFO] [stdout] 76 | return Err(anyhow!("can't parse '{raw}' {what} string")); [INFO] [stdout] 77 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/cli.rs:101:27 [INFO] [stdout] | [INFO] [stdout] 101 | let caps = if let Some(caps) = PUBLIC_GENERATOR_PARSER.captures_iter(raw).next() { [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/cli.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | } 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] 101 ~ let caps = match PUBLIC_GENERATOR_PARSER.captures_iter(raw).next() { Some(caps) => { [INFO] [stdout] 102 | caps [INFO] [stdout] 103 ~ } _ => { [INFO] [stdout] 104 | return Err(anyhow!( [INFO] [stdout] 105 | "can't parse {raw} {what} string, invalid expression" [INFO] [stdout] 106 | )); [INFO] [stdout] 107 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/ui/text.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | while let Some(event) = events_rx.recv().await { [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/ui/text.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 132 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/ui/text.rs:27:24 [INFO] [stdout] | [INFO] [stdout] 27 | if let Err(e) = std::fs::write(prompt_path, data) { [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/ui/text.rs:29:21 [INFO] [stdout] | [INFO] [stdout] 29 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 27 ~ match std::fs::write(prompt_path, data) { Err(e) => { [INFO] [stdout] 28 | log::error!("error writing {}: {:?}", prompt_path, e); [INFO] [stdout] 29 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 35 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 18.65s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking nerve-ai v0.1.2 (/tmp/fixit) [INFO] [stdout] error[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/main.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | std::env::set_var("RUST_LOG", "info,openai_api_rust=warn"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/main.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | std::env::set_var("RUST_LOG", "info,openai_api_rust=warn"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `nerve-ai` (bin "nerve") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `nerve-ai` (bin "nerve" 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" "d8c47c2449ddf3891745621d7ca298e76c49239d3a3a2f638e72afab4400d6a0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d8c47c2449ddf3891745621d7ca298e76c49239d3a3a2f638e72afab4400d6a0", kill_on_drop: false }` [INFO] [stdout] d8c47c2449ddf3891745621d7ca298e76c49239d3a3a2f638e72afab4400d6a0