[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] checking raaymax/loom against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fraaymax%2Floom" "/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/raaymax/loom on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "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-7-tc1/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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: /workspace/builds/worker-7-tc1/source/crates/interpreter/Cargo.toml: unused manifest key: lib.tests [INFO] [stderr] warning: /workspace/builds/worker-7-tc1/source/crates/lexer/Cargo.toml: unused manifest key: lib.tests [INFO] [stderr] warning: /workspace/builds/worker-7-tc1/source/crates/vm/Cargo.toml: unused manifest key: lib.tests [INFO] [stderr] warning: /workspace/builds/worker-7-tc1/source/crates/parser/Cargo.toml: unused manifest key: lib.tests [INFO] [stderr] warning: /workspace/builds/worker-7-tc1/source/crates/compiler/Cargo.toml: unused manifest key: lib.tests [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded enum-display v0.1.3 [INFO] [stderr] Downloaded enum-display-macro v0.1.3 [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 193f317056e5cfb4ab0e1849082569dcd78447fd0a2c6cdebd0ca9b760411e1f [INFO] running `Command { std: "docker" "start" "-a" "193f317056e5cfb4ab0e1849082569dcd78447fd0a2c6cdebd0ca9b760411e1f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "193f317056e5cfb4ab0e1849082569dcd78447fd0a2c6cdebd0ca9b760411e1f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "193f317056e5cfb4ab0e1849082569dcd78447fd0a2c6cdebd0ca9b760411e1f", kill_on_drop: false }` [INFO] [stdout] 193f317056e5cfb4ab0e1849082569dcd78447fd0a2c6cdebd0ca9b760411e1f [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" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 932123b1882feaa6eda4c4974040844696c7edc6158006e9ca921c6912ce6500 [INFO] running `Command { std: "docker" "start" "-a" "932123b1882feaa6eda4c4974040844696c7edc6158006e9ca921c6912ce6500", 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/compiler/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/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: loom v0.1.0 (/opt/rustwide/workdir) ignoring invalid dependency `cli` which is missing a lib target [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling rustix v0.38.25 [INFO] [stderr] Checking linux-raw-sys v0.4.11 [INFO] [stderr] Checking bitflags v2.4.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Compiling futures-core v0.3.29 [INFO] [stderr] Compiling unicode-segmentation v1.10.1 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Compiling version_check v0.9.4 [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 lock_api v0.4.11 [INFO] [stderr] Compiling convert_case v0.6.0 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Checking smallvec v1.11.2 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling futures-channel v0.3.29 [INFO] [stderr] Checking futures-sink v0.3.29 [INFO] [stderr] Compiling serde v1.0.192 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Compiling futures-task v0.3.29 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Compiling futures-util v0.3.29 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking futures-io v0.3.29 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking percent-encoding v2.3.0 [INFO] [stderr] Checking unicode-bidi v0.3.13 [INFO] [stderr] Compiling serde_json v1.0.108 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling syn v2.0.39 [INFO] [stderr] Checking form_urlencoded v1.2.0 [INFO] [stderr] Checking anstyle-parse v0.2.2 [INFO] [stderr] Checking anstyle v1.0.4 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Checking is-terminal v0.4.9 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Checking ryu v1.0.15 [INFO] [stderr] Checking colored v2.0.4 [INFO] [stderr] Checking anstyle-query v1.0.0 [INFO] [stderr] Checking itoa v1.0.9 [INFO] [stderr] Compiling async-trait v0.1.74 [INFO] [stderr] Checking anstream v0.6.4 [INFO] [stderr] Checking clap_lex v0.6.0 [INFO] [stderr] Checking hashbrown v0.14.2 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking lexer v0.1.0 (/opt/rustwide/workdir/crates/lexer) [INFO] [stderr] Checking mio v0.8.9 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Checking num-complex v0.4.4 [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] 63 | Token::Colon(pos) => write!(f, "Colon {}", pos), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [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] 104 | Token::Colon(pos) => *pos, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [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] Checking socket2 v0.5.5 [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking parser v0.1.0 (/opt/rustwide/workdir/crates/parser) [INFO] [stderr] Checking unicode-normalization v0.1.22 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking num_cpus v1.16.0 [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] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking tower-layer v0.3.2 [INFO] [stderr] Compiling heck v0.4.1 [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] | ^ [INFO] [stdout] | [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] Checking overload v0.1.1 [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking interpreter v0.1.0 (/opt/rustwide/workdir/crates/interpreter) [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Checking clap_builder v4.4.8 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking thread_local v1.1.7 [INFO] [stderr] Checking idna v0.4.0 [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] | ^ [INFO] [stdout] | [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] | ^ [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] | ^ [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] | ^ [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] Checking sharded-slab v0.1.7 [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [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] | ^ [INFO] [stdout] | [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] | ^ [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] | ^ [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] | ^ [INFO] [stdout] [INFO] [stdout] [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: 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] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Location` is imported redundantly [INFO] [stdout] --> crates/parser/src/detail/node.rs:364:9 [INFO] [stdout] | [INFO] [stdout] 363 | use super::*; [INFO] [stdout] | -------- the item `Location` is already imported here [INFO] [stdout] 364 | use lexer::Location; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` 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] 63 | Token::Colon(pos) => write!(f, "Colon {}", pos), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [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] [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: the item `Token` is imported redundantly [INFO] [stdout] --> crates/parser/src/lib.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 45 | use super::*; [INFO] [stdout] | -------- the item `Token` is already imported here [INFO] [stdout] 46 | use lexer::{Token, Location}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/lexer/src/token.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | Token::Colon(pos) => *pos, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [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] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking dashmap v5.5.3 [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] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking tracing-subscriber v0.3.18 [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] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling tree-sitter v0.20.10 [INFO] [stderr] Compiling tree-sitter-loom v0.0.1 (/opt/rustwide/workdir/tree-sitter-loom) [INFO] [stderr] Checking regex-automata v0.4.3 [INFO] [stderr] Checking num v0.4.1 [INFO] [stderr] Checking regex v1.10.2 [INFO] [stderr] Compiling enum-display-macro v0.1.3 [INFO] [stderr] Compiling auto_impl v1.1.0 [INFO] [stderr] Checking enum-display v0.1.3 [INFO] [stderr] Compiling serde_derive v1.0.192 [INFO] [stderr] Compiling num-derive v0.4.1 [INFO] [stderr] Compiling futures-macro v0.3.29 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling pin-project-internal v1.1.3 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling serde_repr v0.1.17 [INFO] [stderr] Compiling clap_derive v4.4.7 [INFO] [stderr] Compiling tower-lsp-macros v0.9.0 [INFO] [stderr] Checking tokio v1.34.0 [INFO] [stderr] Checking pin-project v1.1.3 [INFO] [stderr] Checking vm v0.1.0 (/opt/rustwide/workdir/crates/vm) [INFO] [stdout] warning: unused imports: `Instrs`, `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: unused import: `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] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking compiler v0.1.0 (/opt/rustwide/workdir/crates/compiler) [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [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 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] [stdout] warning: 8 warnings emitted [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] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking loom v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking clap v4.4.8 [INFO] [stderr] Checking cli v0.1.0 (/opt/rustwide/workdir/bins/cli) [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking futures v0.3.29 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Checking url v2.4.1 [INFO] [stderr] Checking lsp-types v0.94.1 [INFO] [stderr] Checking tower-lsp v0.20.0 [INFO] [stderr] Checking lsp v0.1.0 (/opt/rustwide/workdir/bins/lsp) [INFO] [stdout] warning: unused import: `TokenVec` [INFO] [stdout] --> bins/lsp/src/main.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | use lexer::{Tokenizer, TokenVec, PError, Token}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TokenVec` [INFO] [stdout] --> bins/lsp/src/main.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | use lexer::{Tokenizer, TokenVec, PError, Token}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> bins/lsp/src/main.rs:15:37 [INFO] [stdout] | [INFO] [stdout] 15 | std::fs::read_to_string(path.clone()).unwrap_or_else(|e| { [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `tokensResult` should have a snake case name [INFO] [stdout] --> bins/lsp/src/main.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let tokensResult = Tokenizer::new(&text).collect::, PError>>(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `tokens_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> bins/lsp/src/main.rs:15:37 [INFO] [stdout] | [INFO] [stdout] 15 | std::fs::read_to_string(path.clone()).unwrap_or_else(|e| { [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `tokensResult` should have a snake case name [INFO] [stdout] --> bins/lsp/src/main.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let tokensResult = Tokenizer::new(&text).collect::, PError>>(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `tokens_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 38.68s [INFO] running `Command { std: "docker" "inspect" "932123b1882feaa6eda4c4974040844696c7edc6158006e9ca921c6912ce6500", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "932123b1882feaa6eda4c4974040844696c7edc6158006e9ca921c6912ce6500", kill_on_drop: false }` [INFO] [stdout] 932123b1882feaa6eda4c4974040844696c7edc6158006e9ca921c6912ce6500 [INFO] checking raaymax/loom against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fraaymax%2Floom" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/raaymax/loom on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "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-7-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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: /workspace/builds/worker-7-tc2/source/crates/parser/Cargo.toml: unused manifest key: lib.tests [INFO] [stderr] warning: /workspace/builds/worker-7-tc2/source/crates/interpreter/Cargo.toml: unused manifest key: lib.tests [INFO] [stderr] warning: /workspace/builds/worker-7-tc2/source/crates/compiler/Cargo.toml: unused manifest key: lib.tests [INFO] [stderr] warning: /workspace/builds/worker-7-tc2/source/crates/lexer/Cargo.toml: unused manifest key: lib.tests [INFO] [stderr] warning: /workspace/builds/worker-7-tc2/source/crates/vm/Cargo.toml: unused manifest key: lib.tests [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 433c09aae3afb0f7266878e1625a62b8581717fb6627c7027e7113690aa8fba4 [INFO] running `Command { std: "docker" "start" "-a" "433c09aae3afb0f7266878e1625a62b8581717fb6627c7027e7113690aa8fba4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "433c09aae3afb0f7266878e1625a62b8581717fb6627c7027e7113690aa8fba4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "433c09aae3afb0f7266878e1625a62b8581717fb6627c7027e7113690aa8fba4", kill_on_drop: false }` [INFO] [stdout] 433c09aae3afb0f7266878e1625a62b8581717fb6627c7027e7113690aa8fba4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d9c933f15def3cd59e6040d44dc2c18f94dc088b02d28bc3e892cedb24d18a9c [INFO] running `Command { std: "docker" "start" "-a" "d9c933f15def3cd59e6040d44dc2c18f94dc088b02d28bc3e892cedb24d18a9c", kill_on_drop: false }` [INFO] [stderr] warning: /opt/rustwide/workdir/crates/compiler/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/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] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling rustix v0.38.25 [INFO] [stderr] Checking linux-raw-sys v0.4.11 [INFO] [stderr] Checking bitflags v2.4.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling unicode-segmentation v1.10.1 [INFO] [stderr] Compiling futures-core v0.3.29 [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-iter v0.1.43 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Checking smallvec v1.11.2 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Compiling convert_case v0.6.0 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking futures-sink v0.3.29 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling serde v1.0.192 [INFO] [stderr] Compiling futures-task v0.3.29 [INFO] [stderr] Compiling futures-channel v0.3.29 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Compiling futures-util v0.3.29 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking percent-encoding v2.3.0 [INFO] [stderr] Checking futures-io v0.3.29 [INFO] [stderr] Checking unicode-bidi v0.3.13 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling serde_json v1.0.108 [INFO] [stderr] Checking form_urlencoded v1.2.0 [INFO] [stderr] Compiling async-trait v0.1.74 [INFO] [stderr] Checking anstyle-parse v0.2.2 [INFO] [stderr] Checking ryu v1.0.15 [INFO] [stderr] Checking anstyle v1.0.4 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Checking anstyle-query v1.0.0 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking itoa v1.0.9 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking anstream v0.6.4 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking clap_lex v0.6.0 [INFO] [stderr] Checking hashbrown v0.14.2 [INFO] [stderr] Compiling syn v2.0.39 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking socket2 v0.5.5 [INFO] [stderr] Checking is-terminal v0.4.9 [INFO] [stderr] Checking unicode-normalization v0.1.22 [INFO] [stderr] Checking mio v0.8.9 [INFO] [stderr] Checking colored v2.0.4 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Checking tower-layer v0.3.2 [INFO] [stderr] Checking clap_builder v4.4.8 [INFO] [stderr] Checking lexer v0.1.0 (/opt/rustwide/workdir/crates/lexer) [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking num-complex v0.4.4 [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] 63 | Token::Colon(pos) => write!(f, "Colon {}", pos), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [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] 104 | Token::Colon(pos) => *pos, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [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] Checking tracing-log v0.2.0 [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking parser v0.1.0 (/opt/rustwide/workdir/crates/parser) [INFO] [stderr] Checking thread_local v1.1.7 [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] [stderr] Checking sharded-slab v0.1.7 [INFO] [stdout] warning: the item `Location` is imported redundantly [INFO] [stdout] --> crates/parser/src/detail/node.rs:364:9 [INFO] [stdout] | [INFO] [stdout] 363 | use super::*; [INFO] [stdout] | -------- the item `Location` is already imported here [INFO] [stdout] 364 | use lexer::Location; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [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] [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: the item `Token` is imported redundantly [INFO] [stdout] --> crates/parser/src/lib.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 45 | use super::*; [INFO] [stdout] | -------- the item `Token` is already imported here [INFO] [stdout] 46 | use lexer::{Token, Location}; [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] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking dashmap v5.5.3 [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] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking interpreter v0.1.0 (/opt/rustwide/workdir/crates/interpreter) [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] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [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: 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] [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] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [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:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | _ => panic!("Type not yet implemented"), [INFO] [stdout] | ^ [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: 7 warnings emitted [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] | ^ [INFO] [stdout] | [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] | ^ [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] | ^ [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] | ^ [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] | ^ [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] | ^ [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] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking idna v0.4.0 [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] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [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] 63 | Token::Colon(pos) => write!(f, "Colon {}", pos), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling tree-sitter v0.20.10 [INFO] [stderr] Compiling tree-sitter-loom v0.0.1 (/opt/rustwide/workdir/tree-sitter-loom) [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/lexer/src/token.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | Token::Colon(pos) => *pos, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [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] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking tracing-subscriber v0.3.18 [INFO] [stderr] Checking regex-automata v0.4.3 [INFO] [stderr] Checking num v0.4.1 [INFO] [stderr] Checking regex v1.10.2 [INFO] [stderr] Compiling enum-display-macro v0.1.3 [INFO] [stderr] Compiling auto_impl v1.1.0 [INFO] [stderr] Compiling serde_derive v1.0.192 [INFO] [stderr] Compiling num-derive v0.4.1 [INFO] [stderr] Compiling futures-macro v0.3.29 [INFO] [stderr] Compiling pin-project-internal v1.1.3 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling serde_repr v0.1.17 [INFO] [stderr] Compiling tower-lsp-macros v0.9.0 [INFO] [stderr] Compiling clap_derive v4.4.7 [INFO] [stderr] Checking enum-display v0.1.3 [INFO] [stderr] Checking tokio v1.34.0 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking vm v0.1.0 (/opt/rustwide/workdir/crates/vm) [INFO] [stderr] Checking pin-project v1.1.3 [INFO] [stdout] warning: unused import: `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: unused imports: `Instrs`, `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: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking 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 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] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking loom v0.1.0 (/opt/rustwide/workdir) [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: 2 warnings emitted [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] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking clap v4.4.8 [INFO] [stderr] Checking cli v0.1.0 (/opt/rustwide/workdir/bins/cli) [INFO] [stderr] Checking futures v0.3.29 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Checking url v2.4.1 [INFO] [stderr] Checking lsp-types v0.94.1 [INFO] [stderr] Checking tower-lsp v0.20.0 [INFO] [stderr] Checking lsp v0.1.0 (/opt/rustwide/workdir/bins/lsp) [INFO] [stdout] warning: unused import: `TokenVec` [INFO] [stdout] --> bins/lsp/src/main.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | use lexer::{Tokenizer, TokenVec, PError, Token}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TokenVec` [INFO] [stdout] --> bins/lsp/src/main.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | use lexer::{Tokenizer, TokenVec, PError, Token}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> bins/lsp/src/main.rs:15:37 [INFO] [stdout] | [INFO] [stdout] 15 | std::fs::read_to_string(path.clone()).unwrap_or_else(|e| { [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `tokensResult` should have a snake case name [INFO] [stdout] --> bins/lsp/src/main.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let tokensResult = Tokenizer::new(&text).collect::, PError>>(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `tokens_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> bins/lsp/src/main.rs:15:37 [INFO] [stdout] | [INFO] [stdout] 15 | std::fs::read_to_string(path.clone()).unwrap_or_else(|e| { [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `tokensResult` should have a snake case name [INFO] [stdout] --> bins/lsp/src/main.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let tokensResult = Tokenizer::new(&text).collect::, PError>>(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `tokens_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 49.69s [INFO] running `Command { std: "docker" "inspect" "d9c933f15def3cd59e6040d44dc2c18f94dc088b02d28bc3e892cedb24d18a9c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d9c933f15def3cd59e6040d44dc2c18f94dc088b02d28bc3e892cedb24d18a9c", kill_on_drop: false }` [INFO] [stdout] d9c933f15def3cd59e6040d44dc2c18f94dc088b02d28bc3e892cedb24d18a9c