[INFO] fetching crate quantinuum-hugr 0.2.1... [INFO] checking quantinuum-hugr-0.2.1 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate quantinuum-hugr 0.2.1 into /workspace/builds/worker-5-tc2/source [INFO] validating manifest of crates.io crate quantinuum-hugr 0.2.1 on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate quantinuum-hugr 0.2.1 [INFO] finished tweaking crates.io crate quantinuum-hugr 0.2.1 [INFO] tweaked toml for crates.io crate quantinuum-hugr 0.2.1 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 256 packages to latest compatible versions [INFO] [stderr] Adding anes v0.1.6 (available: v0.2.0) [INFO] [stderr] Adding approx v0.4.0 (available: v0.5.1) [INFO] [stderr] Adding base64 v0.21.7 (available: v0.22.1) [INFO] [stderr] Adding bit-set v0.5.3 (available: v0.8.0) [INFO] [stderr] Adding bit-vec v0.6.3 (available: v0.8.0) [INFO] [stderr] Adding bitflags v1.3.2 (available: v2.6.0) [INFO] [stderr] Adding convert_case v0.4.0 (available: v0.6.0) [INFO] [stderr] Adding core-foundation v0.9.4 (available: v0.10.0) [INFO] [stderr] Adding delegate v0.11.0 (available: v0.13.0) [INFO] [stderr] Adding delegate v0.12.0 (available: v0.13.0) [INFO] [stderr] Adding derive_more v0.99.18 (available: v1.0.0) [INFO] [stderr] Adding encode_unicode v0.3.6 (available: v1.0.0) [INFO] [stderr] Adding fancy-regex v0.11.0 (available: v0.13.0) [INFO] [stderr] Adding fixedbitset v0.4.2 (available: v0.5.7) [INFO] [stderr] Adding fraction v0.13.1 (available: v0.15.3) [INFO] [stderr] Adding h2 v0.3.26 (available: v0.4.6) [INFO] [stderr] Adding hermit-abi v0.3.9 (available: v0.4.0) [INFO] [stderr] Adding http v0.2.12 (available: v1.1.0) [INFO] [stderr] Adding http-body v0.4.6 (available: v1.0.1) [INFO] [stderr] Adding hyper v0.14.30 (available: v1.4.1) [INFO] [stderr] Adding idna v0.5.0 (available: v1.0.2) [INFO] [stderr] Adding itertools v0.10.5 (available: v0.13.0) [INFO] [stderr] Adding itertools v0.12.1 (available: v0.13.0) [INFO] [stderr] Adding jni-sys v0.3.0 (available: v0.4.0) [INFO] [stderr] Adding jsonschema v0.17.1 (available: v0.20.0) [INFO] [stderr] Adding malloc_buf v0.0.6 (available: v1.0.0) [INFO] [stderr] Adding portgraph v0.11.0 (available: v0.12.2) [INFO] [stderr] Adding radium v0.7.0 (available: v1.1.0) [INFO] [stderr] Adding raw-window-handle v0.5.2 (available: v0.6.2) [INFO] [stderr] Adding reqwest v0.11.27 (available: v0.12.7) [INFO] [stderr] Adding rstest v0.18.2 (available: v0.22.0) [INFO] [stderr] Adding rstest_macros v0.18.2 (available: v0.22.0) [INFO] [stderr] Adding smol_str v0.2.2 (available: v0.3.1) [INFO] [stderr] Adding sync_wrapper v0.1.2 (available: v1.0.1) [INFO] [stderr] Adding system-configuration v0.5.1 (available: v0.6.1) [INFO] [stderr] Adding system-configuration-sys v0.5.0 (available: v0.6.0) [INFO] [stderr] Adding wasi v0.11.0+wasi-snapshot-preview1 (available: v0.13.2+wasi-0.2.1) [INFO] [stderr] Adding webbrowser v0.8.15 (available: v1.0.2) [INFO] [stderr] Adding windows-sys v0.45.0 (available: v0.59.0) [INFO] [stderr] Adding windows-sys v0.48.0 (available: v0.59.0) [INFO] [stderr] Adding windows-sys v0.52.0 (available: v0.59.0) [INFO] [stderr] Adding windows-targets v0.42.2 (available: v0.52.6) [INFO] [stderr] Adding windows-targets v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_aarch64_gnullvm v0.42.2 (available: v0.52.6) [INFO] [stderr] Adding windows_aarch64_gnullvm v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_aarch64_msvc v0.42.2 (available: v0.52.6) [INFO] [stderr] Adding windows_aarch64_msvc v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_i686_gnu v0.42.2 (available: v0.52.6) [INFO] [stderr] Adding windows_i686_gnu v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_i686_msvc v0.42.2 (available: v0.52.6) [INFO] [stderr] Adding windows_i686_msvc v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_x86_64_gnu v0.42.2 (available: v0.52.6) [INFO] [stderr] Adding windows_x86_64_gnu v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_x86_64_gnullvm v0.42.2 (available: v0.52.6) [INFO] [stderr] Adding windows_x86_64_gnullvm v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_x86_64_msvc v0.42.2 (available: v0.52.6) [INFO] [stderr] Adding windows_x86_64_msvc v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding winreg v0.50.0 (available: v0.52.0) [INFO] [stderr] Adding wyz v0.5.1 (available: v0.6.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5772f3dc7df812066cbb1f13a70b56151f680eb53ae7fb265ac8a56672ce7a3f [INFO] running `Command { std: "docker" "start" "-a" "5772f3dc7df812066cbb1f13a70b56151f680eb53ae7fb265ac8a56672ce7a3f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5772f3dc7df812066cbb1f13a70b56151f680eb53ae7fb265ac8a56672ce7a3f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5772f3dc7df812066cbb1f13a70b56151f680eb53ae7fb265ac8a56672ce7a3f", kill_on_drop: false }` [INFO] [stdout] 5772f3dc7df812066cbb1f13a70b56151f680eb53ae7fb265ac8a56672ce7a3f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8e7bfe1fedb63b95c631a7cf5b3818babe0fc35e87211ea1b55cfcab5e7b9efa [INFO] running `Command { std: "docker" "start" "-a" "8e7bfe1fedb63b95c631a7cf5b3818babe0fc35e87211ea1b55cfcab5e7b9efa", 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 serde v1.0.210 [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Checking bytes v1.7.2 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Compiling semver v1.0.23 [INFO] [stderr] Checking tinyvec v1.8.0 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking indexmap v2.5.0 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking regex-syntax v0.8.4 [INFO] [stderr] Checking mio v1.0.2 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Checking tokio v1.40.0 [INFO] [stderr] Checking anstyle-parse v0.2.5 [INFO] [stderr] Checking unicode-normalization v0.1.24 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling httparse v1.9.4 [INFO] [stderr] Compiling typeid v1.0.2 [INFO] [stderr] Checking anstyle-query v1.1.1 [INFO] [stderr] Checking unicode-bidi v0.3.15 [INFO] [stderr] Checking colorchoice v1.0.2 [INFO] [stderr] Checking anstyle v1.0.8 [INFO] [stderr] Checking anstream v0.6.15 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking clap_lex v0.7.2 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking clap_builder v4.5.18 [INFO] [stderr] Checking wyz v0.5.1 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Checking url v2.5.2 [INFO] [stderr] Compiling rstest_macros v0.18.2 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Compiling clap_derive v4.5.18 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking tokio-util v0.7.12 [INFO] [stderr] Checking regex v1.10.6 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking half v2.4.1 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking funty v2.0.0 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Compiling cgmath v0.18.0 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking plotters-backend v0.3.7 [INFO] [stderr] Checking bit-vec v0.6.3 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Compiling anyhow v1.0.89 [INFO] [stderr] Checking ciborium-io v0.2.2 [INFO] [stderr] Checking fixedbitset v0.4.2 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Checking ciborium-ll v0.2.2 [INFO] [stderr] Checking petgraph v0.6.5 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking clap v4.5.18 [INFO] [stderr] Checking erased-serde v0.4.5 [INFO] [stderr] Checking bitvec v1.0.1 [INFO] [stderr] Checking num v0.4.3 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Checking bit-set v0.5.3 [INFO] [stderr] Checking plotters-svg v0.3.7 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking hyper v0.14.30 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Compiling delegate v0.11.0 [INFO] [stderr] Checking approx v0.4.0 [INFO] [stderr] Compiling typetag-impl v0.2.18 [INFO] [stderr] Checking encoding_rs v0.8.34 [INFO] [stderr] Checking context-iterators v0.2.0 [INFO] [stderr] Checking inventory v0.3.15 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Checking unsafe-libyaml v0.2.11 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Checking utf8-width v0.1.7 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Compiling relative-path v1.9.3 [INFO] [stderr] Checking sync_wrapper v0.1.2 [INFO] [stderr] Checking cast v0.3.0 [INFO] [stderr] Checking ipnet v2.10.0 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking criterion-plot v0.5.0 [INFO] [stderr] Checking portgraph v0.11.0 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Checking html-escape v0.2.13 [INFO] [stderr] Checking walkdir v2.5.0 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Checking iso8601 v0.6.1 [INFO] [stderr] Checking serde_yaml v0.9.34+deprecated [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking typetag v0.2.18 [INFO] [stderr] Compiling enum_dispatch v0.3.13 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking plotters v0.3.7 [INFO] [stderr] Checking fancy-regex v0.11.0 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking fraction v0.13.1 [INFO] [stderr] Checking ciborium v0.2.2 [INFO] [stderr] Checking smol_str v0.2.2 [INFO] [stderr] Checking console v0.15.8 [INFO] [stderr] Checking is-terminal v0.4.13 [INFO] [stderr] Checking itertools v0.12.1 [INFO] [stderr] Compiling delegate v0.12.0 [INFO] [stderr] Checking home v0.5.9 [INFO] [stderr] Checking anes v0.1.6 [INFO] [stderr] Checking similar v2.6.0 [INFO] [stderr] Checking downcast-rs v1.2.1 [INFO] [stderr] Checking uuid v1.10.0 [INFO] [stderr] Checking oorandom v11.1.4 [INFO] [stderr] Checking linked-hash-map v0.5.6 [INFO] [stderr] Checking strum v0.26.3 [INFO] [stderr] Checking indent_write v2.2.0 [INFO] [stderr] Checking bytecount v0.6.8 [INFO] [stderr] Checking futures-timer v3.0.3 [INFO] [stderr] Checking num-cmp v0.1.0 [INFO] [stderr] Checking insta v1.40.0 [INFO] [stderr] Checking criterion v0.5.1 [INFO] [stderr] Checking cool_asserts v2.0.3 [INFO] [stderr] Checking webbrowser v0.8.15 [INFO] [stderr] Checking urlencoding v2.1.3 [INFO] [stderr] Checking rstest v0.18.2 [INFO] [stderr] Checking jsonschema v0.17.1 [INFO] [stderr] Checking quantinuum-hugr v0.2.1 (/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 `hugr` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/algorithm/nest_cfgs.rs [INFO] [stderr] * src/macros.rs [INFO] [stderr] * src/ops/handle.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/macros.rs:63:8 [INFO] [stderr] | [INFO] [stderr] 63 | ($($t:expr_2021),+ $(,)?) => { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/macros.rs:71:6 [INFO] [stderr] | [INFO] [stderr] 71 | ($t:expr_2021; $n:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/macros.rs:71:20 [INFO] [stderr] | [INFO] [stderr] 71 | ($t:expr_2021; $n:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/macros.rs:100:73 [INFO] [stderr] | [INFO] [stderr] 100 | ($($(#[$attr:meta])* $v:vis const $field_name:ident : ExtensionId = $ext_name:expr_2021;)+) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/ops/handle.rs:131:19 [INFO] [stderr] | [INFO] [stderr] 131 | ($name:ident, $tag:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/ops/handle.rs:134:19 [INFO] [stderr] | [INFO] [stderr] 134 | ($name:ident, $tag:expr_2021, $node_attr:tt) => { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] warning: elided lifetime has a name [INFO] [stderr] --> src/algorithm/nest_cfgs.rs:192:42 [INFO] [stderr] | [INFO] [stderr] 189 | fn all_edges<'a, T: Copy + Clone + PartialEq + Eq + Hash + 'a>( [INFO] [stderr] | -- lifetime `'a` declared here [INFO] [stderr] ... [INFO] [stderr] 192 | ) -> impl Iterator> + '_ { [INFO] [stderr] | ^^ this elided lifetime gets resolved as `'a` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stderr] [INFO] [stderr] error: aborting due to 6 previous errors; 1 warning emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/algorithm/nest_cfgs.rs:192:42 [INFO] [stdout] | [INFO] [stdout] 189 | fn all_edges<'a, T: Copy + Clone + PartialEq + Eq + Hash + 'a>( [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 192 | ) -> impl Iterator> + '_ { [INFO] [stdout] | ^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/macros.rs:63:11 [INFO] [stdout] | [INFO] [stdout] 63 | ($($t:expr),+ $(,)?) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 63 | ($($t: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/macros.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | ($t:expr; $n: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] 71 | ($t:expr_2021; $n: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/macros.rs:71:18 [INFO] [stdout] | [INFO] [stdout] 71 | ($t:expr; $n: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] 71 | ($t:expr; $n: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/macros.rs:100:83 [INFO] [stdout] | [INFO] [stdout] 100 | ($($(#[$attr:meta])* $v:vis const $field_name:ident : ExtensionId = $ext_name: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] 100 | ($($(#[$attr:meta])* $v:vis const $field_name:ident : ExtensionId = $ext_name: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/ops/handle.rs:131:24 [INFO] [stdout] | [INFO] [stdout] 131 | ($name:ident, $tag: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] 131 | ($name:ident, $tag: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/ops/handle.rs:134:24 [INFO] [stdout] | [INFO] [stdout] 134 | ($name:ident, $tag:expr, $node_attr:tt) => { [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] 134 | ($name:ident, $tag:expr_2021, $node_attr:tt) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/builder/build_traits.rs:477:12 [INFO] [stdout] | [INFO] [stdout] 477 | if let Some(EdgeKind::Value(typ)) = kind { [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/builder/build_traits.rs:479:9 [INFO] [stdout] | [INFO] [stdout] 479 | } 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] 477 ~ match kind { Some(EdgeKind::Value(typ)) => { [INFO] [stdout] 478 | Ok(typ) [INFO] [stdout] 479 ~ } _ => { [INFO] [stdout] 480 | Err(BuildError::WireNotFound(wire)) [INFO] [stdout] 481 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/extension/validate.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | if let Some((input_exts, output_exts)) = node_type.io_extensions() { [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/extension/validate.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 53 ~ match node_type.io_extensions() { Some((input_exts, output_exts)) => { [INFO] [stdout] 54 | let prev_i = self [INFO] [stdout] ... [INFO] [stdout] 61 | assert!(prev_o.is_none()); [INFO] [stdout] 62 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/extension/declarative/signature.rs:87:17 [INFO] [stdout] | [INFO] [stdout] 87 | ) -> Result, ExtensionDeclarationError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, these lifetimes are in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/extension/declarative/signature.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | &self, [INFO] [stdout] | ^ [INFO] [stdout] 84 | ext: &Extension, [INFO] [stdout] | ^ [INFO] [stdout] 85 | ctx: DeclarationContext<'_>, [INFO] [stdout] | ^^ [INFO] [stdout] 86 | op_params: &[TypeParam], [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] 87 | ) -> Result + use<>, ExtensionDeclarationError> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/hugr/validate.rs:346:32 [INFO] [stdout] | [INFO] [stdout] 346 | ... if let Err(source) = edge_check(edge_data) { [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/hugr/validate.rs:352:29 [INFO] [stdout] | [INFO] [stdout] 352 | ... } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 346 ~ match edge_check(edge_data) { Err(source) => { [INFO] [stdout] 347 | return Err(ValidationError::InvalidEdges { [INFO] [stdout] ... [INFO] [stdout] 351 | }); [INFO] [stdout] 352 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/ops.rs:160:16 [INFO] [stdout] | [INFO] [stdout] 160 | if let Some(kind) = static_kind { [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/ops.rs:162:13 [INFO] [stdout] | [INFO] [stdout] 162 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 160 ~ match static_kind { Some(kind) => { [INFO] [stdout] 161 | return Some(kind); [INFO] [stdout] 162 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/ops/custom.rs:282:20 [INFO] [stdout] | [INFO] [stdout] 282 | if let Some(resolved) = resolve_opaque_op(n, opaque, extension_registry)? { [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/ops/custom.rs:284:17 [INFO] [stdout] | [INFO] [stdout] 284 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 282 ~ match resolve_opaque_op(n, opaque, extension_registry)? { Some(resolved) => { [INFO] [stdout] 283 | replacements.push((n, resolved)) [INFO] [stdout] 284 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/ops/custom.rs:312:8 [INFO] [stdout] | [INFO] [stdout] 312 | if let Some(r) = extension_registry.get(&opaque.extension) { [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/ops/custom.rs:331:5 [INFO] [stdout] | [INFO] [stdout] 331 | } 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] 312 ~ match extension_registry.get(&opaque.extension) { Some(r) => { [INFO] [stdout] 313 | // Fail if the Extension was found but did not have the expected operation [INFO] [stdout] ... [INFO] [stdout] 330 | Ok(Some(ext_op)) [INFO] [stdout] 331 ~ } _ => { [INFO] [stdout] 332 | Ok(None) [INFO] [stdout] 333 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/std_extensions/arithmetic/conversions/const_fold.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | if let Ok(cv) = cv { [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/std_extensions/arithmetic/conversions/const_fold.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | } 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] 65 ~ match cv { Ok(cv) => { [INFO] [stdout] 66 | let sum_val = Value::Sum { [INFO] [stdout] ... [INFO] [stdout] 71 | ops::Const::new(sum_val, sum_type).unwrap() [INFO] [stdout] 72 ~ } _ => { [INFO] [stdout] 73 | err_value() [INFO] [stdout] 74 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/types/signature.rs:185:44 [INFO] [stdout] | [INFO] [stdout] 185 | pub fn ports(&self, dir: Direction) -> impl Iterator { [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/types/signature.rs:185:18 [INFO] [stdout] | [INFO] [stdout] 185 | pub fn ports(&self, dir: Direction) -> impl Iterator { [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] 185 | pub fn ports(&self, dir: Direction) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/types/signature.rs:191:34 [INFO] [stdout] | [INFO] [stdout] 191 | pub fn input_ports(&self) -> impl Iterator { [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/types/signature.rs:191:24 [INFO] [stdout] | [INFO] [stdout] 191 | pub fn input_ports(&self) -> impl Iterator { [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] 191 | pub fn input_ports(&self) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/types/signature.rs:198:35 [INFO] [stdout] | [INFO] [stdout] 198 | pub fn output_ports(&self) -> impl Iterator { [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/types/signature.rs:198:25 [INFO] [stdout] | [INFO] [stdout] 198 | pub fn output_ports(&self) -> impl Iterator { [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] 198 | pub fn output_ports(&self) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating benches/bench_main.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `hugr` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/algorithm/nest_cfgs.rs [INFO] [stderr] * src/macros.rs [INFO] [stderr] * src/ops/handle.rs [INFO] [stderr] * src/utils.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/macros.rs:63:8 [INFO] [stderr] | [INFO] [stderr] 63 | ($($t:expr_2021),+ $(,)?) => { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/macros.rs:71:6 [INFO] [stderr] | [INFO] [stderr] 71 | ($t:expr_2021; $n:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/macros.rs:71:20 [INFO] [stderr] | [INFO] [stderr] 71 | ($t:expr_2021; $n:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/macros.rs:100:73 [INFO] [stderr] | [INFO] [stderr] 100 | ($($(#[$attr:meta])* $v:vis const $field_name:ident : ExtensionId = $ext_name:expr_2021;)+) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/ops/handle.rs:131:19 [INFO] [stderr] | [INFO] [stderr] 131 | ($name:ident, $tag:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/ops/handle.rs:134:19 [INFO] [stderr] | [INFO] [stderr] 134 | ($name:ident, $tag:expr_2021, $node_attr:tt) => { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] warning: elided lifetime has a name [INFO] [stderr] --> src/algorithm/nest_cfgs.rs:192:42 [INFO] [stderr] | [INFO] [stderr] 189 | fn all_edges<'a, T: Copy + Clone + PartialEq + Eq + Hash + 'a>( [INFO] [stderr] | -- lifetime `'a` declared here [INFO] [stderr] ... [INFO] [stderr] 192 | ) -> impl Iterator> + '_ { [INFO] [stderr] | ^^ this elided lifetime gets resolved as `'a` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `ci_run` [INFO] [stderr] --> src/utils.rs:142:15 [INFO] [stderr] | [INFO] [stderr] 142 | #[cfg(not(ci_run))] [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `fmt_debug`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows` [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(ci_run)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(ci_run)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `ci_run` [INFO] [stderr] --> src/utils.rs:150:15 [INFO] [stderr] | [INFO] [stderr] 150 | #[cfg(not(ci_run))] [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(ci_run)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(ci_run)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] error: aborting due to 6 previous errors; 3 warnings emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/algorithm/nest_cfgs.rs:192:42 [INFO] [stdout] | [INFO] [stdout] 189 | fn all_edges<'a, T: Copy + Clone + PartialEq + Eq + Hash + 'a>( [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 192 | ) -> impl Iterator> + '_ { [INFO] [stdout] | ^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/macros.rs:63:11 [INFO] [stdout] | [INFO] [stdout] 63 | ($($t:expr),+ $(,)?) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 63 | ($($t: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/macros.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | ($t:expr; $n: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] 71 | ($t:expr_2021; $n: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/macros.rs:71:18 [INFO] [stdout] | [INFO] [stdout] 71 | ($t:expr; $n: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] 71 | ($t:expr; $n: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/macros.rs:100:83 [INFO] [stdout] | [INFO] [stdout] 100 | ($($(#[$attr:meta])* $v:vis const $field_name:ident : ExtensionId = $ext_name: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] 100 | ($($(#[$attr:meta])* $v:vis const $field_name:ident : ExtensionId = $ext_name: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/ops/handle.rs:131:24 [INFO] [stdout] | [INFO] [stdout] 131 | ($name:ident, $tag: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] 131 | ($name:ident, $tag: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/ops/handle.rs:134:24 [INFO] [stdout] | [INFO] [stdout] 134 | ($name:ident, $tag:expr, $node_attr:tt) => { [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] 134 | ($name:ident, $tag:expr_2021, $node_attr:tt) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `ci_run` [INFO] [stdout] --> src/utils.rs:142:15 [INFO] [stdout] | [INFO] [stdout] 142 | #[cfg(not(ci_run))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `fmt_debug`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows` [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(ci_run)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(ci_run)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `ci_run` [INFO] [stdout] --> src/utils.rs:150:15 [INFO] [stdout] | [INFO] [stdout] 150 | #[cfg(not(ci_run))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(ci_run)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(ci_run)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Test` is never used [INFO] [stdout] --> src/hugr.rs:364:15 [INFO] [stdout] | [INFO] [stdout] 364 | trait Test: Send + Sync {} [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/builder/build_traits.rs:477:12 [INFO] [stdout] | [INFO] [stdout] 477 | if let Some(EdgeKind::Value(typ)) = kind { [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/builder/build_traits.rs:479:9 [INFO] [stdout] | [INFO] [stdout] 479 | } 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] 477 ~ match kind { Some(EdgeKind::Value(typ)) => { [INFO] [stdout] 478 | Ok(typ) [INFO] [stdout] 479 ~ } _ => { [INFO] [stdout] 480 | Err(BuildError::WireNotFound(wire)) [INFO] [stdout] 481 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/extension/validate.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | if let Some((input_exts, output_exts)) = node_type.io_extensions() { [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/extension/validate.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 53 ~ match node_type.io_extensions() { Some((input_exts, output_exts)) => { [INFO] [stdout] 54 | let prev_i = self [INFO] [stdout] ... [INFO] [stdout] 61 | assert!(prev_o.is_none()); [INFO] [stdout] 62 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/extension/declarative/signature.rs:87:17 [INFO] [stdout] | [INFO] [stdout] 87 | ) -> Result, ExtensionDeclarationError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, these lifetimes are in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/extension/declarative/signature.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | &self, [INFO] [stdout] | ^ [INFO] [stdout] 84 | ext: &Extension, [INFO] [stdout] | ^ [INFO] [stdout] 85 | ctx: DeclarationContext<'_>, [INFO] [stdout] | ^^ [INFO] [stdout] 86 | op_params: &[TypeParam], [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] 87 | ) -> Result + use<>, ExtensionDeclarationError> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a module [INFO] [stdout] --> src/hugr/serialize.rs:251:1 [INFO] [stdout] | [INFO] [stdout] 251 | pub mod test { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | #![warn(missing_docs)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/hugr/serialize.rs:316:16 [INFO] [stdout] | [INFO] [stdout] 316 | if let Err(errors) = validate { [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/hugr/serialize.rs:323:13 [INFO] [stdout] | [INFO] [stdout] 323 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 316 ~ match validate { Err(errors) => { [INFO] [stdout] 317 | // errors don't necessarily implement Debug [INFO] [stdout] ... [INFO] [stdout] 322 | panic!("Serialization test failed."); [INFO] [stdout] 323 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/hugr/validate.rs:346:32 [INFO] [stdout] | [INFO] [stdout] 346 | ... if let Err(source) = edge_check(edge_data) { [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/hugr/validate.rs:352:29 [INFO] [stdout] | [INFO] [stdout] 352 | ... } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 346 ~ match edge_check(edge_data) { Err(source) => { [INFO] [stdout] 347 | return Err(ValidationError::InvalidEdges { [INFO] [stdout] ... [INFO] [stdout] 351 | }); [INFO] [stdout] 352 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/ops.rs:160:16 [INFO] [stdout] | [INFO] [stdout] 160 | if let Some(kind) = static_kind { [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/ops.rs:162:13 [INFO] [stdout] | [INFO] [stdout] 162 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 160 ~ match static_kind { Some(kind) => { [INFO] [stdout] 161 | return Some(kind); [INFO] [stdout] 162 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/ops/custom.rs:282:20 [INFO] [stdout] | [INFO] [stdout] 282 | if let Some(resolved) = resolve_opaque_op(n, opaque, extension_registry)? { [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/ops/custom.rs:284:17 [INFO] [stdout] | [INFO] [stdout] 284 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 282 ~ match resolve_opaque_op(n, opaque, extension_registry)? { Some(resolved) => { [INFO] [stdout] 283 | replacements.push((n, resolved)) [INFO] [stdout] 284 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/ops/custom.rs:312:8 [INFO] [stdout] | [INFO] [stdout] 312 | if let Some(r) = extension_registry.get(&opaque.extension) { [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/ops/custom.rs:331:5 [INFO] [stdout] | [INFO] [stdout] 331 | } 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] 312 ~ match extension_registry.get(&opaque.extension) { Some(r) => { [INFO] [stdout] 313 | // Fail if the Extension was found but did not have the expected operation [INFO] [stdout] ... [INFO] [stdout] 330 | Ok(Some(ext_op)) [INFO] [stdout] 331 ~ } _ => { [INFO] [stdout] 332 | Ok(None) [INFO] [stdout] 333 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/std_extensions/arithmetic/conversions/const_fold.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | if let Ok(cv) = cv { [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/std_extensions/arithmetic/conversions/const_fold.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | } 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] 65 ~ match cv { Ok(cv) => { [INFO] [stdout] 66 | let sum_val = Value::Sum { [INFO] [stdout] ... [INFO] [stdout] 71 | ops::Const::new(sum_val, sum_type).unwrap() [INFO] [stdout] 72 ~ } _ => { [INFO] [stdout] 73 | err_value() [INFO] [stdout] 74 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/types/signature.rs:185:44 [INFO] [stdout] | [INFO] [stdout] 185 | pub fn ports(&self, dir: Direction) -> impl Iterator { [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/types/signature.rs:185:18 [INFO] [stdout] | [INFO] [stdout] 185 | pub fn ports(&self, dir: Direction) -> impl Iterator { [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] 185 | pub fn ports(&self, dir: Direction) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/types/signature.rs:191:34 [INFO] [stdout] | [INFO] [stdout] 191 | pub fn input_ports(&self) -> impl Iterator { [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/types/signature.rs:191:24 [INFO] [stdout] | [INFO] [stdout] 191 | pub fn input_ports(&self) -> impl Iterator { [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] 191 | pub fn input_ports(&self) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/types/signature.rs:198:35 [INFO] [stdout] | [INFO] [stdout] 198 | pub fn output_ports(&self) -> impl Iterator { [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/types/signature.rs:198:25 [INFO] [stdout] | [INFO] [stdout] 198 | pub fn output_ports(&self) -> impl Iterator { [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] 198 | pub fn output_ports(&self) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 23.33s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking quantinuum-hugr v0.2.1 (/tmp/fixit) [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/algorithm/nest_cfgs.rs:192:42 [INFO] [stdout] | [INFO] [stdout] 189 | fn all_edges<'a, T: Copy + Clone + PartialEq + Eq + Hash + 'a>( [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 192 | ) -> impl Iterator> + '_ { [INFO] [stdout] | ^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/algorithm/nest_cfgs.rs:192:42 [INFO] [stdout] | [INFO] [stdout] 189 | fn all_edges<'a, T: Copy + Clone + PartialEq + Eq + Hash + 'a>( [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 192 | ) -> impl Iterator> + '_ { [INFO] [stdout] | ^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `ci_run` [INFO] [stdout] --> src/utils.rs:142:15 [INFO] [stdout] | [INFO] [stdout] 142 | #[cfg(not(ci_run))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `fmt_debug`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows` [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(ci_run)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(ci_run)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `ci_run` [INFO] [stdout] --> src/utils.rs:150:15 [INFO] [stdout] | [INFO] [stdout] 150 | #[cfg(not(ci_run))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(ci_run)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(ci_run)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/hugr/views/sibling_subgraph.rs:582:22 [INFO] [stdout] | [INFO] [stdout] 582 | let dfg_inputs = hugr [INFO] [stdout] | ______________________^ [INFO] [stdout] 583 | | .get_optype(inp) [INFO] [stdout] 584 | | .as_input() [INFO] [stdout] 585 | | .unwrap() [INFO] [stdout] 586 | | .signature() [INFO] [stdout] | |____________________^ creates a temporary value which is freed while still in use [INFO] [stdout] 587 | .output_ports(); [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] ... [INFO] [stdout] 600 | let inputs = dfg_inputs [INFO] [stdout] | ---------- borrow later used here [INFO] [stdout] | [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 582 ~ let binding = hugr [INFO] [stdout] 583 + .get_optype(inp) [INFO] [stdout] 584 + .as_input() [INFO] [stdout] 585 + .unwrap() [INFO] [stdout] 586 + .signature(); [INFO] [stdout] 587 ~ let dfg_inputs = binding [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/hugr/views/sibling_subgraph.rs:591:23 [INFO] [stdout] | [INFO] [stdout] 591 | let dfg_outputs = hugr [INFO] [stdout] | _______________________^ [INFO] [stdout] 592 | | .get_optype(out) [INFO] [stdout] 593 | | .as_output() [INFO] [stdout] 594 | | .unwrap() [INFO] [stdout] 595 | | .signature() [INFO] [stdout] | |____________________^ creates a temporary value which is freed while still in use [INFO] [stdout] 596 | .input_ports(); [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] ... [INFO] [stdout] 611 | let outputs = dfg_outputs [INFO] [stdout] | ----------- borrow later used here [INFO] [stdout] | [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 591 ~ let binding = hugr [INFO] [stdout] 592 + .get_optype(out) [INFO] [stdout] 593 + .as_output() [INFO] [stdout] 594 + .unwrap() [INFO] [stdout] 595 + .signature(); [INFO] [stdout] 596 ~ let dfg_outputs = binding [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0716`. [INFO] [stdout] [INFO] [stderr] error: could not compile `quantinuum-hugr` (lib) due to 3 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/hugr/views/sibling_subgraph.rs:582:22 [INFO] [stdout] | [INFO] [stdout] 582 | let dfg_inputs = hugr [INFO] [stdout] | ______________________^ [INFO] [stdout] 583 | | .get_optype(inp) [INFO] [stdout] 584 | | .as_input() [INFO] [stdout] 585 | | .unwrap() [INFO] [stdout] 586 | | .signature() [INFO] [stdout] | |____________________^ creates a temporary value which is freed while still in use [INFO] [stdout] 587 | .output_ports(); [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] ... [INFO] [stdout] 600 | let inputs = dfg_inputs [INFO] [stdout] | ---------- borrow later used here [INFO] [stdout] | [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 582 ~ let binding = hugr [INFO] [stdout] 583 + .get_optype(inp) [INFO] [stdout] 584 + .as_input() [INFO] [stdout] 585 + .unwrap() [INFO] [stdout] 586 + .signature(); [INFO] [stdout] 587 ~ let dfg_inputs = binding [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/hugr/views/sibling_subgraph.rs:591:23 [INFO] [stdout] | [INFO] [stdout] 591 | let dfg_outputs = hugr [INFO] [stdout] | _______________________^ [INFO] [stdout] 592 | | .get_optype(out) [INFO] [stdout] 593 | | .as_output() [INFO] [stdout] 594 | | .unwrap() [INFO] [stdout] 595 | | .signature() [INFO] [stdout] | |____________________^ creates a temporary value which is freed while still in use [INFO] [stdout] 596 | .input_ports(); [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] ... [INFO] [stdout] 611 | let outputs = dfg_outputs [INFO] [stdout] | ----------- borrow later used here [INFO] [stdout] | [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 591 ~ let binding = hugr [INFO] [stdout] 592 + .get_optype(out) [INFO] [stdout] 593 + .as_output() [INFO] [stdout] 594 + .unwrap() [INFO] [stdout] 595 + .signature(); [INFO] [stdout] 596 ~ let dfg_outputs = binding [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0716`. [INFO] [stdout] [INFO] [stderr] error: could not compile `quantinuum-hugr` (lib test) due to 3 previous errors; 3 warnings emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "8e7bfe1fedb63b95c631a7cf5b3818babe0fc35e87211ea1b55cfcab5e7b9efa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8e7bfe1fedb63b95c631a7cf5b3818babe0fc35e87211ea1b55cfcab5e7b9efa", kill_on_drop: false }` [INFO] [stdout] 8e7bfe1fedb63b95c631a7cf5b3818babe0fc35e87211ea1b55cfcab5e7b9efa