[INFO] cloning repository https://github.com/FrewtyPebbles/Bytecode-Interpreter-and-Compiler [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/FrewtyPebbles/Bytecode-Interpreter-and-Compiler" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFrewtyPebbles%2FBytecode-Interpreter-and-Compiler", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFrewtyPebbles%2FBytecode-Interpreter-and-Compiler'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 09d5b8fd5ae90f2c5d5e23c75c3ab9bc4dd15887 [INFO] building FrewtyPebbles/Bytecode-Interpreter-and-Compiler 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%2FFrewtyPebbles%2FBytecode-Interpreter-and-Compiler" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/FrewtyPebbles/Bytecode-Interpreter-and-Compiler 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/FrewtyPebbles/Bytecode-Interpreter-and-Compiler [INFO] finished tweaking git repo https://github.com/FrewtyPebbles/Bytecode-Interpreter-and-Compiler [INFO] tweaked toml for git repo https://github.com/FrewtyPebbles/Bytecode-Interpreter-and-Compiler written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/FrewtyPebbles/Bytecode-Interpreter-and-Compiler already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 2061f0ef9b18b9369be503fb2fe604d31d4e289bbb015362f82d0ac7e6dfa08f [INFO] running `Command { std: "docker" "start" "-a" "2061f0ef9b18b9369be503fb2fe604d31d4e289bbb015362f82d0ac7e6dfa08f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2061f0ef9b18b9369be503fb2fe604d31d4e289bbb015362f82d0ac7e6dfa08f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2061f0ef9b18b9369be503fb2fe604d31d4e289bbb015362f82d0ac7e6dfa08f", kill_on_drop: false }` [INFO] [stdout] 2061f0ef9b18b9369be503fb2fe604d31d4e289bbb015362f82d0ac7e6dfa08f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] e11f6ee02348107bfe04b9daf6c6fa6164312de5539aaf356aa7990054de7884 [INFO] running `Command { std: "docker" "start" "-a" "e11f6ee02348107bfe04b9daf6c6fa6164312de5539aaf356aa7990054de7884", kill_on_drop: false }` [INFO] [stderr] Compiling interpreted_language v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `IndexMut` and `Index` [INFO] [stdout] --> src/vm/vm.rs:1:60 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, io::stdin, ops::{Add, Div, Index, IndexMut, Mul, Rem, Sub}}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/vm/vm.rs:650:33 [INFO] [stdout] | [INFO] [stdout] 650 | print!("{}", if (msg){ "true" } else { "false" }); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 650 - print!("{}", if (msg){ "true" } else { "false" }); [INFO] [stdout] 650 + print!("{}", if msg { "true" } else { "false" }); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Weak` and `ops::Index` [INFO] [stdout] --> src/vm/bytecodes.rs:1:59 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, collections::{HashMap, HashSet}, ops::Index, rc::{Rc, Weak}}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `bytecodes::BytecodeBuilder` and `vm::Executor` [INFO] [stdout] --> src/main.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | use vm::{vm::Executor, bytecodes::BytecodeBuilder}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l0` [INFO] [stdout] --> src/vm/vm.rs:121:24 [INFO] [stdout] | [INFO] [stdout] 121 | (Self::Str(l0), Self::Int(r0)) => todo!(), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_l0` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r0` [INFO] [stdout] --> src/vm/vm.rs:121:39 [INFO] [stdout] | [INFO] [stdout] 121 | (Self::Str(l0), Self::Int(r0)) => todo!(), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l0` [INFO] [stdout] --> src/vm/vm.rs:122:24 [INFO] [stdout] | [INFO] [stdout] 122 | (Self::Int(l0), Self::Str(r0)) => todo!(), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_l0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r0` [INFO] [stdout] --> src/vm/vm.rs:122:39 [INFO] [stdout] | [INFO] [stdout] 122 | (Self::Int(l0), Self::Str(r0)) => todo!(), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l0` [INFO] [stdout] --> src/vm/vm.rs:124:24 [INFO] [stdout] | [INFO] [stdout] 124 | (Self::Str(l0), Self::Float(r0)) => todo!(), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_l0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r0` [INFO] [stdout] --> src/vm/vm.rs:124:41 [INFO] [stdout] | [INFO] [stdout] 124 | (Self::Str(l0), Self::Float(r0)) => todo!(), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l0` [INFO] [stdout] --> src/vm/vm.rs:125:26 [INFO] [stdout] | [INFO] [stdout] 125 | (Self::Float(l0), Self::Str(r0)) => todo!(), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_l0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r0` [INFO] [stdout] --> src/vm/vm.rs:125:41 [INFO] [stdout] | [INFO] [stdout] 125 | (Self::Float(l0), Self::Str(r0)) => todo!(), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/vm/vm.rs:473:35 [INFO] [stdout] | [INFO] [stdout] 473 | fn prerender_block(&mut self, mut bytecode:&mut ByteCursor) { [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: value assigned to `formatting` is never read [INFO] [stdout] --> src/vm/vm.rs:764:21 [INFO] [stdout] | [INFO] [stdout] 764 | formatting = false; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/vm/bytecodes.rs:390:13 [INFO] [stdout] | [INFO] [stdout] 390 | let mut tf = if _bool {ByteType::Num(1)} else {ByteType::Num(0)}; [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/lexer/asm.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 97 | let mut src = self.src.clone(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `IDManager` is more private than the item `ByteCode::new` [INFO] [stdout] --> src/vm/bytecodes.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn new(id_manager:Rc>) -> ByteCode { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ associated function `ByteCode::new` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `IDManager` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/vm/bytecodes.rs:158:1 [INFO] [stdout] | [INFO] [stdout] 158 | struct IDManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `at`, `set`, `prev`, and `current` are never used [INFO] [stdout] --> src/vm/vm.rs:337:8 [INFO] [stdout] | [INFO] [stdout] 315 | impl ByteCursor { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 337 | fn at(&mut self, index: usize) -> ByteType { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 343 | fn set(&mut self, index: usize, item:u32) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 348 | fn prev(&mut self) -> ByteType { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 357 | fn current(&self) -> ByteType { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OPEN` is never used [INFO] [stdout] --> src/vm/bytecodes.rs:36:11 [INFO] [stdout] | [INFO] [stdout] 36 | pub const OPEN:u32 = 0x28; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CLOSE` is never used [INFO] [stdout] --> src/vm/bytecodes.rs:38:11 [INFO] [stdout] | [INFO] [stdout] 38 | pub const CLOSE:u32 = 0x29; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `READ` is never used [INFO] [stdout] --> src/vm/bytecodes.rs:40:11 [INFO] [stdout] | [INFO] [stdout] 40 | pub const READ:u32 = 0x2A; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LIST` is never used [INFO] [stdout] --> src/vm/bytecodes.rs:42:11 [INFO] [stdout] | [INFO] [stdout] 42 | pub const LIST:u32 = 0x2B; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INDEX` is never used [INFO] [stdout] --> src/vm/bytecodes.rs:44:11 [INFO] [stdout] | [INFO] [stdout] 44 | pub const INDEX:u32 = 0x2C; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `STORE_INDEX` is never used [INFO] [stdout] --> src/vm/bytecodes.rs:46:11 [INFO] [stdout] | [INFO] [stdout] 46 | pub const STORE_INDEX:u32 = 0x2D; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PUSH` is never used [INFO] [stdout] --> src/vm/bytecodes.rs:48:11 [INFO] [stdout] | [INFO] [stdout] 48 | pub const PUSH:u32 = 0x2E; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POP` is never used [INFO] [stdout] --> src/vm/bytecodes.rs:50:11 [INFO] [stdout] | [INFO] [stdout] 50 | pub const POP:u32 = 0x2F; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WRITE` is never used [INFO] [stdout] --> src/vm/bytecodes.rs:52:11 [INFO] [stdout] | [INFO] [stdout] 52 | pub const WRITE:u32 = 0x30; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_id` and `remove_id` are never used [INFO] [stdout] --> src/vm/bytecodes.rs:180:8 [INFO] [stdout] | [INFO] [stdout] 163 | impl IDManager { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 180 | fn add_id(&mut self, id:u32) -> Result<(), String> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | fn remove_id(&mut self, id:u32) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/vm/bytecodes.rs:277:12 [INFO] [stdout] | [INFO] [stdout] 204 | impl BytecodeBuilder { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 277 | pub fn write_store(&mut self, id:u32, value:u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 283 | pub fn write_del(&mut self, id:u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 350 | pub fn write_begin_scope(&mut self) -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 354 | pub fn write_end_scope(&mut self) -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 396 | pub fn write_cast_num(&mut self, id:u32, _cid:Option) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 403 | pub fn write_cast_str(&mut self, id:u32, _cid:Option) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | pub fn write_fmt(&mut self, string:u32, items:Vec, _cid:Option) -> u32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 424 | pub fn write_fmt_num(&mut self, num:u32, precision:u32, _cid:Option) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 435 | pub fn write_stdin(&mut self, _cid:Option) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/vm/vm.rs:497:9 [INFO] [stdout] | [INFO] [stdout] 497 | self.stack.remove(id); [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] 497 | let _ = self.stack.remove(id); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/vm/bytecodes.rs:285:9 [INFO] [stdout] | [INFO] [stdout] 285 | RefCell::borrow_mut(&self.id_manager).remove_id(id); [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] 285 | let _ = RefCell::borrow_mut(&self.id_manager).remove_id(id); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.40s [INFO] running `Command { std: "docker" "inspect" "e11f6ee02348107bfe04b9daf6c6fa6164312de5539aaf356aa7990054de7884", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e11f6ee02348107bfe04b9daf6c6fa6164312de5539aaf356aa7990054de7884", kill_on_drop: false }` [INFO] [stdout] e11f6ee02348107bfe04b9daf6c6fa6164312de5539aaf356aa7990054de7884 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] a72f643a79bc8172d0c2104095e133a8fce2ae64783ccf6e8e2b8919b81ca556 [INFO] running `Command { std: "docker" "start" "-a" "a72f643a79bc8172d0c2104095e133a8fce2ae64783ccf6e8e2b8919b81ca556", kill_on_drop: false }` [INFO] [stderr] Compiling interpreted_language v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `IndexMut` and `Index` [INFO] [stdout] --> src/vm/vm.rs:1:60 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, io::stdin, ops::{Add, Div, Index, IndexMut, Mul, Rem, Sub}}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/vm/vm.rs:650:33 [INFO] [stdout] | [INFO] [stdout] 650 | print!("{}", if (msg){ "true" } else { "false" }); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 650 - print!("{}", if (msg){ "true" } else { "false" }); [INFO] [stdout] 650 + print!("{}", if msg { "true" } else { "false" }); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Weak` and `ops::Index` [INFO] [stdout] --> src/vm/bytecodes.rs:1:59 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, collections::{HashMap, HashSet}, ops::Index, rc::{Rc, Weak}}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `bytecodes::BytecodeBuilder` and `vm::Executor` [INFO] [stdout] --> src/main.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | use vm::{vm::Executor, bytecodes::BytecodeBuilder}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l0` [INFO] [stdout] --> src/vm/vm.rs:121:24 [INFO] [stdout] | [INFO] [stdout] 121 | (Self::Str(l0), Self::Int(r0)) => todo!(), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_l0` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r0` [INFO] [stdout] --> src/vm/vm.rs:121:39 [INFO] [stdout] | [INFO] [stdout] 121 | (Self::Str(l0), Self::Int(r0)) => todo!(), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l0` [INFO] [stdout] --> src/vm/vm.rs:122:24 [INFO] [stdout] | [INFO] [stdout] 122 | (Self::Int(l0), Self::Str(r0)) => todo!(), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_l0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r0` [INFO] [stdout] --> src/vm/vm.rs:122:39 [INFO] [stdout] | [INFO] [stdout] 122 | (Self::Int(l0), Self::Str(r0)) => todo!(), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l0` [INFO] [stdout] --> src/vm/vm.rs:124:24 [INFO] [stdout] | [INFO] [stdout] 124 | (Self::Str(l0), Self::Float(r0)) => todo!(), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_l0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r0` [INFO] [stdout] --> src/vm/vm.rs:124:41 [INFO] [stdout] | [INFO] [stdout] 124 | (Self::Str(l0), Self::Float(r0)) => todo!(), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l0` [INFO] [stdout] --> src/vm/vm.rs:125:26 [INFO] [stdout] | [INFO] [stdout] 125 | (Self::Float(l0), Self::Str(r0)) => todo!(), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_l0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r0` [INFO] [stdout] --> src/vm/vm.rs:125:41 [INFO] [stdout] | [INFO] [stdout] 125 | (Self::Float(l0), Self::Str(r0)) => todo!(), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/vm/vm.rs:473:35 [INFO] [stdout] | [INFO] [stdout] 473 | fn prerender_block(&mut self, mut bytecode:&mut ByteCursor) { [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: value assigned to `formatting` is never read [INFO] [stdout] --> src/vm/vm.rs:764:21 [INFO] [stdout] | [INFO] [stdout] 764 | formatting = false; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/vm/bytecodes.rs:390:13 [INFO] [stdout] | [INFO] [stdout] 390 | let mut tf = if _bool {ByteType::Num(1)} else {ByteType::Num(0)}; [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/lexer/asm.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 97 | let mut src = self.src.clone(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `IDManager` is more private than the item `ByteCode::new` [INFO] [stdout] --> src/vm/bytecodes.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn new(id_manager:Rc>) -> ByteCode { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ associated function `ByteCode::new` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `IDManager` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/vm/bytecodes.rs:158:1 [INFO] [stdout] | [INFO] [stdout] 158 | struct IDManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `at`, `set`, `prev`, and `current` are never used [INFO] [stdout] --> src/vm/vm.rs:337:8 [INFO] [stdout] | [INFO] [stdout] 315 | impl ByteCursor { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 337 | fn at(&mut self, index: usize) -> ByteType { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 343 | fn set(&mut self, index: usize, item:u32) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 348 | fn prev(&mut self) -> ByteType { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 357 | fn current(&self) -> ByteType { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OPEN` is never used [INFO] [stdout] --> src/vm/bytecodes.rs:36:11 [INFO] [stdout] | [INFO] [stdout] 36 | pub const OPEN:u32 = 0x28; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CLOSE` is never used [INFO] [stdout] --> src/vm/bytecodes.rs:38:11 [INFO] [stdout] | [INFO] [stdout] 38 | pub const CLOSE:u32 = 0x29; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `READ` is never used [INFO] [stdout] --> src/vm/bytecodes.rs:40:11 [INFO] [stdout] | [INFO] [stdout] 40 | pub const READ:u32 = 0x2A; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LIST` is never used [INFO] [stdout] --> src/vm/bytecodes.rs:42:11 [INFO] [stdout] | [INFO] [stdout] 42 | pub const LIST:u32 = 0x2B; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INDEX` is never used [INFO] [stdout] --> src/vm/bytecodes.rs:44:11 [INFO] [stdout] | [INFO] [stdout] 44 | pub const INDEX:u32 = 0x2C; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `STORE_INDEX` is never used [INFO] [stdout] --> src/vm/bytecodes.rs:46:11 [INFO] [stdout] | [INFO] [stdout] 46 | pub const STORE_INDEX:u32 = 0x2D; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PUSH` is never used [INFO] [stdout] --> src/vm/bytecodes.rs:48:11 [INFO] [stdout] | [INFO] [stdout] 48 | pub const PUSH:u32 = 0x2E; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POP` is never used [INFO] [stdout] --> src/vm/bytecodes.rs:50:11 [INFO] [stdout] | [INFO] [stdout] 50 | pub const POP:u32 = 0x2F; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WRITE` is never used [INFO] [stdout] --> src/vm/bytecodes.rs:52:11 [INFO] [stdout] | [INFO] [stdout] 52 | pub const WRITE:u32 = 0x30; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_id` and `remove_id` are never used [INFO] [stdout] --> src/vm/bytecodes.rs:180:8 [INFO] [stdout] | [INFO] [stdout] 163 | impl IDManager { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 180 | fn add_id(&mut self, id:u32) -> Result<(), String> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | fn remove_id(&mut self, id:u32) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/vm/bytecodes.rs:277:12 [INFO] [stdout] | [INFO] [stdout] 204 | impl BytecodeBuilder { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 277 | pub fn write_store(&mut self, id:u32, value:u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 283 | pub fn write_del(&mut self, id:u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 350 | pub fn write_begin_scope(&mut self) -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 354 | pub fn write_end_scope(&mut self) -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 396 | pub fn write_cast_num(&mut self, id:u32, _cid:Option) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 403 | pub fn write_cast_str(&mut self, id:u32, _cid:Option) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | pub fn write_fmt(&mut self, string:u32, items:Vec, _cid:Option) -> u32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 424 | pub fn write_fmt_num(&mut self, num:u32, precision:u32, _cid:Option) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 435 | pub fn write_stdin(&mut self, _cid:Option) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/vm/vm.rs:497:9 [INFO] [stdout] | [INFO] [stdout] 497 | self.stack.remove(id); [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] 497 | let _ = self.stack.remove(id); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/vm/bytecodes.rs:285:9 [INFO] [stdout] | [INFO] [stdout] 285 | RefCell::borrow_mut(&self.id_manager).remove_id(id); [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] 285 | let _ = RefCell::borrow_mut(&self.id_manager).remove_id(id); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.52s [INFO] running `Command { std: "docker" "inspect" "a72f643a79bc8172d0c2104095e133a8fce2ae64783ccf6e8e2b8919b81ca556", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a72f643a79bc8172d0c2104095e133a8fce2ae64783ccf6e8e2b8919b81ca556", kill_on_drop: false }` [INFO] [stdout] a72f643a79bc8172d0c2104095e133a8fce2ae64783ccf6e8e2b8919b81ca556