[INFO] cloning repository https://github.com/cesar-guibo/Compiler [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/cesar-guibo/Compiler" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcesar-guibo%2FCompiler", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcesar-guibo%2FCompiler'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 43c16c34c1076f0b14af1aa923a3ae2ffcea4f60 [INFO] building cesar-guibo/Compiler against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcesar-guibo%2FCompiler" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/cesar-guibo/Compiler on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/cesar-guibo/Compiler [INFO] finished tweaking git repo https://github.com/cesar-guibo/Compiler [INFO] tweaked toml for git repo https://github.com/cesar-guibo/Compiler written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/cesar-guibo/Compiler 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7a59dae6eab40034332d44548a2bd2145c0aa69f8960a8e1480f6b6022f238b5 [INFO] running `Command { std: "docker" "start" "-a" "7a59dae6eab40034332d44548a2bd2145c0aa69f8960a8e1480f6b6022f238b5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7a59dae6eab40034332d44548a2bd2145c0aa69f8960a8e1480f6b6022f238b5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7a59dae6eab40034332d44548a2bd2145c0aa69f8960a8e1480f6b6022f238b5", kill_on_drop: false }` [INFO] [stdout] 7a59dae6eab40034332d44548a2bd2145c0aa69f8960a8e1480f6b6022f238b5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fbd3b1dcea9af9d5ddf31771e3ac7a4feb611b2339c8fa085bcc1ee4a464aae4 [INFO] running `Command { std: "docker" "start" "-a" "fbd3b1dcea9af9d5ddf31771e3ac7a4feb611b2339c8fa085bcc1ee4a464aae4", kill_on_drop: false }` [INFO] [stderr] Compiling compiler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `TypedVariable` [INFO] [stdout] --> src/instructions.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::expressions::{Expression, TypedVariable}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: impl trait in impl method signature does not match trait method signature [INFO] [stdout] --> src/lexer/regex.rs:93:29 [INFO] [stdout] | [INFO] [stdout] 93 | fn root(self: &Self) -> RegexAstSubtree { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/parser.rs:30:23 [INFO] [stdout] | [INFO] [stdout] 30 | fn root(&self) -> impl AstView; [INFO] [stdout] | ------------------------ return type from trait method defined here [INFO] [stdout] | [INFO] [stdout] = note: add `#[allow(refining_impl_trait)]` if it is intended for this to be part of the public API of this crate [INFO] [stdout] = note: we are soliciting feedback, see issue #121718 for more information [INFO] [stdout] = note: `#[warn(refining_impl_trait_internal)]` on by default [INFO] [stdout] help: replace the return type so that it matches the trait [INFO] [stdout] | [INFO] [stdout] 93 | fn root(self: &Self) -> impl AstView<'_, RegexUnaryOp, RegexBinaryOp, RegexTernaryOp, char> { [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: impl trait in impl method signature does not match trait method signature [INFO] [stdout] --> src/expressions.rs:221:29 [INFO] [stdout] | [INFO] [stdout] 221 | fn root(self: &Self) -> ExpressionView { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/parser.rs:30:23 [INFO] [stdout] | [INFO] [stdout] 30 | fn root(&self) -> impl AstView; [INFO] [stdout] | ------------------------ return type from trait method defined here [INFO] [stdout] | [INFO] [stdout] = note: add `#[allow(refining_impl_trait)]` if it is intended for this to be part of the public API of this crate [INFO] [stdout] = note: we are soliciting feedback, see issue #121718 for more information [INFO] [stdout] help: replace the return type so that it matches the trait [INFO] [stdout] | [INFO] [stdout] 221 | fn root(self: &Self) -> impl AstView<'_, UnaryOp, BinaryOp, TernaryOp, Value> { [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: impl trait in impl method signature does not match trait method signature [INFO] [stdout] --> src/instructions.rs:87:29 [INFO] [stdout] | [INFO] [stdout] 87 | fn root(self: &Self) -> InstructionView { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/parser.rs:30:23 [INFO] [stdout] | [INFO] [stdout] 30 | fn root(&self) -> impl AstView; [INFO] [stdout] | ------------------------ return type from trait method defined here [INFO] [stdout] | [INFO] [stdout] = note: add `#[allow(refining_impl_trait)]` if it is intended for this to be part of the public API of this crate [INFO] [stdout] = note: we are soliciting feedback, see issue #121718 for more information [INFO] [stdout] help: replace the return type so that it matches the trait [INFO] [stdout] | [INFO] [stdout] 87 | fn root(self: &Self) -> impl AstView<'_, UnaryInstruction, BinaryInstruction, TernaryInstruction, InstructionValue> { [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/expressions.rs:343:44 [INFO] [stdout] | [INFO] [stdout] 343 | self.root().apply_with_state(&|op, mut scope: HashMap| { [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: value assigned to `linear_representation` is never read [INFO] [stdout] --> src/main.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let mut linear_representation = None; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: relative drop order changing in Rust 2024 [INFO] [stdout] --> src/lexer/mod.rs:227:49 [INFO] [stdout] | [INFO] [stdout] 227 | while let Some((key, states, symbol)) = main_queue.pop_front() { [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | this value will be stored in a temporary; let us call it `#2` [INFO] [stdout] | | up until Edition 2021 `#2` is dropped last but will be dropped earlier in Edition 2024 [INFO] [stdout] | `symbol` calls a custom destructor [INFO] [stdout] | `symbol` will be dropped later as of Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 261 | table.insert(key, (symbol, nexts)); [INFO] [stdout] | ---------------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value will be stored in a temporary; let us call it `#1` [INFO] [stdout] | `#1` will be dropped later as of Edition 2024 [INFO] [stdout] 262 | } [INFO] [stdout] | - now the temporary value is dropped here, before the local variables in the block or statement [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#2` may invoke a custom destructor because it contains a trait object [INFO] [stdout] = note: `symbol` may invoke a custom destructor because it contains a trait object [INFO] [stdout] = note: `#1` may invoke a custom destructor because it contains a trait object [INFO] [stdout] = note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/expressions.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub enum UnaryOp { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 22 | SuffixIncrement, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 23 | SuffixDecrement, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 24 | PrefixIncrement, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 25 | PrefixDecrement, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 26 | FunctionCall, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 27 | AttributeAcccess, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 28 | AttributePointerAccess, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | UnaryPlus, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 30 | UnaryMinus, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 31 | LogicalNot, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 32 | BitwiseNot, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 33 | Cast, [INFO] [stdout] | ^^^^ [INFO] [stdout] 34 | Dereference, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 35 | AddressOf, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 36 | Sizeof [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UnaryOp` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `compiler` (bin "compiler") due to 1 previous error; 7 warnings emitted [INFO] running `Command { std: "docker" "inspect" "fbd3b1dcea9af9d5ddf31771e3ac7a4feb611b2339c8fa085bcc1ee4a464aae4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fbd3b1dcea9af9d5ddf31771e3ac7a4feb611b2339c8fa085bcc1ee4a464aae4", kill_on_drop: false }` [INFO] [stdout] fbd3b1dcea9af9d5ddf31771e3ac7a4feb611b2339c8fa085bcc1ee4a464aae4