[INFO] fetching crate programinduction 0.9.0... [INFO] checking programinduction-0.9.0 against try#65132f36b923285d5da381c2fbafee6ce899e841 for pr-132712-1 [INFO] extracting crate programinduction 0.9.0 into /workspace/builds/worker-2-tc2/source [INFO] validating manifest of crates.io crate programinduction 0.9.0 on toolchain 65132f36b923285d5da381c2fbafee6ce899e841 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate programinduction 0.9.0 [INFO] finished tweaking crates.io crate programinduction 0.9.0 [INFO] tweaked toml for crates.io crate programinduction 0.9.0 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate crates.io crate programinduction 0.9.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 105b9a50b6ef62a2cfa7b3248268903958673f68a1b21e05ed1923c258c23ef9 [INFO] running `Command { std: "docker" "start" "-a" "105b9a50b6ef62a2cfa7b3248268903958673f68a1b21e05ed1923c258c23ef9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "105b9a50b6ef62a2cfa7b3248268903958673f68a1b21e05ed1923c258c23ef9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "105b9a50b6ef62a2cfa7b3248268903958673f68a1b21e05ed1923c258c23ef9", kill_on_drop: false }` [INFO] [stdout] 105b9a50b6ef62a2cfa7b3248268903958673f68a1b21e05ed1923c258c23ef9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8caf10c90a023bc4555ce21ea05684aae6b8f4476ec78a6a0f1189b4ed4e30fa [INFO] running `Command { std: "docker" "start" "-a" "8caf10c90a023bc4555ce21ea05684aae6b8f4476ec78a6a0f1189b4ed4e30fa", 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 autocfg v1.1.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Checking smallvec v1.11.2 [INFO] [stderr] Compiling rayon-core v1.12.0 [INFO] [stderr] Compiling serde v1.0.192 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.15 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling nom v4.2.3 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking itertools v0.12.0 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking crossbeam-deque v0.8.3 [INFO] [stderr] Checking getrandom v0.2.11 [INFO] [stderr] Checking indexmap v2.1.0 [INFO] [stderr] Checking rand v0.5.6 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling syn v2.0.39 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking itertools v0.7.11 [INFO] [stderr] Checking winnow v0.5.28 [INFO] [stderr] Compiling serde_json v1.0.108 [INFO] [stderr] Checking rayon v1.8.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking crossbeam-channel v0.5.8 [INFO] [stderr] Checking ryu v1.0.15 [INFO] [stderr] Checking term_rewriting v0.7.0 [INFO] [stderr] Checking itoa v1.0.9 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Compiling serde_derive v1.0.192 [INFO] [stderr] Checking polytype v7.0.1 [INFO] [stderr] Checking programinduction v0.9.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 `programinduction` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/trs/parser.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[E0107]: function takes 5 generic arguments but 6 generic arguments were supplied [INFO] [stderr] --> src/trs/parser.rs:216:5 [INFO] [stderr] | [INFO] [stderr] 216 | repeat::<_, _, (), _, _, _>(0.., (parse_comment, multispace0)).parse_next(input)?; [INFO] [stderr] | ^^^^^^ --- help: remove the unnecessary generic argument [INFO] [stderr] | | [INFO] [stderr] | expected 5 generic arguments [INFO] [stderr] | [INFO] [stderr] note: function defined here, with 5 generic parameters: `I`, `O`, `C`, `E`, `F` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/winnow-0.5.28/src/combinator/multi.rs:118:8 [INFO] [stderr] | [INFO] [stderr] 118 | pub fn repeat(range: impl Into, mut f: F) -> impl Parser [INFO] [stderr] | ^^^^^^ - - - - - [INFO] [stderr] = note: `impl Trait` cannot be explicitly specified as a generic argument [INFO] [stderr] [INFO] [stderr] warning: this function depends on never type fallback being `()` [INFO] [stderr] --> src/trs/parser.rs:214:1 [INFO] [stderr] | [INFO] [stderr] 214 | fn parse_irrelevant(input: &mut &str) -> PResult<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! [INFO] [stderr] = note: for more information, see issue #123748 [INFO] [stderr] = help: specify the types explicitly [INFO] [stderr] note: in edition 2024, the requirement `!: Accumulate<(&str, &str)>` will fail [INFO] [stderr] --> src/trs/parser.rs:216:20 [INFO] [stderr] | [INFO] [stderr] 216 | repeat::<_, _, (), _, _, _>(0.., (parse_comment, multispace0)).parse_next(input)?; [INFO] [stderr] | ^^ [INFO] [stderr] = note: `--force-warn dependency-on-unit-never-type-fallback` implied by `--force-warn rust-2024-compatibility` [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error; 1 warning emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0107`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/domains/strings.rs:308:23 [INFO] [stdout] | [INFO] [stdout] 308 | .flat_map(|_| gen::make_examples(rng, n_examples)) [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: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/domains/strings.rs:371:5 [INFO] [stdout] | [INFO] [stdout] 371 | mod 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] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/domains/strings.rs:383:28 [INFO] [stdout] | [INFO] [stdout] 383 | let c = c + if rng.gen() { 65 } else { 97 }; [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] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/pcfg/enumerator.rs:79:26 [INFO] [stdout] | [INFO] [stdout] 79 | let mut t: f64 = 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] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/domains/strings.rs:431:20 [INFO] [stdout] | [INFO] [stdout] 431 | ($name:expr, $tp:expr, $body:block) => { [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] 431 | ($name:expr_2021, $tp:expr, $body:block) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/domains/strings.rs:431:30 [INFO] [stdout] | [INFO] [stdout] 431 | ($name:expr, $tp:expr, $body:block) => { [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] 431 | ($name:expr, $tp:expr_2021, $body:block) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/domains/strings.rs:591:20 [INFO] [stdout] | [INFO] [stdout] 591 | ($name:expr, $f: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] 591 | ($name:expr_2021, $f: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/domains/strings.rs:591:29 [INFO] [stdout] | [INFO] [stdout] 591 | ($name:expr, $f: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] 591 | ($name:expr, $f: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/domains/strings.rs:703:21 [INFO] [stdout] | [INFO] [stdout] 703 | ($name1:expr, $f1:expr, $name2:expr, $f2: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] 703 | ($name1:expr_2021, $f1:expr, $name2:expr, $f2: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/domains/strings.rs:703:31 [INFO] [stdout] | [INFO] [stdout] 703 | ($name1:expr, $f1:expr, $name2:expr, $f2: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] 703 | ($name1:expr, $f1:expr_2021, $name2:expr, $f2: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/domains/strings.rs:703:44 [INFO] [stdout] | [INFO] [stdout] 703 | ($name1:expr, $f1:expr, $name2:expr, $f2: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] 703 | ($name1:expr, $f1:expr, $name2:expr_2021, $f2: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/domains/strings.rs:703:54 [INFO] [stdout] | [INFO] [stdout] 703 | ($name1:expr, $f1:expr, $name2:expr, $f2: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] 703 | ($name1:expr, $f1:expr, $name2:expr, $f2:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/trs/parser.rs:214:1 [INFO] [stdout] | [INFO] [stdout] 214 | fn parse_irrelevant(input: &mut &str) -> PResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! [INFO] [stdout] = note: for more information, see issue #123748 [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: Accumulate<(&str, &str)>` will fail [INFO] [stdout] --> src/trs/parser.rs:216:5 [INFO] [stdout] | [INFO] [stdout] 216 | repeat(0.., (parse_comment, multispace0)).parse_next(input)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn dependency-on-unit-never-type-fallback` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use `()` annotations to avoid fallback changes [INFO] [stdout] | [INFO] [stdout] 216 | repeat::<_, _, (), _, _, _>(0.., (parse_comment, multispace0)).parse_next(input)?; [INFO] [stdout] | +++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: patterns are not allowed to reset the default binding mode in edition 2024 [INFO] [stdout] --> src/trs/lexicon.rs:784:17 [INFO] [stdout] | [INFO] [stdout] 784 | Some(Atom::Operator(ref o)) if o.arity() == 0 => cw, [INFO] [stdout] | -^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: desugar the match ergonomics: `&&` [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see 123076 [INFO] [stdout] = note: `--force-warn rust-2024-incompatible-pat` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Task<[bool], Representation = Language, Expression = Expression>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/domains/circuits.rs:126:10 [INFO] [stdout] | [INFO] [stdout] 126 | ) -> Vec> { [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/domains/circuits.rs:124:10 [INFO] [stdout] | [INFO] [stdout] 124 | rng: &mut R, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 126 | ) -> Vec + use> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Task<[bool], Representation = Language, Expression = Expression>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/domains/circuits.rs:164:10 [INFO] [stdout] | [INFO] [stdout] 164 | ) -> Vec> { [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/domains/circuits.rs:155:10 [INFO] [stdout] | [INFO] [stdout] 155 | rng: &mut R, [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] 164 | ) -> Vec + use> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Task<[(Vec, strings::Space)], Representation = Language, Expression = Expression>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/domains/strings.rs:306:10 [INFO] [stdout] | [INFO] [stdout] 306 | ) -> Vec, Space)], Representation = Language, Expression = Expression>> { [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/domains/strings.rs:303:10 [INFO] [stdout] | [INFO] [stdout] 303 | rng: &mut R, [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] 306 | ) -> Vec, Space)], Representation = Language, Expression = Expression> + use> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/ec.rs:379:8 [INFO] [stdout] | [INFO] [stdout] 379 | if let Ok(lock) = Arc::try_unwrap(frontiers) { [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/ec.rs:382:5 [INFO] [stdout] | [INFO] [stdout] 382 | } 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] 379 ~ match Arc::try_unwrap(frontiers) { Ok(lock) => { [INFO] [stdout] 380 | let frontiers = lock.into_inner().expect("enumeration frontiers poisoned"); [INFO] [stdout] 381 | frontiers.into_iter().map(|(j, _, f)| (j, f)).collect() [INFO] [stdout] 382 ~ } _ => { [INFO] [stdout] 383 | panic!("enumeration lifetime exceeded its scope") [INFO] [stdout] 384 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lambda/mod.rs:980:16 [INFO] [stdout] | [INFO] [stdout] 980 | if let Ok(o) = result { [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/lambda/mod.rs:982:13 [INFO] [stdout] | [INFO] [stdout] 982 | } 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] 980 ~ match result { Ok(o) => { [INFO] [stdout] 981 | o == *out [INFO] [stdout] 982 ~ } _ => { [INFO] [stdout] 983 | false [INFO] [stdout] 984 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lambda/mod.rs:1011:16 [INFO] [stdout] | [INFO] [stdout] 1011 | if let Ok(o) = result { [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/lambda/mod.rs:1013:13 [INFO] [stdout] | [INFO] [stdout] 1013 | } 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] 1011 ~ match result { Ok(o) => { [INFO] [stdout] 1012 | o == *out [INFO] [stdout] 1013 ~ } _ => { [INFO] [stdout] 1014 | false [INFO] [stdout] 1015 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lambda/compression.rs:463:31 [INFO] [stdout] | [INFO] [stdout] 463 | } else if let Some(mut frag_tp) = [INFO] [stdout] | _______________________________^ [INFO] [stdout] 464 | | TreeMatcher::do_match(self, ctx.to_mut(), expr, f, &mut bindings, xs.len()) [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/lambda/compression.rs:490:21 [INFO] [stdout] | [INFO] [stdout] 490 | } 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] 463 ~ } else { match TreeMatcher::do_match(self, ctx.to_mut(), expr, f, &mut bindings, xs.len()) [INFO] [stdout] 464 ~ { Some(mut frag_tp) => { [INFO] [stdout] 465 | let mut template = VecDeque::with_capacity(xs.len() + 1); [INFO] [stdout] ... [INFO] [stdout] 488 | tp = Cow::Owned(frag_tp); [INFO] [stdout] 489 ~ } _ => { [INFO] [stdout] 490 | continue; [INFO] [stdout] 491 ~ }}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lambda/enumerator.rs:581:20 [INFO] [stdout] | [INFO] [stdout] 581 | if let Some(expr) = s.expr.as_expression() { [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/lambda/enumerator.rs:583:17 [INFO] [stdout] | [INFO] [stdout] 583 | } 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] 581 ~ match s.expr.as_expression() { Some(expr) => { [INFO] [stdout] 582 | exprs.push((expr, s.cost, s.ctx)) [INFO] [stdout] 583 ~ } _ => { [INFO] [stdout] 584 | queue.push(s) [INFO] [stdout] 585 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lambda/eval.rs:661:39 [INFO] [stdout] | [INFO] [stdout] 661 | ... } else if let Application(mut v) = v { [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/lambda/eval.rs:664:29 [INFO] [stdout] | [INFO] [stdout] 664 | ... } 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] 661 ~ } else { match v { Application(mut v) => { [INFO] [stdout] 662 | v.extend(xs); [INFO] [stdout] 663 | Ok(Application(v)) [INFO] [stdout] 664 ~ } _ => { [INFO] [stdout] 665 | xs.insert(0, v); [INFO] [stdout] 666 | Ok(Application(xs)) [INFO] [stdout] 667 ~ }}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lambda/eval.rs:720:40 [INFO] [stdout] | [INFO] [stdout] 720 | ... if let Abstraction(_, _) = x { [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/lambda/eval.rs:731:37 [INFO] [stdout] | [INFO] [stdout] 731 | ... } 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] 720 ~ match x { Abstraction(_, _) => { [INFO] [stdout] 721 | Value( [INFO] [stdout] ... [INFO] [stdout] 730 | ) [INFO] [stdout] 731 ~ } _ => { [INFO] [stdout] 732 | x [INFO] [stdout] 733 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lambda/eval.rs:770:39 [INFO] [stdout] | [INFO] [stdout] 770 | ... } else if let Application(mut v) = v { [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/lambda/eval.rs:773:29 [INFO] [stdout] | [INFO] [stdout] 773 | ... } 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] 770 ~ } else { match v { Application(mut v) => { [INFO] [stdout] 771 | v.extend(xs); [INFO] [stdout] 772 | Ok(Application(v)) [INFO] [stdout] 773 ~ } _ => { [INFO] [stdout] 774 | Ok(Application(exprs.clone())) [INFO] [stdout] 775 ~ }}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/pcfg/mod.rs:595:12 [INFO] [stdout] | [INFO] [stdout] 595 | if let Ok(o) = g.eval(ar, &self.evaluator) { [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/pcfg/mod.rs:601:9 [INFO] [stdout] | [INFO] [stdout] 601 | } 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] 595 ~ match g.eval(ar, &self.evaluator) { Ok(o) => { [INFO] [stdout] 596 | if &o == self.output { [INFO] [stdout] ... [INFO] [stdout] 600 | } [INFO] [stdout] 601 ~ } _ => { [INFO] [stdout] 602 | f64::NEG_INFINITY [INFO] [stdout] 603 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Task + 'a` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/trs/mod.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | ) -> Result + 'a, TypeError> { [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/trs/mod.rs:171:10 [INFO] [stdout] | [INFO] [stdout] 171 | lex: &Lexicon, [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] 173 | ) -> Result + 'a + use<'a, O>, TypeError> { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/trs/lexicon.rs:1054:28 [INFO] [stdout] | [INFO] [stdout] 1054 | if let Ok(new_trs) = trs.add_rule( [INFO] [stdout] | ____________________________^ - [INFO] [stdout] | |______________________________________________| [INFO] [stdout] 1055 | || &templates, [INFO] [stdout] 1056 | || params.atom_weights, [INFO] [stdout] 1057 | || params.max_sample_size, [INFO] [stdout] 1058 | || rng, [INFO] [stdout] 1059 | || ) { [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] | [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/trs/lexicon.rs:1061:25 [INFO] [stdout] | [INFO] [stdout] 1061 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 1054 ~ match trs.add_rule( [INFO] [stdout] 1055 | &templates, [INFO] [stdout] ... [INFO] [stdout] 1058 | rng, [INFO] [stdout] 1059 ~ ) { Ok(new_trs) => { [INFO] [stdout] 1060 | return new_trs; [INFO] [stdout] 1061 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/trs/lexicon.rs:1091:23 [INFO] [stdout] | [INFO] [stdout] 1091 | } else if let Ok(new_trs) = trs.delete_rule(rng) { [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/trs/lexicon.rs:1093:13 [INFO] [stdout] | [INFO] [stdout] 1093 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 1091 ~ } else { match trs.delete_rule(rng) { Ok(new_trs) => { [INFO] [stdout] 1092 | return vec![new_trs]; [INFO] [stdout] 1093 ~ } _ => {}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/trs/lexicon.rs:1086:20 [INFO] [stdout] | [INFO] [stdout] 1086 | if let Ok(new_trs) = [INFO] [stdout] | ____________________^ [INFO] [stdout] 1087 | | trs.add_rule(&templates, params.atom_weights, params.max_sample_size, rng) [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/trs/lexicon.rs:1090:17 [INFO] [stdout] | [INFO] [stdout] 1090 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 1086 ~ match trs.add_rule(&templates, params.atom_weights, params.max_sample_size, rng) [INFO] [stdout] 1087 ~ { Ok(new_trs) => { [INFO] [stdout] 1088 | return vec![new_trs]; [INFO] [stdout] 1089 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating tests/ec.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `programinduction` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/trs/parser.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[E0107]: function takes 5 generic arguments but 6 generic arguments were supplied [INFO] [stderr] --> src/trs/parser.rs:216:5 [INFO] [stderr] | [INFO] [stderr] 216 | repeat::<_, _, (), _, _, _>(0.., (parse_comment, multispace0)).parse_next(input)?; [INFO] [stderr] | ^^^^^^ --- help: remove the unnecessary generic argument [INFO] [stderr] | | [INFO] [stderr] | expected 5 generic arguments [INFO] [stderr] | [INFO] [stderr] note: function defined here, with 5 generic parameters: `I`, `O`, `C`, `E`, `F` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/winnow-0.5.28/src/combinator/multi.rs:118:8 [INFO] [stderr] | [INFO] [stderr] 118 | pub fn repeat(range: impl Into, mut f: F) -> impl Parser [INFO] [stderr] | ^^^^^^ - - - - - [INFO] [stderr] = note: `impl Trait` cannot be explicitly specified as a generic argument [INFO] [stderr] [INFO] [stderr] warning: this function depends on never type fallback being `()` [INFO] [stderr] --> src/trs/parser.rs:214:1 [INFO] [stderr] | [INFO] [stderr] 214 | fn parse_irrelevant(input: &mut &str) -> PResult<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! [INFO] [stderr] = note: for more information, see issue #123748 [INFO] [stderr] = help: specify the types explicitly [INFO] [stderr] note: in edition 2024, the requirement `!: Accumulate<(&str, &str)>` will fail [INFO] [stderr] --> src/trs/parser.rs:216:20 [INFO] [stderr] | [INFO] [stderr] 216 | repeat::<_, _, (), _, _, _>(0.., (parse_comment, multispace0)).parse_next(input)?; [INFO] [stderr] | ^^ [INFO] [stderr] = note: `--force-warn dependency-on-unit-never-type-fallback` implied by `--force-warn rust-2024-compatibility` [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error; 1 warning emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0107`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/domains/strings.rs:308:23 [INFO] [stdout] | [INFO] [stdout] 308 | .flat_map(|_| gen::make_examples(rng, n_examples)) [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: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/domains/strings.rs:371:5 [INFO] [stdout] | [INFO] [stdout] 371 | mod 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] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/domains/strings.rs:383:28 [INFO] [stdout] | [INFO] [stdout] 383 | let c = c + if rng.gen() { 65 } else { 97 }; [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] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/pcfg/enumerator.rs:79:26 [INFO] [stdout] | [INFO] [stdout] 79 | let mut t: f64 = 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] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/domains/strings.rs:431:20 [INFO] [stdout] | [INFO] [stdout] 431 | ($name:expr, $tp:expr, $body:block) => { [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] 431 | ($name:expr_2021, $tp:expr, $body:block) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/domains/strings.rs:431:30 [INFO] [stdout] | [INFO] [stdout] 431 | ($name:expr, $tp:expr, $body:block) => { [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] 431 | ($name:expr, $tp:expr_2021, $body:block) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/domains/strings.rs:591:20 [INFO] [stdout] | [INFO] [stdout] 591 | ($name:expr, $f: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] 591 | ($name:expr_2021, $f: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/domains/strings.rs:591:29 [INFO] [stdout] | [INFO] [stdout] 591 | ($name:expr, $f: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] 591 | ($name:expr, $f: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/domains/strings.rs:703:21 [INFO] [stdout] | [INFO] [stdout] 703 | ($name1:expr, $f1:expr, $name2:expr, $f2: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] 703 | ($name1:expr_2021, $f1:expr, $name2:expr, $f2: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/domains/strings.rs:703:31 [INFO] [stdout] | [INFO] [stdout] 703 | ($name1:expr, $f1:expr, $name2:expr, $f2: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] 703 | ($name1:expr, $f1:expr_2021, $name2:expr, $f2: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/domains/strings.rs:703:44 [INFO] [stdout] | [INFO] [stdout] 703 | ($name1:expr, $f1:expr, $name2:expr, $f2: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] 703 | ($name1:expr, $f1:expr, $name2:expr_2021, $f2: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/domains/strings.rs:703:54 [INFO] [stdout] | [INFO] [stdout] 703 | ($name1:expr, $f1:expr, $name2:expr, $f2: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] 703 | ($name1:expr, $f1:expr, $name2:expr, $f2:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/trs/parser.rs:214:1 [INFO] [stdout] | [INFO] [stdout] 214 | fn parse_irrelevant(input: &mut &str) -> PResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! [INFO] [stdout] = note: for more information, see issue #123748 [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: Accumulate<(&str, &str)>` will fail [INFO] [stdout] --> src/trs/parser.rs:216:5 [INFO] [stdout] | [INFO] [stdout] 216 | repeat(0.., (parse_comment, multispace0)).parse_next(input)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn dependency-on-unit-never-type-fallback` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use `()` annotations to avoid fallback changes [INFO] [stdout] | [INFO] [stdout] 216 | repeat::<_, _, (), _, _, _>(0.., (parse_comment, multispace0)).parse_next(input)?; [INFO] [stdout] | +++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: patterns are not allowed to reset the default binding mode in edition 2024 [INFO] [stdout] --> src/trs/lexicon.rs:784:17 [INFO] [stdout] | [INFO] [stdout] 784 | Some(Atom::Operator(ref o)) if o.arity() == 0 => cw, [INFO] [stdout] | -^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: desugar the match ergonomics: `&&` [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see 123076 [INFO] [stdout] = note: `--force-warn rust-2024-incompatible-pat` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Task<[bool], Representation = Language, Expression = Expression>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/domains/circuits.rs:126:10 [INFO] [stdout] | [INFO] [stdout] 126 | ) -> Vec> { [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/domains/circuits.rs:124:10 [INFO] [stdout] | [INFO] [stdout] 124 | rng: &mut R, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 126 | ) -> Vec + use> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Task<[bool], Representation = Language, Expression = Expression>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/domains/circuits.rs:164:10 [INFO] [stdout] | [INFO] [stdout] 164 | ) -> Vec> { [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/domains/circuits.rs:155:10 [INFO] [stdout] | [INFO] [stdout] 155 | rng: &mut R, [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] 164 | ) -> Vec + use> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Task<[(Vec, strings::Space)], Representation = Language, Expression = Expression>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/domains/strings.rs:306:10 [INFO] [stdout] | [INFO] [stdout] 306 | ) -> Vec, Space)], Representation = Language, Expression = Expression>> { [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/domains/strings.rs:303:10 [INFO] [stdout] | [INFO] [stdout] 303 | rng: &mut R, [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] 306 | ) -> Vec, Space)], Representation = Language, Expression = Expression> + use> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/ec.rs:379:8 [INFO] [stdout] | [INFO] [stdout] 379 | if let Ok(lock) = Arc::try_unwrap(frontiers) { [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/ec.rs:382:5 [INFO] [stdout] | [INFO] [stdout] 382 | } 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] 379 ~ match Arc::try_unwrap(frontiers) { Ok(lock) => { [INFO] [stdout] 380 | let frontiers = lock.into_inner().expect("enumeration frontiers poisoned"); [INFO] [stdout] 381 | frontiers.into_iter().map(|(j, _, f)| (j, f)).collect() [INFO] [stdout] 382 ~ } _ => { [INFO] [stdout] 383 | panic!("enumeration lifetime exceeded its scope") [INFO] [stdout] 384 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lambda/mod.rs:980:16 [INFO] [stdout] | [INFO] [stdout] 980 | if let Ok(o) = result { [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/lambda/mod.rs:982:13 [INFO] [stdout] | [INFO] [stdout] 982 | } 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] 980 ~ match result { Ok(o) => { [INFO] [stdout] 981 | o == *out [INFO] [stdout] 982 ~ } _ => { [INFO] [stdout] 983 | false [INFO] [stdout] 984 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lambda/mod.rs:1011:16 [INFO] [stdout] | [INFO] [stdout] 1011 | if let Ok(o) = result { [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/lambda/mod.rs:1013:13 [INFO] [stdout] | [INFO] [stdout] 1013 | } 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] 1011 ~ match result { Ok(o) => { [INFO] [stdout] 1012 | o == *out [INFO] [stdout] 1013 ~ } _ => { [INFO] [stdout] 1014 | false [INFO] [stdout] 1015 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lambda/compression.rs:463:31 [INFO] [stdout] | [INFO] [stdout] 463 | } else if let Some(mut frag_tp) = [INFO] [stdout] | _______________________________^ [INFO] [stdout] 464 | | TreeMatcher::do_match(self, ctx.to_mut(), expr, f, &mut bindings, xs.len()) [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/lambda/compression.rs:490:21 [INFO] [stdout] | [INFO] [stdout] 490 | } 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] 463 ~ } else { match TreeMatcher::do_match(self, ctx.to_mut(), expr, f, &mut bindings, xs.len()) [INFO] [stdout] 464 ~ { Some(mut frag_tp) => { [INFO] [stdout] 465 | let mut template = VecDeque::with_capacity(xs.len() + 1); [INFO] [stdout] ... [INFO] [stdout] 488 | tp = Cow::Owned(frag_tp); [INFO] [stdout] 489 ~ } _ => { [INFO] [stdout] 490 | continue; [INFO] [stdout] 491 ~ }}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lambda/enumerator.rs:581:20 [INFO] [stdout] | [INFO] [stdout] 581 | if let Some(expr) = s.expr.as_expression() { [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/lambda/enumerator.rs:583:17 [INFO] [stdout] | [INFO] [stdout] 583 | } 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] 581 ~ match s.expr.as_expression() { Some(expr) => { [INFO] [stdout] 582 | exprs.push((expr, s.cost, s.ctx)) [INFO] [stdout] 583 ~ } _ => { [INFO] [stdout] 584 | queue.push(s) [INFO] [stdout] 585 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lambda/eval.rs:661:39 [INFO] [stdout] | [INFO] [stdout] 661 | ... } else if let Application(mut v) = v { [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/lambda/eval.rs:664:29 [INFO] [stdout] | [INFO] [stdout] 664 | ... } 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] 661 ~ } else { match v { Application(mut v) => { [INFO] [stdout] 662 | v.extend(xs); [INFO] [stdout] 663 | Ok(Application(v)) [INFO] [stdout] 664 ~ } _ => { [INFO] [stdout] 665 | xs.insert(0, v); [INFO] [stdout] 666 | Ok(Application(xs)) [INFO] [stdout] 667 ~ }}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lambda/eval.rs:720:40 [INFO] [stdout] | [INFO] [stdout] 720 | ... if let Abstraction(_, _) = x { [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/lambda/eval.rs:731:37 [INFO] [stdout] | [INFO] [stdout] 731 | ... } 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] 720 ~ match x { Abstraction(_, _) => { [INFO] [stdout] 721 | Value( [INFO] [stdout] ... [INFO] [stdout] 730 | ) [INFO] [stdout] 731 ~ } _ => { [INFO] [stdout] 732 | x [INFO] [stdout] 733 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lambda/eval.rs:770:39 [INFO] [stdout] | [INFO] [stdout] 770 | ... } else if let Application(mut v) = v { [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/lambda/eval.rs:773:29 [INFO] [stdout] | [INFO] [stdout] 773 | ... } 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] 770 ~ } else { match v { Application(mut v) => { [INFO] [stdout] 771 | v.extend(xs); [INFO] [stdout] 772 | Ok(Application(v)) [INFO] [stdout] 773 ~ } _ => { [INFO] [stdout] 774 | Ok(Application(exprs.clone())) [INFO] [stdout] 775 ~ }}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/pcfg/mod.rs:595:12 [INFO] [stdout] | [INFO] [stdout] 595 | if let Ok(o) = g.eval(ar, &self.evaluator) { [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/pcfg/mod.rs:601:9 [INFO] [stdout] | [INFO] [stdout] 601 | } 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] 595 ~ match g.eval(ar, &self.evaluator) { Ok(o) => { [INFO] [stdout] 596 | if &o == self.output { [INFO] [stdout] ... [INFO] [stdout] 600 | } [INFO] [stdout] 601 ~ } _ => { [INFO] [stdout] 602 | f64::NEG_INFINITY [INFO] [stdout] 603 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Task + 'a` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/trs/mod.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | ) -> Result + 'a, TypeError> { [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/trs/mod.rs:171:10 [INFO] [stdout] | [INFO] [stdout] 171 | lex: &Lexicon, [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] 173 | ) -> Result + 'a + use<'a, O>, TypeError> { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/trs/lexicon.rs:1054:28 [INFO] [stdout] | [INFO] [stdout] 1054 | if let Ok(new_trs) = trs.add_rule( [INFO] [stdout] | ____________________________^ - [INFO] [stdout] | |______________________________________________| [INFO] [stdout] 1055 | || &templates, [INFO] [stdout] 1056 | || params.atom_weights, [INFO] [stdout] 1057 | || params.max_sample_size, [INFO] [stdout] 1058 | || rng, [INFO] [stdout] 1059 | || ) { [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] | [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/trs/lexicon.rs:1061:25 [INFO] [stdout] | [INFO] [stdout] 1061 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 1054 ~ match trs.add_rule( [INFO] [stdout] 1055 | &templates, [INFO] [stdout] ... [INFO] [stdout] 1058 | rng, [INFO] [stdout] 1059 ~ ) { Ok(new_trs) => { [INFO] [stdout] 1060 | return new_trs; [INFO] [stdout] 1061 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/trs/lexicon.rs:1091:23 [INFO] [stdout] | [INFO] [stdout] 1091 | } else if let Ok(new_trs) = trs.delete_rule(rng) { [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/trs/lexicon.rs:1093:13 [INFO] [stdout] | [INFO] [stdout] 1093 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 1091 ~ } else { match trs.delete_rule(rng) { Ok(new_trs) => { [INFO] [stdout] 1092 | return vec![new_trs]; [INFO] [stdout] 1093 ~ } _ => {}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/trs/lexicon.rs:1086:20 [INFO] [stdout] | [INFO] [stdout] 1086 | if let Ok(new_trs) = [INFO] [stdout] | ____________________^ [INFO] [stdout] 1087 | | trs.add_rule(&templates, params.atom_weights, params.max_sample_size, rng) [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/trs/lexicon.rs:1090:17 [INFO] [stdout] | [INFO] [stdout] 1090 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 1086 ~ match trs.add_rule(&templates, params.atom_weights, params.max_sample_size, rng) [INFO] [stdout] 1087 ~ { Ok(new_trs) => { [INFO] [stdout] 1088 | return vec![new_trs]; [INFO] [stdout] 1089 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating examples/json_compressor.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/gp.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/lambda.rs from 2021 edition to 2024 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.70s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v4.2.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking programinduction v0.9.0 (/tmp/fixit) [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/domains/strings.rs:308:23 [INFO] [stdout] | [INFO] [stdout] 308 | .flat_map(|_| gen::make_examples(rng, n_examples)) [INFO] [stdout] | --- ^^^ expected expression [INFO] [stdout] | | [INFO] [stdout] | while parsing the body of this closure [INFO] [stdout] | [INFO] [stdout] help: you might have meant to open the body of the closure [INFO] [stdout] | [INFO] [stdout] 308 | .flat_map(|_| { gen::make_examples(rng, n_examples)}) [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/domains/strings.rs:308:23 [INFO] [stdout] | [INFO] [stdout] 308 | .flat_map(|_| gen::make_examples(rng, n_examples)) [INFO] [stdout] | --- ^^^ expected expression [INFO] [stdout] | | [INFO] [stdout] | while parsing the body of this closure [INFO] [stdout] | [INFO] [stdout] help: you might have meant to open the body of the closure [INFO] [stdout] | [INFO] [stdout] 308 | .flat_map(|_| { gen::make_examples(rng, n_examples)}) [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/domains/strings.rs:371:5 [INFO] [stdout] | [INFO] [stdout] 371 | mod 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] 371 | mod r#gen { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/domains/strings.rs:371:5 [INFO] [stdout] | [INFO] [stdout] 371 | mod 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] 371 | mod r#gen { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/domains/strings.rs:383:28 [INFO] [stdout] | [INFO] [stdout] 383 | let c = c + if rng.gen() { 65 } else { 97 }; [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 383 | let c = c + if rng.r#gen() { 65 } else { 97 }; [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/domains/strings.rs:383:28 [INFO] [stdout] | [INFO] [stdout] 383 | let c = c + if rng.gen() { 65 } else { 97 }; [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 383 | let c = c + if rng.r#gen() { 65 } else { 97 }; [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/pcfg/enumerator.rs:79:26 [INFO] [stdout] | [INFO] [stdout] 79 | let mut t: f64 = 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] 79 | let mut t: f64 = rng.r#gen(); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/pcfg/enumerator.rs:79:26 [INFO] [stdout] | [INFO] [stdout] 79 | let mut t: f64 = 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] 79 | let mut t: f64 = rng.r#gen(); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: Accumulate<(&str, &str)>` is not satisfied [INFO] [stdout] --> src/trs/parser.rs:216:5 [INFO] [stdout] | [INFO] [stdout] 216 | repeat(0.., (parse_comment, multispace0)).parse_next(input)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Accumulate<(&str, &str)>` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `Accumulate`: [INFO] [stdout] `()` implements `Accumulate` [INFO] [stdout] `BTreeMap` implements `Accumulate<(K, V)>` [INFO] [stdout] `BTreeSet` implements `Accumulate` [INFO] [stdout] `HashMap` implements `Accumulate<(K, V)>` [INFO] [stdout] `HashSet` implements `Accumulate` [INFO] [stdout] `Vec` implements `Accumulate<&'i [T]>` [INFO] [stdout] `Vec` implements `Accumulate` [INFO] [stdout] `std::string::String` implements `Accumulate<&'i str>` [INFO] [stdout] and 2 others [INFO] [stdout] = note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #48950 for more information) [INFO] [stdout] = help: did you intend to use the type `()` here instead? [INFO] [stdout] note: required by a bound in `winnow::combinator::repeat` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/winnow-0.5.28/src/combinator/multi.rs:121:8 [INFO] [stdout] | [INFO] [stdout] 118 | pub fn repeat(range: impl Into, mut f: F) -> impl Parser [INFO] [stdout] | ------ required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 121 | C: Accumulate, [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `repeat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: Accumulate<(&str, &str)>` is not satisfied [INFO] [stdout] --> src/trs/parser.rs:216:5 [INFO] [stdout] | [INFO] [stdout] 216 | repeat(0.., (parse_comment, multispace0)).parse_next(input)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Accumulate<(&str, &str)>` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `Accumulate`: [INFO] [stdout] `()` implements `Accumulate` [INFO] [stdout] `BTreeMap` implements `Accumulate<(K, V)>` [INFO] [stdout] `BTreeSet` implements `Accumulate` [INFO] [stdout] `HashMap` implements `Accumulate<(K, V)>` [INFO] [stdout] `HashSet` implements `Accumulate` [INFO] [stdout] `Vec` implements `Accumulate<&'i [T]>` [INFO] [stdout] `Vec` implements `Accumulate` [INFO] [stdout] `std::string::String` implements `Accumulate<&'i str>` [INFO] [stdout] and 2 others [INFO] [stdout] = note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #48950 for more information) [INFO] [stdout] = help: did you intend to use the type `()` here instead? [INFO] [stdout] note: required by a bound in `winnow::combinator::repeat` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/winnow-0.5.28/src/combinator/multi.rs:121:8 [INFO] [stdout] | [INFO] [stdout] 118 | pub fn repeat(range: impl Into, mut f: F) -> impl Parser [INFO] [stdout] | ------ required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 121 | C: Accumulate, [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `repeat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: patterns are not allowed to reset the default binding mode in edition 2024 [INFO] [stdout] --> src/trs/lexicon.rs:784:17 [INFO] [stdout] | [INFO] [stdout] 784 | Some(Atom::Operator(ref o)) if o.arity() == 0 => cw, [INFO] [stdout] | -^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: desugar the match ergonomics: `&&` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: patterns are not allowed to reset the default binding mode in edition 2024 [INFO] [stdout] --> src/trs/lexicon.rs:784:17 [INFO] [stdout] | [INFO] [stdout] 784 | Some(Atom::Operator(ref o)) if o.arity() == 0 => cw, [INFO] [stdout] | -^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: desugar the match ergonomics: `&&` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `programinduction` (lib) due to 6 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `programinduction` (lib test) due to 6 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" "8caf10c90a023bc4555ce21ea05684aae6b8f4476ec78a6a0f1189b4ed4e30fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8caf10c90a023bc4555ce21ea05684aae6b8f4476ec78a6a0f1189b4ed4e30fa", kill_on_drop: false }` [INFO] [stdout] 8caf10c90a023bc4555ce21ea05684aae6b8f4476ec78a6a0f1189b4ed4e30fa