[INFO] cloning repository https://github.com/AshyIsMe/jr [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AshyIsMe/jr" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAshyIsMe%2Fjr", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAshyIsMe%2Fjr'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8802e50a85be432782c28b81d2f6a3bae28a96ff [INFO] checking AshyIsMe/jr/8802e50a85be432782c28b81d2f6a3bae28a96ff against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAshyIsMe%2Fjr" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/AshyIsMe/jr 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 git repo https://github.com/AshyIsMe/jr [INFO] finished tweaking git repo https://github.com/AshyIsMe/jr [INFO] tweaked toml for git repo https://github.com/AshyIsMe/jr written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/AshyIsMe/jr 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-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] ea228c83d21ec1209507b7fe04ec3200c8a30d8372f1ec7d97291f19ca337925 [INFO] running `Command { std: "docker" "start" "-a" "ea228c83d21ec1209507b7fe04ec3200c8a30d8372f1ec7d97291f19ca337925", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ea228c83d21ec1209507b7fe04ec3200c8a30d8372f1ec7d97291f19ca337925", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ea228c83d21ec1209507b7fe04ec3200c8a30d8372f1ec7d97291f19ca337925", kill_on_drop: false }` [INFO] [stdout] ea228c83d21ec1209507b7fe04ec3200c8a30d8372f1ec7d97291f19ca337925 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] adce9d35a8cbf1a53b956a8716a17ccda2be1f5e7499b8a6f2d9c2e75004444e [INFO] running `Command { std: "docker" "start" "-a" "adce9d35a8cbf1a53b956a8716a17ccda2be1f5e7499b8a6f2d9c2e75004444e", 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] Fixed Cargo.toml (9 fixes) [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.146 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.60 [INFO] [stderr] Compiling quote v1.0.28 [INFO] [stderr] Compiling unicode-ident v1.0.9 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Compiling crossbeam-utils v0.8.15 [INFO] [stderr] Compiling rustix v0.37.20 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking linux-raw-sys v0.3.8 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling memoffset v0.8.0 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling crossbeam-epoch v0.9.14 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling matrixmultiply v0.3.7 [INFO] [stderr] Checking smallvec v1.10.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling syn v2.0.18 [INFO] [stderr] Compiling crossbeam-queue v0.3.8 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling serde v1.0.164 [INFO] [stderr] Checking nibble_vec v0.1.0 [INFO] [stderr] Checking aho-corasick v1.0.2 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Compiling anyhow v1.0.71 [INFO] [stderr] Compiling thiserror v1.0.40 [INFO] [stderr] Checking regex-syntax v0.7.2 [INFO] [stderr] Checking log v0.4.19 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking endian-type v0.1.2 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Checking num-complex v0.4.3 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking dirs-sys-next v0.1.2 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking dirs-next v2.0.0 [INFO] [stderr] Checking radix_trie v0.2.1 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking dirs-sys v0.3.7 [INFO] [stderr] Checking nix v0.25.1 [INFO] [stderr] Checking crossbeam-deque v0.8.3 [INFO] [stderr] Checking crossbeam-channel v0.5.8 [INFO] [stderr] Checking either v1.8.1 [INFO] [stderr] Checking unicode-width v0.1.10 [INFO] [stderr] Checking termcolor v1.2.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Checking unicode-segmentation v1.10.1 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking colored v2.0.0 [INFO] [stderr] Checking regex v1.8.4 [INFO] [stderr] Checking num v0.4.0 [INFO] [stderr] Checking crossbeam v0.8.2 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking ndarray v0.15.6 [INFO] [stderr] Checking directories v4.0.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking is-terminal v0.4.7 [INFO] [stderr] Checking fd-lock v3.0.12 [INFO] [stderr] Checking ordered-float v3.7.0 [INFO] [stderr] Checking rustyline v10.1.1 [INFO] [stderr] Compiling serde_derive v1.0.164 [INFO] [stderr] Compiling thiserror-impl v1.0.40 [INFO] [stderr] Checking env_logger v0.10.0 [INFO] [stderr] Checking try-partialord v0.1.3 [INFO] [stderr] Compiling rustyline-derive v0.7.0 [INFO] [stderr] Checking toml v0.5.11 [INFO] [stderr] Checking jr v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `jr` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/arrays/mod.rs [INFO] [stderr] * src/arrays/owned.rs [INFO] [stderr] * src/empty.rs [INFO] [stderr] * src/number/number.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/arrays/owned.rs:105:18 [INFO] [stderr] | [INFO] [stderr] 105 | ($arr:ident, $func: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/arrays/owned.rs:120:18 [INFO] [stderr] | [INFO] [stderr] 120 | ($arr:ident, $func: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/arrays/owned.rs:136:19 [INFO] [stderr] | [INFO] [stderr] 136 | ($kind:ident, $func: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/arrays/owned.rs:152:26 [INFO] [stderr] | [INFO] [stderr] 152 | ($x:ident, $y:ident, $func: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/arrays/mod.rs:21:6 [INFO] [stderr] | [INFO] [stderr] 21 | ($arr:expr_2021, $func: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/arrays/mod.rs:21:22 [INFO] [stderr] | [INFO] [stderr] 21 | ($arr:expr_2021, $func: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/empty.rs:12:13 [INFO] [stderr] | [INFO] [stderr] 12 | ($t:ty, $e: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/number/number.rs:244:6 [INFO] [stderr] | [INFO] [stderr] 244 | ($x: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] warning: elided lifetime has a name [INFO] [stderr] --> src/arrays/owned.rs:206:35 [INFO] [stderr] | [INFO] [stderr] 206 | pub fn shape<'s>(&'s self) -> &[usize] { [INFO] [stderr] | -- ^ this elided lifetime gets resolved as `'s` [INFO] [stderr] | | [INFO] [stderr] | lifetime `'s` declared here [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stderr] [INFO] [stderr] error: aborting due to 8 previous errors; 1 warning 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: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/verbs/impl_maths.rs:381:41 [INFO] [stdout] | [INFO] [stdout] 381 | 0 => JArray::from(Num::from(rng.gen::())), [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [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 #49716 [INFO] [stdout] = note: `--force-warn keyword-idents-2024` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/arrays/owned.rs:105:24 [INFO] [stdout] | [INFO] [stdout] 105 | ($arr:ident, $func: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] 105 | ($arr:ident, $func: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/arrays/owned.rs:120:24 [INFO] [stdout] | [INFO] [stdout] 120 | ($arr:ident, $func: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] 120 | ($arr:ident, $func: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/arrays/owned.rs:136:25 [INFO] [stdout] | [INFO] [stdout] 136 | ($kind:ident, $func: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] 136 | ($kind:ident, $func: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/arrays/owned.rs:152:32 [INFO] [stdout] | [INFO] [stdout] 152 | ($x:ident, $y:ident, $func: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] 152 | ($x:ident, $y:ident, $func:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/arrays/owned.rs:206:35 [INFO] [stdout] | [INFO] [stdout] 206 | pub fn shape<'s>(&'s self) -> &[usize] { [INFO] [stdout] | -- ^ this elided lifetime gets resolved as `'s` [INFO] [stdout] | | [INFO] [stdout] | lifetime `'s` declared here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CowArrayD` [INFO] [stdout] --> src/arrays/mod.rs:13:38 [INFO] [stdout] | [INFO] [stdout] 13 | pub use owned::{ArcArrayD, BoxArray, CowArrayD, JArray, JArrayKind}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/arrays/mod.rs:21:11 [INFO] [stdout] | [INFO] [stdout] 21 | ($arr:expr, $func: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] 21 | ($arr:expr_2021, $func: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/arrays/mod.rs:21:23 [INFO] [stdout] | [INFO] [stdout] 21 | ($arr:expr, $func: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] 21 | ($arr:expr, $func: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/empty.rs:12:16 [INFO] [stdout] | [INFO] [stdout] 12 | ($t:ty, $e: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] 12 | ($t:ty, $e: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/number/number.rs:244:9 [INFO] [stdout] | [INFO] [stdout] 244 | ($x: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] 244 | ($x:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `litnum::scan_num_token` [INFO] [stdout] --> src/scan/mod.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub use litnum::scan_num_token; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/ctx/locales.rs:89:16 [INFO] [stdout] | [INFO] [stdout] 89 | if let Some(v) = local.0.get(n) { [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/ctx/locales.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | } [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] 89 ~ match local.0.get(n) { Some(v) => { [INFO] [stdout] 90 | return Ok(Some(v)); [INFO] [stdout] 91 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/ctx/locales.rs:101:16 [INFO] [stdout] | [INFO] [stdout] 101 | if let Some(v) = self.inner.get(ns).and_then(|ns| ns.0.get(n)) { [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/ctx/locales.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 101 ~ match self.inner.get(ns).and_then(|ns| ns.0.get(n)) { Some(v) => { [INFO] [stdout] 102 | return Ok(Some(v)); [INFO] [stdout] 103 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/eval/mod.rs:144:17 [INFO] [stdout] | [INFO] [stdout] 144 | let qs = if let Some(mut sus) = ctx.input_buffers.as_mut().and_then(|b| b.take_suspension()) { [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/eval/mod.rs:165:5 [INFO] [stdout] | [INFO] [stdout] 165 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 144 ~ let qs = match ctx.input_buffers.as_mut().and_then(|b| b.take_suspension()) { Some(mut sus) => { [INFO] [stdout] 145 | assert!( [INFO] [stdout] ... [INFO] [stdout] 164 | sus.qs [INFO] [stdout] 165 ~ } _ => { [INFO] [stdout] 166 | let mut queue = VecDeque::from(sentence); [INFO] [stdout] ... [INFO] [stdout] 171 | } [INFO] [stdout] 172 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/eval/ctl_if.rs:31:20 [INFO] [stdout] | [INFO] [stdout] 31 | if let Some(result) = eval_cond_and_block(ctx, &block[1..])? { [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/eval/ctl_if.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 31 ~ match eval_cond_and_block(ctx, &block[1..])? { Some(result) => { [INFO] [stdout] 32 | return Ok(result); [INFO] [stdout] 33 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/mod.rs:189:12 [INFO] [stdout] | [INFO] [stdout] 189 | if let Some(primitive) = str_to_primitive(&format!("{base}{suffix}"))? { [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/scan/mod.rs:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 189 ~ match str_to_primitive(&format!("{base}{suffix}"))? { Some(primitive) => { [INFO] [stdout] 190 | return Ok((base.len(), primitive)); [INFO] [stdout] 191 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/mod.rs:241:16 [INFO] [stdout] | [INFO] [stdout] 241 | Ok(Some(if let Some(n) = primitive_nouns(sentence) { [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] 242 | n [INFO] [stdout] 243 | } else if let Some(v) = primitive_verbs(sentence) { [INFO] [stdout] | ------------------------- this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] 244 | Word::Verb(v) [INFO] [stdout] 245 | } else if let Some(a) = primitive_adverbs(sentence) { [INFO] [stdout] | --------------------------- this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] 246 | Word::Adverb(a) [INFO] [stdout] 247 | } else if let Some(c) = primitive_conjunctions(sentence) { [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/scan/mod.rs:243:5 [INFO] [stdout] | [INFO] [stdout] 243 | } else if let Some(v) = primitive_verbs(sentence) { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/scan/mod.rs:245:5 [INFO] [stdout] | [INFO] [stdout] 245 | } else if let Some(a) = primitive_adverbs(sentence) { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/scan/mod.rs:247:5 [INFO] [stdout] | [INFO] [stdout] 247 | } else if let Some(c) = primitive_conjunctions(sentence) { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/scan/mod.rs:249:5 [INFO] [stdout] | [INFO] [stdout] 249 | } 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] 241 ~ Ok(Some(match primitive_nouns(sentence) { Some(n) => { [INFO] [stdout] 242 | n [INFO] [stdout] 243 ~ } _ => { match primitive_verbs(sentence) { Some(v) => { [INFO] [stdout] 244 | Word::Verb(v) [INFO] [stdout] 245 ~ } _ => { match primitive_adverbs(sentence) { Some(a) => { [INFO] [stdout] 246 | Word::Adverb(a) [INFO] [stdout] 247 ~ } _ => { match primitive_conjunctions(sentence) { Some(c) => { [INFO] [stdout] 248 | Word::Conjunction(c) [INFO] [stdout] 249 ~ } _ => { [INFO] [stdout] 250 | if let Some(x) = sentence.strip_prefix("for_") { [INFO] [stdout] ... [INFO] [stdout] 285 | } [INFO] [stdout] 286 ~ }}}}}}}})) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/verbs/impl_shape.rs:340:12 [INFO] [stdout] | [INFO] [stdout] 340 | if let JArray::BoxArray(arr) = here { [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/verbs/impl_shape.rs:342:9 [INFO] [stdout] | [INFO] [stdout] 342 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 340 ~ match here { JArray::BoxArray(arr) => { [INFO] [stdout] 341 | return Ok(arr.into_iter().next().expect("just checked")); [INFO] [stdout] 342 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating examples/gen-runlist.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `jr` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/arrays/mod.rs [INFO] [stderr] * src/arrays/owned.rs [INFO] [stderr] * src/empty.rs [INFO] [stderr] * src/number/number.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/arrays/owned.rs:105:18 [INFO] [stderr] | [INFO] [stderr] 105 | ($arr:ident, $func: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/arrays/owned.rs:120:18 [INFO] [stderr] | [INFO] [stderr] 120 | ($arr:ident, $func: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/arrays/owned.rs:136:19 [INFO] [stderr] | [INFO] [stderr] 136 | ($kind:ident, $func: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/arrays/owned.rs:152:26 [INFO] [stderr] | [INFO] [stderr] 152 | ($x:ident, $y:ident, $func: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/arrays/mod.rs:21:6 [INFO] [stderr] | [INFO] [stderr] 21 | ($arr:expr_2021, $func:expr_2021) => { [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/verbs/impl_maths.rs:381:41 [INFO] [stdout] | [INFO] [stdout] 381 | 0 => JArray::from(Num::from(rng.gen::())), [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [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 #49716 [INFO] [stdout] = note: `--force-warn keyword-idents-2024` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/arrays/owned.rs:105:24 [INFO] [stdout] | [INFO] [stdout] 105 | ($arr:ident, $func: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] 105 | ($arr:ident, $func:expr_2021) => { [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/arrays/owned.rs:120:24 [INFO] [stdout] | [INFO] [stdout] 120 | ($arr:ident, $func: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] 120 | ($arr:ident, $func:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/arrays/owned.rs:136:25 [INFO] [stdout] | [INFO] [stdout] 136 | ($kind:ident, $func: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] 136 | ($kind:ident, $func:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/arrays/owned.rs:152:32 [INFO] [stdout] | [INFO] [stdout] 152 | ($x:ident, $y:ident, $func: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] 152 | ($x:ident, $y:ident, $func:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/arrays/owned.rs:206:35 [INFO] [stdout] | [INFO] [stdout] 206 | pub fn shape<'s>(&'s self) -> &[usize] { [INFO] [stdout] | -- ^ this elided lifetime gets resolved as `'s` [INFO] [stdout] | | [INFO] [stdout] | lifetime `'s` declared here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: unused import: `CowArrayD` [INFO] [stdout] --> src/arrays/mod.rs:13:38 [INFO] [stdout] | [INFO] [stdout] 13 | pub use owned::{ArcArrayD, BoxArray, CowArrayD, JArray, JArrayKind}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/arrays/mod.rs:21:22 [INFO] [stderr] | [INFO] [stderr] 21 | ($arr:expr_2021, $func: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/empty.rs:12:13 [INFO] [stderr] | [INFO] [stderr] 12 | ($t:ty, $e: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/number/number.rs:244:6 [INFO] [stderr] | [INFO] [stderr] 244 | ($x: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] warning: elided lifetime has a name [INFO] [stderr] --> src/arrays/owned.rs:206:35 [INFO] [stderr] | [INFO] [stderr] 206 | pub fn shape<'s>(&'s self) -> &[usize] { [INFO] [stderr] | -- ^ this elided lifetime gets resolved as `'s` [INFO] [stderr] | | [INFO] [stderr] | lifetime `'s` declared here [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stderr] [INFO] [stderr] error: aborting due to 8 previous errors; 1 warning 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/arrays/mod.rs:21:11 [INFO] [stdout] | [INFO] [stdout] 21 | ($arr:expr, $func: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] 21 | ($arr:expr_2021, $func: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/arrays/mod.rs:21:23 [INFO] [stdout] | [INFO] [stdout] 21 | ($arr:expr, $func: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] 21 | ($arr:expr, $func: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/empty.rs:12:16 [INFO] [stdout] | [INFO] [stdout] 12 | ($t:ty, $e: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] 12 | ($t:ty, $e: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/number/number.rs:244:9 [INFO] [stdout] | [INFO] [stdout] 244 | ($x: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] 244 | ($x:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `litnum::scan_num_token` [INFO] [stdout] --> src/scan/mod.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub use litnum::scan_num_token; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/ctx/locales.rs:89:16 [INFO] [stdout] | [INFO] [stdout] 89 | if let Some(v) = local.0.get(n) { [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/ctx/locales.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | } [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] 89 ~ match local.0.get(n) { Some(v) => { [INFO] [stdout] 90 | return Ok(Some(v)); [INFO] [stdout] 91 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/ctx/locales.rs:101:16 [INFO] [stdout] | [INFO] [stdout] 101 | if let Some(v) = self.inner.get(ns).and_then(|ns| ns.0.get(n)) { [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/ctx/locales.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 101 ~ match self.inner.get(ns).and_then(|ns| ns.0.get(n)) { Some(v) => { [INFO] [stdout] 102 | return Ok(Some(v)); [INFO] [stdout] 103 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/eval/mod.rs:144:17 [INFO] [stdout] | [INFO] [stdout] 144 | let qs = if let Some(mut sus) = ctx.input_buffers.as_mut().and_then(|b| b.take_suspension()) { [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/eval/mod.rs:165:5 [INFO] [stdout] | [INFO] [stdout] 165 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 144 ~ let qs = match ctx.input_buffers.as_mut().and_then(|b| b.take_suspension()) { Some(mut sus) => { [INFO] [stdout] 145 | assert!( [INFO] [stdout] ... [INFO] [stdout] 164 | sus.qs [INFO] [stdout] 165 ~ } _ => { [INFO] [stdout] 166 | let mut queue = VecDeque::from(sentence); [INFO] [stdout] ... [INFO] [stdout] 171 | } [INFO] [stdout] 172 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/eval/ctl_if.rs:31:20 [INFO] [stdout] | [INFO] [stdout] 31 | if let Some(result) = eval_cond_and_block(ctx, &block[1..])? { [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/eval/ctl_if.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 31 ~ match eval_cond_and_block(ctx, &block[1..])? { Some(result) => { [INFO] [stdout] 32 | return Ok(result); [INFO] [stdout] 33 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/mod.rs:189:12 [INFO] [stdout] | [INFO] [stdout] 189 | if let Some(primitive) = str_to_primitive(&format!("{base}{suffix}"))? { [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/scan/mod.rs:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 189 ~ match str_to_primitive(&format!("{base}{suffix}"))? { Some(primitive) => { [INFO] [stdout] 190 | return Ok((base.len(), primitive)); [INFO] [stdout] 191 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/mod.rs:241:16 [INFO] [stdout] | [INFO] [stdout] 241 | Ok(Some(if let Some(n) = primitive_nouns(sentence) { [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] 242 | n [INFO] [stdout] 243 | } else if let Some(v) = primitive_verbs(sentence) { [INFO] [stdout] | ------------------------- this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] 244 | Word::Verb(v) [INFO] [stdout] 245 | } else if let Some(a) = primitive_adverbs(sentence) { [INFO] [stdout] | --------------------------- this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] 246 | Word::Adverb(a) [INFO] [stdout] 247 | } else if let Some(c) = primitive_conjunctions(sentence) { [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/scan/mod.rs:243:5 [INFO] [stdout] | [INFO] [stdout] 243 | } else if let Some(v) = primitive_verbs(sentence) { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/scan/mod.rs:245:5 [INFO] [stdout] | [INFO] [stdout] 245 | } else if let Some(a) = primitive_adverbs(sentence) { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/scan/mod.rs:247:5 [INFO] [stdout] | [INFO] [stdout] 247 | } else if let Some(c) = primitive_conjunctions(sentence) { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/scan/mod.rs:249:5 [INFO] [stdout] | [INFO] [stdout] 249 | } 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] 241 ~ Ok(Some(match primitive_nouns(sentence) { Some(n) => { [INFO] [stdout] 242 | n [INFO] [stdout] 243 ~ } _ => { match primitive_verbs(sentence) { Some(v) => { [INFO] [stdout] 244 | Word::Verb(v) [INFO] [stdout] 245 ~ } _ => { match primitive_adverbs(sentence) { Some(a) => { [INFO] [stdout] 246 | Word::Adverb(a) [INFO] [stdout] 247 ~ } _ => { match primitive_conjunctions(sentence) { Some(c) => { [INFO] [stdout] 248 | Word::Conjunction(c) [INFO] [stdout] 249 ~ } _ => { [INFO] [stdout] 250 | if let Some(x) = sentence.strip_prefix("for_") { [INFO] [stdout] ... [INFO] [stdout] 285 | } [INFO] [stdout] 286 ~ }}}}}}}})) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/verbs/impl_shape.rs:340:12 [INFO] [stdout] | [INFO] [stdout] 340 | if let JArray::BoxArray(arr) = here { [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/verbs/impl_shape.rs:342:9 [INFO] [stdout] | [INFO] [stdout] 342 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 340 ~ match here { JArray::BoxArray(arr) => { [INFO] [stdout] 341 | return Ok(arr.into_iter().next().expect("just checked")); [INFO] [stdout] 342 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating tests/errors.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/agreement.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/sanity_checks.rs from 2021 edition to 2024 [INFO] [stderr] Migrating examples/bench.rs from 2021 edition to 2024 [INFO] [stderr] Migrating src/bin/jr/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/bin/jr/tui.rs (1 fix) [INFO] [stderr] Migrating tests/smoke.rs from 2021 edition to 2024 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.76s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking jr v0.1.0 (/tmp/fixit) [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/verbs/impl_maths.rs:381:41 [INFO] [stdout] | [INFO] [stdout] 381 | 0 => JArray::from(Num::from(rng.gen::())), [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 381 | 0 => JArray::from(Num::from(rng.r#gen::())), [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/verbs/impl_maths.rs:381:41 [INFO] [stdout] | [INFO] [stdout] 381 | 0 => JArray::from(Num::from(rng.gen::())), [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 381 | 0 => JArray::from(Num::from(rng.r#gen::())), [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/arrays/owned.rs:206:35 [INFO] [stdout] | [INFO] [stdout] 206 | pub fn shape<'s>(&'s self) -> &[usize] { [INFO] [stdout] | -- ^ this elided lifetime gets resolved as `'s` [INFO] [stdout] | | [INFO] [stdout] | lifetime `'s` declared here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CowArrayD` [INFO] [stdout] --> src/arrays/mod.rs:13:38 [INFO] [stdout] | [INFO] [stdout] 13 | pub use owned::{ArcArrayD, BoxArray, CowArrayD, JArray, JArrayKind}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `litnum::scan_num_token` [INFO] [stdout] --> src/scan/mod.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub use litnum::scan_num_token; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/arrays/owned.rs:206:35 [INFO] [stdout] | [INFO] [stdout] 206 | pub fn shape<'s>(&'s self) -> &[usize] { [INFO] [stdout] | -- ^ this elided lifetime gets resolved as `'s` [INFO] [stdout] | | [INFO] [stdout] | lifetime `'s` declared here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CowArrayD` [INFO] [stdout] --> src/arrays/mod.rs:13:38 [INFO] [stdout] | [INFO] [stdout] 13 | pub use owned::{ArcArrayD, BoxArray, CowArrayD, JArray, JArrayKind}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `litnum::scan_num_token` [INFO] [stdout] --> src/scan/mod.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub use litnum::scan_num_token; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `jr` (lib) due to 2 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 1 previous error; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `jr` (lib test) due to 2 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" "adce9d35a8cbf1a53b956a8716a17ccda2be1f5e7499b8a6f2d9c2e75004444e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "adce9d35a8cbf1a53b956a8716a17ccda2be1f5e7499b8a6f2d9c2e75004444e", kill_on_drop: false }` [INFO] [stdout] adce9d35a8cbf1a53b956a8716a17ccda2be1f5e7499b8a6f2d9c2e75004444e