[INFO] cloning repository https://github.com/Johan-Mi/scratch-compiler-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Johan-Mi/scratch-compiler-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJohan-Mi%2Fscratch-compiler-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJohan-Mi%2Fscratch-compiler-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1c20791b0cc9984326d19c5588f15bc73ec207fa [INFO] checking Johan-Mi/scratch-compiler-rs/1c20791b0cc9984326d19c5588f15bc73ec207fa against try#65132f36b923285d5da381c2fbafee6ce899e841 for pr-132712-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJohan-Mi%2Fscratch-compiler-rs" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Johan-Mi/scratch-compiler-rs 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] removed /workspace/builds/worker-2-tc2/source/rust-toolchain [INFO] started tweaking git repo https://github.com/Johan-Mi/scratch-compiler-rs [INFO] finished tweaking git repo https://github.com/Johan-Mi/scratch-compiler-rs [INFO] tweaked toml for git repo https://github.com/Johan-Mi/scratch-compiler-rs written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Johan-Mi/scratch-compiler-rs 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] 3645644bd0fcf13e2f700108333cdce2306d96b64cb95e8aead9b1dc3ad9250d [INFO] running `Command { std: "docker" "start" "-a" "3645644bd0fcf13e2f700108333cdce2306d96b64cb95e8aead9b1dc3ad9250d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3645644bd0fcf13e2f700108333cdce2306d96b64cb95e8aead9b1dc3ad9250d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3645644bd0fcf13e2f700108333cdce2306d96b64cb95e8aead9b1dc3ad9250d", kill_on_drop: false }` [INFO] [stdout] 3645644bd0fcf13e2f700108333cdce2306d96b64cb95e8aead9b1dc3ad9250d [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] 7c5e29d5a6e9fb0feb32aae911c9892983f3180b4233041e22367c9015037b06 [INFO] running `Command { std: "docker" "start" "-a" "7c5e29d5a6e9fb0feb32aae911c9892983f3180b4233041e22367c9015037b06", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Compiling cranelift-isle v0.97.2 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling cranelift-codegen-shared v0.97.2 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Compiling target-lexicon v0.12.13 [INFO] [stderr] Checking cranelift-entity v0.97.2 [INFO] [stderr] Compiling cranelift-codegen-meta v0.97.2 [INFO] [stderr] Checking fallible-iterator v0.2.0 [INFO] [stderr] Checking ahash v0.8.8 [INFO] [stderr] Checking smallvec v1.13.1 [INFO] [stderr] Compiling crc32fast v1.4.0 [INFO] [stderr] Checking hashbrown v0.13.2 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Checking arbitrary v1.3.2 [INFO] [stderr] Checking slice-group-by v0.3.1 [INFO] [stderr] Checking cranelift-bforest v0.97.2 [INFO] [stderr] Checking bumpalo v3.14.0 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Checking regalloc2 v0.9.3 [INFO] [stderr] Checking gimli v0.27.3 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Checking cranelift-control v0.97.2 [INFO] [stderr] Compiling anyhow v1.0.79 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Compiling beef v0.5.2 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Compiling serde v1.0.196 [INFO] [stderr] Checking miniz_oxide v0.7.2 [INFO] [stderr] Compiling serde_json v1.0.113 [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Checking flate2 v1.0.28 [INFO] [stderr] Checking object v0.30.4 [INFO] [stderr] Checking ecow v0.2.0 [INFO] [stderr] Checking codemap v0.1.3 [INFO] [stderr] Compiling cranelift-codegen v0.97.2 [INFO] [stderr] Checking ryu-js v0.2.2 [INFO] [stderr] Checking ryu v1.0.16 [INFO] [stderr] Checking zip v0.6.6 [INFO] [stderr] Checking sb3-stuff v0.1.0 (https://github.com/Johan-Mi/sb3-stuff#e1dea5f9) [INFO] [stderr] Checking codemap-diagnostic v0.1.1 (https://github.com/Johan-Mi/codemap-diagnostic#c7860a6d) [INFO] [stderr] Checking env_logger v0.10.2 [INFO] [stderr] Checking lispfmt v0.1.0 (https://github.com/Johan-Mi/lispfmt#37c51553) [INFO] [stderr] Checking md5 v0.7.0 [INFO] [stderr] Checking winnow v0.5.40 [INFO] [stderr] Compiling logos-codegen v0.14.0 [INFO] [stderr] Compiling gumdrop_derive v0.8.1 [INFO] [stderr] Compiling serde_derive v1.0.196 [INFO] [stderr] Checking gumdrop v0.8.1 [INFO] [stderr] Compiling logos-derive v0.14.0 [INFO] [stderr] Checking logos v0.14.0 [INFO] [stderr] Checking cranelift-frontend v0.97.2 [INFO] [stderr] Checking cranelift-module v0.97.2 [INFO] [stderr] Checking cranelift-object v0.97.2 [INFO] [stderr] Checking cranelift v0.97.2 [INFO] [stderr] Checking scratch-compiler v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `scratch_compiler` [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/ir/expr.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | ($s:expr, $($lit:literal),* $(,)?) => { [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] 25 | ($s:expr_2021, $($lit:literal),* $(,)?) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: patterns are not allowed to reset the default binding mode in edition 2024 [INFO] [stdout] --> src/optimize.rs:283:12 [INFO] [stdout] | [INFO] [stdout] 283 | if let FuncCall("to-num", _, ref mut args) = expr [INFO] [stdout] | -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: desugar the match ergonomics: `&mut` [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] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stdout] warning: patterns are not allowed to reset the default binding mode in edition 2024 [INFO] [stdout] --> src/optimize.rs:426:9 [INFO] [stdout] | [INFO] [stdout] 426 | Do(ref mut stmts) if stmts.len() == 1 => { [INFO] [stdout] | -^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: desugar the match ergonomics: `&mut` [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see 123076 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: `impl CallbackResult<'s, lispfmt::Token<'s, formatter::Atom<'s>>, WrappedToken<'s>>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formatter.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos)] [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/formatter.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos)] [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] = note: this warning originates in the derive macro `Logos` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos + use<'s>)] [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] * src/formatter.rs [INFO] [stdout] warning: `impl CallbackResult<'s, lispfmt::Token<'s, formatter::Atom<'s>>, WrappedToken<'s>>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formatter.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos)] [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/formatter.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos)] [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: this warning originates in the derive macro `Logos` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos + use<'s>)] [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: `impl CallbackResult<'s, lispfmt::Token<'s, formatter::Atom<'s>>, WrappedToken<'s>>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formatter.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos)] [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/formatter.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos)] [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: this warning originates in the derive macro `Logos` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos + use<'s>)] [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stdout] warning: `impl CallbackResult<'s, lispfmt::Token<'s, formatter::Atom<'s>>, WrappedToken<'s>>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formatter.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos)] [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/formatter.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos)] [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: this warning originates in the derive macro `Logos` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos + use<'s>)] [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stdout] warning: `impl CallbackResult<'s, lispfmt::Token<'s, formatter::Atom<'s>>, WrappedToken<'s>>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formatter.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos)] [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/formatter.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos)] [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: this warning originates in the derive macro `Logos` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos + use<'s>)] [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stdout] warning: `impl CallbackResult<'s, lispfmt::Token<'s, formatter::Atom<'s>>, WrappedToken<'s>>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formatter.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos)] [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/formatter.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos)] [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: this warning originates in the derive macro `Logos` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos + use<'s>)] [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stdout] warning: `impl CallbackResult<'s, lispfmt::Token<'s, formatter::Atom<'s>>, WrappedToken<'s>>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formatter.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos)] [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/formatter.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos)] [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: this warning originates in the derive macro `Logos` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos + use<'s>)] [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stdout] warning: `impl CallbackResult<'s, lispfmt::Token<'s, formatter::Atom<'s>>, WrappedToken<'s>>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formatter.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos)] [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/formatter.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos)] [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: this warning originates in the derive macro `Logos` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos + use<'s>)] [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [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: expected one of `(`, `,`, `::`, or `=`, found `+` [INFO] [stderr] --> src/formatter.rs:46:16 [INFO] [stderr] | [INFO] [stderr] 46 | #[derive(Logos + use<'s>)] [INFO] [stderr] | ^ expected one of `(`, `,`, `::`, or `=` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type `WrappedToken` [INFO] [stderr] --> src/formatter.rs:7:22 [INFO] [stderr] | [INFO] [stderr] 7 | let mut tokens = WrappedToken::lexer(&source_code).map(|token| match token.unwrap() { [INFO] [stderr] | ^^^^^^^^^^^^ use of undeclared type `WrappedToken` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type `WrappedToken` [INFO] [stderr] --> src/formatter.rs:8:9 [INFO] [stderr] | [INFO] [stderr] 8 | WrappedToken::Of(inner) => inner, [INFO] [stderr] | ^^^^^^^^^^^^ use of undeclared type `WrappedToken` [INFO] [stderr] [INFO] [stderr] error: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0433`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `scratch_compiler` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/formatter.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: expected one of `(`, `,`, `::`, or `=`, found `+` [INFO] [stderr] --> src/formatter.rs:46:16 [INFO] [stderr] | [INFO] [stderr] 46 | #[derive(Logos + use<'s>)] [INFO] [stderr] | ^ expected one of `(`, `,`, `::`, or `=` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type `WrappedToken` [INFO] [stderr] --> src/formatter.rs:7:22 [INFO] [stderr] | [INFO] [stderr] 7 | let mut tokens = WrappedToken::lexer(&source_code).map(|token| match token.unwrap() { [INFO] [stderr] | ^^^^^^^^^^^^ use of undeclared type `WrappedToken` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type `WrappedToken` [INFO] [stderr] --> src/formatter.rs:8:9 [INFO] [stderr] | [INFO] [stderr] 8 | WrappedToken::Of(inner) => inner, [INFO] [stderr] | ^^^^^^^^^^^^ use of undeclared type `WrappedToken` [INFO] [stderr] [INFO] [stderr] error: aborting due to 3 previous errors [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/ir/expr.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | ($s:expr, $($lit:literal),* $(,)?) => { [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] 25 | ($s:expr_2021, $($lit:literal),* $(,)?) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: patterns are not allowed to reset the default binding mode in edition 2024 [INFO] [stdout] --> src/optimize.rs:283:12 [INFO] [stdout] | [INFO] [stdout] 283 | if let FuncCall("to-num", _, ref mut args) = expr [INFO] [stdout] | -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: desugar the match ergonomics: `&mut` [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] [stderr] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] warning: patterns are not allowed to reset the default binding mode in edition 2024 [INFO] [stdout] --> src/optimize.rs:426:9 [INFO] [stdout] | [INFO] [stdout] 426 | Do(ref mut stmts) if stmts.len() == 1 => { [INFO] [stdout] | -^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: desugar the match ergonomics: `&mut` [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see 123076 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Original diagnostics will follow. [INFO] [stdout] warning: `impl CallbackResult<'s, lispfmt::Token<'s, formatter::Atom<'s>>, WrappedToken<'s>>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formatter.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos)] [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/formatter.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos)] [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] = note: this warning originates in the derive macro `Logos` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos + use<'s>)] [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: `impl CallbackResult<'s, lispfmt::Token<'s, formatter::Atom<'s>>, WrappedToken<'s>>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formatter.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos)] [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/formatter.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos)] [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: this warning originates in the derive macro `Logos` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos + use<'s>)] [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl CallbackResult<'s, lispfmt::Token<'s, formatter::Atom<'s>>, WrappedToken<'s>>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formatter.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos)] [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/formatter.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos)] [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: this warning originates in the derive macro `Logos` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos + use<'s>)] [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl CallbackResult<'s, lispfmt::Token<'s, formatter::Atom<'s>>, WrappedToken<'s>>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formatter.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos)] [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/formatter.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos)] [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: this warning originates in the derive macro `Logos` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos + use<'s>)] [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 26.99s [INFO] [stdout] warning: `impl CallbackResult<'s, lispfmt::Token<'s, formatter::Atom<'s>>, WrappedToken<'s>>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formatter.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos)] [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/formatter.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos)] [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: this warning originates in the derive macro `Logos` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos + use<'s>)] [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl CallbackResult<'s, lispfmt::Token<'s, formatter::Atom<'s>>, WrappedToken<'s>>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formatter.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos)] [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/formatter.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos)] [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: this warning originates in the derive macro `Logos` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos + use<'s>)] [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl CallbackResult<'s, lispfmt::Token<'s, formatter::Atom<'s>>, WrappedToken<'s>>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formatter.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos)] [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/formatter.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos)] [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: this warning originates in the derive macro `Logos` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos + use<'s>)] [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl CallbackResult<'s, lispfmt::Token<'s, formatter::Atom<'s>>, WrappedToken<'s>>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formatter.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos)] [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/formatter.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos)] [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: this warning originates in the derive macro `Logos` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Logos + use<'s>)] [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking scratch-compiler v0.1.0 (/tmp/fixit) [INFO] [stdout] error: patterns are not allowed to reset the default binding mode in edition 2024 [INFO] [stdout] --> src/optimize.rs:283:12 [INFO] [stdout] | [INFO] [stdout] 283 | if let FuncCall("to-num", _, ref mut args) = expr [INFO] [stdout] | -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: desugar the match ergonomics: `&mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: patterns are not allowed to reset the default binding mode in edition 2024 [INFO] [stdout] --> src/optimize.rs:426:9 [INFO] [stdout] | [INFO] [stdout] 426 | Do(ref mut stmts) if stmts.len() == 1 => { [INFO] [stdout] | -^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: desugar the match ergonomics: `&mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: patterns are not allowed to reset the default binding mode in edition 2024 [INFO] [stdout] --> src/optimize.rs:283:12 [INFO] [stdout] | [INFO] [stdout] 283 | if let FuncCall("to-num", _, ref mut args) = expr [INFO] [stdout] | -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: desugar the match ergonomics: `&mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: patterns are not allowed to reset the default binding mode in edition 2024 [INFO] [stdout] --> src/optimize.rs:426:9 [INFO] [stdout] | [INFO] [stdout] 426 | Do(ref mut stmts) if stmts.len() == 1 => { [INFO] [stdout] | -^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: desugar the match ergonomics: `&mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `scratch-compiler` (bin "scratch-compiler" test) due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `scratch-compiler` (bin "scratch-compiler") due to 2 previous errors [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "7c5e29d5a6e9fb0feb32aae911c9892983f3180b4233041e22367c9015037b06", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7c5e29d5a6e9fb0feb32aae911c9892983f3180b4233041e22367c9015037b06", kill_on_drop: false }` [INFO] [stdout] 7c5e29d5a6e9fb0feb32aae911c9892983f3180b4233041e22367c9015037b06