[INFO] cloning repository https://github.com/ztoufik/rust_vm [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ztoufik/rust_vm" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fztoufik%2Frust_vm", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fztoufik%2Frust_vm'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ca50bcce28fb0dfcb8695c8ad094b2b235935c85 [INFO] checking ztoufik/rust_vm against master#96cfc75584359ae7ad11cc45968059f29e7b44b7 for pr-137728 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fztoufik%2Frust_vm" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ztoufik/rust_vm on toolchain 96cfc75584359ae7ad11cc45968059f29e7b44b7 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+96cfc75584359ae7ad11cc45968059f29e7b44b7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ztoufik/rust_vm [INFO] finished tweaking git repo https://github.com/ztoufik/rust_vm [INFO] tweaked toml for git repo https://github.com/ztoufik/rust_vm written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ztoufik/rust_vm 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" "+96cfc75584359ae7ad11cc45968059f29e7b44b7" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+96cfc75584359ae7ad11cc45968059f29e7b44b7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3b943b18d2ce82d6b29c7dfce535462fe2ad314b1c2c667b8a96777d0ab1dd01 [INFO] running `Command { std: "docker" "start" "-a" "3b943b18d2ce82d6b29c7dfce535462fe2ad314b1c2c667b8a96777d0ab1dd01", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3b943b18d2ce82d6b29c7dfce535462fe2ad314b1c2c667b8a96777d0ab1dd01", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3b943b18d2ce82d6b29c7dfce535462fe2ad314b1c2c667b8a96777d0ab1dd01", kill_on_drop: false }` [INFO] [stdout] 3b943b18d2ce82d6b29c7dfce535462fe2ad314b1c2c667b8a96777d0ab1dd01 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+96cfc75584359ae7ad11cc45968059f29e7b44b7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 96bc8dad6bf5d9149527540d810c59f3f92a8d8a3054bb376c06cc77ebf2c85b [INFO] running `Command { std: "docker" "start" "-a" "96bc8dad6bf5d9149527540d810c59f3f92a8d8a3054bb376c06cc77ebf2c85b", kill_on_drop: false }` [INFO] [stderr] Checking vm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Cell` [INFO] [stdout] --> src/vm.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::{Cell, RefCell}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Cell` [INFO] [stdout] --> src/vm.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::{Cell, RefCell}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Str`, `Double`, and `Int` are never constructed [INFO] [stdout] --> src/vobj.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Vobj { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 5 | Str(String), [INFO] [stdout] | ^^^ [INFO] [stdout] 6 | Double(f64), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 7 | Int(i64), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Vobj` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_str`, `new_double`, and `new_int` are never used [INFO] [stdout] --> src/vobj.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Vobj { [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] 12 | pub fn new_str(value: &str) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn new_double(value: f64) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn new_int(value: i64) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Const` and `Var` are never constructed [INFO] [stdout] --> src/memloc.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum MemLoc { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 4 | Const(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 5 | Var(String), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MemLoc` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `memloc_const` and `memloc_var` are never used [INFO] [stdout] --> src/memloc.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl MemLoc { [INFO] [stdout] | ----------- associated functions in this implementation [INFO] [stdout] 9 | pub fn memloc_const(value:String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn memloc_var(value:String) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `LoadVV`, `LoadCV`, `LoadWV`, and `LoadW` are never constructed [INFO] [stdout] --> src/instruction.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum Instruction<'a> { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 6 | LoadVV { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | LoadCV { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | LoadWV { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | LoadW { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Instruction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `loadVV_instruction`, `loadCV_instruction`, `loadWV_instruction`, and `loadW_instruction` are never used [INFO] [stdout] --> src/instruction.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl<'a> Instruction<'a> { [INFO] [stdout] | ------------------------ associated functions in this implementation [INFO] [stdout] 34 | [INFO] [stdout] 35 | pub fn loadVV_instruction(operand1: MemLoc, operand2: MemLoc, src: Source<'a>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn loadCV_instruction(operand1: MemLoc, operand2: MemLoc, src: Source<'a>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn loadWV_instruction(operand1: MemLoc, src: Source<'a>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn loadW_instruction(operand1: MemLoc, src: Source<'a>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/err.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 8 | impl<'a> Source<'a>{ [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 9 | pub fn new(source_file:&'a str,line_number:u32)->Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vm` is never constructed [INFO] [stdout] --> src/vm.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Vm<'a> { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `load`, `run`, `execute_load_w`, `execute_load_wv`, and `search_ident` are never used [INFO] [stdout] --> src/vm.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl<'a> Vm<'a> { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 18 | pub fn load(consts: HashMap<&'a str, Rc>, code: Vec>) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn run(&'a self) -> Result<(), String> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | fn execute_load_w(&self, operand1: &MemLoc) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | fn execute_load_wv(&self, operand1: &'a MemLoc) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | fn search_ident(&self, mem_loc: &MemLoc) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `loadVV_instruction` should have a snake case name [INFO] [stdout] --> src/instruction.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn loadVV_instruction(operand1: MemLoc, operand2: MemLoc, src: Source<'a>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `load_vv_instruction` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `loadCV_instruction` should have a snake case name [INFO] [stdout] --> src/instruction.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn loadCV_instruction(operand1: MemLoc, operand2: MemLoc, src: Source<'a>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `load_cv_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `loadWV_instruction` should have a snake case name [INFO] [stdout] --> src/instruction.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn loadWV_instruction(operand1: MemLoc, src: Source<'a>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `load_wv_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `loadW_instruction` should have a snake case name [INFO] [stdout] --> src/instruction.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn loadW_instruction(operand1: MemLoc, src: Source<'a>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `load_w_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `LoadVV` and `LoadCV` are never constructed [INFO] [stdout] --> src/instruction.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum Instruction<'a> { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 6 | LoadVV { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | LoadCV { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Instruction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `loadVV_instruction` and `loadCV_instruction` are never used [INFO] [stdout] --> src/instruction.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl<'a> Instruction<'a> { [INFO] [stdout] | ------------------------ associated functions in this implementation [INFO] [stdout] 34 | [INFO] [stdout] 35 | pub fn loadVV_instruction(operand1: MemLoc, operand2: MemLoc, src: Source<'a>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn loadCV_instruction(operand1: MemLoc, operand2: MemLoc, src: Source<'a>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `loadVV_instruction` should have a snake case name [INFO] [stdout] --> src/instruction.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn loadVV_instruction(operand1: MemLoc, operand2: MemLoc, src: Source<'a>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `load_vv_instruction` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `loadCV_instruction` should have a snake case name [INFO] [stdout] --> src/instruction.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn loadCV_instruction(operand1: MemLoc, operand2: MemLoc, src: Source<'a>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `load_cv_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `loadWV_instruction` should have a snake case name [INFO] [stdout] --> src/instruction.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn loadWV_instruction(operand1: MemLoc, src: Source<'a>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `load_wv_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `loadW_instruction` should have a snake case name [INFO] [stdout] --> src/instruction.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn loadW_instruction(operand1: MemLoc, src: Source<'a>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `load_w_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/vm.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | vm.run(); [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] 107 | let _ = vm.run(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/vm.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | vm.run(); [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] 122 | let _ = vm.run(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.13s [INFO] running `Command { std: "docker" "inspect" "96bc8dad6bf5d9149527540d810c59f3f92a8d8a3054bb376c06cc77ebf2c85b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "96bc8dad6bf5d9149527540d810c59f3f92a8d8a3054bb376c06cc77ebf2c85b", kill_on_drop: false }` [INFO] [stdout] 96bc8dad6bf5d9149527540d810c59f3f92a8d8a3054bb376c06cc77ebf2c85b