[INFO] cloning repository https://github.com/brain-lang/brain [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/brain-lang/brain" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbrain-lang%2Fbrain", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbrain-lang%2Fbrain'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 234eccd8f5a71818704fe79d32c5c3eb73bce5d4 [INFO] checking brain-lang/brain/234eccd8f5a71818704fe79d32c5c3eb73bce5d4 against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbrain-lang%2Fbrain" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/brain-lang/brain on toolchain 4d98531622e1718ae0bc3c7a1ab9cd8938428452 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/brain-lang/brain [INFO] finished tweaking git repo https://github.com/brain-lang/brain [INFO] tweaked toml for git repo https://github.com/brain-lang/brain written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/brain-lang/brain 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" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d998ffcf0c8684a000479f6520496b060bde2d1c2e030ac06335ab4924558f92 [INFO] running `Command { std: "docker" "start" "-a" "d998ffcf0c8684a000479f6520496b060bde2d1c2e030ac06335ab4924558f92", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d998ffcf0c8684a000479f6520496b060bde2d1c2e030ac06335ab4924558f92", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d998ffcf0c8684a000479f6520496b060bde2d1c2e030ac06335ab4924558f92", kill_on_drop: false }` [INFO] [stdout] d998ffcf0c8684a000479f6520496b060bde2d1c2e030ac06335ab4924558f92 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail_expr_drop_order" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 991d3e5fb9edc087a61ebf364d3c73ea3c2d5f11c15c5da450239d4571f6a60d [INFO] running `Command { std: "docker" "start" "-a" "991d3e5fb9edc087a61ebf364d3c73ea3c2d5f11c15c5da450239d4571f6a60d", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Checking libc v0.2.22 [INFO] [stderr] Checking vec_map v0.8.0 [INFO] [stderr] Checking bitflags v0.8.2 [INFO] [stderr] Checking unicode-segmentation v1.2.0 [INFO] [stderr] Checking unicode-width v0.1.4 [INFO] [stderr] Checking strsim v0.6.0 [INFO] [stderr] Checking ansi_term v0.9.0 [INFO] [stderr] Checking pest v0.4.1 [INFO] [stderr] Checking atty v0.2.2 [INFO] [stderr] Checking term_size v0.3.0 [INFO] [stderr] Checking clap v2.24.2 [INFO] [stderr] Checking brain v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/operations/item_type.rs:117:59 [INFO] [stdout] | [INFO] [stdout] 117 | ItemType::Function {ref args, return_type} => ( [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 118 | | return_type == expected_return_type && [INFO] [stdout] | |________________^ [INFO] [stdout] ... [INFO] [stdout] 148 | }) [INFO] [stdout] | ___________________^ [INFO] [stdout] 149 | | ), [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 117 ~ ItemType::Function {ref args, return_type} => return_type == expected_return_type && [INFO] [stdout] 118 | // All the args must match an argument in expected_args [INFO] [stdout] ... [INFO] [stdout] 146 | }, [INFO] [stdout] 147 ~ }), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/operations/primitives.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | / /// To add a primitive, simply add a field to the following struct [INFO] [stdout] 65 | | /// Everything else will be generated for you [INFO] [stdout] | |_--------------------------------------------^ [INFO] [stdout] | | [INFO] [stdout] | rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/core/primitives/boolean.rs:212:17 [INFO] [stdout] | [INFO] [stdout] 212 | / /// Thanks to certain properties of booleans, we can evaluate certain things during [INFO] [stdout] 213 | | /// compilation and avoid a lot of extra computation. [INFO] [stdout] | |_____________________________________________________________________^ [INFO] [stdout] 214 | / (&ScopeItem::Constant {type_id: const_type, ref bytes}, &ScopeItem::TypedBlock {type_id: other_type, memory}) | [INFO] [stdout] 215 | | (&ScopeItem::TypedBlock {type_id: other_type, memory}, &ScopeItem::Constant {type_id: const_type, ref bytes}) => { [INFO] [stdout] 216 | | debug_assert_eq!(const_type, bool_type); [INFO] [stdout] 217 | | debug_assert_eq!(other_type, bool_type); [INFO] [stdout] ... | [INFO] [stdout] 234 | | } [INFO] [stdout] 235 | | }, [INFO] [stdout] | |_________________- rustdoc does not generate documentation for match arms [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/core/primitives/boolean.rs:359:17 [INFO] [stdout] | [INFO] [stdout] 359 | / /// Thanks to certain properties of booleans, we can evaluate certain things during [INFO] [stdout] 360 | | /// compilation and avoid a lot of extra computation. [INFO] [stdout] | |_____________________________________________________________________^ [INFO] [stdout] 361 | / (&ScopeItem::Constant {type_id: const_type, ref bytes}, &ScopeItem::TypedBlock {type_id: other_type, memory}) | [INFO] [stdout] 362 | | (&ScopeItem::TypedBlock {type_id: other_type, memory}, &ScopeItem::Constant {type_id: const_type, ref bytes}) => { [INFO] [stdout] 363 | | debug_assert_eq!(const_type, bool_type); [INFO] [stdout] 364 | | debug_assert_eq!(other_type, bool_type); [INFO] [stdout] ... | [INFO] [stdout] 378 | | } [INFO] [stdout] 379 | | }, [INFO] [stdout] | |_________________- rustdoc does not generate documentation for match arms [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/core/primitives/boolean.rs:513:17 [INFO] [stdout] | [INFO] [stdout] 513 | / /// Thanks to certain properties of booleans, we can evaluate certain things during [INFO] [stdout] 514 | | /// compilation and avoid a lot of extra computation. [INFO] [stdout] | |_____________________________________________________________________^ [INFO] [stdout] 515 | / (&ScopeItem::Constant {type_id: const_type, ref bytes}, &ScopeItem::TypedBlock {type_id: other_type, memory}) | [INFO] [stdout] 516 | | (&ScopeItem::TypedBlock {type_id: other_type, memory}, &ScopeItem::Constant {type_id: const_type, ref bytes}) => { [INFO] [stdout] 517 | | debug_assert_eq!(const_type, bool_type); [INFO] [stdout] 518 | | debug_assert_eq!(other_type, bool_type); [INFO] [stdout] ... | [INFO] [stdout] 548 | | }] [INFO] [stdout] 549 | | }, [INFO] [stdout] | |_________________- rustdoc does not generate documentation for match arms [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/core/primitives/boolean.rs:641:17 [INFO] [stdout] | [INFO] [stdout] 641 | / /// Thanks to certain properties of booleans, we can evaluate certain things during [INFO] [stdout] 642 | | /// compilation and avoid a lot of extra computation. [INFO] [stdout] | |_____________________________________________________________________^ [INFO] [stdout] 643 | / (&ScopeItem::Constant {type_id: const_type, ref bytes}, &ScopeItem::TypedBlock {type_id: other_type, memory}) | [INFO] [stdout] 644 | | (&ScopeItem::TypedBlock {type_id: other_type, memory}, &ScopeItem::Constant {type_id: const_type, ref bytes}) => { [INFO] [stdout] 645 | | debug_assert_eq!(const_type, bool_type); [INFO] [stdout] 646 | | debug_assert_eq!(other_type, bool_type); [INFO] [stdout] ... | [INFO] [stdout] 676 | | }] [INFO] [stdout] 677 | | }, [INFO] [stdout] | |_________________- rustdoc does not generate documentation for match arms [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/operations/scope.rs:81:24 [INFO] [stdout] | [INFO] [stdout] 81 | operations: Rc OperationsResult>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 81 | operations: Rc OperationsResult>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/operations/item_type.rs:117:59 [INFO] [stdout] | [INFO] [stdout] 117 | ItemType::Function {ref args, return_type} => ( [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 118 | | return_type == expected_return_type && [INFO] [stdout] | |________________^ [INFO] [stdout] ... [INFO] [stdout] 148 | }) [INFO] [stdout] | ___________________^ [INFO] [stdout] 149 | | ), [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 117 ~ ItemType::Function {ref args, return_type} => return_type == expected_return_type && [INFO] [stdout] 118 | // All the args must match an argument in expected_args [INFO] [stdout] ... [INFO] [stdout] 146 | }, [INFO] [stdout] 147 ~ }), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/operations/primitives.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | / /// To add a primitive, simply add a field to the following struct [INFO] [stdout] 65 | | /// Everything else will be generated for you [INFO] [stdout] | |_--------------------------------------------^ [INFO] [stdout] | | [INFO] [stdout] | rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/core/primitives/boolean.rs:212:17 [INFO] [stdout] | [INFO] [stdout] 212 | / /// Thanks to certain properties of booleans, we can evaluate certain things during [INFO] [stdout] 213 | | /// compilation and avoid a lot of extra computation. [INFO] [stdout] | |_____________________________________________________________________^ [INFO] [stdout] 214 | / (&ScopeItem::Constant {type_id: const_type, ref bytes}, &ScopeItem::TypedBlock {type_id: other_type, memory}) | [INFO] [stdout] 215 | | (&ScopeItem::TypedBlock {type_id: other_type, memory}, &ScopeItem::Constant {type_id: const_type, ref bytes}) => { [INFO] [stdout] 216 | | debug_assert_eq!(const_type, bool_type); [INFO] [stdout] 217 | | debug_assert_eq!(other_type, bool_type); [INFO] [stdout] ... | [INFO] [stdout] 234 | | } [INFO] [stdout] 235 | | }, [INFO] [stdout] | |_________________- rustdoc does not generate documentation for match arms [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/core/primitives/boolean.rs:359:17 [INFO] [stdout] | [INFO] [stdout] 359 | / /// Thanks to certain properties of booleans, we can evaluate certain things during [INFO] [stdout] 360 | | /// compilation and avoid a lot of extra computation. [INFO] [stdout] | |_____________________________________________________________________^ [INFO] [stdout] 361 | / (&ScopeItem::Constant {type_id: const_type, ref bytes}, &ScopeItem::TypedBlock {type_id: other_type, memory}) | [INFO] [stdout] 362 | | (&ScopeItem::TypedBlock {type_id: other_type, memory}, &ScopeItem::Constant {type_id: const_type, ref bytes}) => { [INFO] [stdout] 363 | | debug_assert_eq!(const_type, bool_type); [INFO] [stdout] 364 | | debug_assert_eq!(other_type, bool_type); [INFO] [stdout] ... | [INFO] [stdout] 378 | | } [INFO] [stdout] 379 | | }, [INFO] [stdout] | |_________________- rustdoc does not generate documentation for match arms [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/core/primitives/boolean.rs:513:17 [INFO] [stdout] | [INFO] [stdout] 513 | / /// Thanks to certain properties of booleans, we can evaluate certain things during [INFO] [stdout] 514 | | /// compilation and avoid a lot of extra computation. [INFO] [stdout] | |_____________________________________________________________________^ [INFO] [stdout] 515 | / (&ScopeItem::Constant {type_id: const_type, ref bytes}, &ScopeItem::TypedBlock {type_id: other_type, memory}) | [INFO] [stdout] 516 | | (&ScopeItem::TypedBlock {type_id: other_type, memory}, &ScopeItem::Constant {type_id: const_type, ref bytes}) => { [INFO] [stdout] 517 | | debug_assert_eq!(const_type, bool_type); [INFO] [stdout] 518 | | debug_assert_eq!(other_type, bool_type); [INFO] [stdout] ... | [INFO] [stdout] 548 | | }] [INFO] [stdout] 549 | | }, [INFO] [stdout] | |_________________- rustdoc does not generate documentation for match arms [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/core/primitives/boolean.rs:641:17 [INFO] [stdout] | [INFO] [stdout] 641 | / /// Thanks to certain properties of booleans, we can evaluate certain things during [INFO] [stdout] 642 | | /// compilation and avoid a lot of extra computation. [INFO] [stdout] | |_____________________________________________________________________^ [INFO] [stdout] 643 | / (&ScopeItem::Constant {type_id: const_type, ref bytes}, &ScopeItem::TypedBlock {type_id: other_type, memory}) | [INFO] [stdout] 644 | | (&ScopeItem::TypedBlock {type_id: other_type, memory}, &ScopeItem::Constant {type_id: const_type, ref bytes}) => { [INFO] [stdout] 645 | | debug_assert_eq!(const_type, bool_type); [INFO] [stdout] 646 | | debug_assert_eq!(other_type, bool_type); [INFO] [stdout] ... | [INFO] [stdout] 676 | | }] [INFO] [stdout] 677 | | }, [INFO] [stdout] | |_________________- rustdoc does not generate documentation for match arms [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/operations/scope.rs:81:24 [INFO] [stdout] | [INFO] [stdout] 81 | operations: Rc OperationsResult>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 81 | operations: Rc OperationsResult>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/parser/ast.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 147 | pub fn concat(self, other: T) -> Identifier where T: IntoIterator { [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 148 | self.into_iter().chain(other).collect() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/parser/ast.rs:176:20 [INFO] [stdout] | [INFO] [stdout] 175 | fn from_iter>(iter: I) -> Self { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 176 | Identifier(iter.into_iter().collect()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/parser/grammar.rs:407:5 [INFO] [stdout] | [INFO] [stdout] 406 | fn nest_else_ifs(branches: VecDeque, else_block: Option) -> Block { [INFO] [stdout] | ------------------------------ ------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 407 | / branches.into_iter().rev().fold(else_block, |acc, mut br| { [INFO] [stdout] 408 | | Some(vec![Statement::Expression { [INFO] [stdout] 409 | | expr: { [INFO] [stdout] 410 | | match br { [INFO] [stdout] ... | [INFO] [stdout] 418 | | }]) [INFO] [stdout] 419 | | }).unwrap() [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/operations/declaration.rs:33:49 [INFO] [stdout] | [INFO] [stdout] 31 | expr: Option, [INFO] [stdout] | ------------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 32 | ) -> OperationsResult { [INFO] [stdout] 33 | resolve_type_id(scope, &type_name).and_then(|type_id| { [INFO] [stdout] | _________________________________________________^ [INFO] [stdout] 34 | | let memory = scope.declare(name, type_id); [INFO] [stdout] 35 | | [INFO] [stdout] 36 | | expr.map_or(Ok(Vec::new()), |expr| { [INFO] [stdout] 37 | | expression::into_operations(scope, expr, Target::TypedBlock {type_id, memory}) [INFO] [stdout] 38 | | }) [INFO] [stdout] 39 | | }) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/operations/assignment.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 12 | expr: Expression, [INFO] [stdout] | ---------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 13 | ) -> OperationsResult { [INFO] [stdout] 14 | / scope.lookup(&lhs).first().ok_or_else(|| { [INFO] [stdout] 15 | | Error::UnresolvedName(lhs.clone()) [INFO] [stdout] 16 | | }).map(|item| (**item).clone()).and_then(|item| match item { [INFO] [stdout] | |___________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/operations/assignment.rs:16:46 [INFO] [stdout] | [INFO] [stdout] 12 | expr: Expression, [INFO] [stdout] | ---------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 16 | }).map(|item| (**item).clone()).and_then(|item| match item { [INFO] [stdout] | ______________________________________________^ [INFO] [stdout] 17 | | // There is a non-lexical lifetimes issue here which was introduced by calling into_operations*() below [INFO] [stdout] 18 | | // The clone() above is completely unnecssary and is a hack to work around this problem [INFO] [stdout] 19 | | // in the Rust compiler [INFO] [stdout] ... | [INFO] [stdout] 34 | | }, [INFO] [stdout] 35 | | }) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/operations/expression/call.rs:22:24 [INFO] [stdout] | [INFO] [stdout] 22 | }).map(|item| ((**item).clone(), Vec::new())), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/operations/expression/call.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 54 | args: FuncArgs, [INFO] [stdout] | -------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 77 | / scope.lookup(&method_name).into_iter().fold(Err(Error::UnresolvedName(method_name.clone())), |acc, item| acc.or_else(|err| match *item { [INFO] [stdout] 78 | | ScopeItem::BuiltInFunction {type_id, ref operations} => { [INFO] [stdout] 79 | | let method_type = scope.get_type(type_id); [INFO] [stdout] 80 | | if method_type.matches_signature(&method_args_types, target_type) { [INFO] [stdout] ... | [INFO] [stdout] 115 | | }), [INFO] [stdout] 116 | | })).and_then(|operations| (*operations)(scope, args, target_memory)) [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/operations/expression/call.rs:116:18 [INFO] [stdout] | [INFO] [stdout] 54 | args: FuncArgs, [INFO] [stdout] | -------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 116 | })).and_then(|operations| (*operations)(scope, args, target_memory)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/operations/expression/call.rs:175:8 [INFO] [stdout] | [INFO] [stdout] 124 | fn resolve_field_name(scope: &ScopeStack, target: Expression, field: Identifier) -> Result<(ScopeItem, Identifier), Error> { [INFO] [stdout] | ------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 127 | let (target_instance, target_type_path) = match target { [INFO] [stdout] | --------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 175 | Ok((target_instance, target_type_path.concat(field))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/operations/primitives.rs:34:71 [INFO] [stdout] | [INFO] [stdout] 34 | debug_assert!(self.$field_name.is_none(), format!("Redefined `{}` primitive in scope", stringify!($field_name)... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | / impl_primitives! { [INFO] [stdout] 67 | | pub struct Primitives { [INFO] [stdout] 68 | | unit: Option, [INFO] [stdout] 69 | | array: Option, [INFO] [stdout] ... | [INFO] [stdout] 72 | | } [INFO] [stdout] 73 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this usage of `debug_assert!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `debug_assert!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] = note: this warning originates in the macro `impl_primitives` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 34 - debug_assert!(self.$field_name.is_none(), format!("Redefined `{}` primitive in scope", stringify!($field_name))); [INFO] [stdout] 34 + debug_assert!(self.$field_name.is_none(), "Redefined `{}` primitive in scope", stringify!($field_name)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/operations/primitives.rs:41:33 [INFO] [stdout] | [INFO] [stdout] 41 | _ => panic!(format!("Attempt to register unknown primitive: `{}`", name)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | / impl_primitives! { [INFO] [stdout] 67 | | pub struct Primitives { [INFO] [stdout] 68 | | unit: Option, [INFO] [stdout] 69 | | array: Option, [INFO] [stdout] ... | [INFO] [stdout] 72 | | } [INFO] [stdout] 73 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: this warning originates in the macro `impl_primitives` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 41 - _ => panic!(format!("Attempt to register unknown primitive: `{}`", name)), [INFO] [stdout] 41 + _ => panic!("Attempt to register unknown primitive: `{}`", name), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/operations/primitives.rs:50:32 [INFO] [stdout] | [INFO] [stdout] 50 | panic!(format!("TypeId `{}` is already registered to another primitive: `{}`", type_id, stringify!($field_name))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | / impl_primitives! { [INFO] [stdout] 67 | | pub struct Primitives { [INFO] [stdout] 68 | | unit: Option, [INFO] [stdout] 69 | | array: Option, [INFO] [stdout] ... | [INFO] [stdout] 72 | | } [INFO] [stdout] 73 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: this warning originates in the macro `impl_primitives` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 50 - panic!(format!("TypeId `{}` is already registered to another primitive: `{}`", type_id, stringify!($field_name))); [INFO] [stdout] 50 + panic!("TypeId `{}` is already registered to another primitive: `{}`", type_id, stringify!($field_name)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/core/io/stdio.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 74 | |scope, args, _| { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 75 | let unit_type = scope.primitives().unit(); [INFO] [stdout] 76 | / args.into_iter().skip(1).map(|arg| expression::call( [INFO] [stdout] 77 | | scope, [INFO] [stdout] 78 | | Identifier::from("std::fmt::Display::print"), [INFO] [stdout] 79 | | vec![arg], [INFO] [stdout] ... | [INFO] [stdout] 83 | | } [INFO] [stdout] 84 | | )).collect::, _>>().map(|op_vecs| { [INFO] [stdout] | |______________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/codegen/instruction.rs:60:22 [INFO] [stdout] | [INFO] [stdout] 59 | fn from_iter>(iter: I) -> Self { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 60 | Instructions(iter.into_iter().collect()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/codegen/instruction.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 65 | fn from_iter>(iter: I) -> Self { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 66 | iter.into_iter().map(|instr| instr.to_string()).collect() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors; 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `brain` (lib) due to 14 previous errors; 10 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/parser/ast.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 147 | pub fn concat(self, other: T) -> Identifier where T: IntoIterator { [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 148 | self.into_iter().chain(other).collect() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/parser/ast.rs:176:20 [INFO] [stdout] | [INFO] [stdout] 175 | fn from_iter>(iter: I) -> Self { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 176 | Identifier(iter.into_iter().collect()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/parser/grammar.rs:407:5 [INFO] [stdout] | [INFO] [stdout] 406 | fn nest_else_ifs(branches: VecDeque, else_block: Option) -> Block { [INFO] [stdout] | ------------------------------ ------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 407 | / branches.into_iter().rev().fold(else_block, |acc, mut br| { [INFO] [stdout] 408 | | Some(vec![Statement::Expression { [INFO] [stdout] 409 | | expr: { [INFO] [stdout] 410 | | match br { [INFO] [stdout] ... | [INFO] [stdout] 418 | | }]) [INFO] [stdout] 419 | | }).unwrap() [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/operations/declaration.rs:33:49 [INFO] [stdout] | [INFO] [stdout] 31 | expr: Option, [INFO] [stdout] | ------------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 32 | ) -> OperationsResult { [INFO] [stdout] 33 | resolve_type_id(scope, &type_name).and_then(|type_id| { [INFO] [stdout] | _________________________________________________^ [INFO] [stdout] 34 | | let memory = scope.declare(name, type_id); [INFO] [stdout] 35 | | [INFO] [stdout] 36 | | expr.map_or(Ok(Vec::new()), |expr| { [INFO] [stdout] 37 | | expression::into_operations(scope, expr, Target::TypedBlock {type_id, memory}) [INFO] [stdout] 38 | | }) [INFO] [stdout] 39 | | }) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/operations/assignment.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 12 | expr: Expression, [INFO] [stdout] | ---------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 13 | ) -> OperationsResult { [INFO] [stdout] 14 | / scope.lookup(&lhs).first().ok_or_else(|| { [INFO] [stdout] 15 | | Error::UnresolvedName(lhs.clone()) [INFO] [stdout] 16 | | }).map(|item| (**item).clone()).and_then(|item| match item { [INFO] [stdout] | |___________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/operations/assignment.rs:16:46 [INFO] [stdout] | [INFO] [stdout] 12 | expr: Expression, [INFO] [stdout] | ---------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 16 | }).map(|item| (**item).clone()).and_then(|item| match item { [INFO] [stdout] | ______________________________________________^ [INFO] [stdout] 17 | | // There is a non-lexical lifetimes issue here which was introduced by calling into_operations*() below [INFO] [stdout] 18 | | // The clone() above is completely unnecssary and is a hack to work around this problem [INFO] [stdout] 19 | | // in the Rust compiler [INFO] [stdout] ... | [INFO] [stdout] 34 | | }, [INFO] [stdout] 35 | | }) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/operations/expression/call.rs:22:24 [INFO] [stdout] | [INFO] [stdout] 22 | }).map(|item| ((**item).clone(), Vec::new())), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/operations/expression/call.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 54 | args: FuncArgs, [INFO] [stdout] | -------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 77 | / scope.lookup(&method_name).into_iter().fold(Err(Error::UnresolvedName(method_name.clone())), |acc, item| acc.or_else(|err| match *item { [INFO] [stdout] 78 | | ScopeItem::BuiltInFunction {type_id, ref operations} => { [INFO] [stdout] 79 | | let method_type = scope.get_type(type_id); [INFO] [stdout] 80 | | if method_type.matches_signature(&method_args_types, target_type) { [INFO] [stdout] ... | [INFO] [stdout] 115 | | }), [INFO] [stdout] 116 | | })).and_then(|operations| (*operations)(scope, args, target_memory)) [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/operations/expression/call.rs:116:18 [INFO] [stdout] | [INFO] [stdout] 54 | args: FuncArgs, [INFO] [stdout] | -------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 116 | })).and_then(|operations| (*operations)(scope, args, target_memory)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/operations/expression/call.rs:175:8 [INFO] [stdout] | [INFO] [stdout] 124 | fn resolve_field_name(scope: &ScopeStack, target: Expression, field: Identifier) -> Result<(ScopeItem, Identifier), Error> { [INFO] [stdout] | ------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 127 | let (target_instance, target_type_path) = match target { [INFO] [stdout] | --------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 175 | Ok((target_instance, target_type_path.concat(field))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/operations/primitives.rs:34:71 [INFO] [stdout] | [INFO] [stdout] 34 | debug_assert!(self.$field_name.is_none(), format!("Redefined `{}` primitive in scope", stringify!($field_name)... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | / impl_primitives! { [INFO] [stdout] 67 | | pub struct Primitives { [INFO] [stdout] 68 | | unit: Option, [INFO] [stdout] 69 | | array: Option, [INFO] [stdout] ... | [INFO] [stdout] 72 | | } [INFO] [stdout] 73 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this usage of `debug_assert!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `debug_assert!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] = note: this warning originates in the macro `impl_primitives` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 34 - debug_assert!(self.$field_name.is_none(), format!("Redefined `{}` primitive in scope", stringify!($field_name))); [INFO] [stdout] 34 + debug_assert!(self.$field_name.is_none(), "Redefined `{}` primitive in scope", stringify!($field_name)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/operations/primitives.rs:41:33 [INFO] [stdout] | [INFO] [stdout] 41 | _ => panic!(format!("Attempt to register unknown primitive: `{}`", name)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | / impl_primitives! { [INFO] [stdout] 67 | | pub struct Primitives { [INFO] [stdout] 68 | | unit: Option, [INFO] [stdout] 69 | | array: Option, [INFO] [stdout] ... | [INFO] [stdout] 72 | | } [INFO] [stdout] 73 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: this warning originates in the macro `impl_primitives` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 41 - _ => panic!(format!("Attempt to register unknown primitive: `{}`", name)), [INFO] [stdout] 41 + _ => panic!("Attempt to register unknown primitive: `{}`", name), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/operations/primitives.rs:50:32 [INFO] [stdout] | [INFO] [stdout] 50 | panic!(format!("TypeId `{}` is already registered to another primitive: `{}`", type_id, stringify!($field_name))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | / impl_primitives! { [INFO] [stdout] 67 | | pub struct Primitives { [INFO] [stdout] 68 | | unit: Option, [INFO] [stdout] 69 | | array: Option, [INFO] [stdout] ... | [INFO] [stdout] 72 | | } [INFO] [stdout] 73 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: this warning originates in the macro `impl_primitives` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 50 - panic!(format!("TypeId `{}` is already registered to another primitive: `{}`", type_id, stringify!($field_name))); [INFO] [stdout] 50 + panic!("TypeId `{}` is already registered to another primitive: `{}`", type_id, stringify!($field_name)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/core/io/stdio.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 74 | |scope, args, _| { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 75 | let unit_type = scope.primitives().unit(); [INFO] [stdout] 76 | / args.into_iter().skip(1).map(|arg| expression::call( [INFO] [stdout] 77 | | scope, [INFO] [stdout] 78 | | Identifier::from("std::fmt::Display::print"), [INFO] [stdout] 79 | | vec![arg], [INFO] [stdout] ... | [INFO] [stdout] 83 | | } [INFO] [stdout] 84 | | )).collect::, _>>().map(|op_vecs| { [INFO] [stdout] | |______________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/codegen/instruction.rs:60:22 [INFO] [stdout] | [INFO] [stdout] 59 | fn from_iter>(iter: I) -> Self { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 60 | Instructions(iter.into_iter().collect()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/codegen/instruction.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 65 | fn from_iter>(iter: I) -> Self { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 66 | iter.into_iter().map(|instr| instr.to_string()).collect() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors; 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `brain` (lib test) due to 14 previous errors; 10 warnings emitted [INFO] running `Command { std: "docker" "inspect" "991d3e5fb9edc087a61ebf364d3c73ea3c2d5f11c15c5da450239d4571f6a60d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "991d3e5fb9edc087a61ebf364d3c73ea3c2d5f11c15c5da450239d4571f6a60d", kill_on_drop: false }` [INFO] [stdout] 991d3e5fb9edc087a61ebf364d3c73ea3c2d5f11c15c5da450239d4571f6a60d