[INFO] fetching crate machin 0.6.1... [INFO] checking machin-0.6.1 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate machin 0.6.1 into /workspace/builds/worker-6-tc2/source [INFO] validating manifest of crates.io crate machin 0.6.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 machin 0.6.1 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate machin 0.6.1 [INFO] tweaked toml for crates.io crate machin 0.6.1 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate crates.io crate machin 0.6.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ca6fa1507ad453dd1f9ac6b20c5f8b545e7f068e1c28b706b48fcf2093a5ff10 [INFO] running `Command { std: "docker" "start" "-a" "ca6fa1507ad453dd1f9ac6b20c5f8b545e7f068e1c28b706b48fcf2093a5ff10", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ca6fa1507ad453dd1f9ac6b20c5f8b545e7f068e1c28b706b48fcf2093a5ff10", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ca6fa1507ad453dd1f9ac6b20c5f8b545e7f068e1c28b706b48fcf2093a5ff10", kill_on_drop: false }` [INFO] [stdout] ca6fa1507ad453dd1f9ac6b20c5f8b545e7f068e1c28b706b48fcf2093a5ff10 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 25eeb9feb925005e86c9b591985a60fe96cf1f4ba374fdf192c2935e7c472529 [INFO] running `Command { std: "docker" "start" "-a" "25eeb9feb925005e86c9b591985a60fe96cf1f4ba374fdf192c2935e7c472529", 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.158 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Checking bytemuck v1.17.0 [INFO] [stderr] Checking adler2 v2.0.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Checking simd-adler32 v0.3.7 [INFO] [stderr] Compiling regex-syntax v0.8.4 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking miniz_oxide v0.8.0 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling phf_shared v0.11.2 [INFO] [stderr] Compiling syn v2.0.76 [INFO] [stderr] Compiling anstyle-parse v0.2.5 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Compiling anstyle v1.0.8 [INFO] [stderr] Compiling anstyle-query v1.1.1 [INFO] [stderr] Compiling colorchoice v1.0.2 [INFO] [stderr] Checking miniz_oxide v0.7.4 [INFO] [stderr] Compiling phf v0.11.2 [INFO] [stderr] Checking flate2 v1.0.32 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Compiling anstream v0.6.15 [INFO] [stderr] Checking adler32 v1.2.0 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling clap_lex v0.7.2 [INFO] [stderr] Compiling serde v1.0.209 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking weezl v0.1.8 [INFO] [stderr] Checking cpufeatures v0.2.13 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Compiling unicode-general-category v0.2.0 [INFO] [stderr] Compiling built v0.7.4 [INFO] [stderr] Compiling phf_codegen v0.11.2 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking aligned-vec v0.5.0 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling clap_builder v4.5.15 [INFO] [stderr] Checking v_frame v0.3.8 [INFO] [stderr] Checking flume v0.11.0 [INFO] [stderr] Checking tinyvec v1.8.0 [INFO] [stderr] Checking rgb v0.8.48 [INFO] [stderr] Checking indexmap v2.4.0 [INFO] [stderr] Compiling cc v1.1.14 [INFO] [stderr] Checking fdeflate v0.3.4 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Compiling rav1e v0.7.1 [INFO] [stderr] Checking zune-inflate v0.2.54 [INFO] [stderr] Compiling regex-automata v0.4.7 [INFO] [stderr] Checking bstr v1.10.0 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking quick-error v2.0.1 [INFO] [stderr] Compiling zstd-safe v5.0.2+zstd.1.5.2 [INFO] [stderr] Checking lebe v0.5.2 [INFO] [stderr] Checking unic-common v0.9.0 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking float-cmp v0.5.3 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking unic-char-range v0.9.0 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Checking bit_field v0.10.2 [INFO] [stderr] Checking gif v0.13.1 [INFO] [stderr] Checking unic-char-property v0.9.0 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Checking walkdir v2.5.0 [INFO] [stderr] Checking exr v1.72.0 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Checking unic-ucd-version v0.9.0 [INFO] [stderr] Checking inout v0.1.3 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking png v0.17.13 [INFO] [stderr] Checking memmap2 v0.2.3 [INFO] [stderr] Checking deflate v0.8.6 [INFO] [stderr] Checking miniz_oxide v0.3.7 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Compiling simd_helpers v0.1.0 [INFO] [stderr] Checking qoi v0.4.1 [INFO] [stderr] Checking itertools v0.12.1 [INFO] [stderr] Checking av1-grain v0.2.3 [INFO] [stderr] Checking maybe-rayon v0.1.1 [INFO] [stderr] Checking siphasher v0.2.3 [INFO] [stderr] Checking unicode-ccc v0.1.2 [INFO] [stderr] Checking unicode-script v0.5.6 [INFO] [stderr] Checking jpeg-decoder v0.3.1 [INFO] [stderr] Compiling serde_json v1.0.127 [INFO] [stderr] Checking imgref v1.10.1 [INFO] [stderr] Compiling zstd-sys v2.0.13+zstd.1.5.6 [INFO] [stderr] Compiling bzip2-sys v0.1.11+1.0.8 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Checking new_debug_unreachable v1.0.6 [INFO] [stderr] Checking unicode-bidi-mirroring v0.1.0 [INFO] [stderr] Checking ttf-parser v0.9.0 [INFO] [stderr] Compiling noop_proc_macro v0.3.0 [INFO] [stderr] Compiling regex v1.10.6 [INFO] [stderr] Checking ttf-parser v0.12.3 [INFO] [stderr] Compiling clap v4.5.16 [INFO] [stderr] Checking time-core v0.1.2 [INFO] [stderr] Checking xmlparser v0.13.6 [INFO] [stderr] Checking base64ct v1.6.0 [INFO] [stderr] Checking num-conv v0.1.0 [INFO] [stderr] Checking tiff v0.9.1 [INFO] [stderr] Checking bitstream-io v2.5.3 [INFO] [stderr] Compiling parse-zoneinfo v0.3.1 [INFO] [stderr] Checking roxmltree v0.14.1 [INFO] [stderr] Checking password-hash v0.4.2 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Compiling chrono-tz-build v0.3.0 [INFO] [stderr] Compiling clap_complete v4.5.23 [INFO] [stderr] Checking data-url v0.1.1 [INFO] [stderr] Checking rustybuzz v0.3.0 [INFO] [stderr] Checking loop9 v0.1.5 [INFO] [stderr] Checking globset v0.4.14 [INFO] [stderr] Checking fontdb v0.5.4 [INFO] [stderr] Checking svgtypes v0.5.0 [INFO] [stderr] Checking png v0.16.8 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking ignore v0.4.22 [INFO] [stderr] Compiling chrono-tz v0.9.0 [INFO] [stderr] Checking unic-ucd-segment v0.9.0 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking avif-serialize v0.8.1 [INFO] [stderr] Checking kurbo v0.8.3 [INFO] [stderr] Checking safe_arch v0.5.2 [INFO] [stderr] Checking simplecss v0.2.1 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Checking pico-args v0.4.2 [INFO] [stderr] Checking rctree v0.3.3 [INFO] [stderr] Checking zune-core v0.4.12 [INFO] [stderr] Checking deunicode v1.6.0 [INFO] [stderr] Checking byteorder-lite v0.1.0 [INFO] [stderr] Checking unicode-vo v0.1.0 [INFO] [stderr] Checking xmlwriter v0.1.0 [INFO] [stderr] Checking arrayref v0.3.8 [INFO] [stderr] Checking linux-raw-sys v0.4.14 [INFO] [stderr] Checking slug v0.1.6 [INFO] [stderr] Checking zune-jpeg v0.4.13 [INFO] [stderr] Checking globwalk v0.9.1 [INFO] [stderr] Compiling machin v0.6.1 (/tmp/fixit) [INFO] [stderr] Migrating build.rs from 2021 edition to 2024 [INFO] [stderr] Checking bzip2 v0.4.4 [INFO] [stderr] Checking tiny-skia v0.5.1 [INFO] [stderr] Checking image-webp v0.1.3 [INFO] [stderr] Checking humansize v2.1.3 [INFO] [stderr] Checking pbkdf2 v0.11.0 [INFO] [stderr] Checking unic-segment v0.9.0 [INFO] [stderr] Checking url v2.5.2 [INFO] [stderr] Checking aes v0.8.4 [INFO] [stderr] Checking image v0.24.9 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking md-5 v0.10.6 [INFO] [stderr] Checking svgfilters v0.3.0 [INFO] [stderr] Checking data-url v0.3.1 [INFO] [stderr] Checking xml-rs v0.8.21 [INFO] [stderr] Checking jpeg-decoder v0.1.22 [INFO] [stderr] Checking unsafe-libyaml v0.2.11 [INFO] [stderr] Checking pipeline v0.5.0 [INFO] [stderr] Checking constant_time_eq v0.1.5 [INFO] [stderr] Checking fastrand v2.1.1 [INFO] [stderr] Checking markdown v0.3.0 [INFO] [stderr] Checking colored v2.1.0 [INFO] [stderr] Checking exitcode v1.1.2 [INFO] [stderr] Checking map-macro v0.2.6 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling profiling-procmacros v1.0.15 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling arg_enum_proc_macro v0.3.4 [INFO] [stderr] Checking svg-hush v0.9.4 [INFO] [stderr] Checking profiling v1.0.15 [INFO] [stderr] Checking serde_yaml v0.9.34+deprecated [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking usvg v0.14.1 [INFO] [stderr] Compiling pest v2.7.11 [INFO] [stderr] Checking tempfile v3.12.0 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking resvg v0.14.1 [INFO] [stderr] Checking lopdf v0.33.0 [INFO] [stderr] Compiling pest_meta v2.7.11 [INFO] [stderr] Compiling pest_generator v2.7.11 [INFO] [stderr] Checking zstd v0.11.2+zstd.1.5.2 [INFO] [stderr] Checking zip v0.6.6 [INFO] [stderr] Compiling pest_derive v2.7.11 [INFO] [stderr] Checking tera v1.20.0 [INFO] [stderr] Checking ravif v0.11.10 [INFO] [stderr] Checking image v0.25.2 [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `machin` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/machmap/macros.rs [INFO] [stderr] * src/macros.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:3:6 [INFO] [stderr] | [INFO] [stderr] 3 | ($content: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:10:6 [INFO] [stderr] | [INFO] [stderr] 10 | ($content: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:17:6 [INFO] [stderr] | [INFO] [stderr] 17 | ($content: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/machmap/macros.rs:39:9 [INFO] [stderr] | [INFO] [stderr] 39 | $input_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/machmap/macros.rs:40:9 [INFO] [stderr] | [INFO] [stderr] 40 | $output_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: aborting due to 5 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/macros.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | ($content: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] 3 | ($content: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:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | ($content: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] 10 | ($content: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:17:15 [INFO] [stdout] | [INFO] [stdout] 17 | ($content: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] 17 | ($content: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/machmap/macros.rs:39:21 [INFO] [stdout] | [INFO] [stdout] 39 | $input_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] 39 | $input_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/machmap/macros.rs:40:22 [INFO] [stdout] | [INFO] [stdout] 40 | $output_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] 40 | $output_name:expr_2021 [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/machreduce/image_reduce.rs:50:20 [INFO] [stdout] | [INFO] [stdout] 50 | if let Ok(dimensions) = image_dimensions(line) { [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/machreduce/image_reduce.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 70 | } [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] 50 ~ match image_dimensions(line) { Ok(dimensions) => { [INFO] [stdout] 51 | if *direction == Direction::Horizontal { [INFO] [stdout] ... [INFO] [stdout] 69 | } [INFO] [stdout] 70 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/machreduce/image_reduce.rs:90:23 [INFO] [stdout] | [INFO] [stdout] 90 | } else if let Err(_e) = d_img.copy_from(&new_img, 0, before_pos) { [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/machreduce/image_reduce.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 90 ~ } else { match d_img.copy_from(&new_img, 0, before_pos) { Err(_e) => { [INFO] [stdout] 91 | continue; [INFO] [stdout] 92 ~ } _ => {}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/machreduce/image_reduce.rs:87:20 [INFO] [stdout] | [INFO] [stdout] 87 | if let Err(_e) = d_img.copy_from(&new_img, before_pos, 0) { [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/machreduce/image_reduce.rs:89:17 [INFO] [stdout] | [INFO] [stdout] 89 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 87 ~ match d_img.copy_from(&new_img, before_pos, 0) { Err(_e) => { [INFO] [stdout] 88 | continue; [INFO] [stdout] 89 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/machreduce/pdf/imagestopdf.rs:58:16 [INFO] [stdout] | [INFO] [stdout] 58 | if let Ok(img) = xobject::image(new_path) { [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/machreduce/pdf/imagestopdf.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 97 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 58 ~ match xobject::image(new_path) { Ok(img) => { [INFO] [stdout] 59 | if let Ok(dimensions) = image_dimensions(f) { [INFO] [stdout] ... [INFO] [stdout] 96 | } [INFO] [stdout] 97 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/machreduce/pdf/imagestopdf.rs:59:20 [INFO] [stdout] | [INFO] [stdout] 59 | if let Ok(dimensions) = image_dimensions(f) { [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/machreduce/pdf/imagestopdf.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 59 ~ match image_dimensions(f) { Ok(dimensions) => { [INFO] [stdout] 60 | // magical values ? TODO : ref to pdf documentation [INFO] [stdout] ... [INFO] [stdout] 95 | pdf_kids.push(page_id.into()); [INFO] [stdout] 96 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/machreduce/pdf/pdftopdf.rs:81:28 [INFO] [stdout] | [INFO] [stdout] 81 | if let Some((id, _)) = catalog_object { [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/machreduce/pdf/pdftopdf.rs:83:25 [INFO] [stdout] | [INFO] [stdout] 83 | } 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] 81 ~ match catalog_object { Some((id, _)) => { [INFO] [stdout] 82 | id [INFO] [stdout] 83 ~ } _ => { [INFO] [stdout] 84 | *object_id [INFO] [stdout] 85 ~ }}, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/machreduce/pdf/pdftopdf.rs:92:24 [INFO] [stdout] | [INFO] [stdout] 92 | if let Ok(dictionary) = object.as_dict() { [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/machreduce/pdf/pdftopdf.rs:108:21 [INFO] [stdout] | [INFO] [stdout] 108 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 92 ~ match object.as_dict() { Ok(dictionary) => { [INFO] [stdout] 93 | let mut dictionary = dictionary.clone(); [INFO] [stdout] ... [INFO] [stdout] 107 | )); [INFO] [stdout] 108 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/machreduce/pdf/pdftopdf.rs:95:32 [INFO] [stdout] | [INFO] [stdout] 95 | ... if let Ok(old_dictionary) = object.as_dict() { [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/machreduce/pdf/pdftopdf.rs:97:29 [INFO] [stdout] | [INFO] [stdout] 97 | ... } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 95 ~ match object.as_dict() { Ok(old_dictionary) => { [INFO] [stdout] 96 | dictionary.extend(old_dictionary); [INFO] [stdout] 97 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/machreduce/pdf/pdftopdf.rs:101:32 [INFO] [stdout] | [INFO] [stdout] 101 | ... if let Some((id, _)) = pages_object { [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/machreduce/pdf/pdftopdf.rs:103:29 [INFO] [stdout] | [INFO] [stdout] 103 | ... } 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] 101 ~ match pages_object { Some((id, _)) => { [INFO] [stdout] 102 | id [INFO] [stdout] 103 ~ } _ => { [INFO] [stdout] 104 | *object_id [INFO] [stdout] 105 ~ }}, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/machreduce/pdf/pdftopdf.rs:126:16 [INFO] [stdout] | [INFO] [stdout] 126 | if let Ok(dictionary) = object.as_dict() { [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/machreduce/pdf/pdftopdf.rs:132:13 [INFO] [stdout] | [INFO] [stdout] 132 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 126 ~ match object.as_dict() { Ok(dictionary) => { [INFO] [stdout] 127 | let mut dictionary = dictionary.clone(); [INFO] [stdout] ... [INFO] [stdout] 131 | .insert(*object_id, Object::Dictionary(dictionary)); [INFO] [stdout] 132 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/machreduce/pdf/pdftopdf.rs:186:16 [INFO] [stdout] | [INFO] [stdout] 186 | if let Ok(Object::Dictionary(ref mut dict)) = doc.get_object_mut(catalog_object.0) { [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/machreduce/pdf/pdftopdf.rs:188:13 [INFO] [stdout] | [INFO] [stdout] 188 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 186 ~ match doc.get_object_mut(catalog_object.0) { Ok(Object::Dictionary(ref mut dict)) => { [INFO] [stdout] 187 | dict.set("Outlines", Object::Reference(n)); [INFO] [stdout] 188 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating tests/machmap.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `machin` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/machmap/macros.rs [INFO] [stderr] * src/macros.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:3:6 [INFO] [stderr] | [INFO] [stderr] 3 | ($content: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:10:6 [INFO] [stderr] | [INFO] [stderr] 10 | ($content: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:17:6 [INFO] [stderr] | [INFO] [stderr] 17 | ($content: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/machmap/macros.rs:39:9 [INFO] [stderr] | [INFO] [stderr] 39 | $input_name:expr_2021, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/macros.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | ($content: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] 3 | ($content:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/macros.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | ($content: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] 10 | ($content:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [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/machmap/macros.rs:40:9 [INFO] [stderr] | [INFO] [stderr] 40 | $output_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: aborting due to 5 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/macros.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 17 | ($content: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] 17 | ($content:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/machmap/macros.rs:39:21 [INFO] [stdout] | [INFO] [stdout] 39 | $input_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] 39 | $input_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/machmap/macros.rs:40:22 [INFO] [stdout] | [INFO] [stdout] 40 | $output_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] 40 | $output_name:expr_2021 [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/machreduce/image_reduce.rs:50:20 [INFO] [stdout] | [INFO] [stdout] 50 | if let Ok(dimensions) = image_dimensions(line) { [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/machreduce/image_reduce.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 70 | } [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] 50 ~ match image_dimensions(line) { Ok(dimensions) => { [INFO] [stdout] 51 | if *direction == Direction::Horizontal { [INFO] [stdout] ... [INFO] [stdout] 69 | } [INFO] [stdout] 70 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/machreduce/image_reduce.rs:90:23 [INFO] [stdout] | [INFO] [stdout] 90 | } else if let Err(_e) = d_img.copy_from(&new_img, 0, before_pos) { [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/machreduce/image_reduce.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 90 ~ } else { match d_img.copy_from(&new_img, 0, before_pos) { Err(_e) => { [INFO] [stdout] 91 | continue; [INFO] [stdout] 92 ~ } _ => {}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/machreduce/image_reduce.rs:87:20 [INFO] [stdout] | [INFO] [stdout] 87 | if let Err(_e) = d_img.copy_from(&new_img, before_pos, 0) { [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/machreduce/image_reduce.rs:89:17 [INFO] [stdout] | [INFO] [stdout] 89 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 87 ~ match d_img.copy_from(&new_img, before_pos, 0) { Err(_e) => { [INFO] [stdout] 88 | continue; [INFO] [stdout] 89 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/machreduce/pdf/imagestopdf.rs:58:16 [INFO] [stdout] | [INFO] [stdout] 58 | if let Ok(img) = xobject::image(new_path) { [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/machreduce/pdf/imagestopdf.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 97 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 58 ~ match xobject::image(new_path) { Ok(img) => { [INFO] [stdout] 59 | if let Ok(dimensions) = image_dimensions(f) { [INFO] [stdout] ... [INFO] [stdout] 96 | } [INFO] [stdout] 97 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/machreduce/pdf/imagestopdf.rs:59:20 [INFO] [stdout] | [INFO] [stdout] 59 | if let Ok(dimensions) = image_dimensions(f) { [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/machreduce/pdf/imagestopdf.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 59 ~ match image_dimensions(f) { Ok(dimensions) => { [INFO] [stdout] 60 | // magical values ? TODO : ref to pdf documentation [INFO] [stdout] ... [INFO] [stdout] 95 | pdf_kids.push(page_id.into()); [INFO] [stdout] 96 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/machreduce/pdf/pdftopdf.rs:81:28 [INFO] [stdout] | [INFO] [stdout] 81 | if let Some((id, _)) = catalog_object { [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/machreduce/pdf/pdftopdf.rs:83:25 [INFO] [stdout] | [INFO] [stdout] 83 | } 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] 81 ~ match catalog_object { Some((id, _)) => { [INFO] [stdout] 82 | id [INFO] [stdout] 83 ~ } _ => { [INFO] [stdout] 84 | *object_id [INFO] [stdout] 85 ~ }}, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/machreduce/pdf/pdftopdf.rs:92:24 [INFO] [stdout] | [INFO] [stdout] 92 | if let Ok(dictionary) = object.as_dict() { [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/machreduce/pdf/pdftopdf.rs:108:21 [INFO] [stdout] | [INFO] [stdout] 108 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 92 ~ match object.as_dict() { Ok(dictionary) => { [INFO] [stdout] 93 | let mut dictionary = dictionary.clone(); [INFO] [stdout] ... [INFO] [stdout] 107 | )); [INFO] [stdout] 108 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/machreduce/pdf/pdftopdf.rs:95:32 [INFO] [stdout] | [INFO] [stdout] 95 | ... if let Ok(old_dictionary) = object.as_dict() { [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/machreduce/pdf/pdftopdf.rs:97:29 [INFO] [stdout] | [INFO] [stdout] 97 | ... } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 95 ~ match object.as_dict() { Ok(old_dictionary) => { [INFO] [stdout] 96 | dictionary.extend(old_dictionary); [INFO] [stdout] 97 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/machreduce/pdf/pdftopdf.rs:101:32 [INFO] [stdout] | [INFO] [stdout] 101 | ... if let Some((id, _)) = pages_object { [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/machreduce/pdf/pdftopdf.rs:103:29 [INFO] [stdout] | [INFO] [stdout] 103 | ... } 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] 101 ~ match pages_object { Some((id, _)) => { [INFO] [stdout] 102 | id [INFO] [stdout] 103 ~ } _ => { [INFO] [stdout] 104 | *object_id [INFO] [stdout] 105 ~ }}, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/machreduce/pdf/pdftopdf.rs:126:16 [INFO] [stdout] | [INFO] [stdout] 126 | if let Ok(dictionary) = object.as_dict() { [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/machreduce/pdf/pdftopdf.rs:132:13 [INFO] [stdout] | [INFO] [stdout] 132 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 126 ~ match object.as_dict() { Ok(dictionary) => { [INFO] [stdout] 127 | let mut dictionary = dictionary.clone(); [INFO] [stdout] ... [INFO] [stdout] 131 | .insert(*object_id, Object::Dictionary(dictionary)); [INFO] [stdout] 132 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/machreduce/pdf/pdftopdf.rs:186:16 [INFO] [stdout] | [INFO] [stdout] 186 | if let Ok(Object::Dictionary(ref mut dict)) = doc.get_object_mut(catalog_object.0) { [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/machreduce/pdf/pdftopdf.rs:188:13 [INFO] [stdout] | [INFO] [stdout] 188 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 186 ~ match doc.get_object_mut(catalog_object.0) { Ok(Object::Dictionary(ref mut dict)) => { [INFO] [stdout] 187 | dict.set("Outlines", Object::Reference(n)); [INFO] [stdout] 188 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/bin/machreduce.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/bin/machreduce.rs (1 fix) [INFO] [stderr] Migrating src/bin/machconvert.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/mapreduce.rs from 2021 edition to 2024 [INFO] [stderr] Migrating src/bin/machmap.rs from 2021 edition to 2024 [INFO] [stderr] Migrating src/bin/machexplode.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/machconvert.rs from 2021 edition to 2024 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 16.06s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Compiling machin v0.6.1 (/tmp/fixit) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.81s [INFO] running `Command { std: "docker" "inspect" "25eeb9feb925005e86c9b591985a60fe96cf1f4ba374fdf192c2935e7c472529", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "25eeb9feb925005e86c9b591985a60fe96cf1f4ba374fdf192c2935e7c472529", kill_on_drop: false }` [INFO] [stdout] 25eeb9feb925005e86c9b591985a60fe96cf1f4ba374fdf192c2935e7c472529