[INFO] cloning repository https://github.com/codemonkeyricky/c_borrow_checker [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/codemonkeyricky/c_borrow_checker" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcodemonkeyricky%2Fc_borrow_checker", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcodemonkeyricky%2Fc_borrow_checker'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 92293e35f4deb64db3004c654aba65c966662142 [INFO] checking codemonkeyricky/c_borrow_checker against try#78c81ee3917a99dcff6e2e6822800f0492c415c3 for pr-148967 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcodemonkeyricky%2Fc_borrow_checker" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/codemonkeyricky/c_borrow_checker [INFO] finished tweaking git repo https://github.com/codemonkeyricky/c_borrow_checker [INFO] tweaked toml for git repo https://github.com/codemonkeyricky/c_borrow_checker written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/codemonkeyricky/c_borrow_checker on toolchain 78c81ee3917a99dcff6e2e6822800f0492c415c3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+78c81ee3917a99dcff6e2e6822800f0492c415c3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/codemonkeyricky/c_borrow_checker 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" "+78c81ee3917a99dcff6e2e6822800f0492c415c3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded clang v1.0.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+78c81ee3917a99dcff6e2e6822800f0492c415c3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b7a983fb128500c5f65f40c9ab376adf290b1804f4692f5512832e219054c2e2 [INFO] running `Command { std: "docker" "start" "-a" "b7a983fb128500c5f65f40c9ab376adf290b1804f4692f5512832e219054c2e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b7a983fb128500c5f65f40c9ab376adf290b1804f4692f5512832e219054c2e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b7a983fb128500c5f65f40c9ab376adf290b1804f4692f5512832e219054c2e2", kill_on_drop: false }` [INFO] [stdout] b7a983fb128500c5f65f40c9ab376adf290b1804f4692f5512832e219054c2e2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+78c81ee3917a99dcff6e2e6822800f0492c415c3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a39ab08ff5648d772b43481ca4d6d32a03c7c6b1d9461351652801f7ac820cb4 [INFO] running `Command { std: "docker" "start" "-a" "a39ab08ff5648d772b43481ca4d6d32a03c7c6b1d9461351652801f7ac820cb4", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.158 [INFO] [stderr] Compiling clang-sys v1.8.1 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Checking glob v0.3.1 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Checking clang v1.0.3 [INFO] [stderr] Checking regex v1.10.6 [INFO] [stderr] Checking c_borrow_checker v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Command`, `thread::sleep`, and `time::Duration` [INFO] [stdout] --> src/verify.rs:40:21 [INFO] [stdout] | [INFO] [stdout] 40 | process::{exit, Command}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 41 | thread::sleep, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 42 | time::Duration, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> src/verify.rs:47:20 [INFO] [stdout] | [INFO] [stdout] 47 | unistd::{fork, write, ForkResult}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/verify.rs:95:17 [INFO] [stdout] | [INFO] [stdout] 95 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/verify.rs:52:23 [INFO] [stdout] | [INFO] [stdout] 52 | Inst::InstSet(line, inst_set) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/verify.rs:56:25 [INFO] [stdout] | [INFO] [stdout] 56 | Inst::ParamDecl(line, label, variable) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/verify.rs:59:23 [INFO] [stdout] | [INFO] [stdout] 59 | Inst::VarDecl(line, label, variable) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/verify.rs:62:22 [INFO] [stdout] | [INFO] [stdout] 62 | Inst::Assign(line, lhs, rhs) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/verify.rs:69:20 [INFO] [stdout] | [INFO] [stdout] 69 | Inst::Eval(line, rhs) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/verify.rs:72:18 [INFO] [stdout] | [INFO] [stdout] 72 | Inst::If(line, inst_list) => match inst_list.len() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `eval` [INFO] [stdout] --> src/verify.rs:74:21 [INFO] [stdout] | [INFO] [stdout] 74 | let eval = inst_list.get(0); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_eval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `eval` [INFO] [stdout] --> src/verify.rs:91:21 [INFO] [stdout] | [INFO] [stdout] 91 | let eval = inst_list.get(0); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_eval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p2` [INFO] [stdout] --> src/verify.rs:93:21 [INFO] [stdout] | [INFO] [stdout] 93 | let p2 = inst_list.get(2); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_p2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/verify.rs:114:26 [INFO] [stdout] | [INFO] [stdout] 114 | Inst::ReturnStmt(line, _) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/verify.rs:117:25 [INFO] [stdout] | [INFO] [stdout] 117 | Inst::FieldDecl(line, _, _) => todo!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/main.rs:28:20 [INFO] [stdout] | [INFO] [stdout] 28 | fn parse_decl_stmt(state: &mut ExecutionState) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/main.rs:112:21 [INFO] [stdout] | [INFO] [stdout] 112 | fn post_DeclRefExpr(state: &mut ExecutionState) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/main.rs:119:25 [INFO] [stdout] | [INFO] [stdout] 119 | fn parse_unexposed_expr(state: &mut ExecutionState) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/main.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | for k in 0..children - 1 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `variable` [INFO] [stdout] --> src/main.rs:131:37 [INFO] [stdout] | [INFO] [stdout] 131 | Inst::VarDecl(0, label, variable) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_variable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `variable` [INFO] [stdout] --> src/main.rs:151:33 [INFO] [stdout] | [INFO] [stdout] 151 | Inst::VarDecl(0, label, variable) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_variable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | let mut name: Option<&str> = None; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | let mut qual_type: Option<&str> = None; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/main.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | let mut name: Option<&str> = None; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `qual_type` [INFO] [stdout] --> src/main.rs:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | let mut qual_type: Option<&str> = None; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_qual_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/main.rs:195:9 [INFO] [stdout] | [INFO] [stdout] 195 | let line = map.get("loc").unwrap().get("line").unwrap().as_str(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/main.rs:214:9 [INFO] [stdout] | [INFO] [stdout] 214 | for k in 0..curr_size - inst_cnt { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/main.rs:224:29 [INFO] [stdout] | [INFO] [stdout] 224 | Inst::ParamDecl(line, name, property) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/main.rs:224:35 [INFO] [stdout] | [INFO] [stdout] 224 | Inst::ParamDecl(line, name, property) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/main.rs:227:27 [INFO] [stdout] | [INFO] [stdout] 227 | Inst::InstSet(line, set) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `children` [INFO] [stdout] --> src/main.rs:247:52 [INFO] [stdout] | [INFO] [stdout] 247 | fn post_BinaryOperator(state: &mut ExecutionState, children: u32) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_children` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/main.rs:255:24 [INFO] [stdout] | [INFO] [stdout] 255 | (Inst::VarDecl(line, label, variable), Inst::Eval(line2, expr)) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `variable` [INFO] [stdout] --> src/main.rs:255:37 [INFO] [stdout] | [INFO] [stdout] 255 | (Inst::VarDecl(line, label, variable), Inst::Eval(line2, expr)) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_variable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line2` [INFO] [stdout] --> src/main.rs:255:59 [INFO] [stdout] | [INFO] [stdout] 255 | (Inst::VarDecl(line, label, variable), Inst::Eval(line2, expr)) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_line2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/main.rs:274:28 [INFO] [stdout] | [INFO] [stdout] 274 | fn post_attribute_annotate(state: &mut ExecutionState) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/main.rs:284:9 [INFO] [stdout] | [INFO] [stdout] 284 | for k in 0..curr_size - inst_cnt { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/main.rs:300:9 [INFO] [stdout] | [INFO] [stdout] 300 | for k in 0..curr_size - inst_cnt { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/main.rs:324:21 [INFO] [stdout] | [INFO] [stdout] 324 | fn parse_paren_expr(state: &mut ExecutionState) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> src/main.rs:343:38 [INFO] [stdout] | [INFO] [stdout] 343 | ExprDescriptor::FunctionCall(func, params) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_func` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `qual_type` is assigned to, but never used [INFO] [stdout] --> src/main.rs:456:13 [INFO] [stdout] | [INFO] [stdout] 456 | let mut qual_type: Option<&str> = None; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_qual_type` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `inner` is assigned to, but never used [INFO] [stdout] --> src/main.rs:457:13 [INFO] [stdout] | [INFO] [stdout] 457 | let mut inner: Option<&Value> = None; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_inner` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `qual_type` is never read [INFO] [stdout] --> src/main.rs:464:21 [INFO] [stdout] | [INFO] [stdout] 464 | qual_type = get_qual_type(v); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inner` is never read [INFO] [stdout] --> src/main.rs:467:21 [INFO] [stdout] | [INFO] [stdout] 467 | inner = Some(v); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:519:9 [INFO] [stdout] | [INFO] [stdout] 518 | _ => return None, [INFO] [stdout] | - matches any value [INFO] [stdout] 519 | None => return None, [INFO] [stdout] | ^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/main.rs:523:21 [INFO] [stdout] | [INFO] [stdout] 523 | fn parse_annotation(state: &mut ExecutionState, value: &Value) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `qual_type` is assigned to, but never used [INFO] [stdout] --> src/main.rs:545:9 [INFO] [stdout] | [INFO] [stdout] 545 | let mut qual_type: Option<&str> = None; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_qual_type` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `inner` is assigned to, but never used [INFO] [stdout] --> src/main.rs:546:9 [INFO] [stdout] | [INFO] [stdout] 546 | let mut inner: Option<&Value> = None; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_inner` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `qual_type` is never read [INFO] [stdout] --> src/main.rs:562:17 [INFO] [stdout] | [INFO] [stdout] 562 | qual_type = get_qual_type(v); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inner` is never read [INFO] [stdout] --> src/main.rs:566:17 [INFO] [stdout] | [INFO] [stdout] 566 | inner = Some(v); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_variable` is never used [INFO] [stdout] --> src/main.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn parse_variable(value: String) -> (bool, u32, String) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `split` is never used [INFO] [stdout] --> src/main.rs:54:4 [INFO] [stdout] | [INFO] [stdout] 54 | fn split(s: String) -> (String, String) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `split_function_signature` is never used [INFO] [stdout] --> src/main.rs:161:4 [INFO] [stdout] | [INFO] [stdout] 161 | fn split_function_signature(signature: &str) -> Option<(String, String, String)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Component` is never constructed [INFO] [stdout] --> src/main.rs:329:8 [INFO] [stdout] | [INFO] [stdout] 329 | struct Component {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `evaluate` is never used [INFO] [stdout] --> src/main.rs:341:4 [INFO] [stdout] | [INFO] [stdout] 341 | fn evaluate(rhs: &ExprDescriptor) -> ExprResult { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Label` is never used [INFO] [stdout] --> src/def.rs:2:6 [INFO] [stdout] | [INFO] [stdout] 2 | type Label = String; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `mutable`, `ownership`, and `indirection` are never read [INFO] [stdout] --> src/def.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Variable { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 6 | pub mutable: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 7 | pub ownership: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 8 | pub indirection: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Variable` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `param` is never read [INFO] [stdout] --> src/def.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Function { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 22 | pub name: String, [INFO] [stdout] 23 | pub param: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Function` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `1` and `2` are never read [INFO] [stdout] --> src/def.rs:33:20 [INFO] [stdout] | [INFO] [stdout] 33 | FieldDecl(u64, String, Variable), [INFO] [stdout] | --------- ^^^^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Inst` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 33 - FieldDecl(u64, String, Variable), [INFO] [stdout] 33 + FieldDecl(u64, (), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `1` is never read [INFO] [stdout] --> src/def.rs:38:21 [INFO] [stdout] | [INFO] [stdout] 38 | ReturnStmt(u64, String), [INFO] [stdout] | ---------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Inst` has a derived impl for the trait `Clone`, but this is 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] 38 - ReturnStmt(u64, String), [INFO] [stdout] 38 + ReturnStmt(u64, ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ExprResult` is never used [INFO] [stdout] --> src/def.rs:50:10 [INFO] [stdout] | [INFO] [stdout] 50 | pub enum ExprResult { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `post_ParmVarDecl` should have a snake case name [INFO] [stdout] --> src/main.rs:61:4 [INFO] [stdout] | [INFO] [stdout] 61 | fn post_ParmVarDecl(state: &mut ExecutionState, map: &serde_json::Map) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `post_parm_var_decl` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `post_FieldDecl` should have a snake case name [INFO] [stdout] --> src/main.rs:84:4 [INFO] [stdout] | [INFO] [stdout] 84 | fn post_FieldDecl(state: &mut ExecutionState, map: &serde_json::Map) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `post_field_decl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `post_DeclRefExpr` should have a snake case name [INFO] [stdout] --> src/main.rs:112:4 [INFO] [stdout] | [INFO] [stdout] 112 | fn post_DeclRefExpr(state: &mut ExecutionState) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `post_decl_ref_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `post_process_CallExpr` should have a snake case name [INFO] [stdout] --> src/main.rs:126:4 [INFO] [stdout] | [INFO] [stdout] 126 | fn post_process_CallExpr(state: &mut ExecutionState, children: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `post_process_call_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `post_FunctionDecl` should have a snake case name [INFO] [stdout] --> src/main.rs:185:4 [INFO] [stdout] | [INFO] [stdout] 185 | fn post_FunctionDecl( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `post_function_decl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `post_BinaryOperator` should have a snake case name [INFO] [stdout] --> src/main.rs:247:4 [INFO] [stdout] | [INFO] [stdout] 247 | fn post_BinaryOperator(state: &mut ExecutionState, children: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `post_binary_operator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `post_VarDecl` should have a snake case name [INFO] [stdout] --> src/main.rs:264:4 [INFO] [stdout] | [INFO] [stdout] 264 | fn post_VarDecl(state: &mut ExecutionState) { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `post_var_decl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `post_CompoundStmt` should have a snake case name [INFO] [stdout] --> src/main.rs:280:4 [INFO] [stdout] | [INFO] [stdout] 280 | fn post_CompoundStmt(state: &mut ExecutionState, inst_cnt: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `post_compound_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `post_IfStmt` should have a snake case name [INFO] [stdout] --> src/main.rs:293:4 [INFO] [stdout] | [INFO] [stdout] 293 | fn post_IfStmt( [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `post_if_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `post_ReturnStmt` should have a snake case name [INFO] [stdout] --> src/main.rs:319:4 [INFO] [stdout] | [INFO] [stdout] 319 | fn post_ReturnStmt(state: &mut ExecutionState) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `post_return_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Command`, `thread::sleep`, and `time::Duration` [INFO] [stdout] --> src/verify.rs:40:21 [INFO] [stdout] | [INFO] [stdout] 40 | process::{exit, Command}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 41 | thread::sleep, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 42 | time::Duration, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> src/verify.rs:47:20 [INFO] [stdout] | [INFO] [stdout] 47 | unistd::{fork, write, ForkResult}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/verify.rs:95:17 [INFO] [stdout] | [INFO] [stdout] 95 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/verify.rs:52:23 [INFO] [stdout] | [INFO] [stdout] 52 | Inst::InstSet(line, inst_set) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/verify.rs:56:25 [INFO] [stdout] | [INFO] [stdout] 56 | Inst::ParamDecl(line, label, variable) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/verify.rs:59:23 [INFO] [stdout] | [INFO] [stdout] 59 | Inst::VarDecl(line, label, variable) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/verify.rs:62:22 [INFO] [stdout] | [INFO] [stdout] 62 | Inst::Assign(line, lhs, rhs) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/verify.rs:69:20 [INFO] [stdout] | [INFO] [stdout] 69 | Inst::Eval(line, rhs) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/verify.rs:72:18 [INFO] [stdout] | [INFO] [stdout] 72 | Inst::If(line, inst_list) => match inst_list.len() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `eval` [INFO] [stdout] --> src/verify.rs:74:21 [INFO] [stdout] | [INFO] [stdout] 74 | let eval = inst_list.get(0); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_eval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `eval` [INFO] [stdout] --> src/verify.rs:91:21 [INFO] [stdout] | [INFO] [stdout] 91 | let eval = inst_list.get(0); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_eval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p2` [INFO] [stdout] --> src/verify.rs:93:21 [INFO] [stdout] | [INFO] [stdout] 93 | let p2 = inst_list.get(2); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_p2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/verify.rs:114:26 [INFO] [stdout] | [INFO] [stdout] 114 | Inst::ReturnStmt(line, _) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/verify.rs:117:25 [INFO] [stdout] | [INFO] [stdout] 117 | Inst::FieldDecl(line, _, _) => todo!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/main.rs:28:20 [INFO] [stdout] | [INFO] [stdout] 28 | fn parse_decl_stmt(state: &mut ExecutionState) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/main.rs:112:21 [INFO] [stdout] | [INFO] [stdout] 112 | fn post_DeclRefExpr(state: &mut ExecutionState) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/main.rs:119:25 [INFO] [stdout] | [INFO] [stdout] 119 | fn parse_unexposed_expr(state: &mut ExecutionState) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/main.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | for k in 0..children - 1 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `variable` [INFO] [stdout] --> src/main.rs:131:37 [INFO] [stdout] | [INFO] [stdout] 131 | Inst::VarDecl(0, label, variable) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_variable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `variable` [INFO] [stdout] --> src/main.rs:151:33 [INFO] [stdout] | [INFO] [stdout] 151 | Inst::VarDecl(0, label, variable) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_variable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | let mut name: Option<&str> = None; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | let mut qual_type: Option<&str> = None; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/main.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | let mut name: Option<&str> = None; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `qual_type` [INFO] [stdout] --> src/main.rs:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | let mut qual_type: Option<&str> = None; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_qual_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/main.rs:195:9 [INFO] [stdout] | [INFO] [stdout] 195 | let line = map.get("loc").unwrap().get("line").unwrap().as_str(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/main.rs:214:9 [INFO] [stdout] | [INFO] [stdout] 214 | for k in 0..curr_size - inst_cnt { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/main.rs:224:29 [INFO] [stdout] | [INFO] [stdout] 224 | Inst::ParamDecl(line, name, property) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/main.rs:224:35 [INFO] [stdout] | [INFO] [stdout] 224 | Inst::ParamDecl(line, name, property) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/main.rs:227:27 [INFO] [stdout] | [INFO] [stdout] 227 | Inst::InstSet(line, set) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `children` [INFO] [stdout] --> src/main.rs:247:52 [INFO] [stdout] | [INFO] [stdout] 247 | fn post_BinaryOperator(state: &mut ExecutionState, children: u32) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_children` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/main.rs:255:24 [INFO] [stdout] | [INFO] [stdout] 255 | (Inst::VarDecl(line, label, variable), Inst::Eval(line2, expr)) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `variable` [INFO] [stdout] --> src/main.rs:255:37 [INFO] [stdout] | [INFO] [stdout] 255 | (Inst::VarDecl(line, label, variable), Inst::Eval(line2, expr)) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_variable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line2` [INFO] [stdout] --> src/main.rs:255:59 [INFO] [stdout] | [INFO] [stdout] 255 | (Inst::VarDecl(line, label, variable), Inst::Eval(line2, expr)) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_line2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/main.rs:274:28 [INFO] [stdout] | [INFO] [stdout] 274 | fn post_attribute_annotate(state: &mut ExecutionState) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/main.rs:284:9 [INFO] [stdout] | [INFO] [stdout] 284 | for k in 0..curr_size - inst_cnt { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/main.rs:300:9 [INFO] [stdout] | [INFO] [stdout] 300 | for k in 0..curr_size - inst_cnt { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/main.rs:324:21 [INFO] [stdout] | [INFO] [stdout] 324 | fn parse_paren_expr(state: &mut ExecutionState) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> src/main.rs:343:38 [INFO] [stdout] | [INFO] [stdout] 343 | ExprDescriptor::FunctionCall(func, params) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_func` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `qual_type` is assigned to, but never used [INFO] [stdout] --> src/main.rs:456:13 [INFO] [stdout] | [INFO] [stdout] 456 | let mut qual_type: Option<&str> = None; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_qual_type` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `inner` is assigned to, but never used [INFO] [stdout] --> src/main.rs:457:13 [INFO] [stdout] | [INFO] [stdout] 457 | let mut inner: Option<&Value> = None; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_inner` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `qual_type` is never read [INFO] [stdout] --> src/main.rs:464:21 [INFO] [stdout] | [INFO] [stdout] 464 | qual_type = get_qual_type(v); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inner` is never read [INFO] [stdout] --> src/main.rs:467:21 [INFO] [stdout] | [INFO] [stdout] 467 | inner = Some(v); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:519:9 [INFO] [stdout] | [INFO] [stdout] 518 | _ => return None, [INFO] [stdout] | - matches any value [INFO] [stdout] 519 | None => return None, [INFO] [stdout] | ^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/main.rs:523:21 [INFO] [stdout] | [INFO] [stdout] 523 | fn parse_annotation(state: &mut ExecutionState, value: &Value) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `qual_type` is assigned to, but never used [INFO] [stdout] --> src/main.rs:545:9 [INFO] [stdout] | [INFO] [stdout] 545 | let mut qual_type: Option<&str> = None; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_qual_type` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `inner` is assigned to, but never used [INFO] [stdout] --> src/main.rs:546:9 [INFO] [stdout] | [INFO] [stdout] 546 | let mut inner: Option<&Value> = None; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_inner` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `qual_type` is never read [INFO] [stdout] --> src/main.rs:562:17 [INFO] [stdout] | [INFO] [stdout] 562 | qual_type = get_qual_type(v); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inner` is never read [INFO] [stdout] --> src/main.rs:566:17 [INFO] [stdout] | [INFO] [stdout] 566 | inner = Some(v); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_variable` is never used [INFO] [stdout] --> src/main.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn parse_variable(value: String) -> (bool, u32, String) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `split` is never used [INFO] [stdout] --> src/main.rs:54:4 [INFO] [stdout] | [INFO] [stdout] 54 | fn split(s: String) -> (String, String) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `split_function_signature` is never used [INFO] [stdout] --> src/main.rs:161:4 [INFO] [stdout] | [INFO] [stdout] 161 | fn split_function_signature(signature: &str) -> Option<(String, String, String)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Component` is never constructed [INFO] [stdout] --> src/main.rs:329:8 [INFO] [stdout] | [INFO] [stdout] 329 | struct Component {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `evaluate` is never used [INFO] [stdout] --> src/main.rs:341:4 [INFO] [stdout] | [INFO] [stdout] 341 | fn evaluate(rhs: &ExprDescriptor) -> ExprResult { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Label` is never used [INFO] [stdout] --> src/def.rs:2:6 [INFO] [stdout] | [INFO] [stdout] 2 | type Label = String; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `mutable`, `ownership`, and `indirection` are never read [INFO] [stdout] --> src/def.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Variable { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 6 | pub mutable: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 7 | pub ownership: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 8 | pub indirection: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Variable` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `param` is never read [INFO] [stdout] --> src/def.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Function { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 22 | pub name: String, [INFO] [stdout] 23 | pub param: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Function` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `1` and `2` are never read [INFO] [stdout] --> src/def.rs:33:20 [INFO] [stdout] | [INFO] [stdout] 33 | FieldDecl(u64, String, Variable), [INFO] [stdout] | --------- ^^^^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Inst` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 33 - FieldDecl(u64, String, Variable), [INFO] [stdout] 33 + FieldDecl(u64, (), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `1` is never read [INFO] [stdout] --> src/def.rs:38:21 [INFO] [stdout] | [INFO] [stdout] 38 | ReturnStmt(u64, String), [INFO] [stdout] | ---------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Inst` has a derived impl for the trait `Clone`, but this is 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] 38 - ReturnStmt(u64, String), [INFO] [stdout] 38 + ReturnStmt(u64, ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ExprResult` is never used [INFO] [stdout] --> src/def.rs:50:10 [INFO] [stdout] | [INFO] [stdout] 50 | pub enum ExprResult { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `post_ParmVarDecl` should have a snake case name [INFO] [stdout] --> src/main.rs:61:4 [INFO] [stdout] | [INFO] [stdout] 61 | fn post_ParmVarDecl(state: &mut ExecutionState, map: &serde_json::Map) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `post_parm_var_decl` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `post_FieldDecl` should have a snake case name [INFO] [stdout] --> src/main.rs:84:4 [INFO] [stdout] | [INFO] [stdout] 84 | fn post_FieldDecl(state: &mut ExecutionState, map: &serde_json::Map) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `post_field_decl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `post_DeclRefExpr` should have a snake case name [INFO] [stdout] --> src/main.rs:112:4 [INFO] [stdout] | [INFO] [stdout] 112 | fn post_DeclRefExpr(state: &mut ExecutionState) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `post_decl_ref_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `post_process_CallExpr` should have a snake case name [INFO] [stdout] --> src/main.rs:126:4 [INFO] [stdout] | [INFO] [stdout] 126 | fn post_process_CallExpr(state: &mut ExecutionState, children: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `post_process_call_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `post_FunctionDecl` should have a snake case name [INFO] [stdout] --> src/main.rs:185:4 [INFO] [stdout] | [INFO] [stdout] 185 | fn post_FunctionDecl( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `post_function_decl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `post_BinaryOperator` should have a snake case name [INFO] [stdout] --> src/main.rs:247:4 [INFO] [stdout] | [INFO] [stdout] 247 | fn post_BinaryOperator(state: &mut ExecutionState, children: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `post_binary_operator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `post_VarDecl` should have a snake case name [INFO] [stdout] --> src/main.rs:264:4 [INFO] [stdout] | [INFO] [stdout] 264 | fn post_VarDecl(state: &mut ExecutionState) { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `post_var_decl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `post_CompoundStmt` should have a snake case name [INFO] [stdout] --> src/main.rs:280:4 [INFO] [stdout] | [INFO] [stdout] 280 | fn post_CompoundStmt(state: &mut ExecutionState, inst_cnt: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `post_compound_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `post_IfStmt` should have a snake case name [INFO] [stdout] --> src/main.rs:293:4 [INFO] [stdout] | [INFO] [stdout] 293 | fn post_IfStmt( [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `post_if_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `post_ReturnStmt` should have a snake case name [INFO] [stdout] --> src/main.rs:319:4 [INFO] [stdout] | [INFO] [stdout] 319 | fn post_ReturnStmt(state: &mut ExecutionState) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `post_return_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.32s [INFO] running `Command { std: "docker" "inspect" "a39ab08ff5648d772b43481ca4d6d32a03c7c6b1d9461351652801f7ac820cb4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a39ab08ff5648d772b43481ca4d6d32a03c7c6b1d9461351652801f7ac820cb4", kill_on_drop: false }` [INFO] [stdout] a39ab08ff5648d772b43481ca4d6d32a03c7c6b1d9461351652801f7ac820cb4