[INFO] cloning repository https://github.com/StefanoIncardone/kasm [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/StefanoIncardone/kasm" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FStefanoIncardone%2Fkasm", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FStefanoIncardone%2Fkasm'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c005cd33dd472ee2d87f39e17bcb1199d675165c [INFO] checking StefanoIncardone/kasm/c005cd33dd472ee2d87f39e17bcb1199d675165c 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%2FStefanoIncardone%2Fkasm" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/StefanoIncardone/kasm 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/StefanoIncardone/kasm [INFO] finished tweaking git repo https://github.com/StefanoIncardone/kasm [INFO] tweaked toml for git repo https://github.com/StefanoIncardone/kasm written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/StefanoIncardone/kasm 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-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 715f393ab12c4cef54293563be53cb4aee8cf177da8808898f4722944c1506fb [INFO] running `Command { std: "docker" "start" "-a" "715f393ab12c4cef54293563be53cb4aee8cf177da8808898f4722944c1506fb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "715f393ab12c4cef54293563be53cb4aee8cf177da8808898f4722944c1506fb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "715f393ab12c4cef54293563be53cb4aee8cf177da8808898f4722944c1506fb", kill_on_drop: false }` [INFO] [stdout] 715f393ab12c4cef54293563be53cb4aee8cf177da8808898f4722944c1506fb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 123ca35dde342eeb70eda7b8ffc2617594ebae40246fda8cae06aea28acb4b2f [INFO] running `Command { std: "docker" "start" "-a" "123ca35dde342eeb70eda7b8ffc2617594ebae40246fda8cae06aea28acb4b2f", kill_on_drop: false }` [INFO] [stderr] Checking kasm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/syntax/tokenizer.rs:528:9 [INFO] [stdout] | [INFO] [stdout] 526 | return Ok(Vec::new()); [INFO] [stdout] | --------------------- any code following this expression is unreachable [INFO] [stdout] 527 | [INFO] [stdout] 528 | / if src.lines.is_empty() { [INFO] [stdout] 529 | | return Ok(Vec::new()); [INFO] [stdout] 530 | | } [INFO] [stdout] | |_________^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cli.rs:428:13 [INFO] [stdout] | [INFO] [stdout] 428 | let mut verbosity: Option<(Verbosity, CliOption)> = None; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/syntax/tokenizer.rs:528:9 [INFO] [stdout] | [INFO] [stdout] 526 | return Ok(Vec::new()); [INFO] [stdout] | --------------------- any code following this expression is unreachable [INFO] [stdout] 527 | [INFO] [stdout] 528 | / if src.lines.is_empty() { [INFO] [stdout] 529 | | return Ok(Vec::new()); [INFO] [stdout] 530 | | } [INFO] [stdout] | |_________^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src` [INFO] [stdout] --> src/syntax/tokenizer.rs:523:9 [INFO] [stdout] | [INFO] [stdout] 523 | src: &'src SrcFile, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_src` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `FILE` is never used [INFO] [stdout] --> src/cli.rs:74:36 [INFO] [stdout] | [INFO] [stdout] 74 | #[rustfmt::skip] pub(crate) static FILE: Colored<&str> = Colored { text: "file", fg: HELP_FG, bg: HELP_BG, flags: H... [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `PATH` is never used [INFO] [stdout] --> src/cli.rs:75:36 [INFO] [stdout] | [INFO] [stdout] 75 | #[rustfmt::skip] pub(crate) static PATH: Colored<&str> = Colored { text: "path", fg: HELP_FG, bg: HELP_BG, flags: H... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `OUTPUT` is never used [INFO] [stdout] --> src/cli.rs:76:36 [INFO] [stdout] | [INFO] [stdout] 76 | #[rustfmt::skip] pub(crate) static OUTPUT: Colored<&str> = Colored { text: "Output", fg: HELP_FG, bg: HELP_BG, flags: H... [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `SrcCodeLen` is never used [INFO] [stdout] --> src/syntax/tokenizer.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | pub(crate) trait SrcCodeLen { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `uint` is never used [INFO] [stdout] --> src/syntax/tokenizer.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | pub(crate) type uint = usize; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Bool` is never constructed [INFO] [stdout] --> src/syntax/tokenizer.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub(crate) enum Literal { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 36 | Bool(bool), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Literal` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind` and `col` are never read [INFO] [stdout] --> src/syntax/tokenizer.rs:502:16 [INFO] [stdout] | [INFO] [stdout] 501 | pub struct Token<'src> { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 502 | pub(crate) kind: TokenKind<'src>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 503 | pub(crate) col: usize, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cli.rs:428:13 [INFO] [stdout] | [INFO] [stdout] 428 | let mut verbosity: Option<(Verbosity, CliOption)> = None; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` 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/syntax/mod.rs:159:14 [INFO] [stdout] | [INFO] [stdout] 158 | let raw_error = self.raw_errors.next()?; [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 159 | Some(SyntaxError::from_raw(self.src, &raw_error)) [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] = 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/syntax/mod.rs:168:14 [INFO] [stdout] | [INFO] [stdout] 167 | let raw_error = self.raw_errors.next_back()?; [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 168 | Some(SyntaxError::from_raw(self.src, &raw_error)) [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] 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/syntax/mod.rs:214:53 [INFO] [stdout] | [INFO] [stdout] 213 | fn into_iter(self) -> Self::IntoIter { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 214 | Self::IntoIter { src: self.src, raw_errors: self.raw_errors.into_iter() } [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; 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `kasm` (lib test) due to 4 previous errors; 10 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `src` [INFO] [stdout] --> src/syntax/tokenizer.rs:523:9 [INFO] [stdout] | [INFO] [stdout] 523 | src: &'src SrcFile, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_src` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `FILE` is never used [INFO] [stdout] --> src/cli.rs:74:36 [INFO] [stdout] | [INFO] [stdout] 74 | #[rustfmt::skip] pub(crate) static FILE: Colored<&str> = Colored { text: "file", fg: HELP_FG, bg: HELP_BG, flags: H... [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `PATH` is never used [INFO] [stdout] --> src/cli.rs:75:36 [INFO] [stdout] | [INFO] [stdout] 75 | #[rustfmt::skip] pub(crate) static PATH: Colored<&str> = Colored { text: "path", fg: HELP_FG, bg: HELP_BG, flags: H... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `OUTPUT` is never used [INFO] [stdout] --> src/cli.rs:76:36 [INFO] [stdout] | [INFO] [stdout] 76 | #[rustfmt::skip] pub(crate) static OUTPUT: Colored<&str> = Colored { text: "Output", fg: HELP_FG, bg: HELP_BG, flags: H... [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `SrcCodeLen` is never used [INFO] [stdout] --> src/syntax/tokenizer.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | pub(crate) trait SrcCodeLen { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `uint` is never used [INFO] [stdout] --> src/syntax/tokenizer.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | pub(crate) type uint = usize; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Bool` is never constructed [INFO] [stdout] --> src/syntax/tokenizer.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub(crate) enum Literal { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 36 | Bool(bool), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Literal` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind` and `col` are never read [INFO] [stdout] --> src/syntax/tokenizer.rs:502:16 [INFO] [stdout] | [INFO] [stdout] 501 | pub struct Token<'src> { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 502 | pub(crate) kind: TokenKind<'src>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 503 | pub(crate) col: usize, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [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/syntax/mod.rs:159:14 [INFO] [stdout] | [INFO] [stdout] 158 | let raw_error = self.raw_errors.next()?; [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 159 | Some(SyntaxError::from_raw(self.src, &raw_error)) [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] = 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/syntax/mod.rs:168:14 [INFO] [stdout] | [INFO] [stdout] 167 | let raw_error = self.raw_errors.next_back()?; [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 168 | Some(SyntaxError::from_raw(self.src, &raw_error)) [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] 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/syntax/mod.rs:214:53 [INFO] [stdout] | [INFO] [stdout] 213 | fn into_iter(self) -> Self::IntoIter { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 214 | Self::IntoIter { src: self.src, raw_errors: self.raw_errors.into_iter() } [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; 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `kasm` (lib) due to 4 previous errors; 10 warnings emitted [INFO] running `Command { std: "docker" "inspect" "123ca35dde342eeb70eda7b8ffc2617594ebae40246fda8cae06aea28acb4b2f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "123ca35dde342eeb70eda7b8ffc2617594ebae40246fda8cae06aea28acb4b2f", kill_on_drop: false }` [INFO] [stdout] 123ca35dde342eeb70eda7b8ffc2617594ebae40246fda8cae06aea28acb4b2f