[INFO] cloning repository https://github.com/Johan-Mi/scratch-compiler-2 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Johan-Mi/scratch-compiler-2" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJohan-Mi%2Fscratch-compiler-2", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJohan-Mi%2Fscratch-compiler-2'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f50c45556b963326c89eb9d639aad283ca11c298 [INFO] checking Johan-Mi/scratch-compiler-2/f50c45556b963326c89eb9d639aad283ca11c298 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJohan-Mi%2Fscratch-compiler-2" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Johan-Mi/scratch-compiler-2 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/Johan-Mi/scratch-compiler-2 [INFO] finished tweaking git repo https://github.com/Johan-Mi/scratch-compiler-2 [INFO] tweaked toml for git repo https://github.com/Johan-Mi/scratch-compiler-2 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Johan-Mi/scratch-compiler-2 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a847005ac65a2add4f752cc8b5d15e7379b1727b7ca77da8deccc52cf6d7c307 [INFO] running `Command { std: "docker" "start" "-a" "a847005ac65a2add4f752cc8b5d15e7379b1727b7ca77da8deccc52cf6d7c307", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a847005ac65a2add4f752cc8b5d15e7379b1727b7ca77da8deccc52cf6d7c307", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a847005ac65a2add4f752cc8b5d15e7379b1727b7ca77da8deccc52cf6d7c307", kill_on_drop: false }` [INFO] [stdout] a847005ac65a2add4f752cc8b5d15e7379b1727b7ca77da8deccc52cf6d7c307 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6ecc39716928b417baec1aad5fa62c87b9966422b9727d0816575bc70548f315 [INFO] running `Command { std: "docker" "start" "-a" "6ecc39716928b417baec1aad5fa62c87b9966422b9727d0816575bc70548f315", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling proc-macro2 v1.0.74 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling serde v1.0.194 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Compiling serde_json v1.0.110 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Checking miniz_oxide v0.7.1 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling beef v0.5.2 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking itoa v1.0.10 [INFO] [stderr] Checking ryu v1.0.16 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking countme v3.0.1 [INFO] [stderr] Checking md5 v0.7.0 [INFO] [stderr] Checking fixedbitset v0.4.2 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Checking text-size v1.1.1 [INFO] [stderr] Checking flate2 v1.0.28 [INFO] [stderr] Checking codemap v0.1.3 [INFO] [stderr] Checking termcolor v1.4.0 [INFO] [stderr] Checking ryu-js v1.0.0 [INFO] [stderr] Checking levenshtein v1.0.5 [INFO] [stderr] Checking indexmap v2.1.0 [INFO] [stderr] Checking rowan v0.15.15 [INFO] [stderr] Checking codemap-diagnostic v0.1.1 (https://github.com/Johan-Mi/codemap-diagnostic#c7860a6d) [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Checking zip v0.6.6 [INFO] [stderr] Compiling syn v2.0.46 [INFO] [stderr] Checking petgraph v0.6.4 [INFO] [stderr] Compiling logos-codegen v0.13.0 [INFO] [stderr] Compiling serde_derive v1.0.194 [INFO] [stderr] Compiling logos-derive v0.13.0 [INFO] [stderr] Checking logos v0.13.0 [INFO] [stderr] Checking sb3-builder v0.1.0 (https://github.com/Johan-Mi/sb3-builder#c47f9a94) [INFO] [stderr] Checking scratch-compiler-2 v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `scratch_compiler_2` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/ast.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/ast.rs:8:19 [INFO] [stderr] | [INFO] [stderr] 8 | ($Name:ident: $kind: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] --> src/ast.rs:8:25 [INFO] [stdout] | [INFO] [stdout] 8 | ($Name:ident: $kind: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 | ($Name:ident: $kind:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/ast.rs:38:30 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn imports(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/ast.rs:38:20 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn imports(&self) -> impl Iterator { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 38 | pub fn imports(&self) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/ast.rs:42:30 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn structs(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/ast.rs:42:20 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn structs(&self) -> impl Iterator { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 42 | pub fn structs(&self) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/ast.rs:46:30 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn sprites(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/ast.rs:46:20 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn sprites(&self) -> impl Iterator { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 46 | pub fn sprites(&self) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/ast.rs:50:32 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn functions(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/ast.rs:50:22 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn functions(&self) -> impl Iterator { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 50 | pub fn functions(&self) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/ast.rs:54:27 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn lets(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/ast.rs:54:17 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn lets(&self) -> impl Iterator { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 54 | pub fn lets(&self) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/ast.rs:74:29 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn fields(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/ast.rs:74:19 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn fields(&self) -> impl Iterator { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 74 | pub fn fields(&self) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/ast.rs:98:36 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn costume_lists(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/ast.rs:98:26 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn costume_lists(&self) -> impl Iterator { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 98 | pub fn costume_lists(&self) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/ast.rs:102:32 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn functions(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/ast.rs:102:22 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn functions(&self) -> impl Iterator { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 102 | pub fn functions(&self) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/ast.rs:106:27 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn lets(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/ast.rs:106:17 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn lets(&self) -> impl Iterator { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 106 | pub fn lets(&self) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/ast.rs:114:27 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn iter(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/ast.rs:114:17 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn iter(&self) -> impl Iterator { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 114 | pub fn iter(&self) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/ast.rs:177:27 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn iter(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/ast.rs:177:17 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn iter(&self) -> impl Iterator { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 177 | pub fn iter(&self) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/ast.rs:188:33 [INFO] [stdout] | [INFO] [stdout] 188 | pub fn parameters(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/ast.rs:188:23 [INFO] [stdout] | [INFO] [stdout] 188 | pub fn parameters(&self) -> impl Iterator { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 188 | pub fn parameters(&self) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/ast.rs:224:33 [INFO] [stdout] | [INFO] [stdout] 224 | pub fn statements(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/ast.rs:224:23 [INFO] [stdout] | [INFO] [stdout] 224 | pub fn statements(&self) -> impl Iterator { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 224 | pub fn statements(&self) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/ast.rs:493:27 [INFO] [stdout] | [INFO] [stdout] 493 | pub fn iter(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/ast.rs:493:17 [INFO] [stdout] | [INFO] [stdout] 493 | pub fn iter(&self) -> impl Iterator { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 493 | pub fn iter(&self) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/ast.rs:563:27 [INFO] [stdout] | [INFO] [stdout] 563 | pub fn iter(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/ast.rs:563:17 [INFO] [stdout] | [INFO] [stdout] 563 | pub fn iter(&self) -> impl Iterator { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 563 | pub fn iter(&self) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/ast.rs:571:27 [INFO] [stdout] | [INFO] [stdout] 571 | pub fn iter(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/ast.rs:571:17 [INFO] [stdout] | [INFO] [stdout] 571 | pub fn iter(&self) -> impl Iterator { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 571 | pub fn iter(&self) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/comptime.rs:51:20 [INFO] [stdout] | [INFO] [stdout] 51 | if let Some(Some(value)) = [INFO] [stdout] | ____________________^ [INFO] [stdout] 52 | | tcx.comptime_known_variables.get(token) [INFO] [stdout] | |_____________________----------------------------__________^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/comptime.rs:55:17 [INFO] [stdout] | [INFO] [stdout] 55 | } else { [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 51 ~ match tcx.comptime_known_variables.get(token) [INFO] [stdout] 52 ~ { Some(Some(value)) => { [INFO] [stdout] 53 | value.clone() [INFO] [stdout] 54 ~ } _ => { [INFO] [stdout] 55 | match token.parent().map(|it| it.kind()) { [INFO] [stdout] ... [INFO] [stdout] 63 | } [INFO] [stdout] 64 ~ }}, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/comptime.rs:69:16 [INFO] [stdout] | [INFO] [stdout] 69 | if let Ok(ty) = (*builtin).try_into() { [INFO] [stdout] | ^^^^^^^^^^^^^--------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/comptime.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 69 ~ match (*builtin).try_into() { Ok(ty) => { [INFO] [stdout] 70 | expr.kind = ExpressionKind::Imm(Value::Ty(ty)); [INFO] [stdout] 71 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/comptime.rs:74:16 [INFO] [stdout] | [INFO] [stdout] 74 | if let [Expression { [INFO] [stdout] | ________________^ [INFO] [stdout] 75 | | kind: ExpressionKind::Imm(Value::Ty(ty)), [INFO] [stdout] 76 | | .. [INFO] [stdout] 77 | | }] = &mut **arguments [INFO] [stdout] | |_______________________----------^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/comptime.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 74 ~ match &mut **arguments [INFO] [stdout] 75 ~ { [Expression { [INFO] [stdout] 76 + kind: ExpressionKind::Imm(Value::Ty(ty)), [INFO] [stdout] 77 + .. [INFO] [stdout] 78 ~ }] => { [INFO] [stdout] 79 | expr.kind = ExpressionKind::Imm(Value::Ty(match generic { [INFO] [stdout] ... [INFO] [stdout] 82 | })); [INFO] [stdout] 83 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/comptime.rs:123:16 [INFO] [stdout] | [INFO] [stdout] 123 | if let StatementKind::Let { variable, value } = &statement.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/comptime.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 123 ~ match &statement.kind { StatementKind::Let { variable, value } => { [INFO] [stdout] 124 | self.tcx.maybe_define_comptime_known_variable( [INFO] [stdout] ... [INFO] [stdout] 127 | ); [INFO] [stdout] 128 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/hir.rs:33:16 [INFO] [stdout] | [INFO] [stdout] 33 | if let Some(old_struct) = self.structs.get(&name) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^------------^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/hir.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 33 ~ match self.structs.get(&name) { Some(old_struct) => { [INFO] [stdout] 34 | diagnostics.error( [INFO] [stdout] ... [INFO] [stdout] 40 | ); [INFO] [stdout] 41 ~ } _ => { [INFO] [stdout] 42 | self.structs.insert(name, struct_); [INFO] [stdout] 43 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/hir/lowering.rs:35:16 [INFO] [stdout] | [INFO] [stdout] 35 | if let Some(old_struct) = structs.get(&name) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^-------^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/hir/lowering.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 35 ~ match structs.get(&name) { Some(old_struct) => { [INFO] [stdout] 36 | diagnostics.error( [INFO] [stdout] ... [INFO] [stdout] 45 | ); [INFO] [stdout] 46 ~ } _ => { [INFO] [stdout] 47 | structs.insert(name, r#struct); [INFO] [stdout] 48 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/hir/lowering.rs:455:20 [INFO] [stdout] | [INFO] [stdout] 455 | let value = if let Some(value) = let_.value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^------------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/hir/lowering.rs:457:5 [INFO] [stdout] | [INFO] [stdout] 457 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 455 ~ let value = match let_.value() { Some(value) => { [INFO] [stdout] 456 | Expression::lower(&value, file, diagnostics) [INFO] [stdout] 457 ~ } _ => { [INFO] [stdout] 458 | diagnostics.error( [INFO] [stdout] ... [INFO] [stdout] 465 | } [INFO] [stdout] 466 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/hir/lowering.rs:637:20 [INFO] [stdout] | [INFO] [stdout] 637 | if let ast::Expression::NamedArgument(named_arg) = arg { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/hir/lowering.rs:647:17 [INFO] [stdout] | [INFO] [stdout] 647 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 637 ~ match arg { ast::Expression::NamedArgument(named_arg) => { [INFO] [stdout] 638 | ( [INFO] [stdout] ... [INFO] [stdout] 646 | ) [INFO] [stdout] 647 ~ } _ => { [INFO] [stdout] 648 | (None, Expression::lower(&arg, file, diagnostics)) [INFO] [stdout] 649 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/linter.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | if let StatementKind::Let { variable, .. } = &statement.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/linter.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 36 ~ match &statement.kind { StatementKind::Let { variable, .. } => { [INFO] [stdout] 37 | self.unused_variables.insert(variable.clone()); [INFO] [stdout] 38 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/linter.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | if let ExpressionKind::Variable(Name::User(variable)) = &expr.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/linter.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 42 ~ match &expr.kind { ExpressionKind::Variable(Name::User(variable)) => { [INFO] [stdout] 43 | self.unused_variables.remove(variable); [INFO] [stdout] 44 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/mir.rs:154:12 [INFO] [stdout] | [INFO] [stdout] 154 | if let Self::Var(v) = *self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^----- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/mir.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 156 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 154 ~ match *self { Self::Var(v) => { [INFO] [stdout] 155 | Some(v) [INFO] [stdout] 156 ~ } _ => { [INFO] [stdout] 157 | None [INFO] [stdout] 158 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/mir/inlining.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | while let Some(id) = document [INFO] [stdout] | ____________^ - [INFO] [stdout] | | __________________________| [INFO] [stdout] 11 | || .functions [INFO] [stdout] | ||__________________- this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] 12 | | .iter() [INFO] [stdout] 13 | | .find_map(|(&id, function)| function.is_inline.then_some(id)) [INFO] [stdout] | |______________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/mir/inlining.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/mir/inlining.rs:60:15 [INFO] [stdout] | [INFO] [stdout] 60 | while let Some((index, variable, args)) = block [INFO] [stdout] | ________________^ - [INFO] [stdout] | | ___________________________________________________| [INFO] [stdout] 61 | || .ops [INFO] [stdout] | ||________________- this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] 62 | | .iter_mut() [INFO] [stdout] 63 | | .enumerate() [INFO] [stdout] ... | [INFO] [stdout] 70 | | _ => None, [INFO] [stdout] 71 | | }) [INFO] [stdout] | |_______________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/mir/inlining.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/mir/linearity.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | if let Value::Var(var) = *value { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/mir/linearity.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 28 ~ match *value { Value::Var(var) => { [INFO] [stdout] 29 | self.used_once [INFO] [stdout] ... [INFO] [stdout] 32 | .or_insert(true); [INFO] [stdout] 33 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/mir/lowering.rs:154:8 [INFO] [stdout] | [INFO] [stdout] 154 | if let Some(&real_var) = cx.real_vars.get(&variable) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^------------^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/mir/lowering.rs:162:5 [INFO] [stdout] | [INFO] [stdout] 162 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 154 ~ match cx.real_vars.get(&variable) { Some(&real_var) => { [INFO] [stdout] 155 | cx.block.ops.push(Op::Call( [INFO] [stdout] ... [INFO] [stdout] 161 | )); [INFO] [stdout] 162 ~ } _ => { [INFO] [stdout] 163 | cx.vars.insert(variable, value); [INFO] [stdout] 164 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/mir/lowering.rs:265:16 [INFO] [stdout] | [INFO] [stdout] 265 | if let Some(&real_var) = cx.real_vars.get(&variable) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^------------^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/mir/lowering.rs:275:13 [INFO] [stdout] | [INFO] [stdout] 275 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 265 ~ match cx.real_vars.get(&variable) { Some(&real_var) => { [INFO] [stdout] 266 | let ssa_var = cx.generator.new_ssa_var(); [INFO] [stdout] ... [INFO] [stdout] 274 | Some(Value::Var(ssa_var)) [INFO] [stdout] 275 ~ } _ => { [INFO] [stdout] 276 | Some(cx.vars[&variable].clone()) [INFO] [stdout] 277 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/mir/mutability.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | if let hir::ExpressionKind::Lvalue(var) = &expr.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/mir/mutability.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 27 ~ match &expr.kind { hir::ExpressionKind::Lvalue(var) => { [INFO] [stdout] 28 | self.real_vars [INFO] [stdout] 29 | .entry(var.clone()) [INFO] [stdout] 30 | .or_insert_with(|| self.generator.new_real_var()); [INFO] [stdout] 31 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/mir/optimization/canon.rs:15:19 [INFO] [stdout] | [INFO] [stdout] 15 | } else if let ("sub", [Var(_), Imm(Num(n))]) = (&**name, &mut **args) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/mir/optimization/canon.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 15 ~ } else { match (&**name, &mut **args) { ("sub", [Var(_), Imm(Num(n))]) => { [INFO] [stdout] 16 | "add".clone_into(name); [INFO] [stdout] 17 | *n *= -1.0; [INFO] [stdout] 18 | return true; [INFO] [stdout] 19 ~ } _ => {}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/mir/optimization/constant_propagation.rs:16:16 [INFO] [stdout] | [INFO] [stdout] 16 | if let Some(value) = evaluate_intrinsic(name, args) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^------------------------------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/mir/optimization/constant_propagation.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 16 ~ match evaluate_intrinsic(name, args) { Some(value) => { [INFO] [stdout] 17 | dirty = true; [INFO] [stdout] ... [INFO] [stdout] 24 | continue; [INFO] [stdout] 25 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/mir/optimization/dce.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | if let Value::Var(var) = *value { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/mir/optimization/dce.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 23 ~ match *value { Value::Var(var) => { [INFO] [stdout] 24 | self.used.insert(var); [INFO] [stdout] 25 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/semantics.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | if let ExpressionKind::FunctionCall { [INFO] [stdout] | ____________^ [INFO] [stdout] 70 | | name_or_operator, .. [INFO] [stdout] 71 | | } = &expr.kind [INFO] [stdout] | |______________--------^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/semantics.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 69 ~ match &expr.kind [INFO] [stdout] 70 ~ { ExpressionKind::FunctionCall { [INFO] [stdout] 71 + name_or_operator, .. [INFO] [stdout] 72 ~ } => { [INFO] [stdout] 73 | if function::Special::try_from(name_or_operator.text()).is_ok() { [INFO] [stdout] 74 | self.diagnostics.error(format!("special function `{name_or_operator}` cannot be called"), [primary(expr.span, "")]); [INFO] [stdout] 75 | } [INFO] [stdout] 76 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/ty.rs:226:8 [INFO] [stdout] | [INFO] [stdout] 226 | if let (Ok(return_ty), Ok(ty)) = (&tcx.function_return_ty, ty) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^----------------------^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/ty.rs:239:5 [INFO] [stdout] | [INFO] [stdout] 239 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 226 ~ match (&tcx.function_return_ty, ty) { (Ok(return_ty), Ok(ty)) => { [INFO] [stdout] 227 | if !(*ty == Ty::Never || ty == return_ty) { [INFO] [stdout] ... [INFO] [stdout] 238 | } [INFO] [stdout] 239 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 39 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `scratch_compiler_2` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/ast.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/ast.rs:8:19 [INFO] [stderr] | [INFO] [stderr] 8 | ($Name:ident: $kind: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] --> src/ast.rs:8:25 [INFO] [stdout] | [INFO] [stdout] 8 | ($Name:ident: $kind: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 | ($Name:ident: $kind:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/ast.rs:38:30 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn imports(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/ast.rs:38:20 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn imports(&self) -> impl Iterator { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 38 | pub fn imports(&self) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/ast.rs:42:30 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn structs(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/ast.rs:42:20 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn structs(&self) -> impl Iterator { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 42 | pub fn structs(&self) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/ast.rs:46:30 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn sprites(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/ast.rs:46:20 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn sprites(&self) -> impl Iterator { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 46 | pub fn sprites(&self) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/ast.rs:50:32 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn functions(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/ast.rs:50:22 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn functions(&self) -> impl Iterator { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 50 | pub fn functions(&self) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/ast.rs:54:27 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn lets(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/ast.rs:54:17 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn lets(&self) -> impl Iterator { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 54 | pub fn lets(&self) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/ast.rs:74:29 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn fields(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/ast.rs:74:19 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn fields(&self) -> impl Iterator { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 74 | pub fn fields(&self) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/ast.rs:98:36 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn costume_lists(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/ast.rs:98:26 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn costume_lists(&self) -> impl Iterator { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 98 | pub fn costume_lists(&self) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/ast.rs:102:32 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn functions(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/ast.rs:102:22 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn functions(&self) -> impl Iterator { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 102 | pub fn functions(&self) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/ast.rs:106:27 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn lets(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/ast.rs:106:17 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn lets(&self) -> impl Iterator { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 106 | pub fn lets(&self) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/ast.rs:114:27 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn iter(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/ast.rs:114:17 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn iter(&self) -> impl Iterator { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 114 | pub fn iter(&self) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/ast.rs:177:27 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn iter(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/ast.rs:177:17 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn iter(&self) -> impl Iterator { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 177 | pub fn iter(&self) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/ast.rs:188:33 [INFO] [stdout] | [INFO] [stdout] 188 | pub fn parameters(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/ast.rs:188:23 [INFO] [stdout] | [INFO] [stdout] 188 | pub fn parameters(&self) -> impl Iterator { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 188 | pub fn parameters(&self) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/ast.rs:224:33 [INFO] [stdout] | [INFO] [stdout] 224 | pub fn statements(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/ast.rs:224:23 [INFO] [stdout] | [INFO] [stdout] 224 | pub fn statements(&self) -> impl Iterator { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 224 | pub fn statements(&self) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/ast.rs:493:27 [INFO] [stdout] | [INFO] [stdout] 493 | pub fn iter(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/ast.rs:493:17 [INFO] [stdout] | [INFO] [stdout] 493 | pub fn iter(&self) -> impl Iterator { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 493 | pub fn iter(&self) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/ast.rs:563:27 [INFO] [stdout] | [INFO] [stdout] 563 | pub fn iter(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/ast.rs:563:17 [INFO] [stdout] | [INFO] [stdout] 563 | pub fn iter(&self) -> impl Iterator { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 563 | pub fn iter(&self) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/ast.rs:571:27 [INFO] [stdout] | [INFO] [stdout] 571 | pub fn iter(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/ast.rs:571:17 [INFO] [stdout] | [INFO] [stdout] 571 | pub fn iter(&self) -> impl Iterator { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 571 | pub fn iter(&self) -> impl Iterator + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/comptime.rs:51:20 [INFO] [stdout] | [INFO] [stdout] 51 | if let Some(Some(value)) = [INFO] [stdout] | ____________________^ [INFO] [stdout] 52 | | tcx.comptime_known_variables.get(token) [INFO] [stdout] | |_____________________----------------------------__________^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/comptime.rs:55:17 [INFO] [stdout] | [INFO] [stdout] 55 | } else { [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 51 ~ match tcx.comptime_known_variables.get(token) [INFO] [stdout] 52 ~ { Some(Some(value)) => { [INFO] [stdout] 53 | value.clone() [INFO] [stdout] 54 ~ } _ => { [INFO] [stdout] 55 | match token.parent().map(|it| it.kind()) { [INFO] [stdout] ... [INFO] [stdout] 63 | } [INFO] [stdout] 64 ~ }}, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/comptime.rs:69:16 [INFO] [stdout] | [INFO] [stdout] 69 | if let Ok(ty) = (*builtin).try_into() { [INFO] [stdout] | ^^^^^^^^^^^^^--------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/comptime.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 69 ~ match (*builtin).try_into() { Ok(ty) => { [INFO] [stdout] 70 | expr.kind = ExpressionKind::Imm(Value::Ty(ty)); [INFO] [stdout] 71 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/comptime.rs:74:16 [INFO] [stdout] | [INFO] [stdout] 74 | if let [Expression { [INFO] [stdout] | ________________^ [INFO] [stdout] 75 | | kind: ExpressionKind::Imm(Value::Ty(ty)), [INFO] [stdout] 76 | | .. [INFO] [stdout] 77 | | }] = &mut **arguments [INFO] [stdout] | |_______________________----------^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/comptime.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 74 ~ match &mut **arguments [INFO] [stdout] 75 ~ { [Expression { [INFO] [stdout] 76 + kind: ExpressionKind::Imm(Value::Ty(ty)), [INFO] [stdout] 77 + .. [INFO] [stdout] 78 ~ }] => { [INFO] [stdout] 79 | expr.kind = ExpressionKind::Imm(Value::Ty(match generic { [INFO] [stdout] ... [INFO] [stdout] 82 | })); [INFO] [stdout] 83 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/comptime.rs:123:16 [INFO] [stdout] | [INFO] [stdout] 123 | if let StatementKind::Let { variable, value } = &statement.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/comptime.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 123 ~ match &statement.kind { StatementKind::Let { variable, value } => { [INFO] [stdout] 124 | self.tcx.maybe_define_comptime_known_variable( [INFO] [stdout] ... [INFO] [stdout] 127 | ); [INFO] [stdout] 128 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/hir.rs:33:16 [INFO] [stdout] | [INFO] [stdout] 33 | if let Some(old_struct) = self.structs.get(&name) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^------------^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/hir.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 33 ~ match self.structs.get(&name) { Some(old_struct) => { [INFO] [stdout] 34 | diagnostics.error( [INFO] [stdout] ... [INFO] [stdout] 40 | ); [INFO] [stdout] 41 ~ } _ => { [INFO] [stdout] 42 | self.structs.insert(name, struct_); [INFO] [stdout] 43 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/hir/lowering.rs:35:16 [INFO] [stdout] | [INFO] [stdout] 35 | if let Some(old_struct) = structs.get(&name) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^-------^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/hir/lowering.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 35 ~ match structs.get(&name) { Some(old_struct) => { [INFO] [stdout] 36 | diagnostics.error( [INFO] [stdout] ... [INFO] [stdout] 45 | ); [INFO] [stdout] 46 ~ } _ => { [INFO] [stdout] 47 | structs.insert(name, r#struct); [INFO] [stdout] 48 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/hir/lowering.rs:455:20 [INFO] [stdout] | [INFO] [stdout] 455 | let value = if let Some(value) = let_.value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^------------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/hir/lowering.rs:457:5 [INFO] [stdout] | [INFO] [stdout] 457 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 455 ~ let value = match let_.value() { Some(value) => { [INFO] [stdout] 456 | Expression::lower(&value, file, diagnostics) [INFO] [stdout] 457 ~ } _ => { [INFO] [stdout] 458 | diagnostics.error( [INFO] [stdout] ... [INFO] [stdout] 465 | } [INFO] [stdout] 466 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/hir/lowering.rs:637:20 [INFO] [stdout] | [INFO] [stdout] 637 | if let ast::Expression::NamedArgument(named_arg) = arg { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/hir/lowering.rs:647:17 [INFO] [stdout] | [INFO] [stdout] 647 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 637 ~ match arg { ast::Expression::NamedArgument(named_arg) => { [INFO] [stdout] 638 | ( [INFO] [stdout] ... [INFO] [stdout] 646 | ) [INFO] [stdout] 647 ~ } _ => { [INFO] [stdout] 648 | (None, Expression::lower(&arg, file, diagnostics)) [INFO] [stdout] 649 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/linter.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | if let StatementKind::Let { variable, .. } = &statement.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/linter.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 36 ~ match &statement.kind { StatementKind::Let { variable, .. } => { [INFO] [stdout] 37 | self.unused_variables.insert(variable.clone()); [INFO] [stdout] 38 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/linter.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | if let ExpressionKind::Variable(Name::User(variable)) = &expr.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/linter.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 42 ~ match &expr.kind { ExpressionKind::Variable(Name::User(variable)) => { [INFO] [stdout] 43 | self.unused_variables.remove(variable); [INFO] [stdout] 44 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/mir.rs:154:12 [INFO] [stdout] | [INFO] [stdout] 154 | if let Self::Var(v) = *self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^----- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/mir.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 156 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 154 ~ match *self { Self::Var(v) => { [INFO] [stdout] 155 | Some(v) [INFO] [stdout] 156 ~ } _ => { [INFO] [stdout] 157 | None [INFO] [stdout] 158 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/mir/inlining.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | while let Some(id) = document [INFO] [stdout] | ____________^ - [INFO] [stdout] | | __________________________| [INFO] [stdout] 11 | || .functions [INFO] [stdout] | ||__________________- this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] 12 | | .iter() [INFO] [stdout] 13 | | .find_map(|(&id, function)| function.is_inline.then_some(id)) [INFO] [stdout] | |______________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/mir/inlining.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/mir/inlining.rs:60:15 [INFO] [stdout] | [INFO] [stdout] 60 | while let Some((index, variable, args)) = block [INFO] [stdout] | ________________^ - [INFO] [stdout] | | ___________________________________________________| [INFO] [stdout] 61 | || .ops [INFO] [stdout] | ||________________- this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] 62 | | .iter_mut() [INFO] [stdout] 63 | | .enumerate() [INFO] [stdout] ... | [INFO] [stdout] 70 | | _ => None, [INFO] [stdout] 71 | | }) [INFO] [stdout] | |_______________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/mir/inlining.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/mir/linearity.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | if let Value::Var(var) = *value { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/mir/linearity.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 28 ~ match *value { Value::Var(var) => { [INFO] [stdout] 29 | self.used_once [INFO] [stdout] ... [INFO] [stdout] 32 | .or_insert(true); [INFO] [stdout] 33 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/mir/lowering.rs:154:8 [INFO] [stdout] | [INFO] [stdout] 154 | if let Some(&real_var) = cx.real_vars.get(&variable) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^------------^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/mir/lowering.rs:162:5 [INFO] [stdout] | [INFO] [stdout] 162 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 154 ~ match cx.real_vars.get(&variable) { Some(&real_var) => { [INFO] [stdout] 155 | cx.block.ops.push(Op::Call( [INFO] [stdout] ... [INFO] [stdout] 161 | )); [INFO] [stdout] 162 ~ } _ => { [INFO] [stdout] 163 | cx.vars.insert(variable, value); [INFO] [stdout] 164 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/mir/lowering.rs:265:16 [INFO] [stdout] | [INFO] [stdout] 265 | if let Some(&real_var) = cx.real_vars.get(&variable) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^------------^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/mir/lowering.rs:275:13 [INFO] [stdout] | [INFO] [stdout] 275 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 265 ~ match cx.real_vars.get(&variable) { Some(&real_var) => { [INFO] [stdout] 266 | let ssa_var = cx.generator.new_ssa_var(); [INFO] [stdout] ... [INFO] [stdout] 274 | Some(Value::Var(ssa_var)) [INFO] [stdout] 275 ~ } _ => { [INFO] [stdout] 276 | Some(cx.vars[&variable].clone()) [INFO] [stdout] 277 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/mir/mutability.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | if let hir::ExpressionKind::Lvalue(var) = &expr.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/mir/mutability.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 27 ~ match &expr.kind { hir::ExpressionKind::Lvalue(var) => { [INFO] [stdout] 28 | self.real_vars [INFO] [stdout] 29 | .entry(var.clone()) [INFO] [stdout] 30 | .or_insert_with(|| self.generator.new_real_var()); [INFO] [stdout] 31 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/mir/optimization/canon.rs:15:19 [INFO] [stdout] | [INFO] [stdout] 15 | } else if let ("sub", [Var(_), Imm(Num(n))]) = (&**name, &mut **args) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/mir/optimization/canon.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 15 ~ } else { match (&**name, &mut **args) { ("sub", [Var(_), Imm(Num(n))]) => { [INFO] [stdout] 16 | "add".clone_into(name); [INFO] [stdout] 17 | *n *= -1.0; [INFO] [stdout] 18 | return true; [INFO] [stdout] 19 ~ } _ => {}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/mir/optimization/constant_propagation.rs:16:16 [INFO] [stdout] | [INFO] [stdout] 16 | if let Some(value) = evaluate_intrinsic(name, args) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^------------------------------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/mir/optimization/constant_propagation.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 16 ~ match evaluate_intrinsic(name, args) { Some(value) => { [INFO] [stdout] 17 | dirty = true; [INFO] [stdout] ... [INFO] [stdout] 24 | continue; [INFO] [stdout] 25 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/mir/optimization/dce.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | if let Value::Var(var) = *value { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/mir/optimization/dce.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 23 ~ match *value { Value::Var(var) => { [INFO] [stdout] 24 | self.used.insert(var); [INFO] [stdout] 25 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/semantics.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | if let ExpressionKind::FunctionCall { [INFO] [stdout] | ____________^ [INFO] [stdout] 70 | | name_or_operator, .. [INFO] [stdout] 71 | | } = &expr.kind [INFO] [stdout] | |______________--------^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/semantics.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 69 ~ match &expr.kind [INFO] [stdout] 70 ~ { ExpressionKind::FunctionCall { [INFO] [stdout] 71 + name_or_operator, .. [INFO] [stdout] 72 ~ } => { [INFO] [stdout] 73 | if function::Special::try_from(name_or_operator.text()).is_ok() { [INFO] [stdout] 74 | self.diagnostics.error(format!("special function `{name_or_operator}` cannot be called"), [primary(expr.span, "")]); [INFO] [stdout] 75 | } [INFO] [stdout] 76 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/ty.rs:226:8 [INFO] [stdout] | [INFO] [stdout] 226 | if let (Ok(return_ty), Ok(ty)) = (&tcx.function_return_ty, ty) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^----------------------^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/ty.rs:239:5 [INFO] [stdout] | [INFO] [stdout] 239 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 226 ~ match (&tcx.function_return_ty, ty) { (Ok(return_ty), Ok(ty)) => { [INFO] [stdout] 227 | if !(*ty == Ty::Never || ty == return_ty) { [INFO] [stdout] ... [INFO] [stdout] 238 | } [INFO] [stdout] 239 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 39 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.67s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking scratch-compiler-2 v0.1.0 (/tmp/fixit) [INFO] [stdout] error[E0515]: cannot return value referencing function parameter `it` [INFO] [stdout] --> src/hir/lowering.rs:71:34 [INFO] [stdout] | [INFO] [stdout] 71 | .filter_map(|it| it.name().zip(Some(it.functions()))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^--^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `it` is borrowed here [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing function parameter `it` [INFO] [stdout] --> src/hir/lowering.rs:87:48 [INFO] [stdout] | [INFO] [stdout] 87 | .chain(ast.sprites().flat_map(|it| it.lets())) [INFO] [stdout] | --^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] | `it` is borrowed here [INFO] [stdout] | [INFO] [stdout] = help: use `.collect()` to allocate the iterator [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing function parameter `it` [INFO] [stdout] --> src/hir/lowering.rs:191:28 [INFO] [stdout] | [INFO] [stdout] 191 | .flat_map(|it| it.iter()) [INFO] [stdout] | --^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] | `it` is borrowed here [INFO] [stdout] | [INFO] [stdout] = help: use `.collect()` to allocate the iterator [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing function parameter `it` [INFO] [stdout] --> src/hir/lowering.rs:225:28 [INFO] [stdout] | [INFO] [stdout] 225 | .flat_map(|it| it.iter()) [INFO] [stdout] | --^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] | `it` is borrowed here [INFO] [stdout] | [INFO] [stdout] = help: use `.collect()` to allocate the iterator [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing function parameter `p` [INFO] [stdout] --> src/hir/lowering.rs:254:27 [INFO] [stdout] | [INFO] [stdout] 254 | .flat_map(|p| p.parameters()) [INFO] [stdout] | -^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] | `p` is borrowed here [INFO] [stdout] | [INFO] [stdout] = help: use `.collect()` to allocate the iterator [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing function parameter `it` [INFO] [stdout] --> src/name.rs:74:63 [INFO] [stdout] | [INFO] [stdout] 74 | function.generics().into_iter().flat_map(|it| it.iter()); [INFO] [stdout] | --^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] | `it` is borrowed here [INFO] [stdout] | [INFO] [stdout] = help: use `.collect()` to allocate the iterator [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing function parameter `p` [INFO] [stdout] --> src/name.rs:78:31 [INFO] [stdout] | [INFO] [stdout] 78 | .flat_map(|p| p.parameters()) [INFO] [stdout] | -^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] | `p` is borrowed here [INFO] [stdout] | [INFO] [stdout] = help: use `.collect()` to allocate the iterator [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `document` [INFO] [stdout] --> src/name.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | / match scope.kind() { [INFO] [stdout] 58 | | DOCUMENT => { [INFO] [stdout] 59 | | let document = ast::Document::cast(scope).unwrap(); [INFO] [stdout] 60 | | let structs = document.structs().filter_map(|it| it.name()); [INFO] [stdout] | | -------- `document` is borrowed here [INFO] [stdout] ... | [INFO] [stdout] 111 | | _ => Box::new(std::iter::empty()), [INFO] [stdout] 112 | | } [INFO] [stdout] | |_____^ returns a value referencing data owned by the current function [INFO] [stdout] | [INFO] [stdout] = help: use `.collect()` to allocate the iterator [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/name.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | / match scope.kind() { [INFO] [stdout] 58 | | DOCUMENT => { [INFO] [stdout] 59 | | let document = ast::Document::cast(scope).unwrap(); [INFO] [stdout] 60 | | let structs = document.structs().filter_map(|it| it.name()); [INFO] [stdout] ... | [INFO] [stdout] 66 | |/ ast::Sprite::cast(scope) [INFO] [stdout] 67 | || .unwrap() [INFO] [stdout] | ||_________________________- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 111 | | _ => Box::new(std::iter::empty()), [INFO] [stdout] 112 | | } [INFO] [stdout] | |______^ returns a value referencing data owned by the current function [INFO] [stdout] | [INFO] [stdout] = help: use `.collect()` to allocate the iterator [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `document` [INFO] [stdout] --> src/name.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | / match scope.kind() { [INFO] [stdout] 58 | | DOCUMENT => { [INFO] [stdout] 59 | | let document = ast::Document::cast(scope).unwrap(); [INFO] [stdout] 60 | | let structs = document.structs().filter_map(|it| it.name()); [INFO] [stdout] 61 | | let sprites = document.sprites().filter_map(|sprite| sprite.name()); [INFO] [stdout] | | -------- `document` is borrowed here [INFO] [stdout] ... | [INFO] [stdout] 111 | | _ => Box::new(std::iter::empty()), [INFO] [stdout] 112 | | } [INFO] [stdout] | |_____^ returns a value referencing data owned by the current function [INFO] [stdout] | [INFO] [stdout] = help: use `.collect()` to allocate the iterator [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `document` [INFO] [stdout] --> src/name.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | / match scope.kind() { [INFO] [stdout] 58 | | DOCUMENT => { [INFO] [stdout] 59 | | let document = ast::Document::cast(scope).unwrap(); [INFO] [stdout] 60 | | let structs = document.structs().filter_map(|it| it.name()); [INFO] [stdout] 61 | | let sprites = document.sprites().filter_map(|sprite| sprite.name()); [INFO] [stdout] 62 | | let lets = document.lets().filter_map(|it| it.variable()); [INFO] [stdout] | | -------- `document` is borrowed here [INFO] [stdout] ... | [INFO] [stdout] 111 | | _ => Box::new(std::iter::empty()), [INFO] [stdout] 112 | | } [INFO] [stdout] | |_____^ returns a value referencing data owned by the current function [INFO] [stdout] | [INFO] [stdout] = help: use `.collect()` to allocate the iterator [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing function parameter `it` [INFO] [stdout] --> src/hir/lowering.rs:71:34 [INFO] [stdout] | [INFO] [stdout] 71 | .filter_map(|it| it.name().zip(Some(it.functions()))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^--^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `it` is borrowed here [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing function parameter `it` [INFO] [stdout] --> src/hir/lowering.rs:87:48 [INFO] [stdout] | [INFO] [stdout] 87 | .chain(ast.sprites().flat_map(|it| it.lets())) [INFO] [stdout] | --^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] | `it` is borrowed here [INFO] [stdout] | [INFO] [stdout] = help: use `.collect()` to allocate the iterator [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing function parameter `it` [INFO] [stdout] --> src/hir/lowering.rs:191:28 [INFO] [stdout] | [INFO] [stdout] 191 | .flat_map(|it| it.iter()) [INFO] [stdout] | --^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] | `it` is borrowed here [INFO] [stdout] | [INFO] [stdout] = help: use `.collect()` to allocate the iterator [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing function parameter `it` [INFO] [stdout] --> src/hir/lowering.rs:225:28 [INFO] [stdout] | [INFO] [stdout] 225 | .flat_map(|it| it.iter()) [INFO] [stdout] | --^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] | `it` is borrowed here [INFO] [stdout] | [INFO] [stdout] = help: use `.collect()` to allocate the iterator [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing function parameter `p` [INFO] [stdout] --> src/hir/lowering.rs:254:27 [INFO] [stdout] | [INFO] [stdout] 254 | .flat_map(|p| p.parameters()) [INFO] [stdout] | -^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] | `p` is borrowed here [INFO] [stdout] | [INFO] [stdout] = help: use `.collect()` to allocate the iterator [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing function parameter `it` [INFO] [stdout] --> src/name.rs:74:63 [INFO] [stdout] | [INFO] [stdout] 74 | function.generics().into_iter().flat_map(|it| it.iter()); [INFO] [stdout] | --^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] | `it` is borrowed here [INFO] [stdout] | [INFO] [stdout] = help: use `.collect()` to allocate the iterator [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing function parameter `p` [INFO] [stdout] --> src/name.rs:78:31 [INFO] [stdout] | [INFO] [stdout] 78 | .flat_map(|p| p.parameters()) [INFO] [stdout] | -^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] | `p` is borrowed here [INFO] [stdout] | [INFO] [stdout] = help: use `.collect()` to allocate the iterator [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `document` [INFO] [stdout] --> src/name.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | / match scope.kind() { [INFO] [stdout] 58 | | DOCUMENT => { [INFO] [stdout] 59 | | let document = ast::Document::cast(scope).unwrap(); [INFO] [stdout] 60 | | let structs = document.structs().filter_map(|it| it.name()); [INFO] [stdout] | | -------- `document` is borrowed here [INFO] [stdout] ... | [INFO] [stdout] 111 | | _ => Box::new(std::iter::empty()), [INFO] [stdout] 112 | | } [INFO] [stdout] | |_____^ returns a value referencing data owned by the current function [INFO] [stdout] | [INFO] [stdout] = help: use `.collect()` to allocate the iterator [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/name.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | / match scope.kind() { [INFO] [stdout] 58 | | DOCUMENT => { [INFO] [stdout] 59 | | let document = ast::Document::cast(scope).unwrap(); [INFO] [stdout] 60 | | let structs = document.structs().filter_map(|it| it.name()); [INFO] [stdout] ... | [INFO] [stdout] 66 | |/ ast::Sprite::cast(scope) [INFO] [stdout] 67 | || .unwrap() [INFO] [stdout] | ||_________________________- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 111 | | _ => Box::new(std::iter::empty()), [INFO] [stdout] 112 | | } [INFO] [stdout] | |______^ returns a value referencing data owned by the current function [INFO] [stdout] | [INFO] [stdout] = help: use `.collect()` to allocate the iterator [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `document` [INFO] [stdout] --> src/name.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | / match scope.kind() { [INFO] [stdout] 58 | | DOCUMENT => { [INFO] [stdout] 59 | | let document = ast::Document::cast(scope).unwrap(); [INFO] [stdout] 60 | | let structs = document.structs().filter_map(|it| it.name()); [INFO] [stdout] 61 | | let sprites = document.sprites().filter_map(|sprite| sprite.name()); [INFO] [stdout] | | -------- `document` is borrowed here [INFO] [stdout] ... | [INFO] [stdout] 111 | | _ => Box::new(std::iter::empty()), [INFO] [stdout] 112 | | } [INFO] [stdout] | |_____^ returns a value referencing data owned by the current function [INFO] [stdout] | [INFO] [stdout] = help: use `.collect()` to allocate the iterator [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `document` [INFO] [stdout] --> src/name.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | / match scope.kind() { [INFO] [stdout] 58 | | DOCUMENT => { [INFO] [stdout] 59 | | let document = ast::Document::cast(scope).unwrap(); [INFO] [stdout] 60 | | let structs = document.structs().filter_map(|it| it.name()); [INFO] [stdout] 61 | | let sprites = document.sprites().filter_map(|sprite| sprite.name()); [INFO] [stdout] 62 | | let lets = document.lets().filter_map(|it| it.variable()); [INFO] [stdout] | | -------- `document` is borrowed here [INFO] [stdout] ... | [INFO] [stdout] 111 | | _ => Box::new(std::iter::empty()), [INFO] [stdout] 112 | | } [INFO] [stdout] | |_____^ returns a value referencing data owned by the current function [INFO] [stdout] | [INFO] [stdout] = help: use `.collect()` to allocate the iterator [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0515`. [INFO] [stdout] [INFO] [stderr] error: could not compile `scratch-compiler-2` (bin "scratch-compiler-2") due to 12 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 11 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0515`. [INFO] [stdout] [INFO] [stderr] error: could not compile `scratch-compiler-2` (bin "scratch-compiler-2" test) due to 12 previous errors [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "6ecc39716928b417baec1aad5fa62c87b9966422b9727d0816575bc70548f315", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6ecc39716928b417baec1aad5fa62c87b9966422b9727d0816575bc70548f315", kill_on_drop: false }` [INFO] [stdout] 6ecc39716928b417baec1aad5fa62c87b9966422b9727d0816575bc70548f315