[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] 9c0ea7025211a144c5544d51ccdb6ef6e6a79f59 [INFO] checking raaymax/loom against master#bca37a20bd376ce3fd138e7cdee7fe704e0f8814 for pr-139493-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fraaymax%2Floom" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [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-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/raaymax/loom on toolchain bca37a20bd376ce3fd138e7cdee7fe704e0f8814 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: /workspace/builds/worker-0-tc1/source/crates/interpreter/Cargo.toml: unused manifest key: lib.tests [INFO] [stderr] warning: /workspace/builds/worker-0-tc1/source/crates/compiler/Cargo.toml: unused manifest key: lib.tests [INFO] [stderr] warning: /workspace/builds/worker-0-tc1/source/crates/lexer/Cargo.toml: unused manifest key: lib.tests [INFO] [stderr] warning: /workspace/builds/worker-0-tc1/source/crates/parser/Cargo.toml: unused manifest key: lib.tests [INFO] [stderr] warning: /workspace/builds/worker-0-tc1/source/crates/vm/Cargo.toml: unused manifest key: lib.tests [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded errno v0.3.7 [INFO] [stderr] Downloaded serde_repr v0.1.17 [INFO] [stderr] Downloaded tower-lsp-macros v0.9.0 [INFO] [stderr] Downloaded enum-display-macro v0.1.3 [INFO] [stderr] Downloaded futures-io v0.3.29 [INFO] [stderr] Downloaded futures-task v0.3.29 [INFO] [stderr] Downloaded enum-display v0.1.3 [INFO] [stderr] Downloaded futures-core v0.3.29 [INFO] [stderr] Downloaded async-trait v0.1.74 [INFO] [stderr] Downloaded anstyle-wincon v3.0.1 [INFO] [stderr] Downloaded proc-macro2 v1.0.69 [INFO] [stderr] Downloaded auto_impl v1.1.0 [INFO] [stderr] Downloaded futures-channel v0.3.29 [INFO] [stderr] Downloaded anstream v0.6.4 [INFO] [stderr] Downloaded anstyle-parse v0.2.2 [INFO] [stderr] Downloaded colored v2.0.4 [INFO] [stderr] Downloaded futures-sink v0.3.29 [INFO] [stderr] Downloaded futures-macro v0.3.29 [INFO] [stderr] Downloaded futures v0.3.29 [INFO] [stderr] Downloaded lsp-types v0.94.1 [INFO] [stderr] Downloaded clap v4.4.8 [INFO] [stderr] Downloaded serde_derive v1.0.192 [INFO] [stderr] Downloaded serde v1.0.192 [INFO] [stderr] Downloaded tower-lsp v0.20.0 [INFO] [stderr] Downloaded clap_builder v4.4.8 [INFO] [stderr] Downloaded mio v0.8.9 [INFO] [stderr] Downloaded tree-sitter v0.20.10 [INFO] [stderr] Downloaded hashbrown v0.14.2 [INFO] [stderr] Downloaded futures-util v0.3.29 [INFO] [stderr] Downloaded rustix v0.38.25 [INFO] [stderr] Downloaded tokio v1.34.0 [INFO] [stderr] Downloaded linux-raw-sys v0.4.11 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 82eb78d0737697b9e6d0d740bf7ca8332a06b94ce82d8587d9713f973621c90b [INFO] running `Command { std: "docker" "start" "-a" "82eb78d0737697b9e6d0d740bf7ca8332a06b94ce82d8587d9713f973621c90b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "82eb78d0737697b9e6d0d740bf7ca8332a06b94ce82d8587d9713f973621c90b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "82eb78d0737697b9e6d0d740bf7ca8332a06b94ce82d8587d9713f973621c90b", kill_on_drop: false }` [INFO] [stdout] 82eb78d0737697b9e6d0d740bf7ca8332a06b94ce82d8587d9713f973621c90b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 811a79e136ecb5ef27fcb66ed2a8e3598399ebf7c27cb1e4aca972bcd98a3e30 [INFO] running `Command { std: "docker" "start" "-a" "811a79e136ecb5ef27fcb66ed2a8e3598399ebf7c27cb1e4aca972bcd98a3e30", 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/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/vm/Cargo.toml: unused manifest key: lib.tests [INFO] [stderr] warning: /opt/rustwide/workdir/crates/compiler/Cargo.toml: unused manifest key: lib.tests [INFO] [stderr] warning: 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 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 unicode-segmentation v1.10.1 [INFO] [stderr] Compiling futures-core v0.3.29 [INFO] [stderr] Checking smallvec v1.11.2 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Checking futures-sink v0.3.29 [INFO] [stderr] Compiling futures-task v0.3.29 [INFO] [stderr] Compiling futures-channel v0.3.29 [INFO] [stderr] Compiling serde v1.0.192 [INFO] [stderr] Checking scopeguard v1.2.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 unicode-normalization v0.1.22 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Checking unicode-bidi v0.3.13 [INFO] [stderr] Checking futures-io v0.3.29 [INFO] [stderr] Compiling convert_case v0.6.0 [INFO] [stderr] Compiling serde_json v1.0.108 [INFO] [stderr] Checking percent-encoding v2.3.0 [INFO] [stderr] Checking anstyle-parse v0.2.2 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Compiling async-trait v0.1.74 [INFO] [stderr] Checking anstyle v1.0.4 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Checking form_urlencoded v1.2.0 [INFO] [stderr] Checking ryu v1.0.15 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Checking anstyle-query v1.0.0 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Checking clap_lex v0.6.0 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Checking anstream v0.6.4 [INFO] [stderr] Checking idna v0.4.0 [INFO] [stderr] Checking hashbrown v0.14.2 [INFO] [stderr] Checking tower-layer v0.3.2 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [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] Compiling syn v2.0.39 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Checking mio v0.8.9 [INFO] [stderr] Checking is-terminal v0.4.9 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking clap_builder v4.4.8 [INFO] [stderr] Checking colored v2.0.4 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking thread_local v1.1.7 [INFO] [stderr] Checking lexer v0.1.0 (/opt/rustwide/workdir/crates/lexer) [INFO] [stderr] Checking num-integer v0.1.45 [INFO] [stderr] Checking num-complex v0.4.4 [INFO] [stderr] Checking parser v0.1.0 (/opt/rustwide/workdir/crates/parser) [INFO] [stderr] Checking num-bigint v0.4.4 [INFO] [stderr] Checking num-iter v0.1.43 [INFO] [stderr] Checking dashmap v5.5.3 [INFO] [stderr] Checking interpreter v0.1.0 (/opt/rustwide/workdir/crates/interpreter) [INFO] [stderr] Checking tracing-subscriber v0.3.18 [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-rational v0.4.1 [INFO] [stderr] Checking num v0.4.1 [INFO] [stderr] Checking regex v1.10.2 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling enum-display-macro v0.1.3 [INFO] [stderr] Compiling auto_impl v1.1.0 [INFO] [stderr] Compiling num-derive v0.4.1 [INFO] [stderr] Compiling serde_derive v1.0.192 [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 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 vm v0.1.0 (/opt/rustwide/workdir/crates/vm) [INFO] [stdout] warning: unused imports: `Instrs` and `OpCode` [INFO] [stdout] --> crates/vm/src/vm.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::{OpCode, Instr, Instrs}; [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking pin-project v1.1.3 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> crates/vm/src/op_code.rs:1:30 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Debug, Clone, Copy, FromPrimitive, EnumDisplay)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_OpCode` [INFO] [stdout] 2 | #[repr(u8)] [INFO] [stdout] 3 | pub enum OpCode { [INFO] [stdout] | ------ `OpCode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking loom v0.1.0 (/opt/rustwide/workdir) [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)]` (part of `#[warn(unused)]`) 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: 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `write` and `to_bytes` are never used [INFO] [stdout] --> crates/compiler/src/lib.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl Mem { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn write(&mut self, val: u32) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn to_bytes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `stackptr` is never read [INFO] [stdout] --> crates/compiler/src/lib.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 68 | struct Stack { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 69 | stackptr: usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `push` and `pop` are never used [INFO] [stdout] --> crates/compiler/src/lib.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 72 | impl Stack { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn push(&mut self, val: u32) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn pop(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `stack` and `mem` are never read [INFO] [stdout] --> crates/compiler/src/lib.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 95 | pub struct Compiler { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 96 | stack: Stack, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 97 | mem: Mem, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking clap v4.4.8 [INFO] [stderr] Checking cli v0.1.0 (/opt/rustwide/workdir/bins/cli) [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> crates/vm/src/op_code.rs:1:30 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Debug, Clone, Copy, FromPrimitive, EnumDisplay)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_OpCode` [INFO] [stdout] 2 | #[repr(u8)] [INFO] [stdout] 3 | pub enum OpCode { [INFO] [stdout] | ------ `OpCode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Checking futures v0.3.29 [INFO] [stderr] Checking tower v0.4.13 [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `runtime-agnostic` [INFO] [stdout] --> bins/lsp/src/main.rs:175:11 [INFO] [stdout] | [INFO] [stdout] 175 | #[cfg(feature = "runtime-agnostic")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `runtime-agnostic` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `runtime-agnostic` [INFO] [stdout] --> bins/lsp/src/main.rs:181:11 [INFO] [stdout] | [INFO] [stdout] 181 | #[cfg(feature = "runtime-agnostic")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `runtime-agnostic` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `runtime-agnostic` [INFO] [stdout] --> bins/lsp/src/main.rs:175:11 [INFO] [stdout] | [INFO] [stdout] 175 | #[cfg(feature = "runtime-agnostic")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `runtime-agnostic` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `runtime-agnostic` [INFO] [stdout] --> bins/lsp/src/main.rs:181:11 [INFO] [stdout] | [INFO] [stdout] 181 | #[cfg(feature = "runtime-agnostic")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `runtime-agnostic` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [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)]` (part of `#[warn(nonstandard_style)]`) 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)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 47.57s [INFO] running `Command { std: "docker" "inspect" "811a79e136ecb5ef27fcb66ed2a8e3598399ebf7c27cb1e4aca972bcd98a3e30", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "811a79e136ecb5ef27fcb66ed2a8e3598399ebf7c27cb1e4aca972bcd98a3e30", kill_on_drop: false }` [INFO] [stdout] 811a79e136ecb5ef27fcb66ed2a8e3598399ebf7c27cb1e4aca972bcd98a3e30