[INFO] fetching crate openqasm 0.1.2... [INFO] checking openqasm-0.1.2 against try#65132f36b923285d5da381c2fbafee6ce899e841 for pr-132712-1 [INFO] extracting crate openqasm 0.1.2 into /workspace/builds/worker-7-tc2/source [INFO] validating manifest of crates.io crate openqasm 0.1.2 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 openqasm 0.1.2 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate openqasm 0.1.2 [INFO] tweaked toml for crates.io crate openqasm 0.1.2 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate crates.io crate openqasm 0.1.2 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-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 0243f49d108fdf5c546cb8c9a4e7e173d54a5b5a6f5dcffdeafdd78937d7bc3f [INFO] running `Command { std: "docker" "start" "-a" "0243f49d108fdf5c546cb8c9a4e7e173d54a5b5a6f5dcffdeafdd78937d7bc3f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0243f49d108fdf5c546cb8c9a4e7e173d54a5b5a6f5dcffdeafdd78937d7bc3f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0243f49d108fdf5c546cb8c9a4e7e173d54a5b5a6f5dcffdeafdd78937d7bc3f", kill_on_drop: false }` [INFO] [stdout] 0243f49d108fdf5c546cb8c9a4e7e173d54a5b5a6f5dcffdeafdd78937d7bc3f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 3305b8c8e446897dee47f99a1abe09a1960992df19b90a0871884a3f00913c82 [INFO] running `Command { std: "docker" "start" "-a" "3305b8c8e446897dee47f99a1abe09a1960992df19b90a0871884a3f00913c82", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling libc v0.2.119 [INFO] [stderr] Compiling indexmap v1.8.0 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling libm v0.2.2 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling lock_api v0.4.6 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling siphasher v0.3.9 [INFO] [stderr] Compiling semver v1.0.5 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Compiling new_debug_unreachable v1.0.4 [INFO] [stderr] Compiling term v0.7.0 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling fixedbitset v0.2.0 [INFO] [stderr] Compiling string_cache v0.8.3 [INFO] [stderr] Compiling ascii-canvas v3.0.0 [INFO] [stderr] Compiling petgraph v0.5.1 [INFO] [stderr] Compiling bit-set v0.5.2 [INFO] [stderr] Compiling itertools v0.10.3 [INFO] [stderr] Compiling ena v0.14.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling num-rational v0.4.0 [INFO] [stderr] Compiling diff v0.1.12 [INFO] [stderr] Compiling pico-args v0.4.2 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Compiling utf8-ranges v1.0.4 [INFO] [stderr] Checking getrandom v0.2.4 [INFO] [stderr] Compiling beef v0.5.1 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking num-complex v0.4.0 [INFO] [stderr] Checking fixedbitset v0.4.1 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking petgraph v0.6.0 [INFO] [stderr] Checking lalrpop-util v0.19.7 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking num v0.4.0 [INFO] [stderr] Compiling lalrpop v0.19.7 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling logos-derive v0.12.0 [INFO] [stderr] Checking thiserror v1.0.30 [INFO] [stderr] Checking logos v0.12.0 [INFO] [stderr] Compiling openqasm v0.1.2 (/tmp/fixit) [INFO] [stderr] Migrating build.rs from 2021 edition to 2024 [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `openqasm` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * /opt/rustwide/target/debug/build/openqasm-559a6b0b86021640/out/grammar.rs [INFO] [stderr] * src/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: expected one of `(`, `,`, `::`, or `=`, found `+` [INFO] [stderr] --> src/parser.rs:23:20 [INFO] [stderr] | [INFO] [stderr] 23 | #[derive(Logos + use<'s>, Debug, PartialEq, Clone)] [INFO] [stderr] | ^ expected one of `(`, `,`, `::`, or `=` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `super::Token` [INFO] [stderr] --> /opt/rustwide/target/debug/build/openqasm-559a6b0b86021640/out/grammar.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use super::Token; [INFO] [stderr] | ^^^^^^^^^^^^ no `Token` in `parser::generated` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `super::super::Token` [INFO] [stderr] --> /opt/rustwide/target/debug/build/openqasm-559a6b0b86021640/out/grammar.rs:17:9 [INFO] [stderr] | [INFO] [stderr] 17 | use super::super::Token; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ no `Token` in `parser::generated` [INFO] [stderr] | [INFO] [stderr] help: consider importing this unresolved item through its public re-export instead [INFO] [stderr] | [INFO] [stderr] 17 | use crate::parser::generated::parser_impl::Token; [INFO] [stderr] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `super::super::Token` [INFO] [stderr] --> /opt/rustwide/target/debug/build/openqasm-559a6b0b86021640/out/grammar.rs:3367:9 [INFO] [stderr] | [INFO] [stderr] 3367 | use super::super::Token; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ no `Token` in `parser::generated` [INFO] [stderr] | [INFO] [stderr] help: consider importing this unresolved item through its public re-export instead [INFO] [stderr] | [INFO] [stderr] 3367 | use crate::parser::generated::parser_impl::Token; [INFO] [stderr] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `Token` in `generated` [INFO] [stderr] --> src/parser.rs:518:32 [INFO] [stderr] | [INFO] [stderr] 518 | let lexer = generated::Token::lexer(&self.cache.strings[&id]) [INFO] [stderr] | ^^^^^ could not find `Token` in `generated` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `Token` in `generated` [INFO] [stderr] --> src/parser.rs:521:28 [INFO] [stderr] | [INFO] [stderr] 521 | generated::Token::Error => Err(FileSpan { [INFO] [stderr] | ^^^^^ could not find `Token` in `generated` [INFO] [stderr] [INFO] [stderr] error: aborting due to 6 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0432, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0432`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/translate/value.rs:436:30 [INFO] [stdout] | [INFO] [stdout] 436 | let a: u32 = rng.gen(); [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] = note: `--force-warn keyword-idents-2024` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/parser.rs:464:20 [INFO] [stdout] | [INFO] [stdout] 464 | if let Some(source) = hardcoded.get(path.as_ref()) { [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/parser.rs:477:17 [INFO] [stdout] | [INFO] [stdout] 477 | } 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] 464 ~ match hardcoded.get(path.as_ref()) { Some(source) => { [INFO] [stdout] 465 | match parent [INFO] [stdout] ... [INFO] [stdout] 476 | } [INFO] [stdout] 477 ~ } _ => { [INFO] [stdout] 478 | match parent [INFO] [stdout] ... [INFO] [stdout] 489 | } [INFO] [stdout] 490 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl CallbackResult<'s, utils::Symbol, Token>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/parser.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Logos, Debug, PartialEq, Clone)] [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/parser.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Logos, Debug, PartialEq, Clone)] [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] 23 | #[derive(Logos + use<'s>, Debug, PartialEq, Clone)] [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl CallbackResult<'s, utils::Symbol, Token>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/parser.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Logos, Debug, PartialEq, Clone)] [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/parser.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Logos, Debug, PartialEq, Clone)] [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] 23 | #[derive(Logos + use<'s>, Debug, PartialEq, Clone)] [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl CallbackResult<'s, u64, Token>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/parser.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Logos, Debug, PartialEq, Clone)] [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/parser.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Logos, Debug, PartialEq, Clone)] [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] 23 | #[derive(Logos + use<'s>, Debug, PartialEq, Clone)] [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl CallbackResult<'s, u64, Token>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/parser.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Logos, Debug, PartialEq, Clone)] [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/parser.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Logos, Debug, PartialEq, Clone)] [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] 23 | #[derive(Logos + use<'s>, Debug, PartialEq, Clone)] [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl CallbackResult<'s, f32, Token>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/parser.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Logos, Debug, PartialEq, Clone)] [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/parser.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Logos, Debug, PartialEq, Clone)] [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] 23 | #[derive(Logos + use<'s>, Debug, PartialEq, Clone)] [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl CallbackResult<'s, utils::Symbol, Token>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/parser.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Logos, Debug, PartialEq, Clone)] [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/parser.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Logos, Debug, PartialEq, Clone)] [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] 23 | #[derive(Logos + use<'s>, Debug, PartialEq, Clone)] [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl CallbackResult<'s, utils::Symbol, Token>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/parser.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Logos, Debug, PartialEq, Clone)] [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/parser.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Logos, Debug, PartialEq, Clone)] [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] 23 | #[derive(Logos + use<'s>, Debug, PartialEq, Clone)] [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `openqasm` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * /opt/rustwide/target/debug/build/openqasm-559a6b0b86021640/out/grammar.rs [INFO] [stderr] * src/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: expected one of `(`, `,`, `::`, or `=`, found `+` [INFO] [stderr] --> src/parser.rs:23:20 [INFO] [stderr] | [INFO] [stderr] 23 | #[derive(Logos + use<'s>, Debug, PartialEq, Clone)] [INFO] [stderr] | ^ expected one of `(`, `,`, `::`, or `=` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `super::Token` [INFO] [stderr] --> /opt/rustwide/target/debug/build/openqasm-559a6b0b86021640/out/grammar.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use super::Token; [INFO] [stderr] | ^^^^^^^^^^^^ no `Token` in `parser::generated` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `super::super::Token` [INFO] [stderr] --> /opt/rustwide/target/debug/build/openqasm-559a6b0b86021640/out/grammar.rs:17:9 [INFO] [stderr] | [INFO] [stderr] 17 | use super::super::Token; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ no `Token` in `parser::generated` [INFO] [stderr] | [INFO] [stderr] help: consider importing this unresolved item through its public re-export instead [INFO] [stderr] | [INFO] [stderr] 17 | use crate::parser::generated::parser_impl::Token; [INFO] [stderr] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `super::super::Token` [INFO] [stderr] --> /opt/rustwide/target/debug/build/openqasm-559a6b0b86021640/out/grammar.rs:3367:9 [INFO] [stderr] | [INFO] [stderr] 3367 | use super::super::Token; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ no `Token` in `parser::generated` [INFO] [stderr] | [INFO] [stderr] help: consider importing this unresolved item through its public re-export instead [INFO] [stderr] | [INFO] [stderr] 3367 | use crate::parser::generated::parser_impl::Token; [INFO] [stderr] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `Token` in `generated` [INFO] [stderr] --> src/parser.rs:518:32 [INFO] [stderr] | [INFO] [stderr] 518 | let lexer = generated::Token::lexer(&self.cache.strings[&id]) [INFO] [stderr] | ^^^^^ could not find `Token` in `generated` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `Token` in `generated` [INFO] [stderr] --> src/parser.rs:521:28 [INFO] [stderr] | [INFO] [stderr] 521 | generated::Token::Error => Err(FileSpan { [INFO] [stderr] | ^^^^^ could not find `Token` in `generated` [INFO] [stderr] [INFO] [stderr] error: aborting due to 6 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0432, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0432`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/translate/value.rs:436:30 [INFO] [stdout] | [INFO] [stdout] 436 | let a: u32 = rng.gen(); [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] = note: `--force-warn keyword-idents-2024` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/parser.rs:464:20 [INFO] [stdout] | [INFO] [stdout] 464 | if let Some(source) = hardcoded.get(path.as_ref()) { [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/parser.rs:477:17 [INFO] [stdout] | [INFO] [stdout] 477 | } 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] 464 ~ match hardcoded.get(path.as_ref()) { Some(source) => { [INFO] [stdout] 465 | match parent [INFO] [stdout] ... [INFO] [stdout] 476 | } [INFO] [stdout] 477 ~ } _ => { [INFO] [stdout] 478 | match parent [INFO] [stdout] ... [INFO] [stdout] 489 | } [INFO] [stdout] 490 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl CallbackResult<'s, utils::Symbol, Token>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/parser.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Logos, Debug, PartialEq, Clone)] [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/parser.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Logos, Debug, PartialEq, Clone)] [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] 23 | #[derive(Logos + use<'s>, Debug, PartialEq, Clone)] [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl CallbackResult<'s, utils::Symbol, Token>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/parser.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Logos, Debug, PartialEq, Clone)] [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/parser.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Logos, Debug, PartialEq, Clone)] [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] 23 | #[derive(Logos + use<'s>, Debug, PartialEq, Clone)] [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl CallbackResult<'s, u64, Token>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/parser.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Logos, Debug, PartialEq, Clone)] [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/parser.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Logos, Debug, PartialEq, Clone)] [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] 23 | #[derive(Logos + use<'s>, Debug, PartialEq, Clone)] [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl CallbackResult<'s, u64, Token>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/parser.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Logos, Debug, PartialEq, Clone)] [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/parser.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Logos, Debug, PartialEq, Clone)] [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] 23 | #[derive(Logos + use<'s>, Debug, PartialEq, Clone)] [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl CallbackResult<'s, f32, Token>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/parser.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Logos, Debug, PartialEq, Clone)] [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/parser.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Logos, Debug, PartialEq, Clone)] [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] 23 | #[derive(Logos + use<'s>, Debug, PartialEq, Clone)] [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl CallbackResult<'s, utils::Symbol, Token>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/parser.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Logos, Debug, PartialEq, Clone)] [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/parser.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Logos, Debug, PartialEq, Clone)] [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] 23 | #[derive(Logos + use<'s>, Debug, PartialEq, Clone)] [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl CallbackResult<'s, utils::Symbol, Token>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/parser.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Logos, Debug, PartialEq, Clone)] [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/parser.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Logos, Debug, PartialEq, Clone)] [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] 23 | #[derive(Logos + use<'s>, Debug, PartialEq, Clone)] [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.03s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: lalrpop v0.19.7 [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] Compiling openqasm v0.1.2 (/tmp/fixit) [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/translate/value.rs:436:30 [INFO] [stdout] | [INFO] [stdout] 436 | let a: u32 = 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] 436 | let a: u32 = rng.r#gen(); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/translate/value.rs:436:30 [INFO] [stdout] | [INFO] [stdout] 436 | let a: u32 = 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] 436 | let a: u32 = rng.r#gen(); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `openqasm` (lib) due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `openqasm` (lib test) due to 1 previous error [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" "3305b8c8e446897dee47f99a1abe09a1960992df19b90a0871884a3f00913c82", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3305b8c8e446897dee47f99a1abe09a1960992df19b90a0871884a3f00913c82", kill_on_drop: false }` [INFO] [stdout] 3305b8c8e446897dee47f99a1abe09a1960992df19b90a0871884a3f00913c82