[INFO] cloning repository https://github.com/gehrkev/learning_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/gehrkev/learning_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgehrkev%2Flearning_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgehrkev%2Flearning_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 609236331711e0db6ef878f07834cd97cc402a9d [INFO] checking gehrkev/learning_rust/609236331711e0db6ef878f07834cd97cc402a9d against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgehrkev%2Flearning_rust" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/gehrkev/learning_rust 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 git repo https://github.com/gehrkev/learning_rust [INFO] finished tweaking git repo https://github.com/gehrkev/learning_rust [INFO] tweaked toml for git repo https://github.com/gehrkev/learning_rust written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/gehrkev/learning_rust 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] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /workspace/builds/worker-2-tc2/source/wasm-game-of-life/Cargo.toml [INFO] [stderr] workspace: /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 869952bcfe63027a4d79f5ffd97c39c6929f1b0b0a521b3e47cb4e1686675fbe [INFO] running `Command { std: "docker" "start" "-a" "869952bcfe63027a4d79f5ffd97c39c6929f1b0b0a521b3e47cb4e1686675fbe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "869952bcfe63027a4d79f5ffd97c39c6929f1b0b0a521b3e47cb4e1686675fbe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "869952bcfe63027a4d79f5ffd97c39c6929f1b0b0a521b3e47cb4e1686675fbe", kill_on_drop: false }` [INFO] [stdout] 869952bcfe63027a4d79f5ffd97c39c6929f1b0b0a521b3e47cb4e1686675fbe [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a8a02ed70909c6e081c0466b9cb227d4b86228c12492c306e0d36b1525addd98 [INFO] running `Command { std: "docker" "start" "-a" "a8a02ed70909c6e081c0466b9cb227d4b86228c12492c306e0d36b1525addd98", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /tmp/fixit/wasm-game-of-life/Cargo.toml [INFO] [stderr] workspace: /tmp/fixit/Cargo.toml [INFO] [stderr] Migrating Section_2/assignment/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating Section_2/control_flow/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating Section_2/data_types/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating Section_2/functions/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating Section_2/variables/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating Section_3/ownership/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating Section_3/ownership/assignment/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating section_4/assignment/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating section_4/structs/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating section_5/assignment/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating section_5/enums_pattern_matching/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating section_6/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating section_6/assignment/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating section_7/todo/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating section_8/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating section_9/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating cli/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating section_10/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating section_12/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating section_12/assignment/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating section_13/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating section_13/assignment/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating section_14/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating section_14/assignment/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating section_15/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating section_15/assignment/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating section_15/macros/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating section_15/macros/macro_ex/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating section_16/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating section_17/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating chat/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating wasm-game-of-life/Cargo.toml from 2018 edition to 2021 [INFO] [stderr] Migrating section_20/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating section_20/assignment/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating section_20/factorial/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating section_20/fibonacci/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating section_20/palindrome/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating section_20/tower_of_hanoi/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating section_21/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating section_22/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating section_23/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating section_24/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating section_25/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating section_26/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating section_27/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating section_28/Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /tmp/fixit/wasm-game-of-life/Cargo.toml [INFO] [stderr] workspace: /tmp/fixit/Cargo.toml [INFO] [stderr] Compiling proc-macro2 v1.0.67 [INFO] [stderr] Compiling libc v0.2.148 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Checking event-listener v2.5.3 [INFO] [stderr] Checking futures-io v0.3.28 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Checking value-bag v1.4.1 [INFO] [stderr] Checking fastrand v1.9.0 [INFO] [stderr] Checking waker-fn v1.1.1 [INFO] [stderr] Checking parking v2.1.1 [INFO] [stderr] Compiling polling v2.8.0 [INFO] [stderr] Compiling rustix v0.37.24 [INFO] [stderr] Compiling async-io v1.13.0 [INFO] [stderr] Checking linux-raw-sys v0.3.8 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking fastrand v2.0.1 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.87 [INFO] [stderr] Checking tracing-core v0.1.31 [INFO] [stderr] Checking atomic-waker v1.1.2 [INFO] [stderr] Checking async-lock v2.8.0 [INFO] [stderr] Compiling signal-hook v0.3.17 [INFO] [stderr] Checking async-task v4.4.1 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Compiling async-process v1.7.0 [INFO] [stderr] Compiling bumpalo v3.14.0 [INFO] [stderr] Checking piper v0.2.1 [INFO] [stderr] Checking futures-lite v1.13.0 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Compiling num-traits v0.2.16 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.15 [INFO] [stderr] Checking kv-log-macro v1.0.7 [INFO] [stderr] Compiling wasm-bindgen v0.2.87 [INFO] [stderr] Compiling serde v1.0.188 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Compiling serde_json v1.0.107 [INFO] [stderr] Compiling rustix v0.38.15 [INFO] [stderr] Compiling rayon-core v1.12.0 [INFO] [stderr] Checking concurrent-queue v2.3.0 [INFO] [stderr] Checking tokio v1.32.0 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Checking linux-raw-sys v0.4.8 [INFO] [stderr] Checking bitflags v2.4.0 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Checking async-channel v1.9.0 [INFO] [stderr] Checking unicode-ident v1.0.12 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking aho-corasick v1.1.1 [INFO] [stderr] Checking regex-syntax v0.7.5 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking scoped-tls v1.0.1 [INFO] [stderr] Checking disjoint-sets v0.4.2 [INFO] [stderr] Checking palindrome v0.1.0 (/tmp/fixit/section_20/palindrome) [INFO] [stderr] Migrating section_20/palindrome/src/main.rs from 2021 edition to 2024 [INFO] [stderr] Checking crossbeam-deque v0.8.3 [INFO] [stderr] Checking section_9 v0.1.0 (/tmp/fixit/section_9) [INFO] [stderr] Migrating section_9/src/main.rs from 2021 edition to 2024 [INFO] [stderr] Compiling syn v2.0.37 [INFO] [stderr] Checking section_28 v0.1.0 (/tmp/fixit/section_28) [INFO] [stderr] Checking socket2 v0.4.9 [INFO] [stderr] Fixed section_9/src/main.rs (1 fix) [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stdout] warning: function `open_file` is never used [INFO] [stdout] --> section_9/src/main.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn open_file() -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating section_28/src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Checking blocking v1.4.0 [INFO] [stderr] Checking async-executor v1.5.4 [INFO] [stderr] Compiling wasm-bindgen-test-macro v0.3.37 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking section_25 v0.1.0 (/tmp/fixit/section_25) [INFO] [stderr] Migrating section_25/src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Checking control_flow v0.1.0 (/tmp/fixit/Section_2/control_flow) [INFO] [stderr] Checking section_15 v0.1.0 (/tmp/fixit/section_15) [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Migrating Section_2/control_flow/src/main.rs from 2021 edition to 2024 [INFO] [stderr] Checking functions v0.1.0 (/tmp/fixit/Section_2/functions) [INFO] [stderr] Checking section_16 v0.1.0 (/tmp/fixit/section_16) [INFO] [stderr] Checking section_21 v0.1.0 (/tmp/fixit/section_21) [INFO] [stderr] Migrating section_15/src/main.rs from 2021 edition to 2024 [INFO] [stderr] Checking section_22 v0.1.0 (/tmp/fixit/section_22) [INFO] [stderr] Checking rayon v1.8.0 [INFO] [stderr] Checking assignment_20 v0.1.0 (/tmp/fixit/section_20/assignment) [INFO] [stderr] Checking section_26 v0.1.0 (/tmp/fixit/section_26) [INFO] [stderr] Migrating Section_2/functions/src/main.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `section_15` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * section_15/src/main.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] --> section_15/src/main.rs:2:6 [INFO] [stderr] | [INFO] [stderr] 2 | ($a: expr_2021, $b: 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] --> section_15/src/main.rs:2:21 [INFO] [stderr] | [INFO] [stderr] 2 | ($a: expr_2021, $b: 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 2 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] --> section_15/src/main.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | ($a: expr, $b: 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] 2 | ($a: expr_2021, $b: expr) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> section_15/src/main.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | ($a: expr, $b: 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] 2 | ($a: expr, $b: expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking assignment_5 v0.1.0 (/tmp/fixit/section_5/assignment) [INFO] [stderr] Migrating section_16/src/main.rs from 2021 edition to 2024 [INFO] [stderr] Checking assignment_2 v0.1.0 (/tmp/fixit/Section_2/assignment) [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Migrating section_21/src/main.rs from 2021 edition to 2024 [INFO] [stderr] Checking section_6 v0.1.0 (/tmp/fixit/section_6) [INFO] [stderr] Migrating section_22/src/lib.rs from 2021 edition to 2024 [INFO] [stdout] warning: value assigned to `sorted` is never read [INFO] [stdout] --> section_21/src/main.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let mut sorted = true; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating section_20/assignment/src/main.rs from 2021 edition to 2024 [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> section_22/src/lib.rs:101:15 [INFO] [stdout] | [INFO] [stdout] 101 | while let Some(mut boxed_node) = link { [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] --> section_22/src/lib.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking num-complex v0.4.4 [INFO] [stderr] Fixed section_20/assignment/src/main.rs (1 fix) [INFO] [stderr] Migrating section_26/src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Migrating section_5/assignment/src/main.rs from 2021 edition to 2024 [INFO] [stderr] Checking section_27 v0.1.0 (/tmp/fixit/section_27) [INFO] [stderr] Checking is-terminal v0.4.9 [INFO] [stderr] Checking colored v2.0.4 [INFO] [stdout] warning: variants `Pentagon` and `Octagon` are never constructed [INFO] [stdout] --> section_5/assignment/src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 1 | enum Shape { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 4 | Pentagon, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 5 | Octagon, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating Section_2/assignment/src/main.rs from 2021 edition to 2024 [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking fibonacci v0.1.0 (/tmp/fixit/section_20/fibonacci) [INFO] [stderr] Migrating section_6/src/main.rs from 2021 edition to 2024 [INFO] [stderr] Checking text-colorizer v1.0.0 [INFO] [stdout] warning: trait `Overview` is never used [INFO] [stdout] --> section_6/src/main.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | trait Overview { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Course` is never constructed [INFO] [stdout] --> section_6/src/main.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct Course { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AnotherCourse` is never constructed [INFO] [stdout] --> section_6/src/main.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct AnotherCourse { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `call_overview` is never used [INFO] [stdout] --> section_6/src/main.rs:89:4 [INFO] [stdout] | [INFO] [stdout] 89 | fn call_overview(item: &T) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Clone` is never used [INFO] [stdout] --> section_6/src/main.rs:98:7 [INFO] [stdout] | [INFO] [stdout] 98 | trait Clone: Sized { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking structs v0.1.0 (/tmp/fixit/section_4/structs) [INFO] [stderr] Checking factorial v0.1.0 (/tmp/fixit/section_20/factorial) [INFO] [stdout] warning: function `open_file` is never used [INFO] [stdout] --> section_9/src/main.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn open_file() -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking section_13 v0.1.0 (/tmp/fixit/section_13) [INFO] [stderr] Migrating section_27/src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Migrating section_20/fibonacci/src/main.rs from 2021 edition to 2024 [INFO] [stdout] warning: struct `State` is never constructed [INFO] [stdout] --> section_27/src/lib.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct State { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Edge` is never constructed [INFO] [stdout] --> section_27/src/lib.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | struct Edge { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shortest_path` is never used [INFO] [stdout] --> section_27/src/lib.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn shortest_path(graph: &Vec>, start: usize, goal: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ownership v0.1.0 (/tmp/fixit/Section_3/ownership) [INFO] [stderr] Migrating section_4/structs/src/main.rs from 2021 edition to 2024 [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> section_4/structs/src/main.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let x = MyString { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> section_4/structs/src/main.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let s: &'static str = "i have a static lifetime"; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `text` is never read [INFO] [stdout] --> section_4/structs/src/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 30 | struct MyString<'a> { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 31 | text: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating section_20/factorial/src/main.rs from 2021 edition to 2024 [INFO] [stderr] Checking data_types v0.1.0 (/tmp/fixit/Section_2/data_types) [INFO] [stderr] Checking section_8 v0.1.0 (/tmp/fixit/section_8) [INFO] [stderr] Migrating section_13/src/main.rs from 2021 edition to 2024 [INFO] [stderr] Checking regex-automata v0.3.9 [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> section_15/src/main.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | ($a: expr, $b: 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] 2 | ($a: expr_2021, $b: expr) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `section_15` [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> section_15/src/main.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | ($a: expr, $b: 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] 2 | ($a: expr, $b: expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * section_15/src/main.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] --> section_15/src/main.rs:2:6 [INFO] [stderr] | [INFO] [stderr] 2 | ($a: expr_2021, $b: 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] --> section_15/src/main.rs:2:21 [INFO] [stderr] | [INFO] [stderr] 2 | ($a: expr_2021, $b: 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 2 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] [stderr] Migrating Section_3/ownership/src/main.rs from 2021 edition to 2024 [INFO] [stderr] Checking variables v0.1.0 (/tmp/fixit/Section_2/variables) [INFO] [stdout] warning: trait `Overview` is never used [INFO] [stdout] --> section_6/src/main.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | trait Overview { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Course` is never constructed [INFO] [stdout] --> section_6/src/main.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct Course { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AnotherCourse` is never constructed [INFO] [stdout] --> section_6/src/main.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct AnotherCourse { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `call_overview` is never used [INFO] [stdout] --> section_6/src/main.rs:89:4 [INFO] [stdout] | [INFO] [stdout] 89 | fn call_overview(item: &T) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Clone` is never used [INFO] [stdout] --> section_6/src/main.rs:98:7 [INFO] [stdout] | [INFO] [stdout] 98 | trait Clone: Sized { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating Section_2/data_types/src/main.rs from 2021 edition to 2024 [INFO] [stderr] Checking tower_of_hanoi v0.1.0 (/tmp/fixit/section_20/tower_of_hanoi) [INFO] [stdout] warning: variants `Pentagon` and `Octagon` are never constructed [INFO] [stdout] --> section_5/assignment/src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 1 | enum Shape { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 4 | Pentagon, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 5 | Octagon, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating section_8/src/main.rs from 2021 edition to 2024 [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking assignment_13 v0.1.0 (/tmp/fixit/section_13/assignment) [INFO] [stderr] Fixed section_8/src/main.rs (1 fix) [INFO] [stderr] Checking assignment_3 v0.1.0 (/tmp/fixit/Section_3/ownership/assignment) [INFO] [stderr] Checking section_10 v0.1.0 (/tmp/fixit/section_10) [INFO] [stderr] Checking async-global-executor v2.3.1 [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> section_4/structs/src/main.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let x = MyString { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> section_4/structs/src/main.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let s: &'static str = "i have a static lifetime"; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `text` is never read [INFO] [stdout] --> section_4/structs/src/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 30 | struct MyString<'a> { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 31 | text: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating Section_2/variables/src/main.rs from 2021 edition to 2024 [INFO] [stderr] Checking section_23 v0.1.0 (/tmp/fixit/section_23) [INFO] [stderr] Checking num v0.4.1 [INFO] [stderr] Checking LEARN_RUST v0.1.0 (/tmp/fixit) [INFO] [stderr] Checking enums_pattern_matching v0.1.0 (/tmp/fixit/section_5/enums_pattern_matching) [INFO] [stderr] Migrating section_20/tower_of_hanoi/src/main.rs from 2021 edition to 2024 [INFO] [stderr] Checking section_20 v0.1.0 (/tmp/fixit/section_20) [INFO] [stderr] Checking async-std v1.12.0 [INFO] [stderr] Migrating section_13/assignment/src/main.rs from 2021 edition to 2024 [INFO] [stderr] Checking section_14 v0.1.0 (/tmp/fixit/section_14) [INFO] [stderr] Checking assignment_14 v0.1.0 (/tmp/fixit/section_14/assignment) [INFO] [stderr] Checking macros v0.1.0 (/tmp/fixit/section_15/macros) [INFO] [stderr] Fixed section_22/src/lib.rs (1 fix) [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> section_22/src/lib.rs:101:15 [INFO] [stdout] | [INFO] [stdout] 101 | while let Some(mut boxed_node) = link { [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] --> section_22/src/lib.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating Section_3/ownership/assignment/src/main.rs from 2021 edition to 2024 [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed Section_3/ownership/assignment/src/main.rs (1 fix) [INFO] [stderr] Migrating section_10/src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Migrating section_23/src/lib.rs from 2021 edition to 2024 [INFO] [stdout] warning: function `simple_add` is never used [INFO] [stdout] --> section_10/src/lib.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn simple_add() -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking assignment_4 v0.1.0 (/tmp/fixit/section_4/assignment) [INFO] [stderr] Migrating section_5/enums_pattern_matching/src/main.rs from 2021 edition to 2024 [INFO] [stderr] Checking assignment_12 v0.1.0 (/tmp/fixit/section_12/assignment) [INFO] [stdout] warning: unused variable: `home` [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let home = IpAddrKind::V4(String::from("127.0.0.1")); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_home` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loopback` [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let loopback = IpAddr { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loopback` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_number` [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let some_number = Some(5); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_string` [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let some_string = Some("String"); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nothing` [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let nothing: Option = None; //Option,T>, let x = 5 == i32 [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nothing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let x: i32 = 5; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let y: Option = Some(5); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `none` [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let none = plus_one(None); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_none` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Fish` is never constructed [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 1 | enum Pet { [INFO] [stdout] | --- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 4 | Fish, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | V4(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 18 | V4(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind` and `address` are never read [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 22 | struct IpAddr { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 23 | kind: IpAddrKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] 24 | address: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating section_20/src/main.rs from 2021 edition to 2024 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.87 [INFO] [stderr] Checking section_12 v0.1.0 (/tmp/fixit/section_12) [INFO] [stdout] warning: unused variable: `home` [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let home = IpAddrKind::V4(String::from("127.0.0.1")); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_home` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating section_14/src/main.rs from 2021 edition to 2024 [INFO] [stdout] warning: unused variable: `loopback` [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let loopback = IpAddr { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loopback` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_number` [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let some_number = Some(5); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_string` [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let some_string = Some("String"); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nothing` [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let nothing: Option = None; //Option,T>, let x = 5 == i32 [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nothing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let x: i32 = 5; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let y: Option = Some(5); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `none` [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let none = plus_one(None); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_none` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Fish` is never constructed [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 1 | enum Pet { [INFO] [stdout] | --- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 4 | Fish, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | V4(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 18 | V4(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind` and `address` are never read [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 22 | struct IpAddr { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 23 | kind: IpAddrKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] 24 | address: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating section_14/assignment/src/main.rs from 2021 edition to 2024 [INFO] [stderr] Checking assignment_15 v0.1.0 (/tmp/fixit/section_15/assignment) [INFO] [stderr] Fixed section_14/assignment/src/main.rs (2 fixes) [INFO] [stderr] Migrating section_15/macros/src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Checking section_24 v0.1.0 (/tmp/fixit/section_24) [INFO] [stderr] Checking assignment_6 v0.1.0 (/tmp/fixit/section_6/assignment) [INFO] [stderr] Migrating section_4/assignment/src/main.rs from 2021 edition to 2024 [INFO] [stderr] Migrating section_12/assignment/src/main.rs from 2021 edition to 2024 [INFO] [stderr] Migrating section_12/src/main.rs from 2021 edition to 2024 [INFO] [stderr] Checking regex v1.9.6 [INFO] [stderr] Fixed section_12/src/main.rs (1 fix) [INFO] [stderr] Migrating section_15/assignment/src/main.rs from 2021 edition to 2024 [INFO] [stderr] Migrating section_24/src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `assignment_15` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * section_15/assignment/src/main.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] --> section_15/assignment/src/main.rs:2:7 [INFO] [stderr] | [INFO] [stderr] 2 | ( $x: expr_2021, $y: expr_2021, 1) => { [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] --> section_15/assignment/src/main.rs:2:22 [INFO] [stderr] | [INFO] [stderr] 2 | ( $x: expr_2021, $y: expr_2021, 1) => { [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] --> section_15/assignment/src/main.rs:5:7 [INFO] [stderr] | [INFO] [stderr] 5 | ( $x: expr_2021, $y: expr_2021, 2) => { [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] --> section_15/assignment/src/main.rs:5:22 [INFO] [stderr] | [INFO] [stderr] 5 | ( $x: expr_2021, $y: expr_2021, 2) => { [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] --> section_15/assignment/src/main.rs:8:7 [INFO] [stderr] | [INFO] [stderr] 8 | ( $x: expr_2021, $y: expr_2021, 3) => { [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] --> section_15/assignment/src/main.rs:8:22 [INFO] [stderr] | [INFO] [stderr] 8 | ( $x: expr_2021, $y: expr_2021, 3) => { [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] --> section_15/assignment/src/main.rs:11:7 [INFO] [stderr] | [INFO] [stderr] 11 | ( $x: expr_2021, $y: expr_2021, 4) => { [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] --> section_15/assignment/src/main.rs:11:22 [INFO] [stderr] | [INFO] [stderr] 11 | ( $x: expr_2021, $y: expr_2021, 4) => { [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] --> section_15/assignment/src/main.rs:14:7 [INFO] [stderr] | [INFO] [stderr] 14 | ( $x: expr_2021, $y: expr_2021, 5) => { [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] --> section_15/assignment/src/main.rs:14:22 [INFO] [stderr] | [INFO] [stderr] 14 | ( $x: expr_2021, $y: expr_2021, 5) => { [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] --> section_15/assignment/src/main.rs:17:7 [INFO] [stderr] | [INFO] [stderr] 17 | ( $x: expr_2021, $y: expr_2021, $operation: 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] --> section_15/assignment/src/main.rs:17:22 [INFO] [stderr] | [INFO] [stderr] 17 | ( $x: expr_2021, $y: expr_2021, $operation: expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> section_15/assignment/src/main.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | ( $x: expr, $y: expr, 1) => { [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] 2 | ( $x: expr_2021, $y: expr, 1) => { [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] --> section_15/assignment/src/main.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | ( $x: expr, $y: expr, 1) => { [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] 2 | ( $x: expr, $y: expr_2021, 1) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> section_15/assignment/src/main.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | ( $x: expr, $y: expr, 2) => { [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] 5 | ( $x: expr_2021, $y: expr, 2) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> section_15/assignment/src/main.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | ( $x: expr, $y: expr, 2) => { [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] 5 | ( $x: expr, $y: expr_2021, 2) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> section_15/assignment/src/main.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | ( $x: expr, $y: expr, 3) => { [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] 8 | ( $x: expr_2021, $y: expr, 3) => { [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] --> section_15/assignment/src/main.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | ( $x: expr, $y: expr, 3) => { [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] 8 | ( $x: expr, $y: expr_2021, 3) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> section_15/assignment/src/main.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | ( $x: expr, $y: expr, 4) => { [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] 11 | ( $x: expr_2021, $y: expr, 4) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> section_15/assignment/src/main.rs:17:37 [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> section_15/assignment/src/main.rs:11:21 [INFO] [stdout] | [INFO] [stdout] 11 | ( $x: expr, $y: expr, 4) => { [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] 11 | ( $x: expr, $y: expr_2021, 4) => { [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] --> section_15/assignment/src/main.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | ( $x: expr, $y: expr, 5) => { [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] 14 | ( $x: expr_2021, $y: expr, 5) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 17 | ( $x: expr_2021, $y: expr_2021, $operation: expr_2021) => { [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> section_15/assignment/src/main.rs:14:21 [INFO] [stdout] | [INFO] [stdout] 14 | ( $x: expr, $y: expr, 5) => { [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] 14 | ( $x: expr, $y: expr_2021, 5) => { [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] --> section_15/assignment/src/main.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | ( $x: expr, $y: expr, $operation: 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 | ( $x: expr_2021, $y: expr, $operation: expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [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 13 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] --> section_15/assignment/src/main.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | ( $x: expr, $y: expr, $operation: 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 | ( $x: expr, $y: expr_2021, $operation: expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> section_15/assignment/src/main.rs:17:39 [INFO] [stdout] | [INFO] [stdout] 17 | ( $x: expr, $y: expr, $operation: 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 | ( $x: expr, $y: expr, $operation: expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.87 [INFO] [stderr] Checking cli v0.1.0 (/tmp/fixit/cli) [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> section_24/src/lib.rs:178:15 [INFO] [stdout] | [INFO] [stdout] 178 | while let Some(child) = &self.stack.last().unwrap().left { [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] --> section_24/src/lib.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 180 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating section_6/assignment/src/main.rs from 2021 edition to 2024 [INFO] [stderr] Checking todo v0.1.0 (/tmp/fixit/section_7/todo) [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `assignment_15` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * section_15/assignment/src/main.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] --> section_15/assignment/src/main.rs:2:7 [INFO] [stderr] | [INFO] [stderr] 2 | ( $x: expr_2021, $y: expr_2021, 1) => { [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] --> section_15/assignment/src/main.rs:2:22 [INFO] [stderr] | [INFO] [stderr] 2 | ( $x: expr_2021, $y: expr_2021, 1) => { [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] --> section_15/assignment/src/main.rs:5:7 [INFO] [stderr] | [INFO] [stderr] 5 | ( $x: expr_2021, $y: expr_2021, 2) => { [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] --> section_15/assignment/src/main.rs:5:22 [INFO] [stderr] | [INFO] [stderr] 5 | ( $x: expr_2021, $y: expr_2021, 2) => { [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] --> section_15/assignment/src/main.rs:8:7 [INFO] [stderr] | [INFO] [stderr] 8 | ( $x: expr_2021, $y: expr_2021, 3) => { [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] --> section_15/assignment/src/main.rs:8:22 [INFO] [stderr] | [INFO] [stderr] 8 | ( $x: expr_2021, $y: expr_2021, 3) => { [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] --> section_15/assignment/src/main.rs:11:7 [INFO] [stderr] | [INFO] [stderr] 11 | ( $x: expr_2021, $y: expr_2021, 4) => { [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] --> section_15/assignment/src/main.rs:11:22 [INFO] [stderr] | [INFO] [stderr] 11 | ( $x: expr_2021, $y: expr_2021, 4) => { [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] --> section_15/assignment/src/main.rs:14:7 [INFO] [stderr] | [INFO] [stderr] 14 | ( $x: expr_2021, $y: expr_2021, 5) => { [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] --> section_15/assignment/src/main.rs:14:22 [INFO] [stderr] | [INFO] [stderr] 14 | ( $x: expr_2021, $y: expr_2021, 5) => { [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] --> section_15/assignment/src/main.rs:17:7 [INFO] [stderr] | [INFO] [stderr] 17 | ( $x: expr_2021, $y: expr_2021, $operation: 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] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> section_15/assignment/src/main.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | ( $x: expr, $y: expr, 1) => { [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] 2 | ( $x: expr_2021, $y: expr, 1) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> section_15/assignment/src/main.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | ( $x: expr, $y: expr, 1) => { [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] 2 | ( $x: expr, $y: expr_2021, 1) => { [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] --> section_15/assignment/src/main.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | ( $x: expr, $y: expr, 2) => { [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] 5 | ( $x: expr_2021, $y: expr, 2) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> section_15/assignment/src/main.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | ( $x: expr, $y: expr, 2) => { [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] 5 | ( $x: expr, $y: expr_2021, 2) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> section_15/assignment/src/main.rs:17:22 [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> section_15/assignment/src/main.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | ( $x: expr, $y: expr, 3) => { [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] 8 | ( $x: expr_2021, $y: expr, 3) => { [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] --> section_15/assignment/src/main.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | ( $x: expr, $y: expr, 3) => { [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] 8 | ( $x: expr, $y: expr_2021, 3) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 17 | ( $x: expr_2021, $y: expr_2021, $operation: expr_2021) => { [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> section_15/assignment/src/main.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | ( $x: expr, $y: expr, 4) => { [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] 11 | ( $x: expr_2021, $y: expr, 4) => { [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] --> section_15/assignment/src/main.rs:11:21 [INFO] [stdout] | [INFO] [stdout] 11 | ( $x: expr, $y: expr, 4) => { [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] 11 | ( $x: expr, $y: expr_2021, 4) => { [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] --> section_15/assignment/src/main.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | ( $x: expr, $y: expr, 5) => { [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] 14 | ( $x: expr_2021, $y: expr, 5) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> section_15/assignment/src/main.rs:14:21 [INFO] [stdout] | [INFO] [stdout] 14 | ( $x: expr, $y: expr, 5) => { [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] 14 | ( $x: expr, $y: expr_2021, 5) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> section_15/assignment/src/main.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | ( $x: expr, $y: expr, $operation: 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 | ( $x: expr_2021, $y: expr, $operation: expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> section_15/assignment/src/main.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | ( $x: expr, $y: expr, $operation: 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 | ( $x: expr, $y: expr_2021, $operation: expr) => { [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] --> section_15/assignment/src/main.rs:17:39 [INFO] [stdout] | [INFO] [stdout] 17 | ( $x: expr, $y: expr, $operation: 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 | ( $x: expr, $y: expr, $operation: expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> section_15/assignment/src/main.rs:17:37 [INFO] [stderr] | [INFO] [stderr] 17 | ( $x: expr_2021, $y: expr_2021, $operation: 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 13 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: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> section_24/src/lib.rs:178:15 [INFO] [stdout] | [INFO] [stdout] 178 | while let Some(child) = &self.stack.last().unwrap().left { [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] --> section_24/src/lib.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 180 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating cli/src/main.rs from 2021 edition to 2024 [INFO] [stderr] Checking section_17 v0.1.0 (/tmp/fixit/section_17) [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.87 [INFO] [stderr] Compiling serde_derive v1.0.188 [INFO] [stderr] Migrating section_7/todo/src/lib.rs from 2021 edition to 2024 [INFO] [stdout] warning: unused variable: `task` [INFO] [stdout] --> section_7/todo/src/lib.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let task = list::Tasks { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_task` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lets_add_task` is never used [INFO] [stdout] --> section_7/todo/src/lib.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn lets_add_task() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Tasks` is never constructed [INFO] [stdout] --> section_7/todo/src/lib.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Tasks { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_activity` is never used [INFO] [stdout] --> section_7/todo/src/things_todo.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn add_activity() {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_activity` is never used [INFO] [stdout] --> section_7/todo/src/things_todo.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn update_activity() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `marked_completed` is never used [INFO] [stdout] --> section_7/todo/src/things_todo.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn marked_completed() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `remove_task` is never used [INFO] [stdout] --> section_7/todo/src/things_todo/items_completed.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn remove_task() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `move_back_todo` is never used [INFO] [stdout] --> section_7/todo/src/things_todo/items_completed.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn move_back_todo() {} [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_fn` is never used [INFO] [stdout] --> section_7/todo/src/things_todo/items_completed.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn test_fn() {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sorted` is never read [INFO] [stdout] --> section_21/src/main.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let mut sorted = true; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `task` [INFO] [stdout] --> section_7/todo/src/lib.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let task = list::Tasks { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_task` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating section_17/src/main.rs from 2021 edition to 2024 [INFO] [stdout] warning: function `lets_add_task` is never used [INFO] [stdout] --> section_7/todo/src/lib.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn lets_add_task() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Tasks` is never constructed [INFO] [stdout] --> section_7/todo/src/lib.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Tasks { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_activity` is never used [INFO] [stdout] --> section_7/todo/src/things_todo.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn add_activity() {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_activity` is never used [INFO] [stdout] --> section_7/todo/src/things_todo.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn update_activity() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `marked_completed` is never used [INFO] [stdout] --> section_7/todo/src/things_todo.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn marked_completed() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `remove_task` is never used [INFO] [stdout] --> section_7/todo/src/things_todo/items_completed.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn remove_task() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `move_back_todo` is never used [INFO] [stdout] --> section_7/todo/src/things_todo/items_completed.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn move_back_todo() {} [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_fn` is never used [INFO] [stdout] --> section_7/todo/src/things_todo/items_completed.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn test_fn() {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking macro_ex v0.1.0 (/tmp/fixit/section_15/macros/macro_ex) [INFO] [stderr] Migrating section_15/macros/macro_ex/src/main.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `macro_ex` [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> section_15/macros/macro_ex/src/main.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | ( $($val: 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] 8 | ( $($val: expr_2021), + $(,)*) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * section_15/macros/macro_ex/src/main.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] --> section_15/macros/macro_ex/src/main.rs:8:9 [INFO] [stderr] | [INFO] [stderr] 8 | ( $($val: 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 1 previous error [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stderr] Checking console_error_panic_hook v0.1.7 [INFO] [stderr] Checking js-sys v0.3.64 [INFO] [stderr] Checking wasm-game-of-life v0.1.0 (/tmp/fixit/wasm-game-of-life) [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `macro_ex` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * section_15/macros/macro_ex/src/main.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] --> section_15/macros/macro_ex/src/main.rs:8:9 [INFO] [stderr] | [INFO] [stderr] 8 | ( $($val: 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 1 previous error [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] --> section_15/macros/macro_ex/src/main.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | ( $($val: 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] 8 | ( $($val: expr_2021), + $(,)*) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating wasm-game-of-life/src/lib.rs from 2018 edition to 2021 [INFO] [stdout] warning: function `set_panic_hook` is never used [INFO] [stdout] --> wasm-game-of-life/src/utils.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn set_panic_hook() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> wasm-game-of-life/src/lib.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | write!(f, "\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking wasm-bindgen-futures v0.4.37 [INFO] [stderr] Checking wasm-bindgen-test v0.3.37 [INFO] [stderr] Migrating wasm-game-of-life/tests/web.rs from 2018 edition to 2021 [INFO] [stdout] warning: function `set_panic_hook` is never used [INFO] [stdout] --> wasm-game-of-life/src/utils.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn set_panic_hook() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> wasm-game-of-life/src/lib.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | write!(f, "\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking chat v0.1.0 (/tmp/fixit/chat) [INFO] [stderr] Migrating chat/src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Migrating chat/src/bin/server/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed chat/src/bin/server/main.rs (1 fix) [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> chat/src/bin/server/main.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | while let Some(socket_result) = new_connections.next().await { [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] --> chat/src/bin/server/main.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> chat/src/bin/server/connection.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | while let Some(request_response) = from_client.next().await { [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] --> chat/src/bin/server/connection.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> chat/src/bin/server/main.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | while let Some(socket_result) = new_connections.next().await { [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] --> chat/src/bin/server/main.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating chat/src/bin/client.rs from 2021 edition to 2024 [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> chat/src/bin/server/connection.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | while let Some(request_response) = from_client.next().await { [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] --> chat/src/bin/server/connection.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> chat/src/bin/client.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | while let Some(option_result) = options.next().await { [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] --> chat/src/bin/client.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> chat/src/bin/client.rs:29:11 [INFO] [stdout] | [INFO] [stdout] 29 | while let Some(msg) = stream.next().await { [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] --> chat/src/bin/client.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> chat/src/bin/client.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | while let Some(option_result) = options.next().await { [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] --> chat/src/bin/client.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> chat/src/bin/client.rs:29:11 [INFO] [stdout] | [INFO] [stdout] 29 | while let Some(msg) = stream.next().await { [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] --> chat/src/bin/client.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.76s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: wasm-bindgen v0.2.87 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /tmp/fixit/wasm-game-of-life/Cargo.toml [INFO] [stderr] workspace: /tmp/fixit/Cargo.toml [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> chat/src/bin/client.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | while let Some(option_result) = options.next().await { [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] --> chat/src/bin/client.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> chat/src/bin/client.rs:29:11 [INFO] [stdout] | [INFO] [stdout] 29 | while let Some(msg) = stream.next().await { [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] --> chat/src/bin/client.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> chat/src/bin/client.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | while let Some(option_result) = options.next().await { [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] --> chat/src/bin/client.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> chat/src/bin/client.rs:29:11 [INFO] [stdout] | [INFO] [stdout] 29 | while let Some(msg) = stream.next().await { [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] --> chat/src/bin/client.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking chat v0.1.0 (/tmp/fixit/chat) [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking macro_ex v0.1.0 (/tmp/fixit/section_15/macros/macro_ex) [INFO] [stdout] warning: function `set_panic_hook` is never used [INFO] [stdout] --> wasm-game-of-life/src/utils.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn set_panic_hook() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> wasm-game-of-life/src/lib.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | write!(f, "\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking section_8 v0.1.0 (/tmp/fixit/section_8) [INFO] [stderr] Checking assignment_14 v0.1.0 (/tmp/fixit/section_14/assignment) [INFO] [stdout] warning: variants `Pentagon` and `Octagon` are never constructed [INFO] [stdout] --> section_5/assignment/src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 1 | enum Shape { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 4 | Pentagon, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 5 | Octagon, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> section_4/structs/src/main.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let x = MyString { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> section_4/structs/src/main.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let s: &'static str = "i have a static lifetime"; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `text` is never read [INFO] [stdout] --> section_4/structs/src/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 30 | struct MyString<'a> { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 31 | text: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `home` [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let home = IpAddrKind::V4(String::from("127.0.0.1")); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_home` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loopback` [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let loopback = IpAddr { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loopback` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_number` [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let some_number = Some(5); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_string` [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let some_string = Some("String"); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nothing` [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let nothing: Option = None; //Option,T>, let x = 5 == i32 [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nothing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let x: i32 = 5; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let y: Option = Some(5); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `none` [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let none = plus_one(None); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_none` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Fish` is never constructed [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 1 | enum Pet { [INFO] [stdout] | --- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 4 | Fish, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | V4(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 18 | V4(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind` and `address` are never read [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 22 | struct IpAddr { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 23 | kind: IpAddrKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] 24 | address: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_panic_hook` is never used [INFO] [stdout] --> wasm-game-of-life/src/utils.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn set_panic_hook() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> wasm-game-of-life/src/lib.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | write!(f, "\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Overview` is never used [INFO] [stdout] --> section_6/src/main.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | trait Overview { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Course` is never constructed [INFO] [stdout] --> section_6/src/main.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct Course { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AnotherCourse` is never constructed [INFO] [stdout] --> section_6/src/main.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct AnotherCourse { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `call_overview` is never used [INFO] [stdout] --> section_6/src/main.rs:89:4 [INFO] [stdout] | [INFO] [stdout] 89 | fn call_overview(item: &T) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking assignment_20 v0.1.0 (/tmp/fixit/section_20/assignment) [INFO] [stdout] warning: trait `Clone` is never used [INFO] [stdout] --> section_6/src/main.rs:98:7 [INFO] [stdout] | [INFO] [stdout] 98 | trait Clone: Sized { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking LEARN_RUST v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking section_12 v0.1.0 (/tmp/fixit/section_12) [INFO] [stderr] Checking section_22 v0.1.0 (/tmp/fixit/section_22) [INFO] [stdout] warning: function `open_file` is never used [INFO] [stdout] --> section_9/src/main.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn open_file() -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sorted` is never read [INFO] [stdout] --> section_21/src/main.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let mut sorted = true; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking section_15 v0.1.0 (/tmp/fixit/section_15) [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> section_24/src/lib.rs:178:15 [INFO] [stdout] | [INFO] [stdout] 178 | while let Some(child) = &self.stack.last().unwrap().left { [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] --> section_24/src/lib.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 180 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `State` is never constructed [INFO] [stdout] --> section_27/src/lib.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct State { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Edge` is never constructed [INFO] [stdout] --> section_27/src/lib.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | struct Edge { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shortest_path` is never used [INFO] [stdout] --> section_27/src/lib.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn shortest_path(graph: &Vec>, start: usize, goal: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `task` [INFO] [stdout] --> section_7/todo/src/lib.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let task = list::Tasks { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_task` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lets_add_task` is never used [INFO] [stdout] --> section_7/todo/src/lib.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn lets_add_task() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Tasks` is never constructed [INFO] [stdout] --> section_7/todo/src/lib.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Tasks { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_activity` is never used [INFO] [stdout] --> section_7/todo/src/things_todo.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn add_activity() {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_activity` is never used [INFO] [stdout] --> section_7/todo/src/things_todo.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn update_activity() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `marked_completed` is never used [INFO] [stdout] --> section_7/todo/src/things_todo.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn marked_completed() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `remove_task` is never used [INFO] [stdout] --> section_7/todo/src/things_todo/items_completed.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn remove_task() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `move_back_todo` is never used [INFO] [stdout] --> section_7/todo/src/things_todo/items_completed.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn move_back_todo() {} [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_fn` is never used [INFO] [stdout] --> section_7/todo/src/things_todo/items_completed.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn test_fn() {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking assignment_15 v0.1.0 (/tmp/fixit/section_15/assignment) [INFO] [stdout] warning: unused variable: `home` [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let home = IpAddrKind::V4(String::from("127.0.0.1")); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_home` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loopback` [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let loopback = IpAddr { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loopback` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_number` [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let some_number = Some(5); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_string` [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let some_string = Some("String"); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nothing` [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let nothing: Option = None; //Option,T>, let x = 5 == i32 [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nothing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let x: i32 = 5; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let y: Option = Some(5); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `none` [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let none = plus_one(None); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_none` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Fish` is never constructed [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 1 | enum Pet { [INFO] [stdout] | --- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 4 | Fish, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | V4(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 18 | V4(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind` and `address` are never read [INFO] [stdout] --> section_5/enums_pattern_matching/src/main.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 22 | struct IpAddr { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 23 | kind: IpAddrKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] 24 | address: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> section_4/structs/src/main.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let x = MyString { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> section_4/structs/src/main.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let s: &'static str = "i have a static lifetime"; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `text` is never read [INFO] [stdout] --> section_4/structs/src/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 30 | struct MyString<'a> { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 31 | text: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking section_9 v0.1.0 (/tmp/fixit/section_9) [INFO] [stdout] warning: unused variable: `task` [INFO] [stdout] --> section_7/todo/src/lib.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let task = list::Tasks { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_task` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lets_add_task` is never used [INFO] [stdout] --> section_7/todo/src/lib.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn lets_add_task() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Tasks` is never constructed [INFO] [stdout] --> section_7/todo/src/lib.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Tasks { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_activity` is never used [INFO] [stdout] --> section_7/todo/src/things_todo.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn add_activity() {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_activity` is never used [INFO] [stdout] --> section_7/todo/src/things_todo.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn update_activity() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `marked_completed` is never used [INFO] [stdout] --> section_7/todo/src/things_todo.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn marked_completed() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `remove_task` is never used [INFO] [stdout] --> section_7/todo/src/things_todo/items_completed.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn remove_task() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `move_back_todo` is never used [INFO] [stdout] --> section_7/todo/src/things_todo/items_completed.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn move_back_todo() {} [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_fn` is never used [INFO] [stdout] --> section_7/todo/src/things_todo/items_completed.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn test_fn() {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> section_24/src/lib.rs:178:15 [INFO] [stdout] | [INFO] [stdout] 178 | while let Some(child) = &self.stack.last().unwrap().left { [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] --> section_24/src/lib.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 180 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Pentagon` and `Octagon` are never constructed [INFO] [stdout] --> section_5/assignment/src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 1 | enum Shape { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 4 | Pentagon, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 5 | Octagon, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Overview` is never used [INFO] [stdout] --> section_6/src/main.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | trait Overview { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Course` is never constructed [INFO] [stdout] --> section_6/src/main.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct Course { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AnotherCourse` is never constructed [INFO] [stdout] --> section_6/src/main.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct AnotherCourse { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `call_overview` is never used [INFO] [stdout] --> section_6/src/main.rs:89:4 [INFO] [stdout] | [INFO] [stdout] 89 | fn call_overview(item: &T) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Clone` is never used [INFO] [stdout] --> section_6/src/main.rs:98:7 [INFO] [stdout] | [INFO] [stdout] 98 | trait Clone: Sized { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simple_add` is never used [INFO] [stdout] --> section_10/src/lib.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn simple_add() -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking assignment_3 v0.1.0 (/tmp/fixit/Section_3/ownership/assignment) [INFO] [stdout] warning: value assigned to `sorted` is never read [INFO] [stdout] --> section_21/src/main.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let mut sorted = true; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `List` [INFO] [stdout] --> section_22/src/lib.rs:112:24 [INFO] [stdout] | [INFO] [stdout] 112 | let mut list = List::new(); [INFO] [stdout] | ^^^^ use of undeclared type `List` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 110 + use crate::List; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `List` [INFO] [stdout] --> section_22/src/lib.rs:140:24 [INFO] [stdout] | [INFO] [stdout] 140 | let mut list = List::new(); [INFO] [stdout] | ^^^^ use of undeclared type `List` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 110 + use crate::List; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `List` [INFO] [stdout] --> section_22/src/lib.rs:160:24 [INFO] [stdout] | [INFO] [stdout] 160 | let mut list = List::new(); [INFO] [stdout] | ^^^^ use of undeclared type `List` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 110 + use crate::List; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `List` [INFO] [stdout] --> section_22/src/lib.rs:174:24 [INFO] [stdout] | [INFO] [stdout] 174 | let mut list = List::new(); [INFO] [stdout] | ^^^^ use of undeclared type `List` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 110 + use crate::List; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stdout] warning: function `open_file` is never used [INFO] [stdout] --> section_9/src/main.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn open_file() -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `section_22` (lib test) due to 5 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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" "a8a02ed70909c6e081c0466b9cb227d4b86228c12492c306e0d36b1525addd98", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a8a02ed70909c6e081c0466b9cb227d4b86228c12492c306e0d36b1525addd98", kill_on_drop: false }` [INFO] [stdout] a8a02ed70909c6e081c0466b9cb227d4b86228c12492c306e0d36b1525addd98