[INFO] cloning repository https://github.com/hoobean1996/liyuu [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/hoobean1996/liyuu" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhoobean1996%2Fliyuu", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhoobean1996%2Fliyuu'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 889b76b8383d2cd704f22b055d6e7f58c35721a5 [INFO] building hoobean1996/liyuu 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%2Fhoobean1996%2Fliyuu" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/hoobean1996/liyuu 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/hoobean1996/liyuu [INFO] finished tweaking git repo https://github.com/hoobean1996/liyuu [INFO] tweaked toml for git repo https://github.com/hoobean1996/liyuu written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/hoobean1996/liyuu 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-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] b6c67ac09be1ecd58e29e98feedc3f1b1268a7537f26bcaed1d35381c5c53cb1 [INFO] running `Command { std: "docker" "start" "-a" "b6c67ac09be1ecd58e29e98feedc3f1b1268a7537f26bcaed1d35381c5c53cb1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b6c67ac09be1ecd58e29e98feedc3f1b1268a7537f26bcaed1d35381c5c53cb1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b6c67ac09be1ecd58e29e98feedc3f1b1268a7537f26bcaed1d35381c5c53cb1", kill_on_drop: false }` [INFO] [stdout] b6c67ac09be1ecd58e29e98feedc3f1b1268a7537f26bcaed1d35381c5c53cb1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 5f88d2c1c80c28c3c07a27ae09ac730b44ecb33dbfd773f254943c7c4c7117ae [INFO] running `Command { std: "docker" "start" "-a" "5f88d2c1c80c28c3c07a27ae09ac730b44ecb33dbfd773f254943c7c4c7117ae", kill_on_drop: false }` [INFO] [stderr] Compiling liyuu v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/syntax/intepreter/env/env.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `typ` [INFO] [stdout] --> src/syntax/ast/stmt/declare_stmt.rs:27:46 [INFO] [stdout] | [INFO] [stdout] 27 | Declare::DeclareIdentifier(name, typ, expr) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_typ` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/syntax/ast/stmt/declare_stmt.rs:27:51 [INFO] [stdout] | [INFO] [stdout] 27 | Declare::DeclareIdentifier(name, typ, expr) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `astModule` [INFO] [stdout] --> src/syntax/intepreter/intepreter.rs:24:33 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn inteprete(&mut self, astModule: CompilationUnit) -> Option { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_astModule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/syntax/intepreter/intepreter.rs:38:24 [INFO] [stdout] | [INFO] [stdout] 38 | Stmt::Expr(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/syntax/intepreter/intepreter.rs:39:26 [INFO] [stdout] | [INFO] [stdout] 39 | Stmt::Return(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `directive` [INFO] [stdout] --> src/syntax/intepreter/intepreter.rs:40:29 [INFO] [stdout] | [INFO] [stdout] 40 | Stmt::Directive(directive) => {} [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_directive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmts` [INFO] [stdout] --> src/syntax/intepreter/intepreter.rs:41:25 [INFO] [stdout] | [INFO] [stdout] 41 | Stmt::Block(stmts) => {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stmts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `declare` [INFO] [stdout] --> src/syntax/intepreter/intepreter.rs:42:27 [INFO] [stdout] | [INFO] [stdout] 42 | Stmt::Declare(declare) => {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_declare` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ast` [INFO] [stdout] --> src/syntax/typing/type_checker.rs:34:34 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn type_check(&mut self, ast: CompilationUnit) -> Option> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ast` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `base`, `index`, `scale`, and `displacement` are never read [INFO] [stdout] --> src/syntax/codegen/x64/inst/operand.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct MemoryOperand { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 12 | base: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | index: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 14 | scale: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | displacement: i32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MemoryOperand` 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] warning: field `env` is never read [INFO] [stdout] --> src/syntax/intepreter/intepreter.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Intepreter { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 14 | env: Box, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `intepreter_stmt` and `inteprete_expr` are never used [INFO] [stdout] --> src/syntax/intepreter/intepreter.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 17 | impl Intepreter { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | fn intepreter_stmt(&mut self, stmt: Stmt) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | fn inteprete_expr(&mut self, expr: Expr) -> Value { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `instructions`, `predecessors`, and `successors` are never read [INFO] [stdout] --> src/syntax/ir/bb/basic_block.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct BasicBlock { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 4 | id: usize, [INFO] [stdout] | ^^ [INFO] [stdout] 5 | instructions: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 6 | predecessors: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 7 | successors: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `symbols` is never read [INFO] [stdout] --> src/syntax/typing/env.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct TypingEnv { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 6 | symbols: HashMap, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `env` is never read [INFO] [stdout] --> src/syntax/typing/type_checker.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct TypeChecker { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 11 | env: TypingEnv, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `astModule` should have a snake case name [INFO] [stdout] --> src/syntax/intepreter/intepreter.rs:24:33 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn inteprete(&mut self, astModule: CompilationUnit) -> Option { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `ast_module` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.06s [INFO] running `Command { std: "docker" "inspect" "5f88d2c1c80c28c3c07a27ae09ac730b44ecb33dbfd773f254943c7c4c7117ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5f88d2c1c80c28c3c07a27ae09ac730b44ecb33dbfd773f254943c7c4c7117ae", kill_on_drop: false }` [INFO] [stdout] 5f88d2c1c80c28c3c07a27ae09ac730b44ecb33dbfd773f254943c7c4c7117ae [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 91271f675dc0286f949e0ce2461094305dffa1c89ea1426a743df0f022914213 [INFO] running `Command { std: "docker" "start" "-a" "91271f675dc0286f949e0ce2461094305dffa1c89ea1426a743df0f022914213", kill_on_drop: false }` [INFO] [stderr] Compiling liyuu v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/syntax/intepreter/env/env.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `typ` [INFO] [stdout] --> src/syntax/ast/stmt/declare_stmt.rs:27:46 [INFO] [stdout] | [INFO] [stdout] 27 | Declare::DeclareIdentifier(name, typ, expr) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_typ` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/syntax/ast/stmt/declare_stmt.rs:27:51 [INFO] [stdout] | [INFO] [stdout] 27 | Declare::DeclareIdentifier(name, typ, expr) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `astModule` [INFO] [stdout] --> src/syntax/intepreter/intepreter.rs:24:33 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn inteprete(&mut self, astModule: CompilationUnit) -> Option { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_astModule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/syntax/intepreter/intepreter.rs:38:24 [INFO] [stdout] | [INFO] [stdout] 38 | Stmt::Expr(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/syntax/intepreter/intepreter.rs:39:26 [INFO] [stdout] | [INFO] [stdout] 39 | Stmt::Return(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `directive` [INFO] [stdout] --> src/syntax/intepreter/intepreter.rs:40:29 [INFO] [stdout] | [INFO] [stdout] 40 | Stmt::Directive(directive) => {} [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_directive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmts` [INFO] [stdout] --> src/syntax/intepreter/intepreter.rs:41:25 [INFO] [stdout] | [INFO] [stdout] 41 | Stmt::Block(stmts) => {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stmts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `declare` [INFO] [stdout] --> src/syntax/intepreter/intepreter.rs:42:27 [INFO] [stdout] | [INFO] [stdout] 42 | Stmt::Declare(declare) => {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_declare` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ast` [INFO] [stdout] --> src/syntax/typing/type_checker.rs:34:34 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn type_check(&mut self, ast: CompilationUnit) -> Option> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ast` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `base`, `index`, `scale`, and `displacement` are never read [INFO] [stdout] --> src/syntax/codegen/x64/inst/operand.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct MemoryOperand { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 12 | base: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | index: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 14 | scale: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | displacement: i32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MemoryOperand` 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] warning: field `env` is never read [INFO] [stdout] --> src/syntax/intepreter/intepreter.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Intepreter { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 14 | env: Box, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `intepreter_stmt` and `inteprete_expr` are never used [INFO] [stdout] --> src/syntax/intepreter/intepreter.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 17 | impl Intepreter { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | fn intepreter_stmt(&mut self, stmt: Stmt) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | fn inteprete_expr(&mut self, expr: Expr) -> Value { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `instructions`, `predecessors`, and `successors` are never read [INFO] [stdout] --> src/syntax/ir/bb/basic_block.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct BasicBlock { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 4 | id: usize, [INFO] [stdout] | ^^ [INFO] [stdout] 5 | instructions: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 6 | predecessors: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 7 | successors: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `symbols` is never read [INFO] [stdout] --> src/syntax/typing/env.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct TypingEnv { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 6 | symbols: HashMap, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `env` is never read [INFO] [stdout] --> src/syntax/typing/type_checker.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct TypeChecker { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 11 | env: TypingEnv, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `astModule` should have a snake case name [INFO] [stdout] --> src/syntax/intepreter/intepreter.rs:24:33 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn inteprete(&mut self, astModule: CompilationUnit) -> Option { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `ast_module` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/syntax/intepreter/env/env.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `typ` [INFO] [stdout] --> src/syntax/ast/stmt/declare_stmt.rs:27:46 [INFO] [stdout] | [INFO] [stdout] 27 | Declare::DeclareIdentifier(name, typ, expr) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_typ` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/syntax/ast/stmt/declare_stmt.rs:27:51 [INFO] [stdout] | [INFO] [stdout] 27 | Declare::DeclareIdentifier(name, typ, expr) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `astModule` [INFO] [stdout] --> src/syntax/intepreter/intepreter.rs:24:33 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn inteprete(&mut self, astModule: CompilationUnit) -> Option { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_astModule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/syntax/intepreter/intepreter.rs:38:24 [INFO] [stdout] | [INFO] [stdout] 38 | Stmt::Expr(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/syntax/intepreter/intepreter.rs:39:26 [INFO] [stdout] | [INFO] [stdout] 39 | Stmt::Return(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `directive` [INFO] [stdout] --> src/syntax/intepreter/intepreter.rs:40:29 [INFO] [stdout] | [INFO] [stdout] 40 | Stmt::Directive(directive) => {} [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_directive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmts` [INFO] [stdout] --> src/syntax/intepreter/intepreter.rs:41:25 [INFO] [stdout] | [INFO] [stdout] 41 | Stmt::Block(stmts) => {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stmts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `declare` [INFO] [stdout] --> src/syntax/intepreter/intepreter.rs:42:27 [INFO] [stdout] | [INFO] [stdout] 42 | Stmt::Declare(declare) => {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_declare` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ast` [INFO] [stdout] --> src/syntax/typing/type_checker.rs:34:34 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn type_check(&mut self, ast: CompilationUnit) -> Option> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ast` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `base`, `index`, `scale`, and `displacement` are never read [INFO] [stdout] --> src/syntax/codegen/x64/inst/operand.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct MemoryOperand { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 12 | base: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | index: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 14 | scale: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | displacement: i32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MemoryOperand` 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] warning: fields `id`, `instructions`, `predecessors`, and `successors` are never read [INFO] [stdout] --> src/syntax/ir/bb/basic_block.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct BasicBlock { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 4 | id: usize, [INFO] [stdout] | ^^ [INFO] [stdout] 5 | instructions: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 6 | predecessors: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 7 | successors: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `symbols` is never read [INFO] [stdout] --> src/syntax/typing/env.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct TypingEnv { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 6 | symbols: HashMap, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `env` is never read [INFO] [stdout] --> src/syntax/typing/type_checker.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct TypeChecker { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 11 | env: TypingEnv, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `astModule` should have a snake case name [INFO] [stdout] --> src/syntax/intepreter/intepreter.rs:24:33 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn inteprete(&mut self, astModule: CompilationUnit) -> Option { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `ast_module` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.19s [INFO] running `Command { std: "docker" "inspect" "91271f675dc0286f949e0ce2461094305dffa1c89ea1426a743df0f022914213", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "91271f675dc0286f949e0ce2461094305dffa1c89ea1426a743df0f022914213", kill_on_drop: false }` [INFO] [stdout] 91271f675dc0286f949e0ce2461094305dffa1c89ea1426a743df0f022914213