[INFO] cloning repository https://github.com/psincf/xi [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/psincf/xi" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpsincf%2Fxi", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpsincf%2Fxi'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 013a96bdebac3f540370f276841f0a012ee63d34 [INFO] building psincf/xi 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%2Fpsincf%2Fxi" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/psincf/xi 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/psincf/xi [INFO] finished tweaking git repo https://github.com/psincf/xi [INFO] tweaked toml for git repo https://github.com/psincf/xi written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/psincf/xi 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 6e63d72f63267bc784a966a493149c6836f4f96fe9ed5b03e43089cc37840b00 [INFO] running `Command { std: "docker" "start" "-a" "6e63d72f63267bc784a966a493149c6836f4f96fe9ed5b03e43089cc37840b00", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6e63d72f63267bc784a966a493149c6836f4f96fe9ed5b03e43089cc37840b00", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6e63d72f63267bc784a966a493149c6836f4f96fe9ed5b03e43089cc37840b00", kill_on_drop: false }` [INFO] [stdout] 6e63d72f63267bc784a966a493149c6836f4f96fe9ed5b03e43089cc37840b00 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 47eb70a7449faa9dce7544e5057bab9fc7366fc8e1584c0bad3f18aa9408e974 [INFO] running `Command { std: "docker" "start" "-a" "47eb70a7449faa9dce7544e5057bab9fc7366fc8e1584c0bad3f18aa9408e974", kill_on_drop: false }` [INFO] [stderr] Compiling xi v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> src/sema/mod.rs:412:27 [INFO] [stdout] | [INFO] [stdout] 412 | return (sym_id) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 412 - return (sym_id) [INFO] [stdout] 412 + return sym_id [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/sema/sym_first_pass.rs:95:25 [INFO] [stdout] | [INFO] [stdout] 95 | let body = &fn_decl.body; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/sema/sym_second_pass.rs:64:53 [INFO] [stdout] | [INFO] [stdout] 64 | ... Err(err) => panic!("Type {} not found", s) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `new_ty_kind` is never read [INFO] [stdout] --> src/sema/sym_second_pass.rs:88:41 [INFO] [stdout] | [INFO] [stdout] 88 | ... let mut new_ty_kind = params.ty.kind.clone(); [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] warning: unused variable: `err` [INFO] [stdout] --> src/sema/sym_second_pass.rs:106:53 [INFO] [stdout] | [INFO] [stdout] 106 | ... Err(err) => panic!("Type {} not found", n) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lib` [INFO] [stdout] --> src/sema/sym_second_pass.rs:218:31 [INFO] [stdout] | [INFO] [stdout] 218 | Sym::External(lib, id) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lib` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/sema/sym_second_pass.rs:218:36 [INFO] [stdout] | [INFO] [stdout] 218 | Sym::External(lib, id) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sema` [INFO] [stdout] --> src/sema/sym_second_pass.rs:232:23 [INFO] [stdout] | [INFO] [stdout] 232 | fn sema_check_dot_rhs(sema: &mut SemanticAnalizer, lhs: &Expr, expr: &parser::Expr) -> Expr { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_sema` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs` [INFO] [stdout] --> src/sema/sym_second_pass.rs:232:52 [INFO] [stdout] | [INFO] [stdout] 232 | fn sema_check_dot_rhs(sema: &mut SemanticAnalizer, lhs: &Expr, expr: &parser::Expr) -> Expr { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lib` [INFO] [stdout] --> src/sema/mod.rs:385:43 [INFO] [stdout] | [INFO] [stdout] 385 | ... Sym::External(lib, id) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lib` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/sema/mod.rs:411:24 [INFO] [stdout] | [INFO] [stdout] 411 | Sym::Value(v) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sym_table` [INFO] [stdout] --> src/sema/mod.rs:419:13 [INFO] [stdout] | [INFO] [stdout] 419 | let sym_table = &self.sym_tables[sym_table_id]; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sym_table` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cgen/c_gen.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | let mut file = std::fs::File::create(options.out_path.clone() + options.bin_file_name.as_str()).unwrap(); [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: field `name` is never read [INFO] [stdout] --> src/parser.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct ModeDecl { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 61 | name: String [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ModeDecl` has derived impls for the traits `Debug` and `Clone`, 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 `0` is never read [INFO] [stdout] --> src/parser.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | ModDecl(ModeDecl), [INFO] [stdout] | ------- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Statement` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 70 | ModDecl(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | Int(i32), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Lit` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 93 | Int(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser.rs:94:11 [INFO] [stdout] | [INFO] [stdout] 94 | Float(f32), [INFO] [stdout] | ----- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Lit` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 94 | Float(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 95 | String(String) [INFO] [stdout] | ------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Lit` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 95 | String(()) [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ident` and `arguments` are never read [INFO] [stdout] --> src/parser.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 99 | pub struct FnCall { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 100 | ident: Box, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 101 | arguments: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FnCall` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | Literal(Lit), [INFO] [stdout] | ------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expr` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 107 | Literal(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 108 | FnCall(FnCall), [INFO] [stdout] | ------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expr` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 108 | FnCall(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Paren` is never constructed [INFO] [stdout] --> src/parser.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 105 | pub enum Expr { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 110 | Paren(Box), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expr` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Expr` is never constructed [INFO] [stdout] --> src/parser.rs:115:5 [INFO] [stdout] | [INFO] [stdout] 114 | pub enum Node { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 115 | Expr(Expr), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `actual_token` and `next_nowh` are never used [INFO] [stdout] --> src/parser.rs:135:12 [INFO] [stdout] | [INFO] [stdout] 126 | impl<'a> TokenIterator<'a> { [INFO] [stdout] | -------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn actual_token(&self) -> Token { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn next_nowh(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `err` is never read [INFO] [stdout] --> src/parser.rs:203:5 [INFO] [stdout] | [INFO] [stdout] 200 | pub struct AstParser<'a> { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 203 | err: Vec [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/sema/mod.rs:19:15 [INFO] [stdout] | [INFO] [stdout] 19 | Statement(Statement), [INFO] [stdout] | --------- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Node` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 19 | Statement(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Expr` is never constructed [INFO] [stdout] --> src/sema/mod.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub enum Node { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 18 | Expr(Expr), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/sema/mod.rs:25:16 [INFO] [stdout] | [INFO] [stdout] 25 | StructDecl(TyId), [INFO] [stdout] | ---------- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Statement` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 25 | StructDecl(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/sema/mod.rs:26:14 [INFO] [stdout] | [INFO] [stdout] 26 | EnumDecl(TyId), [INFO] [stdout] | -------- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Statement` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 26 | EnumDecl(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/sema/mod.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | FnDecl(FnDecl), [INFO] [stdout] | ------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Statement` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 27 | FnDecl(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/sema/mod.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | VarDecl(VarDecl), [INFO] [stdout] | ------- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Statement` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 28 | VarDecl(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/sema/mod.rs:30:10 [INFO] [stdout] | [INFO] [stdout] 30 | Expr(Expr) [INFO] [stdout] | ---- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Statement` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 30 | Expr(()) [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `expr` are never read [INFO] [stdout] --> src/sema/mod.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct VarDecl { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 35 | id: SymId, [INFO] [stdout] | ^^ [INFO] [stdout] 36 | expr: Expr [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VarDecl` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `body` are never read [INFO] [stdout] --> src/sema/mod.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct FnDecl { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 41 | id: SymId, [INFO] [stdout] | ^^ [INFO] [stdout] 42 | body: Vec [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FnDecl` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Namespace` is never constructed [INFO] [stdout] --> src/sema/mod.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 46 | pub enum Sym { [INFO] [stdout] | --- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 49 | Namespace(String), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Sym` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ident`, `mutable`, and `span` are never read [INFO] [stdout] --> src/sema/mod.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct Value { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 55 | ident: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 56 | mutable: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 57 | ty: Ty, [INFO] [stdout] 58 | span: Span, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Value` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `lhs`, `rhs`, and `operator` are never read [INFO] [stdout] --> src/sema/mod.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 86 | pub struct Operation { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 87 | lhs: Box, [INFO] [stdout] | ^^^ [INFO] [stdout] 88 | rhs: Box, [INFO] [stdout] | ^^^ [INFO] [stdout] 89 | operator: Operator [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Operation` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Int`, `Float`, and `String` are never constructed [INFO] [stdout] --> src/sema/mod.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 93 | pub enum Lit { [INFO] [stdout] | --- variants in this enum [INFO] [stdout] 94 | Int(i32), [INFO] [stdout] | ^^^ [INFO] [stdout] 95 | Float(f32), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 96 | String(String) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Lit` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ident` and `arguments` are never read [INFO] [stdout] --> src/sema/mod.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 100 | pub struct FnCall { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 101 | ident: Box, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 102 | arguments: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FnCall` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/sema/mod.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | Sym(SymId), [INFO] [stdout] | --- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expr` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 107 | Sym(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/sema/mod.rs:110:15 [INFO] [stdout] | [INFO] [stdout] 110 | Operation(Operation), [INFO] [stdout] | --------- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expr` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 110 | Operation(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/sema/mod.rs:112:16 [INFO] [stdout] | [INFO] [stdout] 112 | Unresolved(*const parser::Expr), [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expr` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 112 | Unresolved(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Literal`, `FnCall`, and `Paren` are never constructed [INFO] [stdout] --> src/sema/mod.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 106 | pub enum Expr { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 107 | Sym(SymId), [INFO] [stdout] 108 | Literal(Lit), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 109 | FnCall(FnCall), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 110 | Operation(Operation), [INFO] [stdout] 111 | Paren(Box), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expr` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/sema/mod.rs:137:15 [INFO] [stdout] | [INFO] [stdout] 137 | Primitive(Primitive), [INFO] [stdout] | --------- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Tykind` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 137 | Primitive(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/sema/mod.rs:138:8 [INFO] [stdout] | [INFO] [stdout] 138 | Id(TyId), [INFO] [stdout] | -- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Tykind` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 138 | Id(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/sema/mod.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 152 | pub struct Param { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 153 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Param` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/sema/mod.rs:160:9 [INFO] [stdout] | [INFO] [stdout] 158 | pub struct StructTy { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 159 | pub path: String, [INFO] [stdout] 160 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StructTy` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `variants` are never read [INFO] [stdout] --> src/sema/mod.rs:167:9 [INFO] [stdout] | [INFO] [stdout] 165 | pub struct EnumTy { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 166 | pub path: String, [INFO] [stdout] 167 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 168 | pub variants: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EnumTy` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `return_type` are never read [INFO] [stdout] --> src/sema/mod.rs:174:5 [INFO] [stdout] | [INFO] [stdout] 172 | pub struct FnTy { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 173 | pub path: String, [INFO] [stdout] 174 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 175 | parameters: Vec, [INFO] [stdout] 176 | return_type: Ty, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FnTy` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/sema/mod.rs:181:5 [INFO] [stdout] | [INFO] [stdout] 180 | pub struct StructField { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 181 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StructField` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `ty` are never read [INFO] [stdout] --> src/sema/mod.rs:187:5 [INFO] [stdout] | [INFO] [stdout] 186 | pub struct EnumVariant { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 187 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 188 | ty: Option, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `EnumVariant` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/sema/mod.rs:198:5 [INFO] [stdout] | [INFO] [stdout] 196 | pub struct SymTable { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 197 | isolated: bool, [INFO] [stdout] 198 | id: SymtableId, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `SymTable` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `options` and `output_file` are never read [INFO] [stdout] --> src/cgen/c_gen.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct CCodeGenerator { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 7 | options: CGeneratorOptions, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 8 | output_file: std::fs::File, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `lex_tokens`, `ast`, and `file_path` are never read [INFO] [stdout] --> src/pipeline.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct Library { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 47 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 48 | pub lex_tokens: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 49 | pub ast: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 50 | pub sema_ir: Option, [INFO] [stdout] 51 | pub file_path: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/sema/mod.rs:299:13 [INFO] [stdout] | [INFO] [stdout] 299 | drop(sym_table); [INFO] [stdout] | ^^^^^---------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut SymTable` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 299 - drop(sym_table); [INFO] [stdout] 299 + let _ = sym_table; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/pipeline.rs:209:9 [INFO] [stdout] | [INFO] [stdout] 209 | std::fs::create_dir_all(self.options.location_debug_info.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 209 | let _ = std::fs::create_dir_all(self.options.location_debug_info.clone()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.15s [INFO] running `Command { std: "docker" "inspect" "47eb70a7449faa9dce7544e5057bab9fc7366fc8e1584c0bad3f18aa9408e974", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "47eb70a7449faa9dce7544e5057bab9fc7366fc8e1584c0bad3f18aa9408e974", kill_on_drop: false }` [INFO] [stdout] 47eb70a7449faa9dce7544e5057bab9fc7366fc8e1584c0bad3f18aa9408e974 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] c016bbc56db2d8860126036974fed2f1376ef6c9caf957ebd2eb84a5818a6898 [INFO] running `Command { std: "docker" "start" "-a" "c016bbc56db2d8860126036974fed2f1376ef6c9caf957ebd2eb84a5818a6898", kill_on_drop: false }` [INFO] [stderr] Compiling xi v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> src/sema/mod.rs:412:27 [INFO] [stdout] | [INFO] [stdout] 412 | return (sym_id) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 412 - return (sym_id) [INFO] [stdout] 412 + return sym_id [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/sema/sym_first_pass.rs:95:25 [INFO] [stdout] | [INFO] [stdout] 95 | let body = &fn_decl.body; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/sema/sym_second_pass.rs:64:53 [INFO] [stdout] | [INFO] [stdout] 64 | ... Err(err) => panic!("Type {} not found", s) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `new_ty_kind` is never read [INFO] [stdout] --> src/sema/sym_second_pass.rs:88:41 [INFO] [stdout] | [INFO] [stdout] 88 | ... let mut new_ty_kind = params.ty.kind.clone(); [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] warning: unused variable: `err` [INFO] [stdout] --> src/sema/sym_second_pass.rs:106:53 [INFO] [stdout] | [INFO] [stdout] 106 | ... Err(err) => panic!("Type {} not found", n) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lib` [INFO] [stdout] --> src/sema/sym_second_pass.rs:218:31 [INFO] [stdout] | [INFO] [stdout] 218 | Sym::External(lib, id) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lib` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/sema/sym_second_pass.rs:218:36 [INFO] [stdout] | [INFO] [stdout] 218 | Sym::External(lib, id) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sema` [INFO] [stdout] --> src/sema/sym_second_pass.rs:232:23 [INFO] [stdout] | [INFO] [stdout] 232 | fn sema_check_dot_rhs(sema: &mut SemanticAnalizer, lhs: &Expr, expr: &parser::Expr) -> Expr { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_sema` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs` [INFO] [stdout] --> src/sema/sym_second_pass.rs:232:52 [INFO] [stdout] | [INFO] [stdout] 232 | fn sema_check_dot_rhs(sema: &mut SemanticAnalizer, lhs: &Expr, expr: &parser::Expr) -> Expr { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lib` [INFO] [stdout] --> src/sema/mod.rs:385:43 [INFO] [stdout] | [INFO] [stdout] 385 | ... Sym::External(lib, id) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lib` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/sema/mod.rs:411:24 [INFO] [stdout] | [INFO] [stdout] 411 | Sym::Value(v) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sym_table` [INFO] [stdout] --> src/sema/mod.rs:419:13 [INFO] [stdout] | [INFO] [stdout] 419 | let sym_table = &self.sym_tables[sym_table_id]; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sym_table` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cgen/c_gen.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | let mut file = std::fs::File::create(options.out_path.clone() + options.bin_file_name.as_str()).unwrap(); [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: field `name` is never read [INFO] [stdout] --> src/parser.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct ModeDecl { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 61 | name: String [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ModeDecl` has derived impls for the traits `Debug` and `Clone`, 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 `0` is never read [INFO] [stdout] --> src/parser.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | ModDecl(ModeDecl), [INFO] [stdout] | ------- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Statement` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 70 | ModDecl(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | Int(i32), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Lit` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 93 | Int(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser.rs:94:11 [INFO] [stdout] | [INFO] [stdout] 94 | Float(f32), [INFO] [stdout] | ----- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Lit` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 94 | Float(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 95 | String(String) [INFO] [stdout] | ------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Lit` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 95 | String(()) [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ident` and `arguments` are never read [INFO] [stdout] --> src/parser.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 99 | pub struct FnCall { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 100 | ident: Box, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 101 | arguments: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FnCall` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | Literal(Lit), [INFO] [stdout] | ------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expr` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 107 | Literal(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 108 | FnCall(FnCall), [INFO] [stdout] | ------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expr` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 108 | FnCall(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Paren` is never constructed [INFO] [stdout] --> src/parser.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 105 | pub enum Expr { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 110 | Paren(Box), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expr` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Expr` is never constructed [INFO] [stdout] --> src/parser.rs:115:5 [INFO] [stdout] | [INFO] [stdout] 114 | pub enum Node { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 115 | Expr(Expr), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `actual_token` and `next_nowh` are never used [INFO] [stdout] --> src/parser.rs:135:12 [INFO] [stdout] | [INFO] [stdout] 126 | impl<'a> TokenIterator<'a> { [INFO] [stdout] | -------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn actual_token(&self) -> Token { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn next_nowh(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `err` is never read [INFO] [stdout] --> src/parser.rs:203:5 [INFO] [stdout] | [INFO] [stdout] 200 | pub struct AstParser<'a> { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 203 | err: Vec [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/sema/mod.rs:19:15 [INFO] [stdout] | [INFO] [stdout] 19 | Statement(Statement), [INFO] [stdout] | --------- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Node` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 19 | Statement(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Expr` is never constructed [INFO] [stdout] --> src/sema/mod.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub enum Node { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 18 | Expr(Expr), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/sema/mod.rs:25:16 [INFO] [stdout] | [INFO] [stdout] 25 | StructDecl(TyId), [INFO] [stdout] | ---------- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Statement` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 25 | StructDecl(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/sema/mod.rs:26:14 [INFO] [stdout] | [INFO] [stdout] 26 | EnumDecl(TyId), [INFO] [stdout] | -------- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Statement` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 26 | EnumDecl(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/sema/mod.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | FnDecl(FnDecl), [INFO] [stdout] | ------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Statement` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 27 | FnDecl(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/sema/mod.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | VarDecl(VarDecl), [INFO] [stdout] | ------- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Statement` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 28 | VarDecl(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/sema/mod.rs:30:10 [INFO] [stdout] | [INFO] [stdout] 30 | Expr(Expr) [INFO] [stdout] | ---- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Statement` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 30 | Expr(()) [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `expr` are never read [INFO] [stdout] --> src/sema/mod.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct VarDecl { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 35 | id: SymId, [INFO] [stdout] | ^^ [INFO] [stdout] 36 | expr: Expr [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VarDecl` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `body` are never read [INFO] [stdout] --> src/sema/mod.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct FnDecl { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 41 | id: SymId, [INFO] [stdout] | ^^ [INFO] [stdout] 42 | body: Vec [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FnDecl` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Namespace` is never constructed [INFO] [stdout] --> src/sema/mod.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 46 | pub enum Sym { [INFO] [stdout] | --- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 49 | Namespace(String), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Sym` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ident`, `mutable`, and `span` are never read [INFO] [stdout] --> src/sema/mod.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct Value { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 55 | ident: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 56 | mutable: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 57 | ty: Ty, [INFO] [stdout] 58 | span: Span, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Value` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `lhs`, `rhs`, and `operator` are never read [INFO] [stdout] --> src/sema/mod.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 86 | pub struct Operation { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 87 | lhs: Box, [INFO] [stdout] | ^^^ [INFO] [stdout] 88 | rhs: Box, [INFO] [stdout] | ^^^ [INFO] [stdout] 89 | operator: Operator [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Operation` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Int`, `Float`, and `String` are never constructed [INFO] [stdout] --> src/sema/mod.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 93 | pub enum Lit { [INFO] [stdout] | --- variants in this enum [INFO] [stdout] 94 | Int(i32), [INFO] [stdout] | ^^^ [INFO] [stdout] 95 | Float(f32), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 96 | String(String) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Lit` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ident` and `arguments` are never read [INFO] [stdout] --> src/sema/mod.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 100 | pub struct FnCall { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 101 | ident: Box, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 102 | arguments: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FnCall` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/sema/mod.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | Sym(SymId), [INFO] [stdout] | --- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expr` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 107 | Sym(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/sema/mod.rs:110:15 [INFO] [stdout] | [INFO] [stdout] 110 | Operation(Operation), [INFO] [stdout] | --------- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expr` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 110 | Operation(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/sema/mod.rs:112:16 [INFO] [stdout] | [INFO] [stdout] 112 | Unresolved(*const parser::Expr), [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expr` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 112 | Unresolved(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Literal`, `FnCall`, and `Paren` are never constructed [INFO] [stdout] --> src/sema/mod.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 106 | pub enum Expr { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 107 | Sym(SymId), [INFO] [stdout] 108 | Literal(Lit), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 109 | FnCall(FnCall), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 110 | Operation(Operation), [INFO] [stdout] 111 | Paren(Box), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expr` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/sema/mod.rs:137:15 [INFO] [stdout] | [INFO] [stdout] 137 | Primitive(Primitive), [INFO] [stdout] | --------- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Tykind` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 137 | Primitive(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/sema/mod.rs:138:8 [INFO] [stdout] | [INFO] [stdout] 138 | Id(TyId), [INFO] [stdout] | -- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Tykind` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 138 | Id(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/sema/mod.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 152 | pub struct Param { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 153 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Param` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/sema/mod.rs:160:9 [INFO] [stdout] | [INFO] [stdout] 158 | pub struct StructTy { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 159 | pub path: String, [INFO] [stdout] 160 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StructTy` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `variants` are never read [INFO] [stdout] --> src/sema/mod.rs:167:9 [INFO] [stdout] | [INFO] [stdout] 165 | pub struct EnumTy { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 166 | pub path: String, [INFO] [stdout] 167 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 168 | pub variants: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EnumTy` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `return_type` are never read [INFO] [stdout] --> src/sema/mod.rs:174:5 [INFO] [stdout] | [INFO] [stdout] 172 | pub struct FnTy { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 173 | pub path: String, [INFO] [stdout] 174 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 175 | parameters: Vec, [INFO] [stdout] 176 | return_type: Ty, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FnTy` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/sema/mod.rs:181:5 [INFO] [stdout] | [INFO] [stdout] 180 | pub struct StructField { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 181 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StructField` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `ty` are never read [INFO] [stdout] --> src/sema/mod.rs:187:5 [INFO] [stdout] | [INFO] [stdout] 186 | pub struct EnumVariant { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 187 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 188 | ty: Option, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `EnumVariant` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/sema/mod.rs:198:5 [INFO] [stdout] | [INFO] [stdout] 196 | pub struct SymTable { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 197 | isolated: bool, [INFO] [stdout] 198 | id: SymtableId, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `SymTable` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `options` and `output_file` are never read [INFO] [stdout] --> src/cgen/c_gen.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct CCodeGenerator { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 7 | options: CGeneratorOptions, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 8 | output_file: std::fs::File, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `lex_tokens`, `ast`, and `file_path` are never read [INFO] [stdout] --> src/pipeline.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct Library { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 47 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 48 | pub lex_tokens: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 49 | pub ast: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 50 | pub sema_ir: Option, [INFO] [stdout] 51 | pub file_path: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/sema/mod.rs:299:13 [INFO] [stdout] | [INFO] [stdout] 299 | drop(sym_table); [INFO] [stdout] | ^^^^^---------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut SymTable` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 299 - drop(sym_table); [INFO] [stdout] 299 + let _ = sym_table; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/pipeline.rs:209:9 [INFO] [stdout] | [INFO] [stdout] 209 | std::fs::create_dir_all(self.options.location_debug_info.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 209 | let _ = std::fs::create_dir_all(self.options.location_debug_info.clone()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.49s [INFO] running `Command { std: "docker" "inspect" "c016bbc56db2d8860126036974fed2f1376ef6c9caf957ebd2eb84a5818a6898", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c016bbc56db2d8860126036974fed2f1376ef6c9caf957ebd2eb84a5818a6898", kill_on_drop: false }` [INFO] [stdout] c016bbc56db2d8860126036974fed2f1376ef6c9caf957ebd2eb84a5818a6898