[INFO] fetching crate ripgrep_all 0.10.6... [INFO] checking ripgrep_all-0.10.6 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate ripgrep_all 0.10.6 into /workspace/builds/worker-3-tc2/source [INFO] validating manifest of crates.io crate ripgrep_all 0.10.6 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] removed /workspace/builds/worker-3-tc2/source/rust-toolchain.toml [INFO] started tweaking crates.io crate ripgrep_all 0.10.6 [INFO] finished tweaking crates.io crate ripgrep_all 0.10.6 [INFO] tweaked toml for crates.io crate ripgrep_all 0.10.6 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate crates.io crate ripgrep_all 0.10.6 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-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 486ccffafaefa7f7608aaad494f68d61534a53c9813dc7d2fe500a0f079e7c20 [INFO] running `Command { std: "docker" "start" "-a" "486ccffafaefa7f7608aaad494f68d61534a53c9813dc7d2fe500a0f079e7c20", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "486ccffafaefa7f7608aaad494f68d61534a53c9813dc7d2fe500a0f079e7c20", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "486ccffafaefa7f7608aaad494f68d61534a53c9813dc7d2fe500a0f079e7c20", kill_on_drop: false }` [INFO] [stdout] 486ccffafaefa7f7608aaad494f68d61534a53c9813dc7d2fe500a0f079e7c20 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 6756ae0ba6c7865694df7b3e7299a2965defcde0f79cda8114f2514767ec5aef [INFO] running `Command { std: "docker" "start" "-a" "6756ae0ba6c7865694df7b3e7299a2965defcde0f79cda8114f2514767ec5aef", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling libc v0.2.152 [INFO] [stderr] Compiling proc-macro2 v1.0.76 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling pkg-config v0.3.28 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Checking smallvec v1.12.0 [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Checking bitflags v2.4.1 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling rustix v0.38.30 [INFO] [stderr] Compiling ahash v0.8.7 [INFO] [stderr] Checking linux-raw-sys v0.4.12 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Checking zerocopy v0.7.32 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Checking mio v0.8.10 [INFO] [stderr] Compiling jobserver v0.1.27 [INFO] [stderr] Checking socket2 v0.5.5 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking allocator-api2 v0.2.16 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Checking miniz_oxide v0.7.1 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling serde v1.0.195 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling zstd-safe v5.0.2+zstd.1.5.2 [INFO] [stderr] Checking unicode-width v0.1.11 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Checking alloc-no-stdlib v2.0.4 [INFO] [stderr] Compiling zstd-safe v7.0.0 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Checking alloc-stdlib v0.2.2 [INFO] [stderr] Checking anstyle-parse v0.2.3 [INFO] [stderr] Checking flate2 v1.0.28 [INFO] [stderr] Compiling zstd-sys v2.0.9+zstd.1.5.5 [INFO] [stderr] Compiling lzma-sys v0.1.20 [INFO] [stderr] Compiling bzip2-sys v0.1.11+1.0.8 [INFO] [stderr] Compiling libsqlite3-sys v0.27.0 [INFO] [stderr] Compiling backtrace v0.3.69 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Checking xz2 v0.1.7 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Checking encoding_rs v0.8.33 [INFO] [stderr] Compiling thiserror v1.0.56 [INFO] [stderr] Checking anstyle-query v1.0.2 [INFO] [stderr] Compiling unicode-segmentation v1.10.1 [INFO] [stderr] Checking anstyle v1.0.4 [INFO] [stderr] Compiling serde_json v1.0.111 [INFO] [stderr] Checking gimli v0.28.1 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Checking anstream v0.6.7 [INFO] [stderr] Checking indexmap v2.1.0 [INFO] [stderr] Checking terminal_size v0.3.0 [INFO] [stderr] Checking brotli-decompressor v2.5.1 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking hashlink v0.8.4 [INFO] [stderr] Compiling serde_derive_internals v0.26.0 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling serde_derive v1.0.195 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Checking tokio v1.35.1 [INFO] [stderr] Compiling async-stream-impl v0.3.5 [INFO] [stderr] Checking regex-automata v0.4.3 [INFO] [stderr] Checking addr2line v0.21.0 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Compiling thiserror-impl v1.0.56 [INFO] [stderr] Compiling pin-project-internal v1.1.3 [INFO] [stderr] Checking crossbeam-channel v0.5.11 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking object v0.32.2 [INFO] [stderr] Checking iana-time-zone v0.1.59 [INFO] [stderr] Checking base64 v0.13.1 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Checking dyn-clone v1.0.16 [INFO] [stderr] Compiling async-trait v0.1.77 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking clap_lex v0.6.0 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling anyhow v1.0.79 [INFO] [stderr] Checking itoa v1.0.10 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Compiling schemars v0.8.16 [INFO] [stderr] Checking fixedbitset v0.4.2 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking fallible-streaming-iterator v0.1.9 [INFO] [stderr] Checking ryu v1.0.16 [INFO] [stderr] Checking fallible-iterator v0.3.0 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking rustc-demangle v0.1.23 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking clap_builder v4.4.17 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Checking petgraph v0.6.4 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Checking tokio-stream v0.1.14 [INFO] [stderr] Checking charset v0.1.3 [INFO] [stderr] Checking regex v1.10.2 [INFO] [stderr] Checking chrono v0.4.31 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking pin-project v1.1.3 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Compiling dyn-clonable-impl v0.9.0 [INFO] [stderr] Compiling schemars_derive v0.8.16 [INFO] [stderr] Checking async-stream v0.3.5 [INFO] [stderr] Checking brotli v3.4.0 [INFO] [stderr] Checking num v0.2.1 [INFO] [stderr] Checking generic-array v0.12.4 [INFO] [stderr] Checking xattr v1.3.1 [INFO] [stderr] Checking is-terminal v0.4.10 [INFO] [stderr] Checking getopts v0.2.21 [INFO] [stderr] Checking crossbeam-queue v0.3.11 [INFO] [stderr] Checking dirs-sys-next v0.1.2 [INFO] [stderr] Checking filetime v0.2.23 [INFO] [stderr] Checking deflate64 v0.1.6 [INFO] [stderr] Checking quoted_printable v0.4.8 [INFO] [stderr] Checking data-encoding v2.5.0 [INFO] [stderr] Checking fastrand v2.0.1 [INFO] [stderr] Checking bytecount v0.6.7 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Checking tree_magic_mini v3.0.3 [INFO] [stderr] Checking tempfile v3.9.0 [INFO] [stderr] Checking mailparse v0.14.0 [INFO] [stderr] Checking tokio-tar v0.3.1 [INFO] [stderr] Checking env_logger v0.10.1 [INFO] [stderr] Checking crossbeam v0.8.4 [INFO] [stderr] Checking structopt v0.3.26 [INFO] [stderr] Checking directories-next v2.0.0 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Checking pretty-bytes v0.2.2 [INFO] [stderr] Checking size_format v1.0.2 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking dyn-clonable v0.9.0 [INFO] [stderr] Checking clap v4.4.17 [INFO] [stderr] Checking rusqlite v0.30.0 [INFO] [stderr] Checking encoding_rs_io v0.1.7 [INFO] [stderr] Checking path-clean v1.0.1 [INFO] [stderr] Checking mime2ext v0.1.52 [INFO] [stderr] Checking glob v0.3.1 [INFO] [stderr] Checking json_comments v0.2.2 [INFO] [stderr] Checking yansi v0.5.1 [INFO] [stderr] Checking diff v0.1.13 [INFO] [stderr] Checking tokio-test v0.4.3 [INFO] [stderr] Compiling async-recursion v1.0.5 [INFO] [stderr] Compiling ctor v0.2.6 [INFO] [stderr] Checking pretty_assertions v1.4.0 [INFO] [stderr] Checking tokio-rusqlite v0.5.0 [INFO] [stderr] Checking bzip2 v0.4.4 [INFO] [stderr] Checking zstd v0.11.2+zstd.1.5.2 [INFO] [stderr] Checking zstd v0.13.0 [INFO] [stderr] Checking async-compression v0.3.15 [INFO] [stderr] Checking async-compression v0.4.5 [INFO] [stderr] Checking async_zip v0.0.12 [INFO] [stderr] Checking ripgrep_all v0.10.6 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `ripgrep_all` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/adapters.rs [INFO] [stderr] * src/adapters/writing.rs [INFO] [stderr] * src/expand.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/adapters/writing.rs:20:6 [INFO] [stderr] | [INFO] [stderr] 20 | ($dst: 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/adapters/writing.rs:25:6 [INFO] [stderr] | [INFO] [stderr] 25 | ($dst: expr_2021, $fmt: 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/adapters/writing.rs:25:23 [INFO] [stderr] | [INFO] [stderr] 25 | ($dst: expr_2021, $fmt: 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/adapters/writing.rs:33:6 [INFO] [stderr] | [INFO] [stderr] 33 | ($dst: expr_2021, $fmt: expr_2021, $($arg: tt)*) => { [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/adapters/writing.rs:33:23 [INFO] [stderr] | [INFO] [stderr] 33 | ($dst: expr_2021, $fmt: expr_2021, $($arg: tt)*) => { [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] warning: elided lifetime has a name [INFO] [stderr] --> src/adapters.rs:54:37 [INFO] [stderr] | [INFO] [stderr] 51 | pub fn get_matchers<'a>( [INFO] [stderr] | -- lifetime `'a` declared here [INFO] [stderr] ... [INFO] [stderr] 54 | ) -> Box> + 'a> { [INFO] [stderr] | ^ this elided lifetime gets resolved as `'a` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `perf-literal` [INFO] [stderr] --> src/expand.rs:8:15 [INFO] [stderr] | [INFO] [stderr] 8 | #[cfg(not(feature = "perf-literal"))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = help: consider adding `perf-literal` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `perf-literal` [INFO] [stderr] --> src/expand.rs:13:11 [INFO] [stderr] | [INFO] [stderr] 13 | #[cfg(feature = "perf-literal")] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = help: consider adding `perf-literal` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] error: aborting due to 5 previous errors; 3 warnings emitted [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/adapters/writing.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | ($dst: 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] 20 | ($dst: expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/adapters/writing.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | ($dst: expr, $fmt: 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] 25 | ($dst: expr_2021, $fmt: 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/adapters/writing.rs:25:24 [INFO] [stdout] | [INFO] [stdout] 25 | ($dst: expr, $fmt: 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] 25 | ($dst: expr, $fmt: expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/adapters/writing.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | ($dst: expr, $fmt: expr, $($arg: tt)*) => { [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] 33 | ($dst: expr_2021, $fmt: expr, $($arg: tt)*) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/adapters/writing.rs:33:24 [INFO] [stdout] | [INFO] [stdout] 33 | ($dst: expr, $fmt: expr, $($arg: tt)*) => { [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] 33 | ($dst: expr, $fmt: expr_2021, $($arg: tt)*) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/adapters.rs:54:37 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn get_matchers<'a>( [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 54 | ) -> Box> + 'a> { [INFO] [stdout] | ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `perf-literal` [INFO] [stdout] --> src/expand.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | #[cfg(not(feature = "perf-literal"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `perf-literal` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `perf-literal` [INFO] [stdout] --> src/expand.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | #[cfg(feature = "perf-literal")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `perf-literal` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [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/config.rs:366:13 [INFO] [stdout] | [INFO] [stdout] 366 | std::env::set_var(RGA_CONFIG, merged_config.to_string()); [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] 366 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 367 ~ unsafe { std::env::set_var(RGA_CONFIG, merged_config.to_string()) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/adapters/ffmpeg.rs:132:19 [INFO] [stdout] | [INFO] [stdout] 132 | while let Some(line) = lines.next_line().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/adapters/ffmpeg.rs:135:13 [INFO] [stdout] | [INFO] [stdout] 135 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/adapters/ffmpeg.rs:161:23 [INFO] [stdout] | [INFO] [stdout] 161 | while let Some(line) = lines.next_line().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/adapters/ffmpeg.rs:170:17 [INFO] [stdout] | [INFO] [stdout] 170 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl tokio::io::AsyncRead + Send` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/adapters/postproc.rs:132:74 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn postproc_prefix(line_prefix: &str, inp: impl AsyncRead + Send) -> impl AsyncRead + Send { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/adapters/postproc.rs:132:37 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn postproc_prefix(line_prefix: &str, inp: impl AsyncRead + Send) -> impl AsyncRead + Send { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/adapters/sqlite.rs:105:15 [INFO] [stdout] | [INFO] [stdout] 105 | while let Some(row) = z.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/adapters/sqlite.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/adapters/tar.rs:69:19 [INFO] [stdout] | [INFO] [stdout] 69 | while let Some(entry) = entries.next().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/adapters/tar.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/caching_writer.rs:35:15 [INFO] [stdout] | [INFO] [stdout] 35 | while let Some(bytes) = stream.next().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/caching_writer.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/caching_writer.rs:38:20 [INFO] [stdout] | [INFO] [stdout] 38 | if let Some(writer) = zstd_writer.as_mut() { [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/caching_writer.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 48 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 38 ~ match zstd_writer.as_mut() { Some(writer) => { [INFO] [stdout] 39 | writer.write_all(bytes).await?; [INFO] [stdout] ... [INFO] [stdout] 47 | } [INFO] [stdout] 48 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/caching_writer.rs:55:16 [INFO] [stdout] | [INFO] [stdout] 55 | if let Some(mut writer) = zstd_writer.take() { [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/caching_writer.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | } 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] 55 ~ match zstd_writer.take() { Some(mut writer) => { [INFO] [stdout] 56 | writer.shutdown().await?; [INFO] [stdout] ... [INFO] [stdout] 65 | } [INFO] [stdout] 66 ~ } _ => { [INFO] [stdout] 67 | (bytes_written, None) [INFO] [stdout] 68 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Fn(matching::FileMeta) -> std::option::Option<(Arc<(dyn adapters::FileAdapter + 'static)>, matching::FileMatcher)>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/matching.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | ) -> Result Option<(Arc, FileMatcher)>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/matching.rs:57:15 [INFO] [stdout] | [INFO] [stdout] 57 | adapters: &[Arc], [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 59 | ) -> Result Option<(Arc, FileMatcher)> + use<>> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/bin/rga-preproc.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `ripgrep_all` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/adapters.rs [INFO] [stderr] * src/adapters/writing.rs [INFO] [stderr] * src/expand.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/adapters/writing.rs:20:6 [INFO] [stderr] | [INFO] [stderr] 20 | ($dst: 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/adapters/writing.rs:25:6 [INFO] [stderr] | [INFO] [stderr] 25 | ($dst: expr_2021, $fmt: 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/adapters/writing.rs:25:23 [INFO] [stderr] | [INFO] [stderr] 25 | ($dst: expr_2021, $fmt: 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/adapters/writing.rs:33:6 [INFO] [stderr] | [INFO] [stderr] 33 | ($dst: expr_2021, $fmt: expr_2021, $($arg: tt)*) => { [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/adapters/writing.rs:33:23 [INFO] [stderr] | [INFO] [stderr] 33 | ($dst: expr_2021, $fmt: expr_2021, $($arg: tt)*) => { [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] warning: elided lifetime has a name [INFO] [stderr] --> src/adapters.rs:54:37 [INFO] [stderr] | [INFO] [stderr] 51 | pub fn get_matchers<'a>( [INFO] [stderr] | -- lifetime `'a` declared here [INFO] [stderr] ... [INFO] [stderr] 54 | ) -> Box> + 'a> { [INFO] [stderr] | ^ this elided lifetime gets resolved as `'a` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `perf-literal` [INFO] [stderr] --> src/expand.rs:8:15 [INFO] [stderr] | [INFO] [stderr] 8 | #[cfg(not(feature = "perf-literal"))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = help: consider adding `perf-literal` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `perf-literal` [INFO] [stderr] --> src/expand.rs:13:11 [INFO] [stderr] | [INFO] [stderr] 13 | #[cfg(feature = "perf-literal")] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = help: consider adding `perf-literal` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/adapters/writing.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | ($dst: 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] 20 | ($dst: expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: aborting due to 5 previous errors; 3 warnings emitted [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/adapters/writing.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | ($dst: expr, $fmt: 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] 25 | ($dst: expr_2021, $fmt: expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/adapters/writing.rs:25:24 [INFO] [stdout] | [INFO] [stdout] 25 | ($dst: expr, $fmt: 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] 25 | ($dst: expr, $fmt: expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [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/adapters/writing.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | ($dst: expr, $fmt: expr, $($arg: tt)*) => { [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] 33 | ($dst: expr_2021, $fmt: expr, $($arg: tt)*) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/adapters/writing.rs:33:24 [INFO] [stdout] | [INFO] [stdout] 33 | ($dst: expr, $fmt: expr, $($arg: tt)*) => { [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] 33 | ($dst: expr, $fmt: expr_2021, $($arg: tt)*) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/adapters.rs:54:37 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn get_matchers<'a>( [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 54 | ) -> Box> + 'a> { [INFO] [stdout] | ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `perf-literal` [INFO] [stdout] --> src/expand.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | #[cfg(not(feature = "perf-literal"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `perf-literal` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `perf-literal` [INFO] [stdout] --> src/expand.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | #[cfg(feature = "perf-literal")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `perf-literal` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [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/config.rs:366:13 [INFO] [stdout] | [INFO] [stdout] 366 | std::env::set_var(RGA_CONFIG, merged_config.to_string()); [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] 366 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 367 ~ unsafe { std::env::set_var(RGA_CONFIG, merged_config.to_string()) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/adapters/ffmpeg.rs:132:19 [INFO] [stdout] | [INFO] [stdout] 132 | while let Some(line) = lines.next_line().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/adapters/ffmpeg.rs:135:13 [INFO] [stdout] | [INFO] [stdout] 135 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/adapters/ffmpeg.rs:161:23 [INFO] [stdout] | [INFO] [stdout] 161 | while let Some(line) = lines.next_line().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/adapters/ffmpeg.rs:170:17 [INFO] [stdout] | [INFO] [stdout] 170 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/adapters/mbox.rs:148:15 [INFO] [stdout] | [INFO] [stdout] 148 | while let Some(file) = r.next().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/adapters/mbox.rs:167:9 [INFO] [stdout] | [INFO] [stdout] 167 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/adapters/mbox.rs:181:15 [INFO] [stdout] | [INFO] [stdout] 181 | while let Some(file) = r.next().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/adapters/mbox.rs:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/adapters/mbox.rs:207:15 [INFO] [stdout] | [INFO] [stdout] 207 | while let Some(file) = r.next().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/adapters/mbox.rs:234:9 [INFO] [stdout] | [INFO] [stdout] 234 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl tokio::io::AsyncRead + Send` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/adapters/postproc.rs:132:74 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn postproc_prefix(line_prefix: &str, inp: impl AsyncRead + Send) -> impl AsyncRead + Send { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/adapters/postproc.rs:132:37 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn postproc_prefix(line_prefix: &str, inp: impl AsyncRead + Send) -> impl AsyncRead + Send { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/adapters/sqlite.rs:105:15 [INFO] [stdout] | [INFO] [stdout] 105 | while let Some(row) = z.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/adapters/sqlite.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/adapters/tar.rs:69:19 [INFO] [stdout] | [INFO] [stdout] 69 | while let Some(entry) = entries.next().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/adapters/tar.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/caching_writer.rs:35:15 [INFO] [stdout] | [INFO] [stdout] 35 | while let Some(bytes) = stream.next().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/caching_writer.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/caching_writer.rs:38:20 [INFO] [stdout] | [INFO] [stdout] 38 | if let Some(writer) = zstd_writer.as_mut() { [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/caching_writer.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 48 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 38 ~ match zstd_writer.as_mut() { Some(writer) => { [INFO] [stdout] 39 | writer.write_all(bytes).await?; [INFO] [stdout] ... [INFO] [stdout] 47 | } [INFO] [stdout] 48 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/caching_writer.rs:55:16 [INFO] [stdout] | [INFO] [stdout] 55 | if let Some(mut writer) = zstd_writer.take() { [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/caching_writer.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | } 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] 55 ~ match zstd_writer.take() { Some(mut writer) => { [INFO] [stdout] 56 | writer.shutdown().await?; [INFO] [stdout] ... [INFO] [stdout] 65 | } [INFO] [stdout] 66 ~ } _ => { [INFO] [stdout] 67 | (bytes_written, None) [INFO] [stdout] 68 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Fn(matching::FileMeta) -> std::option::Option<(Arc<(dyn adapters::FileAdapter + 'static)>, matching::FileMatcher)>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/matching.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | ) -> Result Option<(Arc, FileMatcher)>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/matching.rs:57:15 [INFO] [stdout] | [INFO] [stdout] 57 | adapters: &[Arc], [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 59 | ) -> Result Option<(Arc, FileMatcher)> + use<>> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/bin/rga-fzf.rs from 2021 edition to 2024 [INFO] [stderr] Migrating src/bin/rga-fzf-open.rs from 2021 edition to 2024 [INFO] [stderr] Migrating src/bin/rga.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/bin/rga.rs (2 fixes) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 05s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking ripgrep_all v0.10.6 (/tmp/fixit) [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/adapters.rs:54:37 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn get_matchers<'a>( [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 54 | ) -> Box> + 'a> { [INFO] [stdout] | ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `perf-literal` [INFO] [stdout] --> src/expand.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | #[cfg(not(feature = "perf-literal"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `perf-literal` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `perf-literal` [INFO] [stdout] --> src/expand.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | #[cfg(feature = "perf-literal")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `perf-literal` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/adapters.rs:54:37 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn get_matchers<'a>( [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 54 | ) -> Box> + 'a> { [INFO] [stdout] | ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `perf-literal` [INFO] [stdout] --> src/expand.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | #[cfg(not(feature = "perf-literal"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `perf-literal` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `perf-literal` [INFO] [stdout] --> src/expand.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | #[cfg(feature = "perf-literal")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `perf-literal` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `active_adapters` because it is borrowed [INFO] [stdout] --> src/preproc.rs:58:20 [INFO] [stdout] | [INFO] [stdout] 35 | let active_adapters = get_adapters_filtered(config.custom_adapters.clone(), &config.adapters)?; [INFO] [stdout] | --------------- binding `active_adapters` declared here [INFO] [stdout] 36 | let adapters = adapter_matcher(&active_adapters, config.accurate)?; [INFO] [stdout] | ---------------- borrow of `active_adapters` occurs here [INFO] [stdout] ... [INFO] [stdout] 58 | Ok(adapter.map(|e| (e.0, e.1, active_adapters))) [INFO] [stdout] | ^^^ --------------- move occurs due to use in closure [INFO] [stdout] | | [INFO] [stdout] | move out of `active_adapters` occurs here [INFO] [stdout] 59 | } [INFO] [stdout] | - borrow might be used here, when `adapters` is dropped and runs the destructor for type `impl Fn(matching::FileMeta) -> std::option::Option<(Arc<(dyn adapters::FileAdapter + 'static)>, matching::FileMatcher)>` [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 36 | let adapters = adapter_matcher(&active_adapters.clone(), config.accurate)?; [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `ai.config.cache.path.0` does not live long enough [INFO] [stdout] --> src/preproc.rs:150:38 [INFO] [stdout] | [INFO] [stdout] 131 | ai: AdaptInfo, [INFO] [stdout] | -- binding `ai` declared here [INFO] [stdout] ... [INFO] [stdout] 150 | Some(open_cache_db(Path::new(&ai.config.cache.path.0)).await?) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] ... [INFO] [stdout] 174 | / Box::new(move |(uncompressed_size, compressed)| { [INFO] [stdout] 175 | | Box::pin(async move { [INFO] [stdout] 176 | | debug!( [INFO] [stdout] 177 | | "uncompressed output: {}", [INFO] [stdout] ... | [INFO] [stdout] 188 | | }) [INFO] [stdout] 189 | | }), [INFO] [stdout] | |__________________- cast requires that `ai.config.cache.path.0` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 195 | } [INFO] [stdout] | - `ai.config.cache.path.0` dropped here while still borrowed [INFO] [stdout] | [INFO] [stdout] = note: due to object lifetime defaults, `Box>)) -> std::pin::Pin> + Send>> + Send>` actually means `Box<(dyn FnOnce((u64, std::option::Option>)) -> std::pin::Pin> + Send>> + Send + 'static)>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `ai` because it is borrowed [INFO] [stdout] --> src/preproc.rs:168:70 [INFO] [stdout] | [INFO] [stdout] 131 | ai: AdaptInfo, [INFO] [stdout] | -- binding `ai` declared here [INFO] [stdout] ... [INFO] [stdout] 150 | Some(open_cache_db(Path::new(&ai.config.cache.path.0)).await?) [INFO] [stdout] | ----------------------- borrow of `ai.config.cache.path.0` occurs here [INFO] [stdout] ... [INFO] [stdout] 168 | let inp = loop_adapt(adapter.as_ref(), detection_reason, ai).await?; [INFO] [stdout] | ^^ move out of `ai` occurs here [INFO] [stdout] ... [INFO] [stdout] 174 | / Box::new(move |(uncompressed_size, compressed)| { [INFO] [stdout] 175 | | Box::pin(async move { [INFO] [stdout] 176 | | debug!( [INFO] [stdout] 177 | | "uncompressed output: {}", [INFO] [stdout] ... | [INFO] [stdout] 188 | | }) [INFO] [stdout] 189 | | }), [INFO] [stdout] | |__________________- cast requires that `ai.config.cache.path.0` is borrowed for `'static` [INFO] [stdout] | [INFO] [stdout] = note: due to object lifetime defaults, `Box>)) -> std::pin::Pin> + Send>> + Send>` actually means `Box<(dyn FnOnce((u64, std::option::Option>)) -> std::pin::Pin> + Send>> + Send + 'static)>` [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 150 | Some(open_cache_db(Path::new(&ai.config.cache.path.0.clone())).await?) [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `active_adapters` because it is borrowed [INFO] [stdout] --> src/preproc.rs:58:20 [INFO] [stdout] | [INFO] [stdout] 35 | let active_adapters = get_adapters_filtered(config.custom_adapters.clone(), &config.adapters)?; [INFO] [stdout] | --------------- binding `active_adapters` declared here [INFO] [stdout] 36 | let adapters = adapter_matcher(&active_adapters, config.accurate)?; [INFO] [stdout] | ---------------- borrow of `active_adapters` occurs here [INFO] [stdout] ... [INFO] [stdout] 58 | Ok(adapter.map(|e| (e.0, e.1, active_adapters))) [INFO] [stdout] | ^^^ --------------- move occurs due to use in closure [INFO] [stdout] | | [INFO] [stdout] | move out of `active_adapters` occurs here [INFO] [stdout] 59 | } [INFO] [stdout] | - borrow might be used here, when `adapters` is dropped and runs the destructor for type `impl Fn(matching::FileMeta) -> std::option::Option<(Arc<(dyn adapters::FileAdapter + 'static)>, matching::FileMatcher)>` [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 36 | let adapters = adapter_matcher(&active_adapters.clone(), config.accurate)?; [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `ai.config.cache.path.0` does not live long enough [INFO] [stdout] --> src/preproc.rs:150:38 [INFO] [stdout] | [INFO] [stdout] 131 | ai: AdaptInfo, [INFO] [stdout] | -- binding `ai` declared here [INFO] [stdout] ... [INFO] [stdout] 150 | Some(open_cache_db(Path::new(&ai.config.cache.path.0)).await?) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] ... [INFO] [stdout] 174 | / Box::new(move |(uncompressed_size, compressed)| { [INFO] [stdout] 175 | | Box::pin(async move { [INFO] [stdout] 176 | | debug!( [INFO] [stdout] 177 | | "uncompressed output: {}", [INFO] [stdout] ... | [INFO] [stdout] 188 | | }) [INFO] [stdout] 189 | | }), [INFO] [stdout] | |__________________- cast requires that `ai.config.cache.path.0` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 195 | } [INFO] [stdout] | - `ai.config.cache.path.0` dropped here while still borrowed [INFO] [stdout] | [INFO] [stdout] = note: due to object lifetime defaults, `Box>)) -> std::pin::Pin> + Send>> + Send>` actually means `Box<(dyn FnOnce((u64, std::option::Option>)) -> std::pin::Pin> + Send>> + Send + 'static)>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `ai` because it is borrowed [INFO] [stdout] --> src/preproc.rs:168:70 [INFO] [stdout] | [INFO] [stdout] 131 | ai: AdaptInfo, [INFO] [stdout] | -- binding `ai` declared here [INFO] [stdout] ... [INFO] [stdout] 150 | Some(open_cache_db(Path::new(&ai.config.cache.path.0)).await?) [INFO] [stdout] | ----------------------- borrow of `ai.config.cache.path.0` occurs here [INFO] [stdout] ... [INFO] [stdout] 168 | let inp = loop_adapt(adapter.as_ref(), detection_reason, ai).await?; [INFO] [stdout] | ^^ move out of `ai` occurs here [INFO] [stdout] ... [INFO] [stdout] 174 | / Box::new(move |(uncompressed_size, compressed)| { [INFO] [stdout] 175 | | Box::pin(async move { [INFO] [stdout] 176 | | debug!( [INFO] [stdout] 177 | | "uncompressed output: {}", [INFO] [stdout] ... | [INFO] [stdout] 188 | | }) [INFO] [stdout] 189 | | }), [INFO] [stdout] | |__________________- cast requires that `ai.config.cache.path.0` is borrowed for `'static` [INFO] [stdout] | [INFO] [stdout] = note: due to object lifetime defaults, `Box>)) -> std::pin::Pin> + Send>> + Send>` actually means `Box<(dyn FnOnce((u64, std::option::Option>)) -> std::pin::Pin> + Send>> + Send + 'static)>` [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 150 | Some(open_cache_db(Path::new(&ai.config.cache.path.0.clone())).await?) [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `a.line_prefix` does not live long enough [INFO] [stdout] --> src/adapters/postproc.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 52 | a: super::AdaptInfo, [INFO] [stdout] | - binding `a` declared here [INFO] [stdout] ... [INFO] [stdout] 56 | &a.line_prefix, [INFO] [stdout] | ^^^^^^^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] ... [INFO] [stdout] 61 | inp: Box::pin(read), [INFO] [stdout] | -------------- cast requires that `a.line_prefix` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 66 | } [INFO] [stdout] | - `a.line_prefix` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `a.line_prefix` because it is borrowed [INFO] [stdout] --> src/adapters/postproc.rs:60:18 [INFO] [stdout] | [INFO] [stdout] 52 | a: super::AdaptInfo, [INFO] [stdout] | - binding `a` declared here [INFO] [stdout] ... [INFO] [stdout] 56 | &a.line_prefix, [INFO] [stdout] | -------------- borrow of `a.line_prefix` occurs here [INFO] [stdout] ... [INFO] [stdout] 60 | let ai = AdaptInfo { [INFO] [stdout] | __________________^ [INFO] [stdout] 61 | | inp: Box::pin(read), [INFO] [stdout] | | -------------- cast requires that `a.line_prefix` is borrowed for `'static` [INFO] [stdout] 62 | | postprocess: false, [INFO] [stdout] 63 | | ..a [INFO] [stdout] 64 | | }; [INFO] [stdout] | |_________^ move out of `a.line_prefix` occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/config.rs:366:13 [INFO] [stdout] | [INFO] [stdout] 366 | std::env::set_var(RGA_CONFIG, merged_config.to_string()); [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[E0597]: `a.line_prefix` does not live long enough [INFO] [stdout] --> src/adapters/postproc.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 52 | a: super::AdaptInfo, [INFO] [stdout] | - binding `a` declared here [INFO] [stdout] ... [INFO] [stdout] 56 | &a.line_prefix, [INFO] [stdout] | ^^^^^^^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] ... [INFO] [stdout] 61 | inp: Box::pin(read), [INFO] [stdout] | -------------- cast requires that `a.line_prefix` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 66 | } [INFO] [stdout] | - `a.line_prefix` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `a.line_prefix` because it is borrowed [INFO] [stdout] --> src/adapters/postproc.rs:60:18 [INFO] [stdout] | [INFO] [stdout] 52 | a: super::AdaptInfo, [INFO] [stdout] | - binding `a` declared here [INFO] [stdout] ... [INFO] [stdout] 56 | &a.line_prefix, [INFO] [stdout] | -------------- borrow of `a.line_prefix` occurs here [INFO] [stdout] ... [INFO] [stdout] 60 | let ai = AdaptInfo { [INFO] [stdout] | __________________^ [INFO] [stdout] 61 | | inp: Box::pin(read), [INFO] [stdout] | | -------------- cast requires that `a.line_prefix` is borrowed for `'static` [INFO] [stdout] 62 | | postprocess: false, [INFO] [stdout] 63 | | ..a [INFO] [stdout] 64 | | }; [INFO] [stdout] | |_________^ move out of `a.line_prefix` occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0133, E0505, E0597. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ripgrep_all` (lib) due to 7 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/config.rs:366:13 [INFO] [stdout] | [INFO] [stdout] 366 | std::env::set_var(RGA_CONFIG, merged_config.to_string()); [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[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/preproc_cache.rs:204:34 [INFO] [stdout] | [INFO] [stdout] 204 | let _db = open_cache_db(&path.path().join("foo.sqlite3")).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] ... [INFO] [stdout] 207 | } [INFO] [stdout] | - borrow might be used here, when `_db` is dropped and runs the destructor for type `impl PreprocCache` [INFO] [stdout] | [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 204 ~ let binding = path.path().join("foo.sqlite3"); [INFO] [stdout] 205 ~ let _db = open_cache_db(&binding).await?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0133, E0505, E0597, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ripgrep_all` (lib test) due to 8 previous errors; 3 warnings emitted [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" "6756ae0ba6c7865694df7b3e7299a2965defcde0f79cda8114f2514767ec5aef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6756ae0ba6c7865694df7b3e7299a2965defcde0f79cda8114f2514767ec5aef", kill_on_drop: false }` [INFO] [stdout] 6756ae0ba6c7865694df7b3e7299a2965defcde0f79cda8114f2514767ec5aef