[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] building charliethomson/brust against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcharliethomson%2Fbrust" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/charliethomson/brust on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/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-6-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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded lalrpop-util v0.19.5 [INFO] [stderr] Downloaded lalrpop v0.19.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c0aabf10ed752e6960f4718fd9f63c96e5694edef81138c5ca2d21c2f09d4e54 [INFO] running `Command { std: "docker" "start" "-a" "c0aabf10ed752e6960f4718fd9f63c96e5694edef81138c5ca2d21c2f09d4e54", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c0aabf10ed752e6960f4718fd9f63c96e5694edef81138c5ca2d21c2f09d4e54", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c0aabf10ed752e6960f4718fd9f63c96e5694edef81138c5ca2d21c2f09d4e54", kill_on_drop: false }` [INFO] [stdout] c0aabf10ed752e6960f4718fd9f63c96e5694edef81138c5ca2d21c2f09d4e54 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9a2079719a7fed95bdbb7af09bb315c936bea3b59f73870af532d6c5c8bc3a91 [INFO] running `Command { std: "docker" "start" "-a" "9a2079719a7fed95bdbb7af09bb315c936bea3b59f73870af532d6c5c8bc3a91", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.94 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling siphasher v0.3.5 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling fixedbitset v0.2.0 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling indexmap v1.6.2 [INFO] [stderr] Compiling new_debug_unreachable v1.0.4 [INFO] [stderr] Compiling pico-args v0.4.1 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling diff v0.1.12 [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 aho-corasick v0.7.18 [INFO] [stderr] Compiling dirs v1.0.5 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling petgraph v0.5.1 [INFO] [stderr] Compiling term v0.5.2 [INFO] [stderr] Compiling ascii-canvas v2.0.0 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling 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`, and `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: 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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.75s [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" "9a2079719a7fed95bdbb7af09bb315c936bea3b59f73870af532d6c5c8bc3a91", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9a2079719a7fed95bdbb7af09bb315c936bea3b59f73870af532d6c5c8bc3a91", kill_on_drop: false }` [INFO] [stdout] 9a2079719a7fed95bdbb7af09bb315c936bea3b59f73870af532d6c5c8bc3a91 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 06d76c1ec0c20e6ff1ff7a41e50660bcb8c9c582faacb9d8f09cb657d7c55332 [INFO] running `Command { std: "docker" "start" "-a" "06d76c1ec0c20e6ff1ff7a41e50660bcb8c9c582faacb9d8f09cb657d7c55332", kill_on_drop: false }` [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`, and `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: 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] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.52s [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" "06d76c1ec0c20e6ff1ff7a41e50660bcb8c9c582faacb9d8f09cb657d7c55332", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "06d76c1ec0c20e6ff1ff7a41e50660bcb8c9c582faacb9d8f09cb657d7c55332", kill_on_drop: false }` [INFO] [stdout] 06d76c1ec0c20e6ff1ff7a41e50660bcb8c9c582faacb9d8f09cb657d7c55332