[INFO] cloning repository https://github.com/charliethomson/brust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/charliethomson/brust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcharliethomson%2Fbrust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcharliethomson%2Fbrust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c23b9126b31b00ff7ccd367d07164c067f3204c5 [INFO] checking charliethomson/brust against nightly-2024-02-05 for check-cfg-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcharliethomson%2Fbrust" "/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/charliethomson/brust on toolchain nightly-2024-02-05 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly-2024-02-05" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/charliethomson/brust [INFO] finished tweaking git repo https://github.com/charliethomson/brust [INFO] tweaked toml for git repo https://github.com/charliethomson/brust written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/charliethomson/brust 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" "+nightly-2024-02-05" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded blake2b_simd v0.5.11 [INFO] [stderr] Downloaded pico-args v0.4.1 [INFO] [stderr] Downloaded lalrpop-util v0.19.5 [INFO] [stderr] Downloaded rust-argon2 v0.8.3 [INFO] [stderr] Downloaded memchr v2.4.0 [INFO] [stderr] Downloaded lalrpop v0.19.5 [INFO] [stderr] Downloaded libc v0.2.94 [INFO] [stderr] Downloaded crossbeam-utils v0.8.4 [INFO] [stderr] Downloaded redox_users v0.3.5 [INFO] [stderr] Downloaded ascii-canvas v2.0.0 [INFO] [stderr] Downloaded siphasher v0.3.5 [INFO] [stderr] Downloaded dirs v1.0.5 [INFO] [stderr] Downloaded term v0.5.2 [INFO] [stderr] Downloaded arrayref v0.3.6 [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2024-02-05" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 125bf2e254796db171de8b6cb5e57a94c3fb2f45d3a451efc3a6d4c8ec587969 [INFO] running `Command { std: "docker" "start" "-a" "125bf2e254796db171de8b6cb5e57a94c3fb2f45d3a451efc3a6d4c8ec587969", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "125bf2e254796db171de8b6cb5e57a94c3fb2f45d3a451efc3a6d4c8ec587969", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "125bf2e254796db171de8b6cb5e57a94c3fb2f45d3a451efc3a6d4c8ec587969", kill_on_drop: false }` [INFO] [stdout] 125bf2e254796db171de8b6cb5e57a94c3fb2f45d3a451efc3a6d4c8ec587969 [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" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2024-02-05" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a9063a9f2654d4cc677965552df956e7bd90ab1f28d2f1442967c24087f41516 [INFO] running `Command { std: "docker" "start" "-a" "a9063a9f2654d4cc677965552df956e7bd90ab1f28d2f1442967c24087f41516", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling libc v0.2.94 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling siphasher v0.3.5 [INFO] [stderr] Compiling new_debug_unreachable v1.0.4 [INFO] [stderr] Compiling fixedbitset v0.2.0 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling diff v0.1.12 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling pico-args v0.4.1 [INFO] [stderr] Compiling itertools v0.10.0 [INFO] [stderr] Compiling phf_shared v0.8.0 [INFO] [stderr] Compiling bit-set v0.5.2 [INFO] [stderr] Compiling string_cache v0.8.1 [INFO] [stderr] Compiling ena v0.14.0 [INFO] [stderr] Compiling indexmap v1.6.2 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Compiling dirs v1.0.5 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling term v0.5.2 [INFO] [stderr] Compiling petgraph v0.5.1 [INFO] [stderr] Compiling ascii-canvas v2.0.0 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking lalrpop-util v0.19.5 [INFO] [stderr] Compiling lalrpop v0.19.5 [INFO] [stderr] Compiling brust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/main.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::BitAnd` [INFO] [stdout] --> src/ast.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | ops::BitAnd, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Read`, `Stdin`, `StdoutLock`, `Stdout`, `Write` [INFO] [stdout] --> src/interpreter.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | io::{Read, Stdin, Stdout, StdoutLock, Write}, [INFO] [stdout] | ^^^^ ^^^^^ ^^^^^^ ^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/interpreter.rs:53:23 [INFO] [stdout] | [INFO] [stdout] 53 | while (s.contains("{}")) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 53 - while (s.contains("{}")) { [INFO] [stdout] 53 + while s.contains("{}") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/main.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::BitAnd` [INFO] [stdout] --> src/ast.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | ops::BitAnd, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Read`, `Stdin`, `StdoutLock`, `Stdout`, `Write` [INFO] [stdout] --> src/interpreter.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | io::{Read, Stdin, Stdout, StdoutLock, Write}, [INFO] [stdout] | ^^^^ ^^^^^ ^^^^^^ ^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/interpreter.rs:53:23 [INFO] [stdout] | [INFO] [stdout] 53 | while (s.contains("{}")) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 53 - while (s.contains("{}")) { [INFO] [stdout] 53 + while s.contains("{}") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interpreter.rs:46:40 [INFO] [stdout] | [INFO] [stdout] 46 | Some(Const::Vector(mut v)) => v [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: variable does not need to be mutable [INFO] [stdout] --> src/interpreter.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | let mut variables = HashMap::new(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ident` [INFO] [stdout] --> src/interpreter.rs:178:34 [INFO] [stdout] | [INFO] [stdout] 178 | pub fn add_extern(&mut self, ident: &Identifier) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ident` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `switching_on` [INFO] [stdout] --> src/interpreter.rs:490:17 [INFO] [stdout] | [INFO] [stdout] 490 | switching_on, [INFO] [stdout] | ^^^^^^^^^^^^ help: try ignoring the field: `switching_on: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cases` [INFO] [stdout] --> src/interpreter.rs:491:17 [INFO] [stdout] | [INFO] [stdout] 491 | cases, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `cases: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ident` [INFO] [stdout] --> src/interpreter.rs:494:30 [INFO] [stdout] | [INFO] [stdout] 494 | Statement::Label(ident) => unimplemented!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ident` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ident` [INFO] [stdout] --> src/interpreter.rs:495:29 [INFO] [stdout] | [INFO] [stdout] 495 | Statement::Goto(ident) => unimplemented!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ident` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ident` [INFO] [stdout] --> src/interpreter.rs:509:17 [INFO] [stdout] | [INFO] [stdout] 509 | ident, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `ident: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initial_value` [INFO] [stdout] --> src/interpreter.rs:510:17 [INFO] [stdout] | [INFO] [stdout] 510 | initial_value, [INFO] [stdout] | ^^^^^^^^^^^^^ help: try ignoring the field: `initial_value: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interpreter.rs:525:13 [INFO] [stdout] | [INFO] [stdout] 525 | let mut buffer = fs::read_to_string(path).unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interpreter.rs:526:13 [INFO] [stdout] | [INFO] [stdout] 526 | let mut ast = Parser::new().parse(&buffer).unwrap(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `interpret_string` is never used [INFO] [stdout] --> src/main.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn interpret_string(s: String) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `extern_variables` is never read [INFO] [stdout] --> src/interpreter.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct Scope { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 70 | extern_variables: HashMap>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Scope` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `has_var` is never used [INFO] [stdout] --> src/interpreter.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 72 | impl Scope { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 93 | fn has_var(&self, ident: &Identifier) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `buffer` is never read [INFO] [stdout] --> src/interpreter.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 112 | pub struct Interpreter { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 113 | buffer: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Interpreter` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interpreter.rs:46:40 [INFO] [stdout] | [INFO] [stdout] 46 | Some(Const::Vector(mut v)) => v [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: variable does not need to be mutable [INFO] [stdout] --> src/interpreter.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | let mut variables = HashMap::new(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ident` [INFO] [stdout] --> src/interpreter.rs:178:34 [INFO] [stdout] | [INFO] [stdout] 178 | pub fn add_extern(&mut self, ident: &Identifier) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ident` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | stdin().read_line(&mut buffer); [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] 19 | let _ = stdin().read_line(&mut buffer); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | Interpreter::new().interpret(format!("examples/{}.b", buffer.trim())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 22 | let _ = Interpreter::new().interpret(format!("examples/{}.b", buffer.trim())); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Builtin` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn Builtin() -> Self { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `builtin` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Puts` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn Puts() -> Self { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `puts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Format` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn Format() -> Self { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `format` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `switching_on` [INFO] [stdout] --> src/interpreter.rs:490:17 [INFO] [stdout] | [INFO] [stdout] 490 | switching_on, [INFO] [stdout] | ^^^^^^^^^^^^ help: try ignoring the field: `switching_on: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cases` [INFO] [stdout] --> src/interpreter.rs:491:17 [INFO] [stdout] | [INFO] [stdout] 491 | cases, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `cases: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ident` [INFO] [stdout] --> src/interpreter.rs:494:30 [INFO] [stdout] | [INFO] [stdout] 494 | Statement::Label(ident) => unimplemented!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ident` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ident` [INFO] [stdout] --> src/interpreter.rs:495:29 [INFO] [stdout] | [INFO] [stdout] 495 | Statement::Goto(ident) => unimplemented!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ident` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ident` [INFO] [stdout] --> src/interpreter.rs:509:17 [INFO] [stdout] | [INFO] [stdout] 509 | ident, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `ident: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initial_value` [INFO] [stdout] --> src/interpreter.rs:510:17 [INFO] [stdout] | [INFO] [stdout] 510 | initial_value, [INFO] [stdout] | ^^^^^^^^^^^^^ help: try ignoring the field: `initial_value: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interpreter.rs:525:13 [INFO] [stdout] | [INFO] [stdout] 525 | let mut buffer = fs::read_to_string(path).unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interpreter.rs:526:13 [INFO] [stdout] | [INFO] [stdout] 526 | let mut ast = Parser::new().parse(&buffer).unwrap(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `interpret_string` is never used [INFO] [stdout] --> src/main.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn interpret_string(s: String) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `extern_variables` is never read [INFO] [stdout] --> src/interpreter.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct Scope { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 70 | extern_variables: HashMap>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Scope` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `has_var` is never used [INFO] [stdout] --> src/interpreter.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 72 | impl Scope { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 93 | fn has_var(&self, ident: &Identifier) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `buffer` is never read [INFO] [stdout] --> src/interpreter.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 112 | pub struct Interpreter { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 113 | buffer: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Interpreter` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | stdin().read_line(&mut buffer); [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] 19 | let _ = stdin().read_line(&mut buffer); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | Interpreter::new().interpret(format!("examples/{}.b", buffer.trim())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 22 | let _ = Interpreter::new().interpret(format!("examples/{}.b", buffer.trim())); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Builtin` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn Builtin() -> Self { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `builtin` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Puts` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn Puts() -> Self { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `puts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Format` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn Format() -> Self { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `format` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 22.40s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: lalrpop v0.19.5 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "a9063a9f2654d4cc677965552df956e7bd90ab1f28d2f1442967c24087f41516", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a9063a9f2654d4cc677965552df956e7bd90ab1f28d2f1442967c24087f41516", kill_on_drop: false }` [INFO] [stdout] a9063a9f2654d4cc677965552df956e7bd90ab1f28d2f1442967c24087f41516 [INFO] checking charliethomson/brust against nightly-2024-02-05+rustflags=-Dunexpected_cfgs+cargoflags=-Zcheck-cfg for check-cfg-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcharliethomson%2Fbrust" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/charliethomson/brust on toolchain nightly-2024-02-05 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly-2024-02-05" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/charliethomson/brust [INFO] finished tweaking git repo https://github.com/charliethomson/brust [INFO] tweaked toml for git repo https://github.com/charliethomson/brust written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/charliethomson/brust 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" "+nightly-2024-02-05" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2024-02-05" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8cafe40f1a645108f2e365310d41689ce447044bdfb9aa0ae13ad57e3a6a617e [INFO] running `Command { std: "docker" "start" "-a" "8cafe40f1a645108f2e365310d41689ce447044bdfb9aa0ae13ad57e3a6a617e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8cafe40f1a645108f2e365310d41689ce447044bdfb9aa0ae13ad57e3a6a617e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8cafe40f1a645108f2e365310d41689ce447044bdfb9aa0ae13ad57e3a6a617e", kill_on_drop: false }` [INFO] [stdout] 8cafe40f1a645108f2e365310d41689ce447044bdfb9aa0ae13ad57e3a6a617e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -Dunexpected_cfgs" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2024-02-05" "check" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zcheck-cfg", kill_on_drop: false }` [INFO] [stdout] 08d1b15dde65dd7a4eae023f1d06be56b2a30532738142717b6f2704d4ff0591 [INFO] running `Command { std: "docker" "start" "-a" "08d1b15dde65dd7a4eae023f1d06be56b2a30532738142717b6f2704d4ff0591", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling libc v0.2.94 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling siphasher v0.3.5 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling new_debug_unreachable v1.0.4 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling fixedbitset v0.2.0 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling diff v0.1.12 [INFO] [stderr] Compiling pico-args v0.4.1 [INFO] [stderr] Compiling itertools v0.10.0 [INFO] [stderr] Compiling phf_shared v0.8.0 [INFO] [stderr] Compiling bit-set v0.5.2 [INFO] [stderr] Compiling string_cache v0.8.1 [INFO] [stderr] Compiling indexmap v1.6.2 [INFO] [stderr] Compiling ena v0.14.0 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Compiling petgraph v0.5.1 [INFO] [stderr] Compiling dirs v1.0.5 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling term v0.5.2 [INFO] [stderr] Compiling ascii-canvas v2.0.0 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Checking lalrpop-util v0.19.5 [INFO] [stderr] Compiling lalrpop v0.19.5 [INFO] [stderr] Compiling brust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/main.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected `cfg` condition name: `rustfmt` [INFO] [stdout] --> /opt/rustwide/target/debug/build/brust-3fc49db281dbb737/out/grammar.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | #[cfg_attr(rustfmt, rustfmt_skip)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `debug_assertions`, `doc`, `doctest`, `feature`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `unix`, `windows` [INFO] [stdout] = help: consider using a Cargo feature instead or adding `println!("cargo:rustc-check-cfg=cfg(rustfmt)");` to the top of a `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: requested on the command line with `-D unexpected-cfgs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected `cfg` condition name: `rustfmt` [INFO] [stdout] --> /opt/rustwide/target/debug/build/brust-3fc49db281dbb737/out/grammar.rs:3701:12 [INFO] [stdout] | [INFO] [stdout] 3701 | #[cfg_attr(rustfmt, rustfmt_skip)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead or adding `println!("cargo:rustc-check-cfg=cfg(rustfmt)");` to the top of a `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected `cfg` condition name: `rustfmt` [INFO] [stdout] --> /opt/rustwide/target/debug/build/brust-3fc49db281dbb737/out/grammar.rs:7783:12 [INFO] [stdout] | [INFO] [stdout] 7783 | #[cfg_attr(rustfmt, rustfmt_skip)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead or adding `println!("cargo:rustc-check-cfg=cfg(rustfmt)");` to the top of a `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/main.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected `cfg` condition name: `rustfmt` [INFO] [stdout] --> /opt/rustwide/target/debug/build/brust-3fc49db281dbb737/out/grammar.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | #[cfg_attr(rustfmt, rustfmt_skip)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `debug_assertions`, `doc`, `doctest`, `feature`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `unix`, `windows` [INFO] [stdout] = help: consider using a Cargo feature instead or adding `println!("cargo:rustc-check-cfg=cfg(rustfmt)");` to the top of a `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: requested on the command line with `-D unexpected-cfgs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected `cfg` condition name: `rustfmt` [INFO] [stdout] --> /opt/rustwide/target/debug/build/brust-3fc49db281dbb737/out/grammar.rs:3701:12 [INFO] [stdout] | [INFO] [stdout] 3701 | #[cfg_attr(rustfmt, rustfmt_skip)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead or adding `println!("cargo:rustc-check-cfg=cfg(rustfmt)");` to the top of a `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected `cfg` condition name: `rustfmt` [INFO] [stdout] --> /opt/rustwide/target/debug/build/brust-3fc49db281dbb737/out/grammar.rs:7783:12 [INFO] [stdout] | [INFO] [stdout] 7783 | #[cfg_attr(rustfmt, rustfmt_skip)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead or adding `println!("cargo:rustc-check-cfg=cfg(rustfmt)");` to the top of a `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::BitAnd` [INFO] [stdout] --> src/ast.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | ops::BitAnd, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Read`, `Stdin`, `StdoutLock`, `Stdout`, `Write` [INFO] [stdout] --> src/interpreter.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | io::{Read, Stdin, Stdout, StdoutLock, Write}, [INFO] [stdout] | ^^^^ ^^^^^ ^^^^^^ ^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/interpreter.rs:53:23 [INFO] [stdout] | [INFO] [stdout] 53 | while (s.contains("{}")) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 53 - while (s.contains("{}")) { [INFO] [stdout] 53 + while s.contains("{}") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::BitAnd` [INFO] [stdout] --> src/ast.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | ops::BitAnd, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Read`, `Stdin`, `StdoutLock`, `Stdout`, `Write` [INFO] [stdout] --> src/interpreter.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | io::{Read, Stdin, Stdout, StdoutLock, Write}, [INFO] [stdout] | ^^^^ ^^^^^ ^^^^^^ ^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/interpreter.rs:53:23 [INFO] [stdout] | [INFO] [stdout] 53 | while (s.contains("{}")) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 53 - while (s.contains("{}")) { [INFO] [stdout] 53 + while s.contains("{}") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interpreter.rs:46:40 [INFO] [stdout] | [INFO] [stdout] 46 | Some(Const::Vector(mut v)) => v [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: variable does not need to be mutable [INFO] [stdout] --> src/interpreter.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | let mut variables = HashMap::new(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ident` [INFO] [stdout] --> src/interpreter.rs:178:34 [INFO] [stdout] | [INFO] [stdout] 178 | pub fn add_extern(&mut self, ident: &Identifier) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ident` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `switching_on` [INFO] [stdout] --> src/interpreter.rs:490:17 [INFO] [stdout] | [INFO] [stdout] 490 | switching_on, [INFO] [stdout] | ^^^^^^^^^^^^ help: try ignoring the field: `switching_on: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cases` [INFO] [stdout] --> src/interpreter.rs:491:17 [INFO] [stdout] | [INFO] [stdout] 491 | cases, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `cases: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ident` [INFO] [stdout] --> src/interpreter.rs:494:30 [INFO] [stdout] | [INFO] [stdout] 494 | Statement::Label(ident) => unimplemented!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ident` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ident` [INFO] [stdout] --> src/interpreter.rs:495:29 [INFO] [stdout] | [INFO] [stdout] 495 | Statement::Goto(ident) => unimplemented!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ident` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ident` [INFO] [stdout] --> src/interpreter.rs:509:17 [INFO] [stdout] | [INFO] [stdout] 509 | ident, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `ident: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initial_value` [INFO] [stdout] --> src/interpreter.rs:510:17 [INFO] [stdout] | [INFO] [stdout] 510 | initial_value, [INFO] [stdout] | ^^^^^^^^^^^^^ help: try ignoring the field: `initial_value: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interpreter.rs:525:13 [INFO] [stdout] | [INFO] [stdout] 525 | let mut buffer = fs::read_to_string(path).unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interpreter.rs:526:13 [INFO] [stdout] | [INFO] [stdout] 526 | let mut ast = Parser::new().parse(&buffer).unwrap(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `interpret_string` is never used [INFO] [stdout] --> src/main.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn interpret_string(s: String) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `extern_variables` is never read [INFO] [stdout] --> src/interpreter.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct Scope { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 70 | extern_variables: HashMap>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Scope` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `has_var` is never used [INFO] [stdout] --> src/interpreter.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 72 | impl Scope { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 93 | fn has_var(&self, ident: &Identifier) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `buffer` is never read [INFO] [stdout] --> src/interpreter.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 112 | pub struct Interpreter { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 113 | buffer: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Interpreter` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interpreter.rs:46:40 [INFO] [stdout] | [INFO] [stdout] 46 | Some(Const::Vector(mut v)) => v [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: variable does not need to be mutable [INFO] [stdout] --> src/interpreter.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | let mut variables = HashMap::new(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ident` [INFO] [stdout] --> src/interpreter.rs:178:34 [INFO] [stdout] | [INFO] [stdout] 178 | pub fn add_extern(&mut self, ident: &Identifier) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ident` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | stdin().read_line(&mut buffer); [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] 19 | let _ = stdin().read_line(&mut buffer); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | Interpreter::new().interpret(format!("examples/{}.b", buffer.trim())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 22 | let _ = Interpreter::new().interpret(format!("examples/{}.b", buffer.trim())); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `switching_on` [INFO] [stdout] --> src/interpreter.rs:490:17 [INFO] [stdout] | [INFO] [stdout] 490 | switching_on, [INFO] [stdout] | ^^^^^^^^^^^^ help: try ignoring the field: `switching_on: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cases` [INFO] [stdout] --> src/interpreter.rs:491:17 [INFO] [stdout] | [INFO] [stdout] 491 | cases, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `cases: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ident` [INFO] [stdout] --> src/interpreter.rs:494:30 [INFO] [stdout] | [INFO] [stdout] 494 | Statement::Label(ident) => unimplemented!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ident` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ident` [INFO] [stdout] --> src/interpreter.rs:495:29 [INFO] [stdout] | [INFO] [stdout] 495 | Statement::Goto(ident) => unimplemented!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ident` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ident` [INFO] [stdout] --> src/interpreter.rs:509:17 [INFO] [stdout] | [INFO] [stdout] 509 | ident, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `ident: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initial_value` [INFO] [stdout] --> src/interpreter.rs:510:17 [INFO] [stdout] | [INFO] [stdout] 510 | initial_value, [INFO] [stdout] | ^^^^^^^^^^^^^ help: try ignoring the field: `initial_value: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interpreter.rs:525:13 [INFO] [stdout] | [INFO] [stdout] 525 | let mut buffer = fs::read_to_string(path).unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interpreter.rs:526:13 [INFO] [stdout] | [INFO] [stdout] 526 | let mut ast = Parser::new().parse(&buffer).unwrap(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `interpret_string` is never used [INFO] [stdout] --> src/main.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn interpret_string(s: String) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `extern_variables` is never read [INFO] [stdout] --> src/interpreter.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct Scope { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 70 | extern_variables: HashMap>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Scope` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `has_var` is never used [INFO] [stdout] --> src/interpreter.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 72 | impl Scope { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 93 | fn has_var(&self, ident: &Identifier) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `buffer` is never read [INFO] [stdout] --> src/interpreter.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 112 | pub struct Interpreter { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 113 | buffer: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Interpreter` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Builtin` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn Builtin() -> Self { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `builtin` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Puts` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn Puts() -> Self { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `puts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Format` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn Format() -> Self { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `format` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | stdin().read_line(&mut buffer); [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] 19 | let _ = stdin().read_line(&mut buffer); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | Interpreter::new().interpret(format!("examples/{}.b", buffer.trim())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 22 | let _ = Interpreter::new().interpret(format!("examples/{}.b", buffer.trim())); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Builtin` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn Builtin() -> Self { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `builtin` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Puts` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn Puts() -> Self { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `puts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Format` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn Format() -> Self { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `format` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `brust` (bin "brust" test) due to 4 previous errors; 24 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 3 previous errors; 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `brust` (bin "brust") due to 4 previous errors; 24 warnings emitted [INFO] running `Command { std: "docker" "inspect" "08d1b15dde65dd7a4eae023f1d06be56b2a30532738142717b6f2704d4ff0591", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "08d1b15dde65dd7a4eae023f1d06be56b2a30532738142717b6f2704d4ff0591", kill_on_drop: false }` [INFO] [stdout] 08d1b15dde65dd7a4eae023f1d06be56b2a30532738142717b6f2704d4ff0591