[INFO] cloning repository https://github.com/jeferson-sb/silly-inter [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jeferson-sb/silly-inter" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjeferson-sb%2Fsilly-inter", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjeferson-sb%2Fsilly-inter'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 854504b0bad3ca2d8b0072cdae28b8f94ff5e0ba [INFO] checking jeferson-sb/silly-inter against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjeferson-sb%2Fsilly-inter" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jeferson-sb/silly-inter on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jeferson-sb/silly-inter [INFO] finished tweaking git repo https://github.com/jeferson-sb/silly-inter [INFO] tweaked toml for git repo https://github.com/jeferson-sb/silly-inter written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/jeferson-sb/silly-inter 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4ce3c05592ba8907cf9b27f13e406d861f8456384b159facc5db141075d80310 [INFO] running `Command { std: "docker" "start" "-a" "4ce3c05592ba8907cf9b27f13e406d861f8456384b159facc5db141075d80310", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4ce3c05592ba8907cf9b27f13e406d861f8456384b159facc5db141075d80310", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4ce3c05592ba8907cf9b27f13e406d861f8456384b159facc5db141075d80310", kill_on_drop: false }` [INFO] [stdout] 4ce3c05592ba8907cf9b27f13e406d861f8456384b159facc5db141075d80310 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "-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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e2046039d377199901e54ac9909264909cec4f6e35ef4f2fd6a81a575503342a [INFO] running `Command { std: "docker" "start" "-a" "e2046039d377199901e54ac9909264909cec4f6e35ef4f2fd6a81a575503342a", kill_on_drop: false }` [INFO] [stderr] Checking silly-inter v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BuiltinTypeSymbol`, `ScopedSymbolTable`, `Symbol`, and `VarSymbol` [INFO] [stdout] --> src/main.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | symbol::{BuiltinTypeSymbol, ScopedSymbolTable, SemanticAnalyzer, Symbol, VarSymbol}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `symbol::ScopedSymbolTable` [INFO] [stdout] --> src/interpr.rs:3:37 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{ast::*, parser::Parser, symbol::ScopedSymbolTable, token::TokenType}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TokenType` and `Token` [INFO] [stdout] --> src/main.rs:53:24 [INFO] [stdout] | [INFO] [stdout] 53 | use crate::token::{Token, TokenType}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:52:1 [INFO] [stdout] | [INFO] [stdout] 52 | mod tests { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `symbol::ScopedSymbolTable` [INFO] [stdout] --> src/interpr.rs:3:37 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{ast::*, parser::Parser, symbol::ScopedSymbolTable, token::TokenType}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/interpr.rs:103:29 [INFO] [stdout] | [INFO] [stdout] 103 | fn visit_vardecl(&self, node: &VarDecl) -> i64 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/interpr.rs:107:26 [INFO] [stdout] | [INFO] [stdout] 107 | fn visit_type(&self, node: &Type) -> i64 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `var_symbol` [INFO] [stdout] --> src/symbol.rs:220:13 [INFO] [stdout] | [INFO] [stdout] 220 | let var_symbol = self [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_var_symbol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `var` [INFO] [stdout] --> src/symbol.rs:230:25 [INFO] [stdout] | [INFO] [stdout] 230 | if let AST::Var(var) = &node.left { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_var` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/symbol.rs:242:30 [INFO] [stdout] | [INFO] [stdout] 242 | pub fn visit_noop(&self, node: &NoOp) -> i64 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/symbol.rs:246:30 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn visit_type(&self, node: &Type) -> i64 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `token` is never read [INFO] [stdout] --> src/ast.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct Number { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 27 | pub token: Token, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Number` 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] [stdout] warning: field `token` is never read [INFO] [stdout] --> src/ast.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct Type { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 52 | pub token: Token, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Type` 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: field `name` is never read [INFO] [stdout] --> src/ast.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct Program { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 58 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Program` 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: field `op` is never read [INFO] [stdout] --> src/ast.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct Assign { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 64 | pub left: AST, [INFO] [stdout] 65 | pub op: Token, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Assign` 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: variant `Param` is never constructed [INFO] [stdout] --> src/ast.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 83 | pub enum AST { [INFO] [stdout] | --- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 95 | Param(Box), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AST` 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: field `parser` is never read [INFO] [stdout] --> src/interpr.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Interpreter { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 13 | pub parser: Parser, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `interpret` are never used [INFO] [stdout] --> src/interpr.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Interpreter { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 18 | pub fn new(parser: Parser) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn interpret(&mut self) -> i64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `symbol_type` is never read [INFO] [stdout] --> src/symbol.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Symbol { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 14 | pub name: String, [INFO] [stdout] 15 | pub symbol_type: Option>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Symbol` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/symbol.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Symbol { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 19 | pub fn new(name: String, symbol_type: Option>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `var_type` is never read [INFO] [stdout] --> src/symbol.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct VarSymbol { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 49 | pub name: String, [INFO] [stdout] 50 | pub var_type: Rc, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VarSymbol` 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: variant `DIV` is never constructed [INFO] [stdout] --> src/token.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum TokenType { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 8 | DIV, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenType` 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: function `interpret_expr` is never used [INFO] [stdout] --> src/main.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | fn interpret_expr(input: String) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `interpret` is never used [INFO] [stdout] --> src/main.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | fn interpret(input: String) -> i64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/interpr.rs:103:29 [INFO] [stdout] | [INFO] [stdout] 103 | fn visit_vardecl(&self, node: &VarDecl) -> i64 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/interpr.rs:107:26 [INFO] [stdout] | [INFO] [stdout] 107 | fn visit_type(&self, node: &Type) -> i64 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `var_symbol` [INFO] [stdout] --> src/symbol.rs:220:13 [INFO] [stdout] | [INFO] [stdout] 220 | let var_symbol = self [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_var_symbol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `var` [INFO] [stdout] --> src/symbol.rs:230:25 [INFO] [stdout] | [INFO] [stdout] 230 | if let AST::Var(var) = &node.left { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_var` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/symbol.rs:242:30 [INFO] [stdout] | [INFO] [stdout] 242 | pub fn visit_noop(&self, node: &NoOp) -> i64 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/symbol.rs:246:30 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn visit_type(&self, node: &Type) -> i64 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `token` is never read [INFO] [stdout] --> src/ast.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct Number { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 27 | pub token: Token, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Number` 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] [stdout] warning: field `token` is never read [INFO] [stdout] --> src/ast.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct Type { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 52 | pub token: Token, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Type` 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: field `name` is never read [INFO] [stdout] --> src/ast.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct Program { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 58 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Program` 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: field `op` is never read [INFO] [stdout] --> src/ast.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct Assign { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 64 | pub left: AST, [INFO] [stdout] 65 | pub op: Token, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Assign` 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: variant `Param` is never constructed [INFO] [stdout] --> src/ast.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 83 | pub enum AST { [INFO] [stdout] | --- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 95 | Param(Box), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AST` 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: field `symbol_type` is never read [INFO] [stdout] --> src/symbol.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Symbol { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 14 | pub name: String, [INFO] [stdout] 15 | pub symbol_type: Option>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Symbol` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `var_type` is never read [INFO] [stdout] --> src/symbol.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct VarSymbol { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 49 | pub name: String, [INFO] [stdout] 50 | pub var_type: Rc, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VarSymbol` 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: variant `DIV` is never constructed [INFO] [stdout] --> src/token.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum TokenType { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 8 | DIV, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenType` 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: function `interpret_expr` is never used [INFO] [stdout] --> src/main.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | fn interpret_expr(input: String) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.32s [INFO] running `Command { std: "docker" "inspect" "e2046039d377199901e54ac9909264909cec4f6e35ef4f2fd6a81a575503342a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e2046039d377199901e54ac9909264909cec4f6e35ef4f2fd6a81a575503342a", kill_on_drop: false }` [INFO] [stdout] e2046039d377199901e54ac9909264909cec4f6e35ef4f2fd6a81a575503342a [INFO] checking jeferson-sb/silly-inter against try#f9935d29d867449445ee008640ccca1bf1ae0889+rustflags=-Dtail_expr_drop_order for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjeferson-sb%2Fsilly-inter" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jeferson-sb/silly-inter on toolchain f9935d29d867449445ee008640ccca1bf1ae0889 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jeferson-sb/silly-inter [INFO] finished tweaking git repo https://github.com/jeferson-sb/silly-inter [INFO] tweaked toml for git repo https://github.com/jeferson-sb/silly-inter written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/jeferson-sb/silly-inter 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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 80c782deff931e3107233061d13d07426c15712839d315929e10d3ff6d07be61 [INFO] running `Command { std: "docker" "start" "-a" "80c782deff931e3107233061d13d07426c15712839d315929e10d3ff6d07be61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "80c782deff931e3107233061d13d07426c15712839d315929e10d3ff6d07be61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "80c782deff931e3107233061d13d07426c15712839d315929e10d3ff6d07be61", kill_on_drop: false }` [INFO] [stdout] 80c782deff931e3107233061d13d07426c15712839d315929e10d3ff6d07be61 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ec4bc62f45988b85bd867f099215af059f43b4552fb232533e106e37eb5f4140 [INFO] running `Command { std: "docker" "start" "-a" "ec4bc62f45988b85bd867f099215af059f43b4552fb232533e106e37eb5f4140", kill_on_drop: false }` [INFO] [stderr] Checking silly-inter v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `symbol::ScopedSymbolTable` [INFO] [stdout] --> src/interpr.rs:3:37 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{ast::*, parser::Parser, symbol::ScopedSymbolTable, token::TokenType}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BuiltinTypeSymbol`, `ScopedSymbolTable`, `Symbol`, and `VarSymbol` [INFO] [stdout] --> src/main.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | symbol::{BuiltinTypeSymbol, ScopedSymbolTable, SemanticAnalyzer, Symbol, VarSymbol}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `symbol::ScopedSymbolTable` [INFO] [stdout] --> src/interpr.rs:3:37 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{ast::*, parser::Parser, symbol::ScopedSymbolTable, token::TokenType}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TokenType` and `Token` [INFO] [stdout] --> src/main.rs:53:24 [INFO] [stdout] | [INFO] [stdout] 53 | use crate::token::{Token, TokenType}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:52:1 [INFO] [stdout] | [INFO] [stdout] 52 | mod tests { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/interpr.rs:103:29 [INFO] [stdout] | [INFO] [stdout] 103 | fn visit_vardecl(&self, node: &VarDecl) -> i64 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/interpr.rs:107:26 [INFO] [stdout] | [INFO] [stdout] 107 | fn visit_type(&self, node: &Type) -> i64 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `var_symbol` [INFO] [stdout] --> src/symbol.rs:220:13 [INFO] [stdout] | [INFO] [stdout] 220 | let var_symbol = self [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_var_symbol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `var` [INFO] [stdout] --> src/symbol.rs:230:25 [INFO] [stdout] | [INFO] [stdout] 230 | if let AST::Var(var) = &node.left { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_var` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/symbol.rs:242:30 [INFO] [stdout] | [INFO] [stdout] 242 | pub fn visit_noop(&self, node: &NoOp) -> i64 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/symbol.rs:246:30 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn visit_type(&self, node: &Type) -> i64 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/interpr.rs:103:29 [INFO] [stdout] | [INFO] [stdout] 103 | fn visit_vardecl(&self, node: &VarDecl) -> i64 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/interpr.rs:107:26 [INFO] [stdout] | [INFO] [stdout] 107 | fn visit_type(&self, node: &Type) -> i64 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `token` is never read [INFO] [stdout] --> src/ast.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct Number { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 27 | pub token: Token, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Number` 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] [stdout] warning: field `token` is never read [INFO] [stdout] --> src/ast.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct Type { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 52 | pub token: Token, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Type` 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: field `name` is never read [INFO] [stdout] --> src/ast.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct Program { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 58 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Program` 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: field `op` is never read [INFO] [stdout] --> src/ast.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct Assign { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 64 | pub left: AST, [INFO] [stdout] 65 | pub op: Token, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Assign` 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: variant `Param` is never constructed [INFO] [stdout] --> src/ast.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 83 | pub enum AST { [INFO] [stdout] | --- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 95 | Param(Box), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AST` 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: field `parser` is never read [INFO] [stdout] --> src/interpr.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Interpreter { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 13 | pub parser: Parser, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `interpret` are never used [INFO] [stdout] --> src/interpr.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Interpreter { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 18 | pub fn new(parser: Parser) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn interpret(&mut self) -> i64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `symbol_type` is never read [INFO] [stdout] --> src/symbol.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Symbol { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 14 | pub name: String, [INFO] [stdout] 15 | pub symbol_type: Option>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Symbol` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/symbol.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Symbol { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 19 | pub fn new(name: String, symbol_type: Option>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `var_type` is never read [INFO] [stdout] --> src/symbol.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct VarSymbol { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 49 | pub name: String, [INFO] [stdout] 50 | pub var_type: Rc, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VarSymbol` 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: variant `DIV` is never constructed [INFO] [stdout] --> src/token.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum TokenType { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 8 | DIV, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenType` 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: function `interpret_expr` is never used [INFO] [stdout] --> src/main.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | fn interpret_expr(input: String) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `interpret` is never used [INFO] [stdout] --> src/main.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | fn interpret(input: String) -> i64 { [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.rs:147:22 [INFO] [stdout] | [INFO] [stdout] 135 | let var_node = self.variable(); [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 141 | let block_node = self.block(); [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 142 | let program_node = Program { [INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 147 | AST::Program(Box::new(program_node)) [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.rs:162:23 [INFO] [stdout] | [INFO] [stdout] 152 | let nodes = self.statement_list(); [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 155 | let mut root = Compound { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 162 | AST::Compound(Box::new(root)) [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.rs:194:21 [INFO] [stdout] | [INFO] [stdout] 190 | let left = self.variable(); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 193 | let right = self.expr(); [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 194 | AST::Assign(Box::new(Assign { [INFO] [stdout] | _____________________^ [INFO] [stdout] 195 | | left, [INFO] [stdout] 196 | | op: token, [INFO] [stdout] 197 | | right, [INFO] [stdout] 198 | | })) [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.rs:218:20 [INFO] [stdout] | [INFO] [stdout] 211 | let declr_nodes = self.declarations(); [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 212 | let compound_statement_node = self.compound_statement(); [INFO] [stdout] | ----------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 213 | let node = Block { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 218 | AST::Block(Box::new(node)) [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.rs:325:9 [INFO] [stdout] | [INFO] [stdout] 307 | let mut nodes = vec![AST::Var(Box::new(Var { [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 324 | let type_node = self.type_spec(); [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 325 | / nodes [INFO] [stdout] 326 | | .into_iter() [INFO] [stdout] 327 | | .map(|var_node| { [INFO] [stdout] 328 | | AST::VarDecl(Box::new(VarDecl { [INFO] [stdout] ... | [INFO] [stdout] 331 | | })) [INFO] [stdout] 332 | | }) [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.rs:328:30 [INFO] [stdout] | [INFO] [stdout] 327 | .map(|var_node| { [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 328 | AST::VarDecl(Box::new(VarDecl { [INFO] [stdout] | ______________________________^ [INFO] [stdout] 329 | | var_node: var_node, [INFO] [stdout] 330 | | type_node: type_node.clone(), [INFO] [stdout] 331 | | })) [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 6 previous errors; 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `var_symbol` [INFO] [stdout] --> src/symbol.rs:220:13 [INFO] [stdout] | [INFO] [stdout] 220 | let var_symbol = self [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_var_symbol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `var` [INFO] [stdout] --> src/symbol.rs:230:25 [INFO] [stdout] | [INFO] [stdout] 230 | if let AST::Var(var) = &node.left { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_var` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/symbol.rs:242:30 [INFO] [stdout] | [INFO] [stdout] 242 | pub fn visit_noop(&self, node: &NoOp) -> i64 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/symbol.rs:246:30 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn visit_type(&self, node: &Type) -> i64 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `silly-inter` (bin "silly-inter") due to 7 previous errors; 23 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: field `token` is never read [INFO] [stdout] --> src/ast.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct Number { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 27 | pub token: Token, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Number` 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] [stdout] warning: field `token` is never read [INFO] [stdout] --> src/ast.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct Type { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 52 | pub token: Token, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Type` 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: field `name` is never read [INFO] [stdout] --> src/ast.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct Program { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 58 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Program` 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: field `op` is never read [INFO] [stdout] --> src/ast.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct Assign { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 64 | pub left: AST, [INFO] [stdout] 65 | pub op: Token, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Assign` 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: variant `Param` is never constructed [INFO] [stdout] --> src/ast.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 83 | pub enum AST { [INFO] [stdout] | --- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 95 | Param(Box), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AST` 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: field `symbol_type` is never read [INFO] [stdout] --> src/symbol.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Symbol { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 14 | pub name: String, [INFO] [stdout] 15 | pub symbol_type: Option>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Symbol` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `var_type` is never read [INFO] [stdout] --> src/symbol.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct VarSymbol { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 49 | pub name: String, [INFO] [stdout] 50 | pub var_type: Rc, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VarSymbol` 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: variant `DIV` is never constructed [INFO] [stdout] --> src/token.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum TokenType { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 8 | DIV, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenType` 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: function `interpret_expr` is never used [INFO] [stdout] --> src/main.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | fn interpret_expr(input: String) -> i64 { [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.rs:147:22 [INFO] [stdout] | [INFO] [stdout] 135 | let var_node = self.variable(); [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 141 | let block_node = self.block(); [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 142 | let program_node = Program { [INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 147 | AST::Program(Box::new(program_node)) [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.rs:162:23 [INFO] [stdout] | [INFO] [stdout] 152 | let nodes = self.statement_list(); [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 155 | let mut root = Compound { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 162 | AST::Compound(Box::new(root)) [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.rs:194:21 [INFO] [stdout] | [INFO] [stdout] 190 | let left = self.variable(); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 193 | let right = self.expr(); [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 194 | AST::Assign(Box::new(Assign { [INFO] [stdout] | _____________________^ [INFO] [stdout] 195 | | left, [INFO] [stdout] 196 | | op: token, [INFO] [stdout] 197 | | right, [INFO] [stdout] 198 | | })) [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.rs:218:20 [INFO] [stdout] | [INFO] [stdout] 211 | let declr_nodes = self.declarations(); [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 212 | let compound_statement_node = self.compound_statement(); [INFO] [stdout] | ----------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 213 | let node = Block { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 218 | AST::Block(Box::new(node)) [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.rs:325:9 [INFO] [stdout] | [INFO] [stdout] 307 | let mut nodes = vec![AST::Var(Box::new(Var { [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 324 | let type_node = self.type_spec(); [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 325 | / nodes [INFO] [stdout] 326 | | .into_iter() [INFO] [stdout] 327 | | .map(|var_node| { [INFO] [stdout] 328 | | AST::VarDecl(Box::new(VarDecl { [INFO] [stdout] ... | [INFO] [stdout] 331 | | })) [INFO] [stdout] 332 | | }) [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.rs:328:30 [INFO] [stdout] | [INFO] [stdout] 327 | .map(|var_node| { [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 328 | AST::VarDecl(Box::new(VarDecl { [INFO] [stdout] | ______________________________^ [INFO] [stdout] 329 | | var_node: var_node, [INFO] [stdout] 330 | | type_node: type_node.clone(), [INFO] [stdout] 331 | | })) [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 6 previous errors; 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `silly-inter` (bin "silly-inter" test) due to 7 previous errors; 16 warnings emitted [INFO] running `Command { std: "docker" "inspect" "ec4bc62f45988b85bd867f099215af059f43b4552fb232533e106e37eb5f4140", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ec4bc62f45988b85bd867f099215af059f43b4552fb232533e106e37eb5f4140", kill_on_drop: false }` [INFO] [stdout] ec4bc62f45988b85bd867f099215af059f43b4552fb232533e106e37eb5f4140