[INFO] cloning repository https://github.com/AlexDikelsky/fp-interpreter [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AlexDikelsky/fp-interpreter" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlexDikelsky%2Ffp-interpreter", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlexDikelsky%2Ffp-interpreter'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] af1be6b163d94234473f48054103869d22fb0320 [INFO] checking AlexDikelsky/fp-interpreter/af1be6b163d94234473f48054103869d22fb0320 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%2FAlexDikelsky%2Ffp-interpreter" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/AlexDikelsky/fp-interpreter 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/AlexDikelsky/fp-interpreter [INFO] finished tweaking git repo https://github.com/AlexDikelsky/fp-interpreter [INFO] tweaked toml for git repo https://github.com/AlexDikelsky/fp-interpreter written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/AlexDikelsky/fp-interpreter 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-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dab31ef13ae2e922fc1a90d15e4e42db4e44109ba2c70f8cc69d5d87c08e8e4a [INFO] running `Command { std: "docker" "start" "-a" "dab31ef13ae2e922fc1a90d15e4e42db4e44109ba2c70f8cc69d5d87c08e8e4a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dab31ef13ae2e922fc1a90d15e4e42db4e44109ba2c70f8cc69d5d87c08e8e4a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dab31ef13ae2e922fc1a90d15e4e42db4e44109ba2c70f8cc69d5d87c08e8e4a", kill_on_drop: false }` [INFO] [stdout] dab31ef13ae2e922fc1a90d15e4e42db4e44109ba2c70f8cc69d5d87c08e8e4a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -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] 6b78f1bf54abd2f49ca3069a0d14484b3c7a0e0e102e7d048614b7e9b6c1f379 [INFO] running `Command { std: "docker" "start" "-a" "6b78f1bf54abd2f49ca3069a0d14484b3c7a0e0e102e7d048614b7e9b6c1f379", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Checking once_cell v1.7.2 [INFO] [stderr] Checking regex-syntax v0.6.22 [INFO] [stderr] Checking itertools v0.10.0 [INFO] [stderr] Checking thread_local v1.1.3 [INFO] [stderr] Checking aho-corasick v0.7.15 [INFO] [stderr] Checking regex v1.4.3 [INFO] [stderr] Checking fp v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/bool_fns.rs:28:45 [INFO] [stdout] | [INFO] [stdout] 28 | fn bool_fn<'a>(x: Option, f: Box bool>) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) 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] 28 | fn bool_fn<'a>(x: Option, f: Box bool>) -> Option { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/bool_fns.rs:28:45 [INFO] [stdout] | [INFO] [stdout] 28 | fn bool_fn<'a>(x: Option, f: Box bool>) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) 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] 28 | fn bool_fn<'a>(x: Option, f: Box bool>) -> Option { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:49:21 [INFO] [stdout] | [INFO] [stdout] 49 | let fs: Vec usize>> = vec![Box::new(p), Box::new(|x| x + 2)]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 49 | let fs: Vec usize>> = vec![Box::new(p), Box::new(|x| x + 2)]; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:49:21 [INFO] [stdout] | [INFO] [stdout] 49 | let fs: Vec usize>> = vec![Box::new(p), Box::new(|x| x + 2)]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 49 | let fs: Vec usize>> = vec![Box::new(p), Box::new(|x| x + 2)]; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/functional_forms.rs:78:19 [INFO] [stdout] | [INFO] [stdout] 78 | Box::new(|x| None) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/functional_forms.rs:78:19 [INFO] [stdout] | [INFO] [stdout] 78 | Box::new(|x| None) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Set` is never used [INFO] [stdout] --> src/sets.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum Set<'a> { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Set` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [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/functional_forms.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn compose(f: Box, g: Box) -> Box { [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] 20 | Box::new(move |x| f(g(x))) [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/functional_forms.rs:25:14 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn construct_usize_2(f: Box usize>, g: Box usize>) -> Box Vec> { [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] 25 | Box::new(move |x| { [INFO] [stdout] | ______________^ [INFO] [stdout] 26 | | vec![f(x), g(x)] [INFO] [stdout] 27 | | }) [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/functional_forms.rs:32:14 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn construct_usize(fs: Vec usize>>) -> Box Vec> { [INFO] [stdout] | ------------------------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 32 | Box::new(move |x| { [INFO] [stdout] | ______________^ [INFO] [stdout] 33 | | fs.iter().map(|f| f(x)).collect() [INFO] [stdout] 34 | | }) [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/functional_forms.rs:42:14 [INFO] [stdout] | [INFO] [stdout] 40 | fs: Vec) -> Option>>) [INFO] [stdout] | ------------------------------------------------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 41 | -> Box) -> Option> { [INFO] [stdout] 42 | Box::new(move |x| { [INFO] [stdout] | ______________^ [INFO] [stdout] 43 | | Some(Seq(fs.iter().map(|f| f(x.clone()).unwrap()).collect())) [INFO] [stdout] 44 | | }) [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/functional_forms.rs:52:14 [INFO] [stdout] | [INFO] [stdout] 49 | fs: Vec) -> Option>>) [INFO] [stdout] | ------------------------------------------------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 52 | Box::new(move |x| { [INFO] [stdout] | ______________^ [INFO] [stdout] 53 | | let v: Vec> = fs.iter().map(|f| f(x.clone())).collect(); [INFO] [stdout] 54 | | if v.iter().all(|x| x.is_some()) { [INFO] [stdout] 55 | | Some(Seq(v.into_iter().map(|x| x.unwrap()).collect())) [INFO] [stdout] ... | [INFO] [stdout] 58 | | } [INFO] [stdout] 59 | | }) [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 5 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Set` is never used [INFO] [stdout] --> src/sets.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum Set<'a> { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Set` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [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/functional_forms.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn compose(f: Box, g: Box) -> Box { [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] 20 | Box::new(move |x| f(g(x))) [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/functional_forms.rs:25:14 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn construct_usize_2(f: Box usize>, g: Box usize>) -> Box Vec> { [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] 25 | Box::new(move |x| { [INFO] [stdout] | ______________^ [INFO] [stdout] 26 | | vec![f(x), g(x)] [INFO] [stdout] 27 | | }) [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/functional_forms.rs:32:14 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn construct_usize(fs: Vec usize>>) -> Box Vec> { [INFO] [stdout] | ------------------------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 32 | Box::new(move |x| { [INFO] [stdout] | ______________^ [INFO] [stdout] 33 | | fs.iter().map(|f| f(x)).collect() [INFO] [stdout] 34 | | }) [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/functional_forms.rs:42:14 [INFO] [stdout] | [INFO] [stdout] 40 | fs: Vec) -> Option>>) [INFO] [stdout] | ------------------------------------------------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 41 | -> Box) -> Option> { [INFO] [stdout] 42 | Box::new(move |x| { [INFO] [stdout] | ______________^ [INFO] [stdout] 43 | | Some(Seq(fs.iter().map(|f| f(x.clone()).unwrap()).collect())) [INFO] [stdout] 44 | | }) [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/functional_forms.rs:52:14 [INFO] [stdout] | [INFO] [stdout] 49 | fs: Vec) -> Option>>) [INFO] [stdout] | ------------------------------------------------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 52 | Box::new(move |x| { [INFO] [stdout] | ______________^ [INFO] [stdout] 53 | | let v: Vec> = fs.iter().map(|f| f(x.clone())).collect(); [INFO] [stdout] 54 | | if v.iter().all(|x| x.is_some()) { [INFO] [stdout] 55 | | Some(Seq(v.into_iter().map(|x| x.unwrap()).collect())) [INFO] [stdout] ... | [INFO] [stdout] 58 | | } [INFO] [stdout] 59 | | }) [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 5 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `fp` (bin "fp") due to 6 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `fp` (bin "fp" test) due to 6 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "6b78f1bf54abd2f49ca3069a0d14484b3c7a0e0e102e7d048614b7e9b6c1f379", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6b78f1bf54abd2f49ca3069a0d14484b3c7a0e0e102e7d048614b7e9b6c1f379", kill_on_drop: false }` [INFO] [stdout] 6b78f1bf54abd2f49ca3069a0d14484b3c7a0e0e102e7d048614b7e9b6c1f379