[INFO] fetching crate maize 0.1.1... [INFO] checking maize-0.1.1 against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] extracting crate maize 0.1.1 into /workspace/builds/worker-2-tc2/source [INFO] validating manifest of crates.io crate maize 0.1.1 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 crates.io crate maize 0.1.1 [INFO] finished tweaking crates.io crate maize 0.1.1 [INFO] tweaked toml for crates.io crate maize 0.1.1 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate crates.io crate maize 0.1.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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] 02f71efe98a74552c32f648f2dbc156a846ca1161bceab22a0fe96a0c8fb5216 [INFO] running `Command { std: "docker" "start" "-a" "02f71efe98a74552c32f648f2dbc156a846ca1161bceab22a0fe96a0c8fb5216", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "02f71efe98a74552c32f648f2dbc156a846ca1161bceab22a0fe96a0c8fb5216", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "02f71efe98a74552c32f648f2dbc156a846ca1161bceab22a0fe96a0c8fb5216", kill_on_drop: false }` [INFO] [stdout] 02f71efe98a74552c32f648f2dbc156a846ca1161bceab22a0fe96a0c8fb5216 [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] 039eb4f15d95b102b5d472ad229c6289da6ce48d686f5af333d1030987779173 [INFO] running `Command { std: "docker" "start" "-a" "039eb4f15d95b102b5d472ad229c6289da6ce48d686f5af333d1030987779173", kill_on_drop: false }` [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Checking either v1.11.0 [INFO] [stderr] Checking itertools v0.12.1 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Checking petgraph v0.6.4 [INFO] [stderr] Checking daggy v0.8.0 [INFO] [stderr] Checking maize v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `backtrace::Backtrace` [INFO] [stdout] --> src/parse.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{backtrace::Backtrace, collections::{HashMap, HashSet}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `infer::infer` [INFO] [stdout] --> src/main.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{infer::infer, parse::{parse, Context, Reader}}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `backtrace::Backtrace` [INFO] [stdout] --> src/parse.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{backtrace::Backtrace, collections::{HashMap, HashSet}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `infer::infer` [INFO] [stdout] --> src/main.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{infer::infer, parse::{parse, Context, Reader}}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `la` is never used [INFO] [stdout] --> src/parse.rs:341:12 [INFO] [stdout] | [INFO] [stdout] 246 | impl Context { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 341 | pub fn la(&mut self, op: &str) { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_applications` is never used [INFO] [stdout] --> src/infer.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn count_applications(expr: &Expr) -> (&Expr, u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `infer_once` is never used [INFO] [stdout] --> src/infer.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn infer_once(types: &HashMap<&Expr, usize>) -> Vec<(usize, usize)> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `infer_many` is never used [INFO] [stdout] --> src/infer.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 117 | pub fn infer_many(types: &mut HashMap<&Expr, usize>) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `infer` is never used [INFO] [stdout] --> src/infer.rs:143:8 [INFO] [stdout] | [INFO] [stdout] 143 | pub fn infer(expr: &Expr) -> HashMap<&Expr, usize> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `collect` is never used [INFO] [stdout] --> src/infer.rs:171:8 [INFO] [stdout] | [INFO] [stdout] 171 | pub fn collect<'a>(expr: &'a Expr) -> Vec<&'a Expr> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `collect_into` is never used [INFO] [stdout] --> src/infer.rs:179:4 [INFO] [stdout] | [INFO] [stdout] 179 | fn collect_into<'a>(expr: &'a Expr, vec: &mut Vec<&'a Expr>) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `name` is never used [INFO] [stdout] --> src/test.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn name(name: &str) -> Expr { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `app` is never used [INFO] [stdout] --> src/test.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn app(app: Expr, var: Expr) -> Expr { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `infix` is never used [INFO] [stdout] --> src/test.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn infix(infix: String, left: Expr, right: Expr) -> Expr { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `raw_infix` is never used [INFO] [stdout] --> src/test.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn raw_infix(infix_expr: &str, left: &str, right: &str) -> Expr { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fold` is never used [INFO] [stdout] --> src/test.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn fold(app_expr: Expr, vars: [Expr; N]) -> Expr { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `assert_parse` is never used [INFO] [stdout] --> src/test.rs:115:4 [INFO] [stdout] | [INFO] [stdout] 115 | fn assert_parse(first: &str, second: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `assert_parse_rem` is never used [INFO] [stdout] --> src/test.rs:119:4 [INFO] [stdout] | [INFO] [stdout] 119 | fn assert_parse_rem(first: &str, first_len: usize, second: &str, second_len: usize) { [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/test.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn app(app: Expr, var: Expr) -> Expr { [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] 9 | Expr::App(Box::new(app), Box::new(var)) [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/test.rs:9:30 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn app(app: Expr, var: Expr) -> Expr { [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] 9 | Expr::App(Box::new(app), Box::new(var)) [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/test.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn infix(infix: String, left: Expr, right: Expr) -> Expr { [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] 13 | app(app(Expr::Name(infix), left), right) [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 3 previous errors; 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `maize` (bin "maize") due to 4 previous errors; 16 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: method `la` is never used [INFO] [stdout] --> src/parse.rs:341:12 [INFO] [stdout] | [INFO] [stdout] 246 | impl Context { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 341 | pub fn la(&mut self, op: &str) { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_applications` is never used [INFO] [stdout] --> src/infer.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn count_applications(expr: &Expr) -> (&Expr, u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `infer_once` is never used [INFO] [stdout] --> src/infer.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn infer_once(types: &HashMap<&Expr, usize>) -> Vec<(usize, usize)> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `infer_many` is never used [INFO] [stdout] --> src/infer.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 117 | pub fn infer_many(types: &mut HashMap<&Expr, usize>) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `infer` is never used [INFO] [stdout] --> src/infer.rs:143:8 [INFO] [stdout] | [INFO] [stdout] 143 | pub fn infer(expr: &Expr) -> HashMap<&Expr, usize> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `collect` is never used [INFO] [stdout] --> src/infer.rs:171:8 [INFO] [stdout] | [INFO] [stdout] 171 | pub fn collect<'a>(expr: &'a Expr) -> Vec<&'a Expr> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `collect_into` is never used [INFO] [stdout] --> src/infer.rs:179:4 [INFO] [stdout] | [INFO] [stdout] 179 | fn collect_into<'a>(expr: &'a Expr, vec: &mut Vec<&'a Expr>) { [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/test.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn app(app: Expr, var: Expr) -> Expr { [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] 9 | Expr::App(Box::new(app), Box::new(var)) [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/test.rs:9:30 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn app(app: Expr, var: Expr) -> Expr { [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] 9 | Expr::App(Box::new(app), Box::new(var)) [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/test.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn infix(infix: String, left: Expr, right: Expr) -> Expr { [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] 13 | app(app(Expr::Name(infix), left), right) [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 3 previous errors; 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `maize` (bin "maize" test) due to 4 previous errors; 9 warnings emitted [INFO] running `Command { std: "docker" "inspect" "039eb4f15d95b102b5d472ad229c6289da6ce48d686f5af333d1030987779173", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "039eb4f15d95b102b5d472ad229c6289da6ce48d686f5af333d1030987779173", kill_on_drop: false }` [INFO] [stdout] 039eb4f15d95b102b5d472ad229c6289da6ce48d686f5af333d1030987779173