[INFO] cloning repository https://github.com/harukasu4523/vm_translator [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/harukasu4523/vm_translator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fharukasu4523%2Fvm_translator", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fharukasu4523%2Fvm_translator'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b37779d5c44066475b0e876b87497d0a021fbea3 [INFO] checking harukasu4523/vm_translator against master#b286722878e18db29a7fbe672be7c4d3b02e8e4d for pr-127655 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fharukasu4523%2Fvm_translator" "/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/harukasu4523/vm_translator on toolchain b286722878e18db29a7fbe672be7c4d3b02e8e4d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b286722878e18db29a7fbe672be7c4d3b02e8e4d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/harukasu4523/vm_translator [INFO] finished tweaking git repo https://github.com/harukasu4523/vm_translator [INFO] tweaked toml for git repo https://github.com/harukasu4523/vm_translator written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/harukasu4523/vm_translator 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" "+b286722878e18db29a7fbe672be7c4d3b02e8e4d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking harukasu4523/vm_translator against try#6a5749073f2ebf59d7740d30e50a932a85756ee7 for pr-127655 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fharukasu4523%2Fvm_translator" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/harukasu4523/vm_translator on toolchain 6a5749073f2ebf59d7740d30e50a932a85756ee7 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+6a5749073f2ebf59d7740d30e50a932a85756ee7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/harukasu4523/vm_translator [INFO] finished tweaking git repo https://github.com/harukasu4523/vm_translator [INFO] tweaked toml for git repo https://github.com/harukasu4523/vm_translator written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/harukasu4523/vm_translator 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" "+6a5749073f2ebf59d7740d30e50a932a85756ee7" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking harukasu4523/vm_translator against try#6a5749073f2ebf59d7740d30e50a932a85756ee7 for pr-127655 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fharukasu4523%2Fvm_translator" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/harukasu4523/vm_translator on toolchain 6a5749073f2ebf59d7740d30e50a932a85756ee7 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+6a5749073f2ebf59d7740d30e50a932a85756ee7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/harukasu4523/vm_translator [INFO] finished tweaking git repo https://github.com/harukasu4523/vm_translator [INFO] tweaked toml for git repo https://github.com/harukasu4523/vm_translator written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/harukasu4523/vm_translator 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" "+6a5749073f2ebf59d7740d30e50a932a85756ee7" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+6a5749073f2ebf59d7740d30e50a932a85756ee7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b025531afc54ae28669a93507020d69f4aad687f02f221fef9420dedc6d61735 [INFO] running `Command { std: "docker" "start" "-a" "b025531afc54ae28669a93507020d69f4aad687f02f221fef9420dedc6d61735", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b025531afc54ae28669a93507020d69f4aad687f02f221fef9420dedc6d61735", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b025531afc54ae28669a93507020d69f4aad687f02f221fef9420dedc6d61735", kill_on_drop: false }` [INFO] [stdout] b025531afc54ae28669a93507020d69f4aad687f02f221fef9420dedc6d61735 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+6a5749073f2ebf59d7740d30e50a932a85756ee7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6087cdbbd0a12701c8999f21bf60205e869231f25de68dbfc83bb41a61a32f49 [INFO] running `Command { std: "docker" "start" "-a" "6087cdbbd0a12701c8999f21bf60205e869231f25de68dbfc83bb41a61a32f49", kill_on_drop: false }` [INFO] [stderr] Checking vm_translator v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0412]: cannot find type `CommandType` in this scope [INFO] [stdout] --> src/parser/mod.rs:10:18 [INFO] [stdout] | [INFO] [stdout] 10 | let commands:Vec = lines.iter().map(|l| parse_command(&l)).collect(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 8 + use crate::CommandType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `lines` in this scope [INFO] [stdout] --> src/parser/mod.rs:10:33 [INFO] [stdout] | [INFO] [stdout] 10 | let commands:Vec = lines.iter().map(|l| parse_command(&l)).collect(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CommandType` [INFO] [stdout] --> src/parser/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | CommandType::COMMENT(_) => continue, [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `CommandType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 8 + use crate::CommandType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CommandType` [INFO] [stdout] --> src/parser/mod.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | CommandType::ARITHEMETIC(cmd) => println!("{}",cmd), [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `CommandType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 8 + use crate::CommandType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CommandType` [INFO] [stdout] --> src/parser/mod.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | CommandType::POP(segment, num) => segment_sec(segment, num) , //println!("segment:{} num{}",segment, num) [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `CommandType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 8 + use crate::CommandType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CommandType` [INFO] [stdout] --> src/parser/mod.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | CommandType::PUSH(segment, num) => println!("segment:{} num{}",segment, num) [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `CommandType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 8 + use crate::CommandType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CommandType` in this scope [INFO] [stdout] --> src/parser/mod.rs:24:31 [INFO] [stdout] | [INFO] [stdout] 24 | fn parse_command(line: &str)->CommandType{ [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 8 + use crate::CommandType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CommandType` [INFO] [stdout] --> src/parser/mod.rs:27:16 [INFO] [stdout] | [INFO] [stdout] 27 | return CommandType::COMMENT("empty") [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `CommandType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 8 + use crate::CommandType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CommandType` [INFO] [stdout] --> src/parser/mod.rs:30:19 [INFO] [stdout] | [INFO] [stdout] 30 | "push" => CommandType::PUSH(elements[1], elements[2]), [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `CommandType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 8 + use crate::CommandType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CommandType` [INFO] [stdout] --> src/parser/mod.rs:31:18 [INFO] [stdout] | [INFO] [stdout] 31 | "pop" => CommandType::POP(elements[1], elements[2]), [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `CommandType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 8 + use crate::CommandType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CommandType` [INFO] [stdout] --> src/parser/mod.rs:32:18 [INFO] [stdout] | [INFO] [stdout] 32 | "add" => CommandType::ARITHEMETIC(elements[0]), [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `CommandType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 8 + use crate::CommandType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CommandType` [INFO] [stdout] --> src/parser/mod.rs:33:18 [INFO] [stdout] | [INFO] [stdout] 33 | "sub" => CommandType::ARITHEMETIC(elements[0]), [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `CommandType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 8 + use crate::CommandType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CommandType` [INFO] [stdout] --> src/parser/mod.rs:34:18 [INFO] [stdout] | [INFO] [stdout] 34 | "neg" => CommandType::ARITHEMETIC(elements[0]), [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `CommandType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 8 + use crate::CommandType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CommandType` [INFO] [stdout] --> src/parser/mod.rs:35:17 [INFO] [stdout] | [INFO] [stdout] 35 | "eq" => CommandType::ARITHEMETIC(elements[0]), [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `CommandType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 8 + use crate::CommandType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CommandType` [INFO] [stdout] --> src/parser/mod.rs:36:17 [INFO] [stdout] | [INFO] [stdout] 36 | "gt" => CommandType::ARITHEMETIC(elements[0]), [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `CommandType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 8 + use crate::CommandType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CommandType` [INFO] [stdout] --> src/parser/mod.rs:37:17 [INFO] [stdout] | [INFO] [stdout] 37 | "lt" => CommandType::ARITHEMETIC(elements[0]), [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `CommandType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 8 + use crate::CommandType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CommandType` [INFO] [stdout] --> src/parser/mod.rs:38:18 [INFO] [stdout] | [INFO] [stdout] 38 | "and" => CommandType::ARITHEMETIC(elements[0]), [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `CommandType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 8 + use crate::CommandType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CommandType` [INFO] [stdout] --> src/parser/mod.rs:39:17 [INFO] [stdout] | [INFO] [stdout] 39 | "or" => CommandType::ARITHEMETIC(elements[0]), [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `CommandType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 8 + use crate::CommandType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CommandType` [INFO] [stdout] --> src/parser/mod.rs:40:18 [INFO] [stdout] | [INFO] [stdout] 40 | "not" => CommandType::ARITHEMETIC(elements[0]), [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `CommandType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 8 + use crate::CommandType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process` [INFO] [stdout] --> src/parser/mod.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | process::exit(1); [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `process` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these modules [INFO] [stdout] | [INFO] [stdout] 8 + use crate::process; [INFO] [stdout] | [INFO] [stdout] 8 + use std::process; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::parser::*` [INFO] [stdout] --> src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::parser::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CommandType` in this scope [INFO] [stdout] --> src/parser/mod.rs:10:18 [INFO] [stdout] | [INFO] [stdout] 10 | let commands:Vec = lines.iter().map(|l| parse_command(&l)).collect(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 8 + use crate::CommandType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `lines` in this scope [INFO] [stdout] --> src/parser/mod.rs:10:33 [INFO] [stdout] | [INFO] [stdout] 10 | let commands:Vec = lines.iter().map(|l| parse_command(&l)).collect(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CommandType` [INFO] [stdout] --> src/parser/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | CommandType::COMMENT(_) => continue, [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `CommandType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 8 + use crate::CommandType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CommandType` [INFO] [stdout] --> src/parser/mod.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | CommandType::ARITHEMETIC(cmd) => println!("{}",cmd), [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `CommandType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 8 + use crate::CommandType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CommandType` [INFO] [stdout] --> src/parser/mod.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | CommandType::POP(segment, num) => segment_sec(segment, num) , //println!("segment:{} num{}",segment, num) [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `CommandType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 8 + use crate::CommandType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CommandType` [INFO] [stdout] --> src/parser/mod.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | CommandType::PUSH(segment, num) => println!("segment:{} num{}",segment, num) [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `CommandType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 8 + use crate::CommandType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CommandType` in this scope [INFO] [stdout] --> src/parser/mod.rs:24:31 [INFO] [stdout] | [INFO] [stdout] 24 | fn parse_command(line: &str)->CommandType{ [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 8 + use crate::CommandType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CommandType` [INFO] [stdout] --> src/parser/mod.rs:27:16 [INFO] [stdout] | [INFO] [stdout] 27 | return CommandType::COMMENT("empty") [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `CommandType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 8 + use crate::CommandType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CommandType` [INFO] [stdout] --> src/parser/mod.rs:30:19 [INFO] [stdout] | [INFO] [stdout] 30 | "push" => CommandType::PUSH(elements[1], elements[2]), [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `CommandType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 8 + use crate::CommandType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CommandType` [INFO] [stdout] --> src/parser/mod.rs:31:18 [INFO] [stdout] | [INFO] [stdout] 31 | "pop" => CommandType::POP(elements[1], elements[2]), [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `CommandType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 8 + use crate::CommandType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CommandType` [INFO] [stdout] --> src/parser/mod.rs:32:18 [INFO] [stdout] | [INFO] [stdout] 32 | "add" => CommandType::ARITHEMETIC(elements[0]), [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `CommandType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 8 + use crate::CommandType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CommandType` [INFO] [stdout] --> src/parser/mod.rs:33:18 [INFO] [stdout] | [INFO] [stdout] 33 | "sub" => CommandType::ARITHEMETIC(elements[0]), [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `CommandType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 8 + use crate::CommandType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CommandType` [INFO] [stdout] --> src/parser/mod.rs:34:18 [INFO] [stdout] | [INFO] [stdout] 34 | "neg" => CommandType::ARITHEMETIC(elements[0]), [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `CommandType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 8 + use crate::CommandType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/parser/mod.rs:10:51 [INFO] [stdout] | [INFO] [stdout] 10 | let commands:Vec = lines.iter().map(|l| parse_command(&l)).collect(); [INFO] [stdout] | ^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: all function arguments must have a statically known size [INFO] [stdout] = help: unsized fn params are gated as an unstable feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CommandType` [INFO] [stdout] --> src/parser/mod.rs:35:17 [INFO] [stdout] | [INFO] [stdout] 35 | "eq" => CommandType::ARITHEMETIC(elements[0]), [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `CommandType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 8 + use crate::CommandType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `segment_sec` in this scope [INFO] [stdout] --> src/parser/mod.rs:16:43 [INFO] [stdout] | [INFO] [stdout] 16 | CommandType::POP(segment, num) => segment_sec(segment, num) , //println!("segment:{} num{}",segment, num) [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CommandType` [INFO] [stdout] --> src/parser/mod.rs:36:17 [INFO] [stdout] | [INFO] [stdout] 36 | "gt" => CommandType::ARITHEMETIC(elements[0]), [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `CommandType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 8 + use crate::CommandType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CommandType` [INFO] [stdout] --> src/parser/mod.rs:37:17 [INFO] [stdout] | [INFO] [stdout] 37 | "lt" => CommandType::ARITHEMETIC(elements[0]), [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `CommandType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 8 + use crate::CommandType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CommandType` [INFO] [stdout] --> src/parser/mod.rs:38:18 [INFO] [stdout] | [INFO] [stdout] 38 | "and" => CommandType::ARITHEMETIC(elements[0]), [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `CommandType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 8 + use crate::CommandType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CommandType` [INFO] [stdout] --> src/parser/mod.rs:39:17 [INFO] [stdout] | [INFO] [stdout] 39 | "or" => CommandType::ARITHEMETIC(elements[0]), [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `CommandType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 8 + use crate::CommandType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CommandType` [INFO] [stdout] --> src/parser/mod.rs:40:18 [INFO] [stdout] | [INFO] [stdout] 40 | "not" => CommandType::ARITHEMETIC(elements[0]), [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `CommandType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 8 + use crate::CommandType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `process` [INFO] [stdout] --> src/parser/mod.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | process::exit(1); [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `process` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these modules [INFO] [stdout] | [INFO] [stdout] 8 + use crate::process; [INFO] [stdout] | [INFO] [stdout] 8 + use std::process; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::parser::*` [INFO] [stdout] --> src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::parser::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/parser/mod.rs:10:51 [INFO] [stdout] | [INFO] [stdout] 10 | let commands:Vec = lines.iter().map(|l| parse_command(&l)).collect(); [INFO] [stdout] | ^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: all function arguments must have a statically known size [INFO] [stdout] = help: unsized fn params are gated as an unstable feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `parse_command` in this scope [INFO] [stdout] --> src/lib.rs:55:58 [INFO] [stdout] | [INFO] [stdout] 55 | let commands:Vec = lines.iter().map(|l| parse_command(&l)).collect(); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `segment_sec` in this scope [INFO] [stdout] --> src/parser/mod.rs:16:43 [INFO] [stdout] | [INFO] [stdout] 16 | CommandType::POP(segment, num) => segment_sec(segment, num) , //println!("segment:{} num{}",segment, num) [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 23 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `parse_command` in this scope [INFO] [stdout] --> src/lib.rs:55:58 [INFO] [stdout] | [INFO] [stdout] 55 | let commands:Vec = lines.iter().map(|l| parse_command(&l)).collect(); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 23 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `vm_translator` (lib) due to 24 previous errors; 1 warning emitted [INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0425, E0433. [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `vm_translator` (lib test) due to 24 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "6087cdbbd0a12701c8999f21bf60205e869231f25de68dbfc83bb41a61a32f49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6087cdbbd0a12701c8999f21bf60205e869231f25de68dbfc83bb41a61a32f49", kill_on_drop: false }` [INFO] [stdout] 6087cdbbd0a12701c8999f21bf60205e869231f25de68dbfc83bb41a61a32f49