[INFO] fetching crate lmutils 0.2.21... [INFO] checking lmutils-0.2.21 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate lmutils 0.2.21 into /workspace/builds/worker-4-tc2/source [INFO] validating manifest of crates.io crate lmutils 0.2.21 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 lmutils 0.2.21 [INFO] finished tweaking crates.io crate lmutils 0.2.21 [INFO] tweaked toml for crates.io crate lmutils 0.2.21 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 263 packages to latest compatible versions [INFO] [stderr] Adding ahash v0.7.8 (available: v0.8.11) [INFO] [stderr] Adding bitflags v1.3.2 (available: v2.6.0) [INFO] [stderr] Adding bytecheck v0.6.12 (available: v0.8.0) [INFO] [stderr] Adding bytecheck_derive v0.6.12 (available: v0.8.0) [INFO] [stderr] Adding colorgrad v0.6.2 (available: v0.7.0) [INFO] [stderr] Adding core-foundation v0.9.4 (available: v0.10.0) [INFO] [stderr] Adding core-graphics v0.23.2 (available: v0.24.0) [INFO] [stderr] Adding core-graphics-types v0.1.3 (available: v0.2.0) [INFO] [stderr] Adding core-text v20.1.0 (available: v21.0.0) [INFO] [stderr] Adding csscolorparser v0.6.2 (available: v0.7.0) [INFO] [stderr] Adding diol v0.6.1 (available: v0.8.3) [INFO] [stderr] Adding equator v0.2.2 (available: v0.4.1) [INFO] [stderr] Adding equator-macro v0.2.1 (available: v0.4.1) [INFO] [stderr] Adding extendr-api v0.6.0 (available: v0.7.1) [INFO] [stderr] Adding extendr-macros v0.6.0 (available: v0.7.1) [INFO] [stderr] Adding freetype-sys v0.20.1 (available: v0.22.1) [INFO] [stderr] Adding generic-array v0.14.7 (available: v1.1.0) [INFO] [stderr] Adding gif v0.12.0 (available: v0.13.1) [INFO] [stderr] Adding half v1.8.3 (available: v2.4.1) [INFO] [stderr] Adding hashbrown v0.12.3 (available: v0.14.5) [INFO] [stderr] Adding image v0.24.9 (available: v0.25.2) [INFO] [stderr] Adding libR-sys v0.6.0 (available: v0.7.1) [INFO] [stderr] Adding matchers v0.1.0 (available: v0.2.0) [INFO] [stderr] Adding miniz_oxide v0.7.4 (available: v0.8.0) [INFO] [stderr] Adding nalgebra v0.32.6 (available: v0.33.0) [INFO] [stderr] Adding nu-ansi-term v0.46.0 (available: v0.50.1) [INFO] [stderr] Adding ptr_meta v0.1.4 (available: v0.3.0) [INFO] [stderr] Adding ptr_meta_derive v0.1.4 (available: v0.3.0) [INFO] [stderr] Adding radium v0.7.0 (available: v1.1.0) [INFO] [stderr] Adding raw-cpuid v10.7.0 (available: v11.1.0) [INFO] [stderr] Adding regex-automata v0.1.10 (available: v0.4.7) [INFO] [stderr] Adding regex-syntax v0.6.29 (available: v0.8.4) [INFO] [stderr] Adding rend v0.4.2 (available: v0.5.1) [INFO] [stderr] Adding rkyv v0.7.45 (available: v0.8.8) [INFO] [stderr] Adding rkyv_derive v0.7.45 (available: v0.8.8) [INFO] [stderr] Adding simba v0.8.1 (available: v0.9.0) [INFO] [stderr] Adding siphasher v0.3.11 (available: v1.0.1) [INFO] [stderr] Adding syn v1.0.109 (available: v2.0.77) [INFO] [stderr] Adding sysctl v0.5.5 (available: v0.6.0) [INFO] [stderr] Adding ttf-parser v0.20.0 (available: v0.24.1) [INFO] [stderr] Adding wasi v0.11.0+wasi-snapshot-preview1 (available: v0.13.2+wasi-0.2.1) [INFO] [stderr] Adding windows-core v0.52.0 (available: v0.58.0) [INFO] [stderr] Adding windows-sys v0.48.0 (available: v0.59.0) [INFO] [stderr] Adding windows-sys v0.52.0 (available: v0.59.0) [INFO] [stderr] Adding windows-targets v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_aarch64_gnullvm v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_aarch64_msvc v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_i686_gnu v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_i686_msvc v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_x86_64_gnu v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_x86_64_gnullvm v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_x86_64_msvc v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding wyz v0.5.1 (available: v0.6.1) [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-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] eefe008325ea12cae2c3d0e3d147fe91f59b303fa86c737501ca581da264c462 [INFO] running `Command { std: "docker" "start" "-a" "eefe008325ea12cae2c3d0e3d147fe91f59b303fa86c737501ca581da264c462", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "eefe008325ea12cae2c3d0e3d147fe91f59b303fa86c737501ca581da264c462", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eefe008325ea12cae2c3d0e3d147fe91f59b303fa86c737501ca581da264c462", kill_on_drop: false }` [INFO] [stdout] eefe008325ea12cae2c3d0e3d147fe91f59b303fa86c737501ca581da264c462 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] fbe15c31bf4a54aeea159abd23d2d3207f926e11fc3ff2e0198bce2175fbc9b3 [INFO] running `Command { std: "docker" "start" "-a" "fbe15c31bf4a54aeea159abd23d2d3207f926e11fc3ff2e0198bce2175fbc9b3", 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 libm v0.2.8 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking bytemuck v1.18.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling nano-gemm-codegen v0.1.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Checking reborrow v0.5.5 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Compiling semver v1.0.23 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking dyn-stack v0.10.0 [INFO] [stderr] Checking raw-cpuid v10.7.0 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking adler2 v2.0.0 [INFO] [stderr] Compiling seq-macro v0.3.5 [INFO] [stderr] Compiling ucd-trie v0.1.6 [INFO] [stderr] Checking miniz_oxide v0.8.0 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Checking simd-adler32 v0.3.7 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking nano-gemm-core v0.1.0 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Checking anstyle-parse v0.2.5 [INFO] [stderr] Checking flate2 v1.0.33 [INFO] [stderr] Compiling phf_shared v0.11.2 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling pathfinder_simd v0.5.4 [INFO] [stderr] Compiling freetype-sys v0.20.1 [INFO] [stderr] Compiling yeslogic-fontconfig-sys v6.0.0 [INFO] [stderr] Checking anstyle-query v1.1.1 [INFO] [stderr] Checking anstyle v1.0.8 [INFO] [stderr] Checking colorchoice v1.0.2 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Compiling ahash v0.7.8 [INFO] [stderr] Checking miniz_oxide v0.7.4 [INFO] [stderr] Checking anstream v0.6.15 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Checking fdeflate v0.3.5 [INFO] [stderr] Compiling nano-gemm-f32 v0.1.0 [INFO] [stderr] Compiling nano-gemm-f64 v0.1.0 [INFO] [stderr] Compiling nano-gemm-c64 v0.1.0 [INFO] [stderr] Compiling nano-gemm-c32 v0.1.0 [INFO] [stderr] Checking safe_arch v0.7.2 [INFO] [stderr] Checking libloading v0.8.5 [INFO] [stderr] Compiling matrixmultiply v0.3.9 [INFO] [stderr] Checking option-ext v0.2.0 [INFO] [stderr] Compiling libR-sys v0.6.0 [INFO] [stderr] Compiling bytecheck v0.6.12 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Checking unicode-ident v1.0.13 [INFO] [stderr] Checking wide v0.7.28 [INFO] [stderr] Checking dlib v0.5.2 [INFO] [stderr] Checking dirs-sys v0.4.1 [INFO] [stderr] Checking png v0.17.13 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking weezl v0.1.8 [INFO] [stderr] Checking jpeg-decoder v0.3.1 [INFO] [stderr] Compiling font-kit v0.14.2 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Compiling rend v0.4.2 [INFO] [stderr] Checking plotters-backend v0.3.7 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking simdutf8 v0.1.5 [INFO] [stderr] Checking walkdir v2.5.0 [INFO] [stderr] Checking gif v0.12.0 [INFO] [stderr] Checking pathfinder_geometry v0.5.1 [INFO] [stderr] Checking image v0.24.9 [INFO] [stderr] Checking quote v1.0.37 [INFO] [stderr] Checking dirs v5.0.1 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling ptr_meta_derive v0.1.4 [INFO] [stderr] Checking ptr_meta v0.1.4 [INFO] [stderr] Compiling bytecheck_derive v0.6.12 [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling equator-macro v0.2.1 [INFO] [stderr] Compiling phf_macros v0.11.2 [INFO] [stderr] Checking equator v0.2.2 [INFO] [stderr] Checking phf v0.11.2 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Compiling nalgebra-macros v0.2.2 [INFO] [stderr] Compiling equator-macro v0.4.1 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Compiling pest v2.7.13 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking matrixcompare-core v0.1.0 [INFO] [stderr] Checking float-ord v0.3.2 [INFO] [stderr] Checking coe-rs v0.1.2 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Compiling extendr-api v0.6.0 [INFO] [stderr] Checking clap_lex v0.7.2 [INFO] [stderr] Compiling rkyv v0.7.45 [INFO] [stderr] Checking iana-time-zone v0.1.61 [INFO] [stderr] Checking regex-syntax v0.8.4 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Compiling pest_meta v2.7.13 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Checking pulp v0.18.22 [INFO] [stderr] Checking serde v1.0.210 [INFO] [stderr] Compiling pest_generator v2.7.13 [INFO] [stderr] Checking gemm-common v0.18.0 [INFO] [stderr] Checking gemm-f32 v0.18.0 [INFO] [stderr] Checking gemm-c64 v0.18.0 [INFO] [stderr] Compiling pest_derive v2.7.13 [INFO] [stderr] Checking py_literal v0.4.0 [INFO] [stderr] Checking gemm-f64 v0.18.0 [INFO] [stderr] Checking gemm-c32 v0.18.0 [INFO] [stderr] Checking simba v0.8.1 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Checking clap_builder v4.5.18 [INFO] [stderr] Checking gemm v0.18.0 [INFO] [stderr] Compiling prettyplease v0.2.22 [INFO] [stderr] Checking serde_json v1.0.128 [INFO] [stderr] Checking npyz v0.8.3 [INFO] [stderr] Checking faer-entity v0.19.2 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Compiling clap_derive v4.5.18 [INFO] [stderr] Checking matrixcompare v0.3.0 [INFO] [stderr] Checking equator v0.4.1 [INFO] [stderr] Checking csscolorparser v0.6.2 [INFO] [stderr] Compiling lmutils v0.2.21 (/tmp/fixit) [INFO] [stderr] Migrating build.rs from 2021 edition to 2024 [INFO] [stderr] Checking plotters-bitmap v0.3.7 [INFO] [stderr] Compiling extendr-macros v0.6.0 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling rkyv_derive v0.7.45 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking plotters-svg v0.3.7 [INFO] [stderr] Checking env_filter v0.1.2 [INFO] [stderr] Checking seahash v4.1.0 [INFO] [stderr] Checking half v1.8.3 [INFO] [stderr] Checking dbgf v0.1.2 [INFO] [stderr] Checking ttf-parser v0.20.0 [INFO] [stderr] Checking serde_cbor v0.11.2 [INFO] [stderr] Checking nalgebra v0.32.6 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking env_logger v0.11.5 [INFO] [stderr] Checking clap v4.5.18 [INFO] [stderr] Checking regex v1.10.6 [INFO] [stderr] Checking colorgrad v0.6.2 [INFO] [stderr] Compiling test-log-macros v0.2.16 [INFO] [stderr] Checking plotters v0.3.7 [INFO] [stderr] Checking memfile v0.3.2 [INFO] [stderr] Checking dyn-clone v1.0.17 [INFO] [stderr] Checking test-log v0.2.16 [INFO] [stderr] Checking assert_float_eq v1.1.3 [INFO] [stderr] Checking nano-gemm v0.1.2 [INFO] [stderr] Checking faer v0.19.4 [INFO] [stderr] Checking diol v0.6.1 [INFO] [stderr] Checking statrs v0.17.1 [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `lmutils` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/calc.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/calc.rs:551:10 [INFO] [stderr] | [INFO] [stderr] 551 | ($a:expr_2021, $b: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/calc.rs:551:24 [INFO] [stderr] | [INFO] [stderr] 551 | ($a:expr_2021, $b:expr_2021) => { [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/calc.rs:551:13 [INFO] [stdout] | [INFO] [stdout] 551 | ($a:expr, $b: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] 551 | ($a:expr_2021, $b:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [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 2 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/calc.rs:551:22 [INFO] [stdout] | [INFO] [stdout] 551 | ($a:expr, $b: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] 551 | ($a:expr, $b: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/calc.rs:584:9 [INFO] [stdout] | [INFO] [stdout] 584 | std::env::set_var("LMUTILS_ENABLE_PREDICTED", "1"); [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] 584 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 585 ~ unsafe { std::env::set_var("LMUTILS_ENABLE_PREDICTED", "1") }; [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/calc.rs:630:9 [INFO] [stdout] | [INFO] [stdout] 630 | std::env::set_var("LMUTILS_ENABLE_PREDICTED", "1"); [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] 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] 630 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 631 ~ unsafe { std::env::set_var("LMUTILS_ENABLE_PREDICTED", "1") }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lib.rs:55:24 [INFO] [stdout] | [INFO] [stdout] 55 | if let Some((i, mut d)) = d { [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/lib.rs:100:21 [INFO] [stdout] | [INFO] [stdout] 100 | } else { [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 55 ~ match d { Some((i, mut d)) => { [INFO] [stdout] 56 | rayon::scope(|s| { [INFO] [stdout] ... [INFO] [stdout] 99 | }) [INFO] [stdout] 100 ~ } _ => { [INFO] [stdout] 101 | break; [INFO] [stdout] 102 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/matrix.rs:335:12 [INFO] [stdout] | [INFO] [stdout] 335 | if let Matrix::Owned(m) = self { [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/matrix.rs:337:9 [INFO] [stdout] | [INFO] [stdout] 337 | } 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] 335 ~ match self { Matrix::Owned(m) => { [INFO] [stdout] 336 | m [INFO] [stdout] 337 ~ } _ => { [INFO] [stdout] 338 | panic!("matrix is not owned"); [INFO] [stdout] 339 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/matrix.rs:488:16 [INFO] [stdout] | [INFO] [stdout] 488 | if let Matrix::Transform(fns, mat) = slf { [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/matrix.rs:494:13 [INFO] [stdout] | [INFO] [stdout] 494 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 488 ~ match slf { Matrix::Transform(fns, mat) => { [INFO] [stdout] 489 | let mut mat = *mat; [INFO] [stdout] ... [INFO] [stdout] 493 | *self = mat; [INFO] [stdout] 494 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/lib.rs (1 fix) [INFO] [stderr] Fixed src/matrix.rs (2 fixes) [INFO] [stderr] Migrating benches/r2_simd.rs from 2021 edition to 2024 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 34.93s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Compiling lmutils v0.2.21 (/tmp/fixit) [INFO] [stdout] error[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/calc.rs:584:9 [INFO] [stdout] | [INFO] [stdout] 584 | std::env::set_var("LMUTILS_ENABLE_PREDICTED", "1"); [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/calc.rs:630:9 [INFO] [stdout] | [INFO] [stdout] 630 | std::env::set_var("LMUTILS_ENABLE_PREDICTED", "1"); [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 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `lmutils` (lib test) due to 3 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" "fbe15c31bf4a54aeea159abd23d2d3207f926e11fc3ff2e0198bce2175fbc9b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fbe15c31bf4a54aeea159abd23d2d3207f926e11fc3ff2e0198bce2175fbc9b3", kill_on_drop: false }` [INFO] [stdout] fbe15c31bf4a54aeea159abd23d2d3207f926e11fc3ff2e0198bce2175fbc9b3