[INFO] cloning repository https://github.com/raaymax/loom [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/raaymax/loom" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fraaymax%2Floom", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fraaymax%2Floom'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c3107c60a1baa65b80df8f29ba4c3ba18a3b1e02 [INFO] building raaymax/loom against try#334963c956d25708feab489a3816ae63f639355d for pr-135216 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fraaymax%2Floom" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] fatal: could not create leading directories of '/workspace/builds/worker-5-tc2/source': No space left on device [INFO] building raaymax/loom against try#334963c956d25708feab489a3816ae63f639355d for pr-135216 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fraaymax%2Floom" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/raaymax/loom on toolchain 334963c956d25708feab489a3816ae63f639355d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+334963c956d25708feab489a3816ae63f639355d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/raaymax/loom [INFO] finished tweaking git repo https://github.com/raaymax/loom [INFO] tweaked toml for git repo https://github.com/raaymax/loom written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/raaymax/loom 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" "+334963c956d25708feab489a3816ae63f639355d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: /workspace/builds/worker-5-tc2/source/crates/parser/Cargo.toml: unused manifest key: lib.tests [INFO] [stderr] warning: /workspace/builds/worker-5-tc2/source/crates/compiler/Cargo.toml: unused manifest key: lib.tests [INFO] [stderr] warning: /workspace/builds/worker-5-tc2/source/crates/lexer/Cargo.toml: unused manifest key: lib.tests [INFO] [stderr] warning: /workspace/builds/worker-5-tc2/source/crates/vm/Cargo.toml: unused manifest key: lib.tests [INFO] [stderr] warning: /workspace/builds/worker-5-tc2/source/crates/interpreter/Cargo.toml: unused manifest key: lib.tests [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+334963c956d25708feab489a3816ae63f639355d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 06cd13beb4e072b1acd9602fd5908f726e72cce5a5a9abbe94828ac02c3dbd57 [INFO] running `Command { std: "docker" "start" "-a" "06cd13beb4e072b1acd9602fd5908f726e72cce5a5a9abbe94828ac02c3dbd57", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "06cd13beb4e072b1acd9602fd5908f726e72cce5a5a9abbe94828ac02c3dbd57", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "06cd13beb4e072b1acd9602fd5908f726e72cce5a5a9abbe94828ac02c3dbd57", kill_on_drop: false }` [INFO] [stdout] 06cd13beb4e072b1acd9602fd5908f726e72cce5a5a9abbe94828ac02c3dbd57 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+334963c956d25708feab489a3816ae63f639355d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b65b0d9d236e644c39107e6cdd7ae6814681c9018341dd55c3450e5cf738223a [INFO] running `Command { std: "docker" "start" "-a" "b65b0d9d236e644c39107e6cdd7ae6814681c9018341dd55c3450e5cf738223a", kill_on_drop: false }` [INFO] [stderr] warning: /opt/rustwide/workdir/crates/interpreter/Cargo.toml: unused manifest key: lib.tests [INFO] [stderr] warning: /opt/rustwide/workdir/crates/lexer/Cargo.toml: unused manifest key: lib.tests [INFO] [stderr] warning: /opt/rustwide/workdir/crates/vm/Cargo.toml: unused manifest key: lib.tests [INFO] [stderr] warning: /opt/rustwide/workdir/crates/compiler/Cargo.toml: unused manifest key: lib.tests [INFO] [stderr] warning: /opt/rustwide/workdir/crates/parser/Cargo.toml: unused manifest key: lib.tests [INFO] [stderr] warning: loom v0.1.0 (/opt/rustwide/workdir) ignoring invalid dependency `cli` which is missing a lib target [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.12s [INFO] running `Command { std: "docker" "inspect" "b65b0d9d236e644c39107e6cdd7ae6814681c9018341dd55c3450e5cf738223a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b65b0d9d236e644c39107e6cdd7ae6814681c9018341dd55c3450e5cf738223a", kill_on_drop: false }` [INFO] [stdout] b65b0d9d236e644c39107e6cdd7ae6814681c9018341dd55c3450e5cf738223a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+334963c956d25708feab489a3816ae63f639355d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2df3c88d5f1803cfc6285b2a3adaab39ec97b1d68f21cc36c9567290c4734548 [INFO] running `Command { std: "docker" "start" "-a" "2df3c88d5f1803cfc6285b2a3adaab39ec97b1d68f21cc36c9567290c4734548", kill_on_drop: false }` [INFO] [stderr] warning: /opt/rustwide/workdir/crates/parser/Cargo.toml: unused manifest key: lib.tests [INFO] [stderr] warning: /opt/rustwide/workdir/crates/vm/Cargo.toml: unused manifest key: lib.tests [INFO] [stderr] warning: /opt/rustwide/workdir/crates/lexer/Cargo.toml: unused manifest key: lib.tests [INFO] [stderr] warning: /opt/rustwide/workdir/crates/interpreter/Cargo.toml: unused manifest key: lib.tests [INFO] [stderr] warning: /opt/rustwide/workdir/crates/compiler/Cargo.toml: unused manifest key: lib.tests [INFO] [stderr] warning: loom v0.1.0 (/opt/rustwide/workdir) ignoring invalid dependency `cli` which is missing a lib target [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling rustix v0.38.25 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling linux-raw-sys v0.4.11 [INFO] [stderr] Compiling bitflags v2.4.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling unicode-segmentation v1.10.1 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling convert_case v0.6.0 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.39 [INFO] [stderr] Compiling num-complex v0.4.4 [INFO] [stderr] Compiling is-terminal v0.4.9 [INFO] [stderr] Compiling colored v2.0.4 [INFO] [stderr] Compiling lexer v0.1.0 (/opt/rustwide/workdir/crates/lexer) [INFO] [stdout] warning: unused variable: `err_pos` [INFO] [stdout] --> crates/lexer/src/errors.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | let err_pos = "";//format!("[ pos: {}, line: {}, line_pos: {}, length: {} ]", pos, l, line_pos, length); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_err_pos` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/lexer/src/errors.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let mut line = text.chars() [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: unreachable pattern [INFO] [stdout] --> crates/lexer/src/token.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 56 | Token::Colon(pos) => write!(f, "Colon {}", pos), [INFO] [stdout] | ----------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 63 | Token::Colon(pos) => write!(f, "Colon {}", pos), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/lexer/src/token.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 97 | Token::Colon(pos) => *pos, [INFO] [stdout] | ----------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 104 | Token::Colon(pos) => *pos, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/lexer/src/id.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let mut size = 0; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> crates/lexer/src/errors.rs:100:17 [INFO] [stdout] | [INFO] [stdout] 100 | writeln!(f, "{} {}\n {}--> {}", "error:".red().bold(), self.message.bold(), space, self.location); [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] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> crates/lexer/src/errors.rs:101:17 [INFO] [stdout] | [INFO] [stdout] 101 | writeln!(f," {} |\n {} | {}", space, line_number, line); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> crates/lexer/src/errors.rs:103:21 [INFO] [stdout] | [INFO] [stdout] 103 | writeln!(f, " {} | {}", space, mask.red()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> crates/lexer/src/errors.rs:106:17 [INFO] [stdout] | [INFO] [stdout] 106 | writeln!(f, "{} {}\n --> {}", "error:".red().bold(), self.message.bold(), self.location.yellow()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> crates/lexer/src/errors.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | write!(f, "error: {}\n --> {}", self.message, self.location); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> crates/lexer/src/errors.rs:111:17 [INFO] [stdout] | [INFO] [stdout] 111 | writeln!(f, "\t|\n\t| {}", line); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> crates/lexer/src/errors.rs:114:17 [INFO] [stdout] | [INFO] [stdout] 114 | writeln!(f, "\t| {}", mask); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling parser v0.1.0 (/opt/rustwide/workdir/crates/parser) [INFO] [stdout] warning: unused import: `helpers::*` [INFO] [stdout] --> crates/parser/src/detail/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use helpers::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Params` [INFO] [stdout] --> crates/parser/src/define.rs:3:35 [INFO] [stdout] | [INFO] [stdout] 3 | use super::{Op, Expression, Node, Params}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/parser/src/detail/value.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | _ => panic!("Type not yet implemented"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/parser/src/detail/value.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 29 | Value::Number(n) => write!(f, "{}", n), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 30 | Value::String(s) => write!(f, "'{}'", s), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 31 | _ => panic!("Type not yet implemented"), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loc` [INFO] [stdout] --> crates/parser/src/define.rs:24:27 [INFO] [stdout] | [INFO] [stdout] 24 | Token::Assign(loc) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_loc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loc` [INFO] [stdout] --> crates/parser/src/define.rs:33:25 [INFO] [stdout] | [INFO] [stdout] 33 | Token::Semi(loc) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_loc` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling interpreter v0.1.0 (/opt/rustwide/workdir/crates/interpreter) [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> crates/interpreter/src/lib.rs:157:13 [INFO] [stdout] | [INFO] [stdout] 150 | return compute(node.children.get(1).unwrap(), context); [INFO] [stdout] | ------------------------------------------------------ any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 157 | let mut last = VType::Undefined; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/interpreter/src/vtype.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | _ => panic!("Type not yet implemented {}", n), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/interpreter/src/vtype.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 21 | Value::Number(n) => VType::Number(n), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 22 | Value::String(s) => VType::String(s), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 23 | _ => panic!("Type not yet implemented {}", n), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/interpreter/src/vtype.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | _ => panic!("Type not yet implemented"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/interpreter/src/vtype.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 48 | VType::Number(n) => write!(f, "{}", n), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 49 | VType::String(s) => write!(f, "{}", s), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 50 | VType::Undefined => write!(f, "undefined"), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 51 | VType::Bool(b) => write!(f, "{}", b), [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 67 | _ => panic!("Type not yet implemented"), [INFO] [stdout] | ^ ...and 4 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first` [INFO] [stdout] --> crates/interpreter/src/builtins.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | let mut first = true; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_first` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/interpreter/src/builtins.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let mut first = true; [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: unreachable pattern [INFO] [stdout] --> crates/interpreter/src/builtins.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | _ => Err(PError::new(lexer::Location::zero(), "Not yet implemented")), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/interpreter/src/builtins.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 47 | Self::Print => { [INFO] [stdout] | ----------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 51 | Self::Pow => { [INFO] [stdout] | --------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 62 | Self::Assert => { [INFO] [stdout] | ------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 75 | _ => Err(PError::new(lexer::Location::zero(), "Not yet implemented")), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/interpreter/src/lib.rs:219:9 [INFO] [stdout] | [INFO] [stdout] 219 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/interpreter/src/lib.rs:219:9 [INFO] [stdout] | [INFO] [stdout] 57 | Op::Return => { [INFO] [stdout] | ---------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 62 | Op::DefineFunc => { [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 72 | Op::DefineVar => { [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 79 | Op::While => { [INFO] [stdout] | --------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 219 | _ => { [INFO] [stdout] | ^ ...and 19 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extractNames` should have a snake case name [INFO] [stdout] --> crates/interpreter/src/lib.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn extractNames(node: &Node) -> Result,PError> { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `extract_names` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `argNames` should have a snake case name [INFO] [stdout] --> crates/interpreter/src/lib.rs:66:17 [INFO] [stdout] | [INFO] [stdout] 66 | let argNames = extractNames(args)?; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `arg_names` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `argNames` should have a snake case name [INFO] [stdout] --> crates/interpreter/src/lib.rs:110:37 [INFO] [stdout] | [INFO] [stdout] 110 | VType::Func(argNames, body) => { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `arg_names` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `childContext` should have a snake case name [INFO] [stdout] --> crates/interpreter/src/lib.rs:111:37 [INFO] [stdout] | [INFO] [stdout] 111 | ... let mut childContext = Context::new_child(&name, node.location, context); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `child_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `argNames` should have a snake case name [INFO] [stdout] --> crates/interpreter/src/lib.rs:123:29 [INFO] [stdout] | [INFO] [stdout] 123 | VType::Func(argNames, body) => { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `arg_names` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `childContext` should have a snake case name [INFO] [stdout] --> crates/interpreter/src/lib.rs:128:29 [INFO] [stdout] | [INFO] [stdout] 128 | let mut childContext = Context::new_child(node.id.as_ref().unwrap_or(&"".to_string()).as_str(), node.location, context); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `child_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling num-derive v0.4.1 [INFO] [stderr] Compiling num v0.4.1 [INFO] [stderr] Compiling enum-display-macro v0.1.3 [INFO] [stderr] Compiling enum-display v0.1.3 [INFO] [stderr] Compiling vm v0.1.0 (/opt/rustwide/workdir/crates/vm) [INFO] [stdout] warning: unused imports: `Instrs` and `OpCode` [INFO] [stdout] --> crates/vm/src/vm.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::{OpCode, Instr, Instrs}; [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `parse_instr` [INFO] [stdout] --> crates/vm/src/vm.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | macro_rules! parse_instr { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> crates/vm/src/op_code.rs:1:30 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Debug, Clone, Copy, FromPrimitive, EnumDisplay)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_OpCode` [INFO] [stdout] 2 | #[repr(u8)] [INFO] [stdout] 3 | pub enum OpCode { [INFO] [stdout] | ------ `OpCode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling compiler v0.1.0 (/opt/rustwide/workdir/crates/compiler) [INFO] [stdout] warning: unused import: `OpCode` [INFO] [stdout] --> crates/compiler/src/lib.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | use vm::{Instr, Instrs, OpCode}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> crates/compiler/src/lib.rs:78:28 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn push(&mut self, val: u32) -> usize { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Code` is more private than the item `Compiler::compile_node` [INFO] [stdout] --> crates/compiler/src/lib.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn compile_node(&mut self, node: &Node) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `Compiler::compile_node` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Code` is only usable at visibility `pub(crate)` [INFO] [stdout] --> crates/compiler/src/lib.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | struct Code { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `memptr` is never read [INFO] [stdout] --> crates/compiler/src/lib.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 35 | struct Mem { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 36 | data: Vec, [INFO] [stdout] 37 | memptr: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `write` and `to_bytes` are never used [INFO] [stdout] --> crates/compiler/src/lib.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl Mem { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn write(&mut self, val: u32) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn to_bytes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `stackptr` is never read [INFO] [stdout] --> crates/compiler/src/lib.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 68 | struct Stack { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 69 | stackptr: usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `push` and `pop` are never used [INFO] [stdout] --> crates/compiler/src/lib.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 72 | impl Stack { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn push(&mut self, val: u32) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn pop(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `stack` and `mem` are never read [INFO] [stdout] --> crates/compiler/src/lib.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 95 | pub struct Compiler { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 96 | stack: Stack, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 97 | mem: Mem, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling loom v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 17.12s [INFO] running `Command { std: "docker" "inspect" "2df3c88d5f1803cfc6285b2a3adaab39ec97b1d68f21cc36c9567290c4734548", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2df3c88d5f1803cfc6285b2a3adaab39ec97b1d68f21cc36c9567290c4734548", kill_on_drop: false }` [INFO] [stdout] 2df3c88d5f1803cfc6285b2a3adaab39ec97b1d68f21cc36c9567290c4734548