[INFO] cloning repository https://github.com/ash-hashtag/mantis [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ash-hashtag/mantis" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fash-hashtag%2Fmantis", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fash-hashtag%2Fmantis'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4de4831b656326e647f1099fb149bb86a8351006 [INFO] checking ash-hashtag/mantis against c999cef531ea9059e189e82fe0e82c5daf249bc9 for pr-152972 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fash-hashtag%2Fmantis" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ash-hashtag/mantis [INFO] finished tweaking git repo https://github.com/ash-hashtag/mantis [INFO] tweaked toml for git repo https://github.com/ash-hashtag/mantis written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ash-hashtag/mantis on toolchain c999cef531ea9059e189e82fe0e82c5daf249bc9 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c999cef531ea9059e189e82fe0e82c5daf249bc9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ash-hashtag/mantis 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" "+c999cef531ea9059e189e82fe0e82c5daf249bc9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: unused workspace dependency `mantis_lsp` [INFO] [stderr] --> Cargo.toml:27:25 [INFO] [stderr] | [INFO] [stderr] 27 | [workspace.dependencies.mantis_lsp] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `cargo::unused_workspace_dependencies` is set to `warn` by default [INFO] [stderr] help: consider removing the workspace dependency `mantis_lsp` [INFO] [stderr] warning: unused workspace dependency `serde_json` [INFO] [stderr] --> Cargo.toml:17:1 [INFO] [stderr] | [INFO] [stderr] 17 | serde_json = "1.0" [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: consider removing the workspace dependency `serde_json` [INFO] [stderr] warning: workspace (manifest) generated 2 warnings [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded logos-derive v0.16.1 [INFO] [stderr] Downloaded logos v0.16.1 [INFO] [stderr] Downloaded logos-codegen v0.16.1 [INFO] [stderr] Downloaded cranelift-module v0.135.0 [INFO] [stderr] Downloaded cranelift-control v0.135.0 [INFO] [stderr] Downloaded cranelift-object v0.135.0 [INFO] [stderr] Downloaded wasmtime-internal-jit-icache-coherence v48.0.0 [INFO] [stderr] Downloaded cranelift-bitset v0.135.0 [INFO] [stderr] Downloaded cranelift v0.135.0 [INFO] [stderr] Downloaded cranelift-codegen-shared v0.135.0 [INFO] [stderr] Downloaded cranelift-native v0.135.0 [INFO] [stderr] Downloaded cranelift-srcgen v0.135.0 [INFO] [stderr] Downloaded cranelift-entity v0.135.0 [INFO] [stderr] Downloaded cranelift-assembler-x64 v0.135.0 [INFO] [stderr] Downloaded wasmtime-internal-core v48.0.0 [INFO] [stderr] Downloaded cranelift-assembler-x64-meta v0.135.0 [INFO] [stderr] Downloaded cranelift-bforest v0.135.0 [INFO] [stderr] Downloaded cranelift-jit v0.135.0 [INFO] [stderr] Downloaded cranelift-frontend v0.135.0 [INFO] [stderr] Downloaded cranelift-isle v0.135.0 [INFO] [stderr] Downloaded cranelift-codegen-meta v0.135.0 [INFO] [stderr] Downloaded regalloc2 v0.15.2 [INFO] [stderr] Downloaded gimli v0.33.0 [INFO] [stderr] Downloaded object v0.39.1 [INFO] [stderr] Downloaded cranelift-codegen v0.135.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3111399a4047eeb3a02b7a90e478d715f38a8c6669b5c4b49d30a17385265909" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 7e33fada38f81f59f574796679cbe2024c0ef529fa3cf8066caddb99a2e3fab9 [INFO] running `Command { std: "docker" "start" "7e33fada38f81f59f574796679cbe2024c0ef529fa3cf8066caddb99a2e3fab9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7e33fada38f81f59f574796679cbe2024c0ef529fa3cf8066caddb99a2e3fab9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "7e33fada38f81f59f574796679cbe2024c0ef529fa3cf8066caddb99a2e3fab9" "/opt/rustwide/cargo-home/bin/cargo" "+c999cef531ea9059e189e82fe0e82c5daf249bc9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7e33fada38f81f59f574796679cbe2024c0ef529fa3cf8066caddb99a2e3fab9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "7e33fada38f81f59f574796679cbe2024c0ef529fa3cf8066caddb99a2e3fab9" "/opt/rustwide/cargo-home/bin/cargo" "+c999cef531ea9059e189e82fe0e82c5daf249bc9" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] warning: unused workspace dependency `mantis_lsp` [INFO] [stderr] --> Cargo.toml:27:25 [INFO] [stderr] | [INFO] [stderr] 27 | [workspace.dependencies.mantis_lsp] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `cargo::unused_workspace_dependencies` is set to `warn` by default [INFO] [stderr] help: consider removing the workspace dependency `mantis_lsp` [INFO] [stderr] warning: unused workspace dependency `serde_json` [INFO] [stderr] --> Cargo.toml:17:1 [INFO] [stderr] | [INFO] [stderr] 17 | serde_json = "1.0" [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: consider removing the workspace dependency `serde_json` [INFO] [stderr] warning: workspace (manifest) generated 2 warnings [INFO] [stderr] Compiling cranelift-srcgen v0.135.0 [INFO] [stderr] Compiling wasmtime-internal-core v48.0.0 [INFO] [stderr] Compiling memchr v2.8.3 [INFO] [stderr] Compiling serde_core v1.0.229 [INFO] [stderr] Compiling cranelift-isle v0.135.0 [INFO] [stderr] Compiling cranelift-codegen-shared v0.135.0 [INFO] [stderr] Checking rustc-hash v2.1.3 [INFO] [stderr] Checking indexmap v2.14.0 [INFO] [stderr] Compiling target-lexicon v0.13.5 [INFO] [stderr] Checking bumpalo v3.20.3 [INFO] [stderr] Checking arbitrary v1.4.2 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling syn v2.0.119 [INFO] [stderr] Compiling syn v3.0.4 [INFO] [stderr] Checking smallvec v1.15.2 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Checking rand_core v0.10.1 [INFO] [stderr] Compiling object v0.39.1 [INFO] [stderr] Compiling getrandom v0.4.3 [INFO] [stderr] Compiling cranelift-assembler-x64-meta v0.135.0 [INFO] [stderr] Checking regalloc2 v0.15.2 [INFO] [stderr] Compiling serde_json v1.0.151 [INFO] [stderr] Checking jiff-core v0.1.0 [INFO] [stderr] Checking chacha20 v0.10.1 [INFO] [stderr] Checking region v3.0.2 [INFO] [stderr] Checking aho-corasick v1.1.5 [INFO] [stderr] Checking memmap2 v0.9.11 [INFO] [stderr] Checking cranelift-control v0.135.0 [INFO] [stderr] Checking clap_builder v4.6.6 [INFO] [stderr] Checking rand v0.10.2 [INFO] [stderr] Checking cranelift-bitset v0.135.0 [INFO] [stderr] Checking wasmtime-internal-jit-icache-coherence v48.0.0 [INFO] [stderr] Checking gimli v0.33.0 [INFO] [stderr] Compiling cranelift-codegen-meta v0.135.0 [INFO] [stderr] Checking cranelift-entity v0.135.0 [INFO] [stderr] Checking cranelift-bforest v0.135.0 [INFO] [stderr] Checking regex-automata v0.4.18 [INFO] [stderr] Compiling cranelift-assembler-x64 v0.135.0 [INFO] [stderr] Checking jiff v0.2.35 [INFO] [stderr] Checking serde_spanned v1.1.1 [INFO] [stderr] Checking toml_datetime v1.1.1+spec-1.1.0 [INFO] [stderr] Checking toml v1.1.4+spec-1.1.0 [INFO] [stderr] Checking regex v1.13.1 [INFO] [stderr] Checking env_filter v2.0.0 [INFO] [stderr] Compiling cranelift-codegen v0.135.0 [INFO] [stderr] Compiling serde_derive v1.0.229 [INFO] [stderr] Compiling clap_derive v4.6.4 [INFO] [stderr] Compiling logos-codegen v0.16.1 [INFO] [stderr] Checking clap v4.6.6 [INFO] [stderr] Checking env_logger v0.11.11 [INFO] [stderr] Checking serde v1.0.229 [INFO] [stderr] Compiling logos-derive v0.16.1 [INFO] [stderr] Checking logos v0.16.1 [INFO] [stderr] Checking mantis_parser v0.1.0 (/opt/rustwide/workdir/crates/parser) [INFO] [stderr] Checking mantis_syntax v0.1.0 (/opt/rustwide/workdir/crates/syntax) [INFO] [stdout] warning: unused import: `Program` [INFO] [stdout] --> crates/syntax/src/lib.rs:1:62 [INFO] [stdout] | [INFO] [stdout] 1 | use mantis_parser::ast::{self, BlockItem, Declaration, Expr, Program, Statement, TypeExpr}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking mantis_lsp v0.1.0 (/opt/rustwide/workdir/crates/lsp) [INFO] [stdout] warning: unused import: `Program` [INFO] [stdout] --> crates/syntax/src/lib.rs:1:62 [INFO] [stdout] | [INFO] [stdout] 1 | use mantis_parser::ast::{self, BlockItem, Declaration, Expr, Program, Statement, TypeExpr}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IdentRole` is never used [INFO] [stdout] --> crates/lsp/src/lib.rs:308:6 [INFO] [stdout] | [INFO] [stdout] 308 | enum IdentRole { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Hit` is never constructed [INFO] [stdout] --> crates/lsp/src/lib.rs:1454:8 [INFO] [stdout] | [INFO] [stdout] 1454 | struct Hit { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IdentRole` is never used [INFO] [stdout] --> crates/lsp/src/lib.rs:308:6 [INFO] [stdout] | [INFO] [stdout] 308 | enum IdentRole { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Hit` is never constructed [INFO] [stdout] --> crates/lsp/src/lib.rs:1454:8 [INFO] [stdout] | [INFO] [stdout] 1454 | struct Hit { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking cranelift-module v0.135.0 [INFO] [stderr] Checking cranelift-frontend v0.135.0 [INFO] [stderr] Checking cranelift-native v0.135.0 [INFO] [stderr] Checking cranelift-jit v0.135.0 [INFO] [stderr] Checking cranelift-object v0.135.0 [INFO] [stderr] Checking cranelift v0.135.0 [INFO] [stderr] Checking mantis_codegen v0.1.0 (/opt/rustwide/workdir/crates/codegen) [INFO] [stdout] warning: unused imports: `collections::HashMap` and `path::PathBuf` [INFO] [stdout] --> crates/codegen/src/backend/compile.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{collections::HashMap, path::PathBuf, rc::Rc}; [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 import: `codegen::Context` [INFO] [stdout] --> crates/codegen/src/backend/compile.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | codegen::Context, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Block`, `FnDecl`, `ImplBlock`, `TraitDef`, and `TypeDef` [INFO] [stdout] --> crates/codegen/src/backend/compile.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | Block, Declaration, FnDecl, ImplBlock, Program, TraitDef, TypeDef, TypeDefBody, TypeExpr, [INFO] [stdout] | ^^^^^ ^^^^^^ ^^^^^^^^^ ^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MsFunctionRegistry`, `MsResolved`, `MsTypeRegistry`, and `resolve_module_by_word` [INFO] [stdout] --> crates/codegen/src/backend/compile.rs:20:55 [INFO] [stdout] | [INFO] [stdout] 20 | functions::{FunctionType, MsDeclaredFunction, MsFunctionRegistry, MsGenericFunction}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | modules::{resolve_module_by_path, resolve_module_by_word, MsResolved}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | EnumWithGenerics, MsGenericTemplate, MsGenericTemplateInner, MsType, MsTypeRegistry, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FieldInit`, `Ident as WordSpan`, and `MatchArm` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:49:73 [INFO] [stdout] | [INFO] [stdout] 49 | BinOp as BinaryOperation, Block, BlockItem, ConditionalBlock, Expr, FieldInit, FnDecl, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 50 | Ident as WordSpan, IfChain as IfElseChain, LoopBlock, MatchArm, MatchBlock, Statement, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PathBuf`, `Path`, and `collections::HashMap` [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | collections::HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 3 | path::{Path, PathBuf}, [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lexer::ast::Program` [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::lexer::ast::Program; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::anyhow` [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use anyhow::anyhow; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TargetIsa`, `UserExternalName`, and `UserFuncName` [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:11:26 [INFO] [stdout] | [INFO] [stdout] 11 | ir::{types::I64, UserExternalName, UserFuncName}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] 12 | isa::{CallConv, TargetFrontendConfig, TargetIsa}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DataDescription`, `FuncId`, and `default_libcall_names` [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | default_libcall_names, DataDescription, FuncId, FuncOrDataId, Linkage, Module, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ObjectBuilder` [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:20:24 [INFO] [stdout] | [INFO] [stdout] 20 | use cranelift_object::{ObjectBuilder, ObjectModule}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FieldInit` [INFO] [stdout] --> crates/codegen/src/backend/simple.rs:5:42 [INFO] [stdout] | [INFO] [stdout] 5 | Block, BlockItem, Declaration, Expr, FieldInit, Program, Statement, TypeDef, TypeDefBody, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Context`, `ExternalName`, `FuncRef`, `UserExternalNameRef`, `UserExternalName`, and `types::I64` [INFO] [stdout] --> crates/codegen/src/frontend/compile.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | types::I64, AbiParam, ExternalName, FuncRef, InstBuilder, Signature, UserExternalName, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | UserExternalNameRef, UserFuncName, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | }, [INFO] [stdout] 10 | settings, Context, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ModuleError` [INFO] [stdout] --> crates/codegen/src/frontend/compile.rs:17:70 [INFO] [stdout] | [INFO] [stdout] 17 | default_libcall_names, DataDescription, FuncId, Linkage, Module, ModuleError, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MsVariable` [INFO] [stdout] --> crates/codegen/src/frontend/compile.rs:25:35 [INFO] [stdout] | [INFO] [stdout] 25 | variable::{MsBackendVariable, MsVariable}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Configurable`, `Flags`, `frontend::FunctionBuilderContext`, and `self` [INFO] [stdout] --> crates/codegen/src/frontend/compiler.rs:2:25 [INFO] [stdout] | [INFO] [stdout] 2 | codegen::settings::{self, Configurable, Flags}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] 3 | frontend::FunctionBuilderContext, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DataDescription`, `Module`, and `default_libcall_names` [INFO] [stdout] --> crates/codegen/src/frontend/compiler.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | use cranelift_module::{default_libcall_names, DataDescription, Module}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ObjectBuilder` and `ObjectModule` [INFO] [stdout] --> crates/codegen/src/frontend/compiler.rs:6:24 [INFO] [stdout] | [INFO] [stdout] 6 | use cranelift_object::{ObjectBuilder, ObjectModule}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FunctionDeclaration` and `StructRegistry` [INFO] [stdout] --> crates/codegen/src/frontend/compiler.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | use super::tokens::{FunctionDeclaration, MsFunctionDeclaration, StructRegistry}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::anyhow` [INFO] [stdout] --> crates/codegen/src/frontend/compiler.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use anyhow::anyhow; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> crates/codegen/src/frontend/function.rs:1:34 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{BTreeMap, HashMap}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Signature`, `UserExternalName`, and `UserFuncName` [INFO] [stdout] --> crates/codegen/src/frontend/function.rs:7:45 [INFO] [stdout] | [INFO] [stdout] 7 | AbiParam, FuncRef, InstBuilder, Signature, UserExternalName, UserFuncName, Value, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mantis_parser::ast::BinOp as BinaryOperation` [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use mantis_parser::ast::BinOp as BinaryOperation; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rc::Rc` [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:3:34 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{collections::BTreeMap, rc::Rc}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AbiParam`, `StackSlot`, `condcodes`, and `stackslot::StackSize` [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:6:19 [INFO] [stdout] | [INFO] [stdout] 6 | codegen::ir::{condcodes, stackslot::StackSize, types, AbiParam, StackSlot, Type}, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DataDescription`, `FuncOrDataId`, `Linkage`, and `Module` [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | use cranelift_module::{DataDescription, FuncOrDataId, Linkage, Module}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `logos::Logos` [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use logos::Logos; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MsFunctionRegistry`, `MsFunctionTemplates`, `MsFunctionType`, `MsLoopScopes`, `MsModuleRegistry`, `MsModule`, `MsNativeType`, `MsScopes`, `MsTraitTemplates`, `MsTypeTemplates`, `MsVal`, `MsVarScopes`, `MsVar`, `libc::libc::declare_external_function`, and `traits::MsTraitRegistry` [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | libc::libc::declare_external_function, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | FunctionType, MsFunctionRegistry, MsFunctionTemplates, MsFunctionType, MsTraitTemplates, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | }, [INFO] [stdout] 21 | modules::{MsModule, MsModuleRegistry}, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] 22 | traits::MsTraitRegistry, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 23 | types::{MsNativeType, MsType, MsTypeRegistry, MsTypeTemplates}, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] 24 | variable::{MsVal, MsVar, MsVarRegistry}, [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | scope::{MsLoopScopes, MsScopes, MsVarScopes}, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mantis_parser::token::Token as MantisLexerTokens` [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | use mantis_parser::token::Token as MantisLexerTokens; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> crates/codegen/src/frontend/variable.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Context` and `FunctionBuilderContext` [INFO] [stdout] --> crates/codegen/src/frontend/variable.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | codegen::{ir::Type, Context}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 5 | frontend::{FunctionBuilder, FunctionBuilderContext}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rc::Rc` [INFO] [stdout] --> crates/codegen/src/lexer/ast.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, rc::Rc}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ops::Deref` and `rc::Rc` [INFO] [stdout] --> crates/codegen/src/lexer/code_parser.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{ops::Deref, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `bi_directional_iterator::BiDerectionalIterator` and `rc_vec::RcVec` [INFO] [stdout] --> crates/codegen/src/lexer/code_parser.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::utils::{bi_directional_iterator::BiDerectionalIterator, rc_str::RcStr, rc_vec::RcVec}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::types::Token` [INFO] [stdout] --> crates/codegen/src/lexer/code_parser.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use super::types::Token; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> crates/codegen/src/lexer/token_parser.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rc_str::RcStr` [INFO] [stdout] --> crates/codegen/src/lexer/token_parser.rs:3:68 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::utils::{bi_directional_iterator::BiDerectionalIterator, rc_str::RcStr, rc_vec::RcVec}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> crates/codegen/src/lexer/types.rs:154:20 [INFO] [stdout] | [INFO] [stdout] 154 | return (Self::Keyword(val)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 154 - return (Self::Keyword(val)); [INFO] [stdout] 154 + return Self::Keyword(val); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> crates/codegen/src/lexer/types.rs:157:20 [INFO] [stdout] | [INFO] [stdout] 157 | return (Self::Number(val)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 157 - return (Self::Number(val)); [INFO] [stdout] 157 + return Self::Number(val); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> crates/codegen/src/lexer/types.rs:160:20 [INFO] [stdout] | [INFO] [stdout] 160 | return (Self::Symbol(val)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 160 - return (Self::Symbol(val)); [INFO] [stdout] 160 + return Self::Symbol(val); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> crates/codegen/src/lexer/types.rs:163:20 [INFO] [stdout] | [INFO] [stdout] 163 | return (Self::Operator(val)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 163 - return (Self::Operator(val)); [INFO] [stdout] 163 + return Self::Operator(val); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> crates/codegen/src/lexer/types.rs:165:20 [INFO] [stdout] | [INFO] [stdout] 165 | return (Self::Unknown(s.to_string().into())); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 165 - return (Self::Unknown(s.to_string().into())); [INFO] [stdout] 165 + return Self::Unknown(s.to_string().into()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::BTreeMap` [INFO] [stdout] --> crates/codegen/src/libc/libc.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::BTreeMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FuncRef`, `GlobalValueData`, `Inst`, `UserExternalName`, `UserFuncName`, `Variable`, and `self` [INFO] [stdout] --> crates/codegen/src/libc/libc.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | self, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | types::{self, I64}, [INFO] [stdout] 10 | AbiParam, FuncRef, GlobalValueData, Inst, InstBuilder, Signature, [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] 11 | UserExternalName, UserFuncName, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | frontend::{FunctionBuilder, FunctionBuilderContext, Variable}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MsFunctionRegistry`, `MsFunctionTemplates`, `MsModuleRegistry`, `MsScopes`, `MsTraitTemplates`, `MsTypeRegistry`, `MsTypeTemplates`, and `traits::MsTraitRegistry` [INFO] [stdout] --> crates/codegen/src/ms.rs:20:21 [INFO] [stdout] | [INFO] [stdout] 20 | functions::{MsFunctionRegistry, MsFunctionTemplates, MsInstantiation, MsTraitTemplates}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | modules::{MsModule, MsModuleRegistry}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 22 | traits::MsTraitRegistry, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 23 | types::{MsTypeRegistry, MsTypeTemplates}, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] 24 | }, [INFO] [stdout] 25 | scope::{drop_scopes_until_index, MsLoopScope, MsLoopScopes, MsScopes, MsVarScopes}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DataDescription`, `FuncOrDataId`, `Linkage`, and `Module` [INFO] [stdout] --> crates/codegen/src/native/instructions.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use cranelift_module::{DataDescription, FuncOrDataId, Linkage, Module}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cranelift_object::ObjectModule` [INFO] [stdout] --> crates/codegen/src/native/instructions.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use cranelift_object::ObjectModule; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MsType` [INFO] [stdout] --> crates/codegen/src/native/instructions.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | types::{MsType, MsTypeId, MsTypeWithId}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Cow` [INFO] [stdout] --> crates/codegen/src/registries/compiler_functions.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Cow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `StackSlotData` and `types` [INFO] [stdout] --> crates/codegen/src/registries/compiler_functions.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use cranelift::prelude::{types, FunctionBuilder, InstBuilder, StackSlotData}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mantis_parser::ast::Expr` [INFO] [stdout] --> crates/codegen/src/registries/compiler_functions.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use mantis_parser::ast::Expr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MsRegistryExt`, `MsRegistry`, `MsVar`, and `types::MsType` [INFO] [stdout] --> crates/codegen/src/registries/compiler_functions.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | types::MsType, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 12 | variable::{MsVal, MsVar}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 13 | MsRegistry, MsRegistryExt, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MsRegistry` and `TypeNameWithGenerics` [INFO] [stdout] --> crates/codegen/src/registries/functions.rs:10:31 [INFO] [stdout] | [INFO] [stdout] 10 | types::{MsType, MsTypeId, TypeNameWithGenerics}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | MsRegistry, MsRegistryExt, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Path` and `fs::FileType` [INFO] [stdout] --> crates/codegen/src/registries/modules.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | fs::FileType, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 5 | path::{Path, PathBuf}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `backend::compile_function::random_string`, `native::instructions::Either`, `structs::MsStructType`, and `types::StructWithGenerics` [INFO] [stdout] --> crates/codegen/src/registries/modules.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | backend::compile_function::random_string, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | native::instructions::Either, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | registries::{structs::MsStructType, types::StructWithGenerics}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EnumWithGenerics` and `MsTypeRegistry` [INFO] [stdout] --> crates/codegen/src/registries/modules.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | EnumWithGenerics, MsGenericTemplate, MsGenericTemplateInner, MsType, MsTypeId, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 26 | MsTypeMethodRegistry, MsTypeNameRegistry, MsTypeRegistry, MsTypeTemplates, MsTypeWithId, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Cow` [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Cow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeMap` [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | collections::{BTreeMap, HashMap}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `isa::TargetFrontendConfig` [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | isa::TargetFrontendConfig, types, AbiParam, FunctionBuilder, InstBuilder, MemFlagsData, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DataDescription` and `Linkage` [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:14:24 [INFO] [stdout] | [INFO] [stdout] 14 | use cranelift_module::{DataDescription, FuncOrDataId, Linkage, Module}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Either` [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:21:28 [INFO] [stdout] | [INFO] [stdout] 21 | native::instructions::{Either, NodeResult}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MsGenericTemplate` and `MsRegistry` [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | types::{MsGenericTemplate, MsType, MsTypeId, MsTypeWithId}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 27 | variable::MsVal, [INFO] [stdout] 28 | MsRegistry, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `collections::HashMap` and `path::PathBuf` [INFO] [stdout] --> crates/codegen/src/backend/compile.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{collections::HashMap, path::PathBuf, rc::Rc}; [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 import: `BTreeMap` [INFO] [stdout] --> crates/codegen/src/registries/types.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | collections::{BTreeMap, HashMap}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Inst` [INFO] [stdout] --> crates/codegen/src/registries/types.rs:9:30 [INFO] [stdout] | [INFO] [stdout] 9 | use codegen::ir::{condcodes, Inst}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> crates/codegen/src/registries/types.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | self, BinOp as BinaryOperation, FnDecl as FunctionDecl, TypeExpr, TypeExpr as MsTokenType, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MsResolved`, `backend::compile_function::random_string`, and `native::instructions::Either` [INFO] [stdout] --> crates/codegen/src/registries/types.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | backend::compile_function::random_string, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 18 | native::instructions::Either, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | modules::{MsModule, MsResolved}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Cow` [INFO] [stdout] --> crates/codegen/src/registries/variable.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Cow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MsRegistryExt`, `MsRegistry`, and `MsType` [INFO] [stdout] --> crates/codegen/src/registries/variable.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | types::{MsType, MsTypeId}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 9 | MsRegistry, MsRegistryExt, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `codegen::Context` [INFO] [stdout] --> crates/codegen/src/backend/compile.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | codegen::Context, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Block`, `FnDecl`, `ImplBlock`, `TraitDef`, and `TypeDef` [INFO] [stdout] --> crates/codegen/src/backend/compile.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | Block, Declaration, FnDecl, ImplBlock, Program, TraitDef, TypeDef, TypeDefBody, TypeExpr, [INFO] [stdout] | ^^^^^ ^^^^^^ ^^^^^^^^^ ^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Cow` [INFO] [stdout] --> crates/codegen/src/scope.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Cow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `any::Any` [INFO] [stdout] --> crates/codegen/src/scope.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{any::Any, ops::Deref}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `types` [INFO] [stdout] --> crates/codegen/src/scope.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | prelude::{types, Block, FunctionBuilder, InstBuilder}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cranelift_module::Module` [INFO] [stdout] --> crates/codegen/src/scope.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use cranelift_module::Module; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MsScopeType` [INFO] [stdout] --> crates/codegen/src/scope.rs:12:50 [INFO] [stdout] | [INFO] [stdout] 12 | frontend::tokens::{MsClScope, MsClScopeType, MsScopeType}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MsFunctionRegistry`, `MsResolved`, `MsTypeRegistry`, and `resolve_module_by_word` [INFO] [stdout] --> crates/codegen/src/backend/compile.rs:20:55 [INFO] [stdout] | [INFO] [stdout] 20 | functions::{FunctionType, MsDeclaredFunction, MsFunctionRegistry, MsGenericFunction}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | modules::{resolve_module_by_path, resolve_module_by_word, MsResolved}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | EnumWithGenerics, MsGenericTemplate, MsGenericTemplateInner, MsType, MsTypeRegistry, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `path::Iter` [INFO] [stdout] --> crates/codegen/src/utils/bi_directional_iterator.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{ops::Deref, path::Iter}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FieldInit`, `Ident as WordSpan`, and `MatchArm` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:49:73 [INFO] [stdout] | [INFO] [stdout] 49 | BinOp as BinaryOperation, Block, BlockItem, ConditionalBlock, Expr, FieldInit, FnDecl, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 50 | Ident as WordSpan, IfChain as IfElseChain, LoopBlock, MatchArm, MatchBlock, Statement, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::rc_str::RcStr` [INFO] [stdout] --> crates/codegen/src/utils/rc_vec.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | use super::rc_str::RcStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PathBuf`, `Path`, and `collections::HashMap` [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | collections::HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 3 | path::{Path, PathBuf}, [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lexer::ast::Program` [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::lexer::ast::Program; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TargetIsa`, `UserExternalName`, and `UserFuncName` [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:11:26 [INFO] [stdout] | [INFO] [stdout] 11 | ir::{types::I64, UserExternalName, UserFuncName}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] 12 | isa::{CallConv, TargetFrontendConfig, TargetIsa}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FuncId` [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:18:45 [INFO] [stdout] | [INFO] [stdout] 18 | default_libcall_names, DataDescription, FuncId, FuncOrDataId, Linkage, Module, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FieldInit` [INFO] [stdout] --> crates/codegen/src/backend/simple.rs:5:42 [INFO] [stdout] | [INFO] [stdout] 5 | Block, BlockItem, Declaration, Expr, FieldInit, Program, Statement, TypeDef, TypeDefBody, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Context`, `ExternalName`, `FuncRef`, `UserExternalNameRef`, `UserExternalName`, and `types::I64` [INFO] [stdout] --> crates/codegen/src/frontend/compile.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | types::I64, AbiParam, ExternalName, FuncRef, InstBuilder, Signature, UserExternalName, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | UserExternalNameRef, UserFuncName, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | }, [INFO] [stdout] 10 | settings, Context, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ModuleError` [INFO] [stdout] --> crates/codegen/src/frontend/compile.rs:17:70 [INFO] [stdout] | [INFO] [stdout] 17 | default_libcall_names, DataDescription, FuncId, Linkage, Module, ModuleError, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MsVariable` [INFO] [stdout] --> crates/codegen/src/frontend/compile.rs:25:35 [INFO] [stdout] | [INFO] [stdout] 25 | variable::{MsBackendVariable, MsVariable}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Configurable`, `Flags`, `frontend::FunctionBuilderContext`, and `self` [INFO] [stdout] --> crates/codegen/src/frontend/compiler.rs:2:25 [INFO] [stdout] | [INFO] [stdout] 2 | codegen::settings::{self, Configurable, Flags}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] 3 | frontend::FunctionBuilderContext, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DataDescription`, `Module`, and `default_libcall_names` [INFO] [stdout] --> crates/codegen/src/frontend/compiler.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | use cranelift_module::{default_libcall_names, DataDescription, Module}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ObjectBuilder` and `ObjectModule` [INFO] [stdout] --> crates/codegen/src/frontend/compiler.rs:6:24 [INFO] [stdout] | [INFO] [stdout] 6 | use cranelift_object::{ObjectBuilder, ObjectModule}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FunctionDeclaration` and `StructRegistry` [INFO] [stdout] --> crates/codegen/src/frontend/compiler.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | use super::tokens::{FunctionDeclaration, MsFunctionDeclaration, StructRegistry}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::anyhow` [INFO] [stdout] --> crates/codegen/src/frontend/compiler.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use anyhow::anyhow; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> crates/codegen/src/frontend/function.rs:1:34 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{BTreeMap, HashMap}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Signature`, `UserExternalName`, and `UserFuncName` [INFO] [stdout] --> crates/codegen/src/frontend/function.rs:7:45 [INFO] [stdout] | [INFO] [stdout] 7 | AbiParam, FuncRef, InstBuilder, Signature, UserExternalName, UserFuncName, Value, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mantis_parser::ast::BinOp as BinaryOperation` [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use mantis_parser::ast::BinOp as BinaryOperation; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rc::Rc` [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:3:34 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{collections::BTreeMap, rc::Rc}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AbiParam`, `StackSlot`, `condcodes`, and `stackslot::StackSize` [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:6:19 [INFO] [stdout] | [INFO] [stdout] 6 | codegen::ir::{condcodes, stackslot::StackSize, types, AbiParam, StackSlot, Type}, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DataDescription`, `FuncOrDataId`, `Linkage`, and `Module` [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | use cranelift_module::{DataDescription, FuncOrDataId, Linkage, Module}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `logos::Logos` [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use logos::Logos; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MsFunctionRegistry`, `MsFunctionTemplates`, `MsFunctionType`, `MsLoopScopes`, `MsModuleRegistry`, `MsModule`, `MsNativeType`, `MsScopes`, `MsTraitTemplates`, `MsTypeTemplates`, `MsVal`, `MsVarScopes`, `MsVar`, `libc::libc::declare_external_function`, and `traits::MsTraitRegistry` [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | libc::libc::declare_external_function, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | FunctionType, MsFunctionRegistry, MsFunctionTemplates, MsFunctionType, MsTraitTemplates, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | }, [INFO] [stdout] 21 | modules::{MsModule, MsModuleRegistry}, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] 22 | traits::MsTraitRegistry, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 23 | types::{MsNativeType, MsType, MsTypeRegistry, MsTypeTemplates}, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] 24 | variable::{MsVal, MsVar, MsVarRegistry}, [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | scope::{MsLoopScopes, MsScopes, MsVarScopes}, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mantis_parser::token::Token as MantisLexerTokens` [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | use mantis_parser::token::Token as MantisLexerTokens; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> crates/codegen/src/frontend/variable.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Context` and `FunctionBuilderContext` [INFO] [stdout] --> crates/codegen/src/frontend/variable.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | codegen::{ir::Type, Context}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 5 | frontend::{FunctionBuilder, FunctionBuilderContext}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rc::Rc` [INFO] [stdout] --> crates/codegen/src/lexer/ast.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, rc::Rc}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ops::Deref` and `rc::Rc` [INFO] [stdout] --> crates/codegen/src/lexer/code_parser.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{ops::Deref, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `bi_directional_iterator::BiDerectionalIterator` and `rc_vec::RcVec` [INFO] [stdout] --> crates/codegen/src/lexer/code_parser.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::utils::{bi_directional_iterator::BiDerectionalIterator, rc_str::RcStr, rc_vec::RcVec}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::types::Token` [INFO] [stdout] --> crates/codegen/src/lexer/code_parser.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use super::types::Token; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> crates/codegen/src/lexer/token_parser.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rc_str::RcStr` [INFO] [stdout] --> crates/codegen/src/lexer/token_parser.rs:3:68 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::utils::{bi_directional_iterator::BiDerectionalIterator, rc_str::RcStr, rc_vec::RcVec}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> crates/codegen/src/lexer/types.rs:154:20 [INFO] [stdout] | [INFO] [stdout] 154 | return (Self::Keyword(val)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 154 - return (Self::Keyword(val)); [INFO] [stdout] 154 + return Self::Keyword(val); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> crates/codegen/src/lexer/types.rs:157:20 [INFO] [stdout] | [INFO] [stdout] 157 | return (Self::Number(val)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 157 - return (Self::Number(val)); [INFO] [stdout] 157 + return Self::Number(val); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> crates/codegen/src/lexer/types.rs:160:20 [INFO] [stdout] | [INFO] [stdout] 160 | return (Self::Symbol(val)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 160 - return (Self::Symbol(val)); [INFO] [stdout] 160 + return Self::Symbol(val); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> crates/codegen/src/lexer/types.rs:163:20 [INFO] [stdout] | [INFO] [stdout] 163 | return (Self::Operator(val)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 163 - return (Self::Operator(val)); [INFO] [stdout] 163 + return Self::Operator(val); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> crates/codegen/src/lexer/types.rs:165:20 [INFO] [stdout] | [INFO] [stdout] 165 | return (Self::Unknown(s.to_string().into())); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 165 - return (Self::Unknown(s.to_string().into())); [INFO] [stdout] 165 + return Self::Unknown(s.to_string().into()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::BTreeMap` [INFO] [stdout] --> crates/codegen/src/libc/libc.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::BTreeMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FuncRef`, `GlobalValueData`, `Inst`, `UserExternalName`, `UserFuncName`, `Variable`, and `self` [INFO] [stdout] --> crates/codegen/src/libc/libc.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | self, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | types::{self, I64}, [INFO] [stdout] 10 | AbiParam, FuncRef, GlobalValueData, Inst, InstBuilder, Signature, [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] 11 | UserExternalName, UserFuncName, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | frontend::{FunctionBuilder, FunctionBuilderContext, Variable}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MsFunctionRegistry`, `MsFunctionTemplates`, `MsModuleRegistry`, `MsScopes`, `MsTraitTemplates`, `MsTypeRegistry`, `MsTypeTemplates`, and `traits::MsTraitRegistry` [INFO] [stdout] --> crates/codegen/src/ms.rs:20:21 [INFO] [stdout] | [INFO] [stdout] 20 | functions::{MsFunctionRegistry, MsFunctionTemplates, MsInstantiation, MsTraitTemplates}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | modules::{MsModule, MsModuleRegistry}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 22 | traits::MsTraitRegistry, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 23 | types::{MsTypeRegistry, MsTypeTemplates}, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] 24 | }, [INFO] [stdout] 25 | scope::{drop_scopes_until_index, MsLoopScope, MsLoopScopes, MsScopes, MsVarScopes}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DataDescription`, `FuncOrDataId`, `Linkage`, and `Module` [INFO] [stdout] --> crates/codegen/src/native/instructions.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use cranelift_module::{DataDescription, FuncOrDataId, Linkage, Module}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cranelift_object::ObjectModule` [INFO] [stdout] --> crates/codegen/src/native/instructions.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use cranelift_object::ObjectModule; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MsType` [INFO] [stdout] --> crates/codegen/src/native/instructions.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | types::{MsType, MsTypeId, MsTypeWithId}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Cow` [INFO] [stdout] --> crates/codegen/src/registries/compiler_functions.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Cow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `StackSlotData` and `types` [INFO] [stdout] --> crates/codegen/src/registries/compiler_functions.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use cranelift::prelude::{types, FunctionBuilder, InstBuilder, StackSlotData}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mantis_parser::ast::Expr` [INFO] [stdout] --> crates/codegen/src/registries/compiler_functions.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use mantis_parser::ast::Expr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MsRegistryExt`, `MsRegistry`, `MsVar`, and `types::MsType` [INFO] [stdout] --> crates/codegen/src/registries/compiler_functions.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | types::MsType, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 12 | variable::{MsVal, MsVar}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 13 | MsRegistry, MsRegistryExt, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MsRegistry` and `TypeNameWithGenerics` [INFO] [stdout] --> crates/codegen/src/registries/functions.rs:10:31 [INFO] [stdout] | [INFO] [stdout] 10 | types::{MsType, MsTypeId, TypeNameWithGenerics}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | MsRegistry, MsRegistryExt, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Path` and `fs::FileType` [INFO] [stdout] --> crates/codegen/src/registries/modules.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | fs::FileType, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 5 | path::{Path, PathBuf}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `backend::compile_function::random_string`, `native::instructions::Either`, `structs::MsStructType`, and `types::StructWithGenerics` [INFO] [stdout] --> crates/codegen/src/registries/modules.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | backend::compile_function::random_string, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | native::instructions::Either, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | registries::{structs::MsStructType, types::StructWithGenerics}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EnumWithGenerics` and `MsTypeRegistry` [INFO] [stdout] --> crates/codegen/src/registries/modules.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | EnumWithGenerics, MsGenericTemplate, MsGenericTemplateInner, MsType, MsTypeId, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 26 | MsTypeMethodRegistry, MsTypeNameRegistry, MsTypeRegistry, MsTypeTemplates, MsTypeWithId, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Cow` [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Cow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeMap` [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | collections::{BTreeMap, HashMap}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `isa::TargetFrontendConfig` [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | isa::TargetFrontendConfig, types, AbiParam, FunctionBuilder, InstBuilder, MemFlagsData, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DataDescription` and `Linkage` [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:14:24 [INFO] [stdout] | [INFO] [stdout] 14 | use cranelift_module::{DataDescription, FuncOrDataId, Linkage, Module}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Either` [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:21:28 [INFO] [stdout] | [INFO] [stdout] 21 | native::instructions::{Either, NodeResult}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MsGenericTemplate` and `MsRegistry` [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | types::{MsGenericTemplate, MsType, MsTypeId, MsTypeWithId}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 27 | variable::MsVal, [INFO] [stdout] 28 | MsRegistry, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeMap` [INFO] [stdout] --> crates/codegen/src/registries/types.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | collections::{BTreeMap, HashMap}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Inst` [INFO] [stdout] --> crates/codegen/src/registries/types.rs:9:30 [INFO] [stdout] | [INFO] [stdout] 9 | use codegen::ir::{condcodes, Inst}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> crates/codegen/src/registries/types.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | self, BinOp as BinaryOperation, FnDecl as FunctionDecl, TypeExpr, TypeExpr as MsTokenType, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MsResolved`, `backend::compile_function::random_string`, and `native::instructions::Either` [INFO] [stdout] --> crates/codegen/src/registries/types.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | backend::compile_function::random_string, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 18 | native::instructions::Either, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | modules::{MsModule, MsResolved}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Cow` [INFO] [stdout] --> crates/codegen/src/registries/variable.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Cow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MsRegistryExt`, `MsRegistry`, and `MsType` [INFO] [stdout] --> crates/codegen/src/registries/variable.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | types::{MsType, MsTypeId}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 9 | MsRegistry, MsRegistryExt, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Cow` [INFO] [stdout] --> crates/codegen/src/scope.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Cow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `any::Any` [INFO] [stdout] --> crates/codegen/src/scope.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{any::Any, ops::Deref}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `types` [INFO] [stdout] --> crates/codegen/src/scope.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | prelude::{types, Block, FunctionBuilder, InstBuilder}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cranelift_module::Module` [INFO] [stdout] --> crates/codegen/src/scope.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use cranelift_module::Module; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MsScopeType` [INFO] [stdout] --> crates/codegen/src/scope.rs:12:50 [INFO] [stdout] | [INFO] [stdout] 12 | frontend::tokens::{MsClScope, MsClScopeType, MsScopeType}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `path::Iter` [INFO] [stdout] --> crates/codegen/src/utils/bi_directional_iterator.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{ops::Deref, path::Iter}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::rc_str::RcStr` [INFO] [stdout] --> crates/codegen/src/utils/rc_vec.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | use super::rc_str::RcStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:712:35 [INFO] [stdout] | [INFO] [stdout] 712 | let value = fbx.ins().iadd_imm(root_struct_ptr, field.offset as i64); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:722:35 [INFO] [stdout] | [INFO] [stdout] 722 | let value = fbx.ins().iadd_imm(root_struct_ptr, field.offset as i64); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:728:5 [INFO] [stdout] | [INFO] [stdout] 704 | / match child { [INFO] [stdout] 705 | | MsTokenType::Named(ident) => { [INFO] [stdout] 706 | | let field_name = ident.name.as_str(); [INFO] [stdout] 707 | | let ty = struct_ty; [INFO] [stdout] ... | [INFO] [stdout] 725 | | _ => unreachable!(), [INFO] [stdout] 726 | | } [INFO] [stdout] | |_____- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 727 | [INFO] [stdout] 728 | todo!() [INFO] [stdout] | ^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::icmp_imm`: use `icmp_imm_s` (sign-extends the immediate) or `icmp_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:809:55 [INFO] [stdout] | [INFO] [stdout] 809 | ... let value = fbx.ins().icmp_imm(op, tag, expected_tag as i64); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:1076:47 [INFO] [stdout] | [INFO] [stdout] 1076 | let field_ptr = fbx.ins().iadd_imm(base_ptr, field_offset as i64); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:712:35 [INFO] [stdout] | [INFO] [stdout] 712 | let value = fbx.ins().iadd_imm(root_struct_ptr, field.offset as i64); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:722:35 [INFO] [stdout] | [INFO] [stdout] 722 | let value = fbx.ins().iadd_imm(root_struct_ptr, field.offset as i64); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:728:5 [INFO] [stdout] | [INFO] [stdout] 704 | / match child { [INFO] [stdout] 705 | | MsTokenType::Named(ident) => { [INFO] [stdout] 706 | | let field_name = ident.name.as_str(); [INFO] [stdout] 707 | | let ty = struct_ty; [INFO] [stdout] ... | [INFO] [stdout] 725 | | _ => unreachable!(), [INFO] [stdout] 726 | | } [INFO] [stdout] | |_____- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 727 | [INFO] [stdout] 728 | todo!() [INFO] [stdout] | ^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:1245:54 [INFO] [stdout] | [INFO] [stdout] 1245 | ... let addr = fbx.ins().iadd_imm(ptr, f.offset as i64); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::icmp_imm`: use `icmp_imm_s` (sign-extends the immediate) or `icmp_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:809:55 [INFO] [stdout] | [INFO] [stdout] 809 | ... let value = fbx.ins().icmp_imm(op, tag, expected_tag as i64); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:1076:47 [INFO] [stdout] | [INFO] [stdout] 1076 | let field_ptr = fbx.ins().iadd_imm(base_ptr, field_offset as i64); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:1245:54 [INFO] [stdout] | [INFO] [stdout] 1245 | ... let addr = fbx.ins().iadd_imm(ptr, f.offset as i64); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:1954:56 [INFO] [stdout] | [INFO] [stdout] 1954 | ... let field_addr = fbx.ins().iadd_imm(val, field.offset as i64); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:2478:46 [INFO] [stdout] | [INFO] [stdout] 2478 | let data_ptr = fbx.ins().iadd_imm(ptr, 8); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:1954:56 [INFO] [stdout] | [INFO] [stdout] 1954 | ... let field_addr = fbx.ins().iadd_imm(val, field.offset as i64); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:2478:46 [INFO] [stdout] | [INFO] [stdout] 2478 | let data_ptr = fbx.ins().iadd_imm(ptr, 8); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:2716:36 [INFO] [stdout] | [INFO] [stdout] 2716 | } => fbx.ins().iadd_imm(ptr, old_offset as i64), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:2720:43 [INFO] [stdout] | [INFO] [stdout] 2720 | let field_ptr = fbx.ins().iadd_imm(root_ptr, offset as i64); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::icmp_imm`: use `icmp_imm_s` (sign-extends the immediate) or `icmp_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:3312:31 [INFO] [stdout] | [INFO] [stdout] 3312 | fbx.ins().icmp_imm(IntCC::Equal, tag, tag_idx as i64) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:2716:36 [INFO] [stdout] | [INFO] [stdout] 2716 | } => fbx.ins().iadd_imm(ptr, old_offset as i64), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:2720:43 [INFO] [stdout] | [INFO] [stdout] 2720 | let field_ptr = fbx.ins().iadd_imm(root_ptr, offset as i64); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:3403:62 [INFO] [stdout] | [INFO] [stdout] 3403 | ... let data_ptr = fbx.ins().iadd_imm(scrutinee_val, 8); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:3466:48 [INFO] [stdout] | [INFO] [stdout] 3466 | let l_len_addr = fbx.ins().iadd_imm(lhs, len_field_offset); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:3471:48 [INFO] [stdout] | [INFO] [stdout] 3471 | let r_len_addr = fbx.ins().iadd_imm(rhs, len_field_offset); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:3481:48 [INFO] [stdout] | [INFO] [stdout] 3481 | let l_ptr_addr = fbx.ins().iadd_imm(lhs, ptr_field_offset); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:3485:48 [INFO] [stdout] | [INFO] [stdout] 3485 | let r_ptr_addr = fbx.ins().iadd_imm(rhs, ptr_field_offset); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::icmp_imm`: use `icmp_imm_s` (sign-extends the immediate) or `icmp_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:3499:44 [INFO] [stdout] | [INFO] [stdout] 3499 | let mem_eq = fbx.ins().icmp_imm(IntCC::Equal, res, 0); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::icmp_imm`: use `icmp_imm_s` (sign-extends the immediate) or `icmp_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:3312:31 [INFO] [stdout] | [INFO] [stdout] 3312 | fbx.ins().icmp_imm(IntCC::Equal, tag, tag_idx as i64) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:3403:62 [INFO] [stdout] | [INFO] [stdout] 3403 | ... let data_ptr = fbx.ins().iadd_imm(scrutinee_val, 8); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:3466:48 [INFO] [stdout] | [INFO] [stdout] 3466 | let l_len_addr = fbx.ins().iadd_imm(lhs, len_field_offset); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:3471:48 [INFO] [stdout] | [INFO] [stdout] 3471 | let r_len_addr = fbx.ins().iadd_imm(rhs, len_field_offset); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:3481:48 [INFO] [stdout] | [INFO] [stdout] 3481 | let l_ptr_addr = fbx.ins().iadd_imm(lhs, ptr_field_offset); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:3485:48 [INFO] [stdout] | [INFO] [stdout] 3485 | let r_ptr_addr = fbx.ins().iadd_imm(rhs, ptr_field_offset); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::icmp_imm`: use `icmp_imm_s` (sign-extends the immediate) or `icmp_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:3499:44 [INFO] [stdout] | [INFO] [stdout] 3499 | let mem_eq = fbx.ins().icmp_imm(IntCC::Equal, res, 0); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/drop_gen.rs:275:44 [INFO] [stdout] | [INFO] [stdout] 275 | let field_addr = builder.ins().iadd_imm(self_ptr, *offset); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::icmp_imm`: use `icmp_imm_s` (sign-extends the immediate) or `icmp_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:267:25 [INFO] [stdout] | [INFO] [stdout] 267 | |f| f.ins().icmp_imm(condcodes::IntCC::Equal, a, 1), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::icmp_imm`: use `icmp_imm_s` (sign-extends the immediate) or `icmp_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:278:25 [INFO] [stdout] | [INFO] [stdout] 278 | |f| f.ins().icmp_imm(condcodes::IntCC::Equal, a, 2), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::icmp_imm`: use `icmp_imm_s` (sign-extends the immediate) or `icmp_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:287:25 [INFO] [stdout] | [INFO] [stdout] 287 | |f| f.ins().icmp_imm(condcodes::IntCC::Equal, a, 3), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:375:35 [INFO] [stdout] | [INFO] [stdout] 375 | let val = f.ins().iadd_imm(ivalue, 1); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::icmp_imm`: use `icmp_imm_s` (sign-extends the immediate) or `icmp_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:385:25 [INFO] [stdout] | [INFO] [stdout] 385 | f.ins().icmp_imm(condcodes::IntCC::NotEqual, ivalue, 6) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:398:27 [INFO] [stdout] | [INFO] [stdout] 398 | let val = f.ins().iadd_imm(ival, 2); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/drop_gen.rs:275:44 [INFO] [stdout] | [INFO] [stdout] 275 | let field_addr = builder.ins().iadd_imm(self_ptr, *offset); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::rotl_imm`: use `rotl_imm_s` (sign-extends the immediate) or `rotl_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:492:29 [INFO] [stdout] | [INFO] [stdout] 492 | let a_shifted = f.ins().rotl_imm(a, 8); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:551:27 [INFO] [stdout] | [INFO] [stdout] 551 | let foo_ptr = f.ins().iadd_imm(rbp, 0x10); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::imul_imm`: use `imul_imm_s` (sign-extends the immediate) or `imul_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:578:27 [INFO] [stdout] | [INFO] [stdout] 578 | let val = f.ins().imul_imm(val, 8); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::icmp_imm`: use `icmp_imm_s` (sign-extends the immediate) or `icmp_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:631:10 [INFO] [stdout] | [INFO] [stdout] 631 | .icmp_imm(condcodes::IntCC::SignedLessThanOrEqual, n, 1); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:640:31 [INFO] [stdout] | [INFO] [stdout] 640 | let n_minus_one = f.ins().iadd_imm(n, -1); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:641:31 [INFO] [stdout] | [INFO] [stdout] 641 | let n_minus_two = f.ins().iadd_imm(n, -2); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::icmp_imm`: use `icmp_imm_s` (sign-extends the immediate) or `icmp_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:267:25 [INFO] [stdout] | [INFO] [stdout] 267 | |f| f.ins().icmp_imm(condcodes::IntCC::Equal, a, 1), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::icmp_imm`: use `icmp_imm_s` (sign-extends the immediate) or `icmp_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:278:25 [INFO] [stdout] | [INFO] [stdout] 278 | |f| f.ins().icmp_imm(condcodes::IntCC::Equal, a, 2), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::icmp_imm`: use `icmp_imm_s` (sign-extends the immediate) or `icmp_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:287:25 [INFO] [stdout] | [INFO] [stdout] 287 | |f| f.ins().icmp_imm(condcodes::IntCC::Equal, a, 3), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:375:35 [INFO] [stdout] | [INFO] [stdout] 375 | let val = f.ins().iadd_imm(ivalue, 1); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::icmp_imm`: use `icmp_imm_s` (sign-extends the immediate) or `icmp_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:385:25 [INFO] [stdout] | [INFO] [stdout] 385 | f.ins().icmp_imm(condcodes::IntCC::NotEqual, ivalue, 6) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:398:27 [INFO] [stdout] | [INFO] [stdout] 398 | let val = f.ins().iadd_imm(ival, 2); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::rotl_imm`: use `rotl_imm_s` (sign-extends the immediate) or `rotl_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:492:29 [INFO] [stdout] | [INFO] [stdout] 492 | let a_shifted = f.ins().rotl_imm(a, 8); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:551:27 [INFO] [stdout] | [INFO] [stdout] 551 | let foo_ptr = f.ins().iadd_imm(rbp, 0x10); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::imul_imm`: use `imul_imm_s` (sign-extends the immediate) or `imul_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:578:27 [INFO] [stdout] | [INFO] [stdout] 578 | let val = f.ins().imul_imm(val, 8); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::icmp_imm`: use `icmp_imm_s` (sign-extends the immediate) or `icmp_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:631:10 [INFO] [stdout] | [INFO] [stdout] 631 | .icmp_imm(condcodes::IntCC::SignedLessThanOrEqual, n, 1); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:640:31 [INFO] [stdout] | [INFO] [stdout] 640 | let n_minus_one = f.ins().iadd_imm(n, -1); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:641:31 [INFO] [stdout] | [INFO] [stdout] 641 | let n_minus_two = f.ins().iadd_imm(n, -2); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/simple.rs:586:43 [INFO] [stdout] | [INFO] [stdout] 586 | let field_ptr = builder.ins().iadd_imm(parent_ptr, field_info.offset as i64); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/simple.rs:916:47 [INFO] [stdout] | [INFO] [stdout] 916 | let field_ptr = builder.ins().iadd_imm(base_ptr, field_info.offset as i64); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/simple.rs:586:43 [INFO] [stdout] | [INFO] [stdout] 586 | let field_ptr = builder.ins().iadd_imm(parent_ptr, field_info.offset as i64); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/backend/simple.rs:916:47 [INFO] [stdout] | [INFO] [stdout] 916 | let field_ptr = builder.ins().iadd_imm(base_ptr, field_info.offset as i64); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:218:17 [INFO] [stdout] | [INFO] [stdout] 217 | panic!("Unhandled Type {:?}", self); [INFO] [stdout] | ----------------------------------- any code following this expression is unreachable [INFO] [stdout] 218 | return None; [INFO] [stdout] | ^^^^^^^^^^^^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:232:17 [INFO] [stdout] | [INFO] [stdout] 231 | panic!("unhandled type {:?}", self); [INFO] [stdout] | ----------------------------------- any code following this expression is unreachable [INFO] [stdout] 232 | return 0; [INFO] [stdout] | ^^^^^^^^^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:218:17 [INFO] [stdout] | [INFO] [stdout] 217 | panic!("Unhandled Type {:?}", self); [INFO] [stdout] | ----------------------------------- any code following this expression is unreachable [INFO] [stdout] 218 | return None; [INFO] [stdout] | ^^^^^^^^^^^^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:232:17 [INFO] [stdout] | [INFO] [stdout] 231 | panic!("unhandled type {:?}", self); [INFO] [stdout] | ----------------------------------- any code following this expression is unreachable [INFO] [stdout] 232 | return 0; [INFO] [stdout] | ^^^^^^^^^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/native/instructions.rs:41:38 [INFO] [stdout] | [INFO] [stdout] 41 | let addr = fbx.ins().iadd_imm(*ptr, *offset as i64); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/native/instructions.rs:84:27 [INFO] [stdout] | [INFO] [stdout] 84 | fbx.ins().iadd_imm(*ptr, (*offset) as i64) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/native/instructions.rs:41:38 [INFO] [stdout] | [INFO] [stdout] 41 | let addr = fbx.ins().iadd_imm(*ptr, *offset as i64); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/native/instructions.rs:84:27 [INFO] [stdout] | [INFO] [stdout] 84 | fbx.ins().iadd_imm(*ptr, (*offset) as i64) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:154:47 [INFO] [stdout] | [INFO] [stdout] 154 | MsType::Struct(_sty) => fbx.ins().iadd_imm(ptr.value(), field.offset as i64), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:208:38 [INFO] [stdout] | [INFO] [stdout] 208 | let dest = fbx.ins().iadd_imm(ptr.value(), field.offset as i64); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:220:38 [INFO] [stdout] | [INFO] [stdout] 220 | let dest = fbx.ins().iadd_imm(ptr.value(), field.offset as i64); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:374:49 [INFO] [stdout] | [INFO] [stdout] 374 | let variant_ptr = fbx.ins().iadd_imm(self_ptr, 8); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:424:19 [INFO] [stdout] | [INFO] [stdout] 424 | fbx.ins().iadd_imm(ptr, 8) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> crates/codegen/src/registries/types.rs:55:17 [INFO] [stdout] | [INFO] [stdout] 54 | panic!("unhandled type {:?}", self); [INFO] [stdout] | ----------------------------------- any code following this expression is unreachable [INFO] [stdout] 55 | return 0; [INFO] [stdout] | ^^^^^^^^^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:154:47 [INFO] [stdout] | [INFO] [stdout] 154 | MsType::Struct(_sty) => fbx.ins().iadd_imm(ptr.value(), field.offset as i64), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:208:38 [INFO] [stdout] | [INFO] [stdout] 208 | let dest = fbx.ins().iadd_imm(ptr.value(), field.offset as i64); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:220:38 [INFO] [stdout] | [INFO] [stdout] 220 | let dest = fbx.ins().iadd_imm(ptr.value(), field.offset as i64); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:374:49 [INFO] [stdout] | [INFO] [stdout] 374 | let variant_ptr = fbx.ins().iadd_imm(self_ptr, 8); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cranelift::prelude::InstBuilder::iadd_imm`: use `iadd_imm_s` (sign-extends the immediate) or `iadd_imm_u` (zero-extends the immediate) instead [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:424:19 [INFO] [stdout] | [INFO] [stdout] 424 | fbx.ins().iadd_imm(ptr, 8) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> crates/codegen/src/registries/types.rs:55:17 [INFO] [stdout] | [INFO] [stdout] 54 | panic!("unhandled type {:?}", self); [INFO] [stdout] | ----------------------------------- any code following this expression is unreachable [INFO] [stdout] 55 | return 0; [INFO] [stdout] | ^^^^^^^^^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `logos::Source` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | use logos::Source; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::registries::MsRegistryExt` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | use crate::registries::MsRegistryExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MsRegistryExt` [INFO] [stdout] --> crates/codegen/src/registries/functions.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | MsRegistry, MsRegistryExt, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MsRegistryExt` [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:25:21 [INFO] [stdout] | [INFO] [stdout] 25 | MsRegistry, MsRegistryExt, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `entity::EntityRef` [INFO] [stdout] --> crates/codegen/src/libc/libc.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | entity::EntityRef, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ms_ctx` [INFO] [stdout] --> crates/codegen/src/backend/compile.rs:32:41 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn resolve_type_term(ty: &TypeExpr, ms_ctx: &MsContext) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_ms_ctx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `logos::Source` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | use logos::Source; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::registries::MsRegistryExt` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | use crate::registries::MsRegistryExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MsRegistryExt` [INFO] [stdout] --> crates/codegen/src/registries/functions.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | MsRegistry, MsRegistryExt, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MsRegistryExt` [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:25:21 [INFO] [stdout] | [INFO] [stdout] 25 | MsRegistry, MsRegistryExt, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `entity::EntityRef` [INFO] [stdout] --> crates/codegen/src/libc/libc.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | entity::EntityRef, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ms_ctx` [INFO] [stdout] --> crates/codegen/src/backend/compile.rs:32:41 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn resolve_type_term(ty: &TypeExpr, ms_ctx: &MsContext) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_ms_ctx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data_description` [INFO] [stdout] --> crates/codegen/src/backend/compile.rs:465:9 [INFO] [stdout] | [INFO] [stdout] 465 | let data_description = DataDescription::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_data_description` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i64_ty` [INFO] [stdout] --> crates/codegen/src/backend/compile.rs:527:13 [INFO] [stdout] | [INFO] [stdout] 527 | let i64_ty = ms_ctx [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_i64_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func_name` [INFO] [stdout] --> crates/codegen/src/backend/compile.rs:1385:29 [INFO] [stdout] | [INFO] [stdout] 1385 | let func_name: Box = name.into(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_func_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | let mut return_ty = { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `self_type` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | let self_type = if let Some(trait_on_type) = &trait_on_type { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_self_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:233:10 [INFO] [stdout] | [INFO] [stdout] 233 | for (i, param) in function.params.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:428:9 [INFO] [stdout] | [INFO] [stdout] 428 | let mut last_inst = None; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:463:5 [INFO] [stdout] | [INFO] [stdout] 463 | module: &mut ObjectModule, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ms_ctx` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:465:5 [INFO] [stdout] | [INFO] [stdout] 465 | ms_ctx: &mut MsContext, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_ms_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nty` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:541:24 [INFO] [stdout] | [INFO] [stdout] 541 | MsType::Native(nty) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_nty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:618:9 [INFO] [stdout] | [INFO] [stdout] 618 | _ => todo!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:618:9 [INFO] [stdout] | [INFO] [stdout] 591 | MsType::Native(nty) => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 596 | MsType::Struct(sty) => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 601 | MsType::Enum(ety) => { [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 613 | MsType::Ref(_, _) | MsType::Function(_) => { [INFO] [stdout] | --------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 618 | _ => todo!(), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nty` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:591:24 [INFO] [stdout] | [INFO] [stdout] 591 | MsType::Native(nty) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_nty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data_description` [INFO] [stdout] --> crates/codegen/src/backend/compile.rs:465:9 [INFO] [stdout] | [INFO] [stdout] 465 | let data_description = DataDescription::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_data_description` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i64_ty` [INFO] [stdout] --> crates/codegen/src/backend/compile.rs:527:13 [INFO] [stdout] | [INFO] [stdout] 527 | let i64_ty = ms_ctx [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_i64_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func_name` [INFO] [stdout] --> crates/codegen/src/backend/compile.rs:1385:29 [INFO] [stdout] | [INFO] [stdout] 1385 | let func_name: Box = name.into(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_func_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:626:5 [INFO] [stdout] | [INFO] [stdout] 626 | module: &mut ObjectModule, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:1902:21 [INFO] [stdout] | [INFO] [stdout] 1881 | MsType::Native(_nty) => {} [INFO] [stdout] | -------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 1902 | MsType::Native(_) | MsType::Ref(_, _) => {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | let mut return_ty = { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `self_type` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | let self_type = if let Some(trait_on_type) = &trait_on_type { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_self_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:233:10 [INFO] [stdout] | [INFO] [stdout] 233 | for (i, param) in function.params.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:428:9 [INFO] [stdout] | [INFO] [stdout] 428 | let mut last_inst = None; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:463:5 [INFO] [stdout] | [INFO] [stdout] 463 | module: &mut ObjectModule, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ms_ctx` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:465:5 [INFO] [stdout] | [INFO] [stdout] 465 | ms_ctx: &mut MsContext, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_ms_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nty` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:541:24 [INFO] [stdout] | [INFO] [stdout] 541 | MsType::Native(nty) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_nty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:618:9 [INFO] [stdout] | [INFO] [stdout] 618 | _ => todo!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:618:9 [INFO] [stdout] | [INFO] [stdout] 591 | MsType::Native(nty) => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 596 | MsType::Struct(sty) => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 601 | MsType::Enum(ety) => { [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 613 | MsType::Ref(_, _) | MsType::Function(_) => { [INFO] [stdout] | --------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 618 | _ => todo!(), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nty` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:591:24 [INFO] [stdout] | [INFO] [stdout] 591 | MsType::Native(nty) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_nty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:626:5 [INFO] [stdout] | [INFO] [stdout] 626 | module: &mut ObjectModule, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:1902:21 [INFO] [stdout] | [INFO] [stdout] 1881 | MsType::Native(_nty) => {} [INFO] [stdout] | -------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 1902 | MsType::Native(_) | MsType::Ref(_, _) => {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:738:32 [INFO] [stdout] | [INFO] [stdout] 738 | Expr::Cast { expr, ty, span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:755:13 [INFO] [stdout] | [INFO] [stdout] 755 | span, [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:762:38 [INFO] [stdout] | [INFO] [stdout] 762 | Expr::Binary { op, lhs, rhs, span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inner` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:924:33 [INFO] [stdout] | [INFO] [stdout] 924 | MsType::Ref(inner, _) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_inner` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:967:36 [INFO] [stdout] | [INFO] [stdout] 967 | Expr::Unary { op, operand, span } => match op { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:1091:36 [INFO] [stdout] | [INFO] [stdout] 1091 | Expr::Call { callee, args, span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fn_name` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:1529:17 [INFO] [stdout] | [INFO] [stdout] 1529 | let fn_name = callee.as_ref(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fn_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:2065:31 [INFO] [stdout] | [INFO] [stdout] 2065 | Expr::IntLit { value, span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:2075:33 [INFO] [stdout] | [INFO] [stdout] 2075 | Expr::FloatLit { value, span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cty` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:2081:17 [INFO] [stdout] | [INFO] [stdout] 2081 | let cty = ty.ty.to_cl_type().unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:2085:32 [INFO] [stdout] | [INFO] [stdout] 2085 | Expr::CharLit { value, span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:2096:32 [INFO] [stdout] | [INFO] [stdout] 2096 | Expr::BoolLit { value, span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `base` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:2254:25 [INFO] [stdout] | [INFO] [stdout] 2254 | Expr::Generic { base, params, span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `base: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:2254:31 [INFO] [stdout] | [INFO] [stdout] 2254 | Expr::Generic { base, params, span } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `params: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:2254:39 [INFO] [stdout] | [INFO] [stdout] 2254 | Expr::Generic { base, params, span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:2257:42 [INFO] [stdout] | [INFO] [stdout] 2257 | Expr::CompilerCall { name, args, span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:2533:27 [INFO] [stdout] | [INFO] [stdout] 2533 | Expr::Propagate { expr, span } => todo!("propagate operator"), [INFO] [stdout] | ^^^^ help: try ignoring the field: `expr: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:2533:33 [INFO] [stdout] | [INFO] [stdout] 2533 | Expr::Propagate { expr, span } => todo!("propagate operator"), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ms_native_type` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:2596:24 [INFO] [stdout] | [INFO] [stdout] 2596 | MsType::Native(ms_native_type) => { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ms_native_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:2998:21 [INFO] [stdout] | [INFO] [stdout] 2998 | let mut variable = [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nty` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:3017:44 [INFO] [stdout] | [INFO] [stdout] 3017 | ... MsType::Native(nty) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_nty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:3255:22 [INFO] [stdout] | [INFO] [stdout] 3255 | pub fn random_string(len: usize) -> String { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:3260:27 [INFO] [stdout] | [INFO] [stdout] 3260 | pub fn random_string_into(len: usize, mut w: impl Write) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:3591:13 [INFO] [stdout] | [INFO] [stdout] 3591 | let mut return_ty = if let Some(ref ret) = template.decl.return_type { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inferred_id` is never read [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:3776:27 [INFO] [stdout] | [INFO] [stdout] 3776 | let mut inferred_id = None; [INFO] [stdout] | ^^^^ this value is reassigned later and never used [INFO] [stdout] ... [INFO] [stdout] 3830 | inferred_id = find_return(body, &mut temp_fbx, module, ms_ctx); [INFO] [stdout] | -------------------------------------------------------------- `inferred_id` is overwritten here before the previous value is read [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `base` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:3911:30 [INFO] [stdout] | [INFO] [stdout] 3911 | MsTokenType::Generic(base, args) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_base` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:738:32 [INFO] [stdout] | [INFO] [stdout] 738 | Expr::Cast { expr, ty, span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:755:13 [INFO] [stdout] | [INFO] [stdout] 755 | span, [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:762:38 [INFO] [stdout] | [INFO] [stdout] 762 | Expr::Binary { op, lhs, rhs, span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inner` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:924:33 [INFO] [stdout] | [INFO] [stdout] 924 | MsType::Ref(inner, _) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_inner` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:967:36 [INFO] [stdout] | [INFO] [stdout] 967 | Expr::Unary { op, operand, span } => match op { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:1091:36 [INFO] [stdout] | [INFO] [stdout] 1091 | Expr::Call { callee, args, span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fn_name` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:1529:17 [INFO] [stdout] | [INFO] [stdout] 1529 | let fn_name = callee.as_ref(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fn_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:2065:31 [INFO] [stdout] | [INFO] [stdout] 2065 | Expr::IntLit { value, span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:2075:33 [INFO] [stdout] | [INFO] [stdout] 2075 | Expr::FloatLit { value, span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cty` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:2081:17 [INFO] [stdout] | [INFO] [stdout] 2081 | let cty = ty.ty.to_cl_type().unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:2085:32 [INFO] [stdout] | [INFO] [stdout] 2085 | Expr::CharLit { value, span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:2096:32 [INFO] [stdout] | [INFO] [stdout] 2096 | Expr::BoolLit { value, span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `base` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:2254:25 [INFO] [stdout] | [INFO] [stdout] 2254 | Expr::Generic { base, params, span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `base: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:2254:31 [INFO] [stdout] | [INFO] [stdout] 2254 | Expr::Generic { base, params, span } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `params: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:2254:39 [INFO] [stdout] | [INFO] [stdout] 2254 | Expr::Generic { base, params, span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:2257:42 [INFO] [stdout] | [INFO] [stdout] 2257 | Expr::CompilerCall { name, args, span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:2533:27 [INFO] [stdout] | [INFO] [stdout] 2533 | Expr::Propagate { expr, span } => todo!("propagate operator"), [INFO] [stdout] | ^^^^ help: try ignoring the field: `expr: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:2533:33 [INFO] [stdout] | [INFO] [stdout] 2533 | Expr::Propagate { expr, span } => todo!("propagate operator"), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ms_native_type` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:2596:24 [INFO] [stdout] | [INFO] [stdout] 2596 | MsType::Native(ms_native_type) => { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ms_native_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data_description` [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let data_description = DataDescription::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_data_description` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:2998:21 [INFO] [stdout] | [INFO] [stdout] 2998 | let mut variable = [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nty` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:3017:44 [INFO] [stdout] | [INFO] [stdout] 3017 | ... MsType::Native(nty) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_nty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:3255:22 [INFO] [stdout] | [INFO] [stdout] 3255 | pub fn random_string(len: usize) -> String { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size_of_foo` [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:453:9 [INFO] [stdout] | [INFO] [stdout] 453 | let size_of_foo = 32; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_size_of_foo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:3260:27 [INFO] [stdout] | [INFO] [stdout] 3260 | pub fn random_string_into(len: usize, mut w: impl Write) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack_pointer` [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:487:9 [INFO] [stdout] | [INFO] [stdout] 487 | let stack_pointer = f.block_params(entry_block)[0]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stack_pointer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:3591:13 [INFO] [stdout] | [INFO] [stdout] 3591 | let mut return_ty = if let Some(ref ret) = template.decl.return_type { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inferred_id` is never read [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:3776:27 [INFO] [stdout] | [INFO] [stdout] 3776 | let mut inferred_id = None; [INFO] [stdout] | ^^^^ this value is reassigned later and never used [INFO] [stdout] ... [INFO] [stdout] 3830 | inferred_id = find_return(body, &mut temp_fbx, module, ms_ctx); [INFO] [stdout] | -------------------------------------------------------------- `inferred_id` is overwritten here before the previous value is read [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `base` [INFO] [stdout] --> crates/codegen/src/backend/compile_function.rs:3911:30 [INFO] [stdout] | [INFO] [stdout] 3911 | MsTokenType::Generic(base, args) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_base` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `field_info` [INFO] [stdout] --> crates/codegen/src/backend/simple.rs:649:21 [INFO] [stdout] | [INFO] [stdout] 649 | let (field_ptr, field_info) = resolve_field_chain(builder, lhs, env, type_registry)?; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_field_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size_of_foo` [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:453:9 [INFO] [stdout] | [INFO] [stdout] 453 | let size_of_foo = 32; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_size_of_foo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stack_pointer` [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:487:9 [INFO] [stdout] | [INFO] [stdout] 487 | let stack_pointer = f.block_params(entry_block)[0]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stack_pointer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/codegen/src/config.rs:487:13 [INFO] [stdout] | [INFO] [stdout] 435 | Expr::PointerAssign { span, .. } => { [INFO] [stdout] | -------------------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 487 | Expr::PointerAssign { target, value, .. } => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `field_info` [INFO] [stdout] --> crates/codegen/src/backend/simple.rs:649:21 [INFO] [stdout] | [INFO] [stdout] 649 | let (field_ptr, field_info) = resolve_field_chain(builder, lhs, env, type_registry)?; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_field_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data_description` [INFO] [stdout] --> crates/codegen/src/frontend/compile.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | let data_description = DataDescription::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_data_description` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `functions` [INFO] [stdout] --> crates/codegen/src/frontend/compiler.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | functions: Vec, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_functions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `type_registry` [INFO] [stdout] --> crates/codegen/src/frontend/compiler.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | type_registry: MsTypeRegistry, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_registry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fn_registry` [INFO] [stdout] --> crates/codegen/src/frontend/compiler.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | fn_registry: MsFunctionRegistry, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fn_registry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:165:32 [INFO] [stdout] | [INFO] [stdout] 165 | pub fn field_offset(&self, k: &str) -> usize { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:282:34 [INFO] [stdout] | [INFO] [stdout] 282 | VariableType::Custom(s) => todo!(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ms_ctx` [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:429:9 [INFO] [stdout] | [INFO] [stdout] 429 | ms_ctx: &mut MsContext, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_ms_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fbx` [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:430:9 [INFO] [stdout] | [INFO] [stdout] 430 | fbx: &mut FunctionBuilder<'_>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_fbx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:431:9 [INFO] [stdout] | [INFO] [stdout] 431 | module: &mut ObjectModule, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:914:9 [INFO] [stdout] | [INFO] [stdout] 914 | ctx: &mut cranelift::prelude::codegen::Context, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fbx` [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:915:9 [INFO] [stdout] | [INFO] [stdout] 915 | fbx: &mut cranelift::prelude::FunctionBuilderContext, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_fbx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:916:9 [INFO] [stdout] | [INFO] [stdout] 916 | module: &mut ObjectModule, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ms_ctx` [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:917:9 [INFO] [stdout] | [INFO] [stdout] 917 | ms_ctx: &mut MsContext, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_ms_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> crates/codegen/src/lexer/ast.rs:141:37 [INFO] [stdout] | [INFO] [stdout] 141 | Expression::Assign(lhs, rhs) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `var` [INFO] [stdout] --> crates/codegen/src/lexer/ast.rs:142:29 [INFO] [stdout] | [INFO] [stdout] 142 | if let Some(var) = variables.get_mut(&lhs.name) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_var` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs` [INFO] [stdout] --> crates/codegen/src/lexer/node.rs:26:24 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn eval(&self, lhs: &Node, rhs: &Node) -> Node { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> crates/codegen/src/lexer/node.rs:26:36 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn eval(&self, lhs: &Node, rhs: &Node) -> Node { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/codegen/src/lexer/token_parser.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | let mut tokens = Vec::::with_capacity(self.code_words.len()); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `symbol` [INFO] [stdout] --> crates/codegen/src/lexer/token_parser.rs:22:34 [INFO] [stdout] | [INFO] [stdout] 22 | CodeWord::Symbol(symbol) => {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_symbol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `word` [INFO] [stdout] --> crates/codegen/src/lexer/token_parser.rs:23:32 [INFO] [stdout] | [INFO] [stdout] 23 | CodeWord::Word(word) => {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_word` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/codegen/src/config.rs:487:13 [INFO] [stdout] | [INFO] [stdout] 435 | Expr::PointerAssign { span, .. } => { [INFO] [stdout] | -------------------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 487 | Expr::PointerAssign { target, value, .. } => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_negative` [INFO] [stdout] --> crates/codegen/src/lexer/types.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | let is_negative = c == '-'; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_negative` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data_description` [INFO] [stdout] --> crates/codegen/src/frontend/compile.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | let data_description = DataDescription::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_data_description` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `functions` [INFO] [stdout] --> crates/codegen/src/frontend/compiler.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | functions: Vec, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_functions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `type_registry` [INFO] [stdout] --> crates/codegen/src/frontend/compiler.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | type_registry: MsTypeRegistry, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_registry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fn_registry` [INFO] [stdout] --> crates/codegen/src/frontend/compiler.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | fn_registry: MsFunctionRegistry, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fn_registry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data_description` [INFO] [stdout] --> crates/codegen/src/libc/libc.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | let data_description = DataDescription::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_data_description` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `main_func_id` [INFO] [stdout] --> crates/codegen/src/libc/libc.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | let main_func_id = { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_main_func_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `argc` [INFO] [stdout] --> crates/codegen/src/libc/libc.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | let argc = builder.block_params(entry_block)[0]; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_argc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `malloc_ptr` [INFO] [stdout] --> crates/codegen/src/libc/libc.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | let malloc_ptr = builder.inst_results(call_inst)[0]; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_malloc_ptr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:165:32 [INFO] [stdout] | [INFO] [stdout] 165 | pub fn field_offset(&self, k: &str) -> usize { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:282:34 [INFO] [stdout] | [INFO] [stdout] 282 | VariableType::Custom(s) => todo!(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ms_ctx` [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:429:9 [INFO] [stdout] | [INFO] [stdout] 429 | ms_ctx: &mut MsContext, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_ms_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fbx` [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:430:9 [INFO] [stdout] | [INFO] [stdout] 430 | fbx: &mut FunctionBuilder<'_>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_fbx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:431:9 [INFO] [stdout] | [INFO] [stdout] 431 | module: &mut ObjectModule, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:914:9 [INFO] [stdout] | [INFO] [stdout] 914 | ctx: &mut cranelift::prelude::codegen::Context, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fbx` [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:915:9 [INFO] [stdout] | [INFO] [stdout] 915 | fbx: &mut cranelift::prelude::FunctionBuilderContext, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_fbx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:916:9 [INFO] [stdout] | [INFO] [stdout] 916 | module: &mut ObjectModule, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ms_ctx` [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:917:9 [INFO] [stdout] | [INFO] [stdout] 917 | ms_ctx: &mut MsContext, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_ms_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/codegen/src/registries/modules.rs:529:13 [INFO] [stdout] | [INFO] [stdout] 529 | _ => unreachable!("unhandled {:?}", type_name), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/codegen/src/registries/modules.rs:529:13 [INFO] [stdout] | [INFO] [stdout] 212 | Type::Generic(base, generics) => { [INFO] [stdout] | ----------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 324 | Type::Named(ident) => { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 374 | Type::Nested(root, child) => { [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 487 | Type::Ref(ty, is_mutable) => { [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 529 | _ => unreachable!("unhandled {:?}", type_name), [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> crates/codegen/src/lexer/ast.rs:141:37 [INFO] [stdout] | [INFO] [stdout] 141 | Expression::Assign(lhs, rhs) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `var` [INFO] [stdout] --> crates/codegen/src/lexer/ast.rs:142:29 [INFO] [stdout] | [INFO] [stdout] 142 | if let Some(var) = variables.get_mut(&lhs.name) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_var` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> crates/codegen/src/registries/modules.rs:218:29 [INFO] [stdout] | [INFO] [stdout] 218 | ... other => "i64", [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs` [INFO] [stdout] --> crates/codegen/src/lexer/node.rs:26:24 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn eval(&self, lhs: &Node, rhs: &Node) -> Node { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> crates/codegen/src/lexer/node.rs:26:36 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn eval(&self, lhs: &Node, rhs: &Node) -> Node { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/codegen/src/lexer/token_parser.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | let mut tokens = Vec::::with_capacity(self.code_words.len()); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `symbol` [INFO] [stdout] --> crates/codegen/src/lexer/token_parser.rs:22:34 [INFO] [stdout] | [INFO] [stdout] 22 | CodeWord::Symbol(symbol) => {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_symbol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `word` [INFO] [stdout] --> crates/codegen/src/lexer/token_parser.rs:23:32 [INFO] [stdout] | [INFO] [stdout] 23 | CodeWord::Word(word) => {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_word` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_negative` [INFO] [stdout] --> crates/codegen/src/lexer/types.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | let is_negative = c == '-'; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_negative` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | module: &mut ObjectModule, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nty` [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:148:28 [INFO] [stdout] | [INFO] [stdout] 148 | MsType::Native(nty) => fbx.ins().load( [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_nty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ptr` [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:162:9 [INFO] [stdout] | [INFO] [stdout] 162 | ptr: MsVal, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ptr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `field` [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:163:9 [INFO] [stdout] | [INFO] [stdout] 163 | field: &str, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_field` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ms_ctx` [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 164 | ms_ctx: &mut MsContext, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_ms_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fbx` [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | fbx: &mut FunctionBuilder<'_>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_fbx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:166:9 [INFO] [stdout] | [INFO] [stdout] 166 | module: &mut ObjectModule, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:223:13 [INFO] [stdout] | [INFO] [stdout] 223 | _ => todo!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:223:13 [INFO] [stdout] | [INFO] [stdout] 188 | MsType::Native(nty) => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 207 | MsType::Struct(struct_ty) => { [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 211 | MsType::Ref(_, _) | MsType::Function(_) => { [INFO] [stdout] | --------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 219 | MsType::Enum(enum_ty) => { [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 223 | _ => todo!(), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `zero` [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:242:13 [INFO] [stdout] | [INFO] [stdout] 242 | let zero = fbx.ins().iconst(types::I64, 0); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_zero` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param_count` [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:244:13 [INFO] [stdout] | [INFO] [stdout] 244 | let param_count = fbx.func.dfg.signatures[sig].params.len(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_param_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ms_ctx` [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:437:9 [INFO] [stdout] | [INFO] [stdout] 437 | ms_ctx: &mut MsContext, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_ms_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data_description` [INFO] [stdout] --> crates/codegen/src/libc/libc.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | let data_description = DataDescription::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_data_description` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `main_func_id` [INFO] [stdout] --> crates/codegen/src/libc/libc.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | let main_func_id = { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_main_func_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `argc` [INFO] [stdout] --> crates/codegen/src/libc/libc.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | let argc = builder.block_params(entry_block)[0]; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_argc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `malloc_ptr` [INFO] [stdout] --> crates/codegen/src/libc/libc.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | let malloc_ptr = builder.inst_results(call_inst)[0]; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_malloc_ptr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/codegen/src/registries/types.rs:227:13 [INFO] [stdout] | [INFO] [stdout] 227 | _ => panic!("Non native casting not supported yet"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/codegen/src/registries/types.rs:227:13 [INFO] [stdout] | [INFO] [stdout] 225 | MsType::Native(nty) => nty, [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] 226 | MsType::Function(_) | MsType::Ref(_, _) | MsType::Struct(_) | MsType::Enum(_) => return lhs, [INFO] [stdout] | ----------------------------------------------------------------------------- matches some of the same values [INFO] [stdout] 227 | _ => panic!("Non native casting not supported yet"), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `real_types` [INFO] [stdout] --> crates/codegen/src/registries/types.rs:568:9 [INFO] [stdout] | [INFO] [stdout] 568 | real_types: &&HashMap, MsTypeWithId>, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_real_types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ms_module` [INFO] [stdout] --> crates/codegen/src/registries/types.rs:569:9 [INFO] [stdout] | [INFO] [stdout] 569 | ms_module: &mut MsModule, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ms_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/codegen/src/registries/types.rs:740:13 [INFO] [stdout] | [INFO] [stdout] 740 | _ => todo!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/codegen/src/registries/types.rs:740:13 [INFO] [stdout] | [INFO] [stdout] 732 | MsType::Native(ty) => ty.size(), [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] 733 | MsType::Struct(ty) => ty.size(), [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] 734 | MsType::Ref(_ty, _) => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 738 | MsType::Enum(ety) => ety.max_variant_size() + 8, [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 739 | MsType::Function(_) => 8, [INFO] [stdout] 740 | _ => todo!(), [INFO] [stdout] | ^ ...and 1 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/codegen/src/registries/types.rs:751:13 [INFO] [stdout] | [INFO] [stdout] 751 | _ => todo!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/codegen/src/registries/types.rs:751:13 [INFO] [stdout] | [INFO] [stdout] 746 | MsType::Native(ty) => ty.align(), [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] 747 | MsType::Struct(ty) => ty.align(), [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] 748 | MsType::Ref(_, _) => 8, [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 749 | MsType::Enum(_) => 8, [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 750 | MsType::Function(_) => 8, [INFO] [stdout] 751 | _ => todo!(), [INFO] [stdout] | ^ ...and 1 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/codegen/src/registries/types.rs:762:13 [INFO] [stdout] | [INFO] [stdout] 762 | _ => todo!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/codegen/src/registries/types.rs:762:13 [INFO] [stdout] | [INFO] [stdout] 757 | MsType::Native(ty) => ty.to_abi_param(), [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] 758 | MsType::Struct(ty) => Some(ty.to_abi_param()), [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] 759 | MsType::Ref(_, _) => Some(AbiParam::new(types::I64)), [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 760 | MsType::Enum(ty) => Some(ty.to_abi_param()), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 761 | MsType::Function(_) => Some(AbiParam::new(types::I64)), [INFO] [stdout] 762 | _ => todo!(), [INFO] [stdout] | ^ ...and 1 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/codegen/src/registries/types.rs:773:13 [INFO] [stdout] | [INFO] [stdout] 773 | _ => todo!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/codegen/src/registries/types.rs:773:13 [INFO] [stdout] | [INFO] [stdout] 768 | MsType::Native(ty) => ty.to_cl_type(), [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] 769 | MsType::Ref(ty, _) => Some(types::I64), [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] 770 | MsType::Struct(_) => Some(types::I64), [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 771 | MsType::Enum(ty) => Some(ty.to_cl_type()), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 772 | MsType::Function(_) => Some(types::I64), [INFO] [stdout] 773 | _ => todo!(), [INFO] [stdout] | ^ ...and 1 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/codegen/src/registries/types.rs:769:25 [INFO] [stdout] | [INFO] [stdout] 769 | MsType::Ref(ty, _) => Some(types::I64), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/codegen/src/registries/modules.rs:529:13 [INFO] [stdout] | [INFO] [stdout] 529 | _ => unreachable!("unhandled {:?}", type_name), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/codegen/src/registries/modules.rs:529:13 [INFO] [stdout] | [INFO] [stdout] 212 | Type::Generic(base, generics) => { [INFO] [stdout] | ----------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 324 | Type::Named(ident) => { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 374 | Type::Nested(root, child) => { [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 487 | Type::Ref(ty, is_mutable) => { [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 529 | _ => unreachable!("unhandled {:?}", type_name), [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/codegen/src/registries/mod.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | let mut registry = MsTypeNameRegistry::with_default_types(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `variable` [INFO] [stdout] --> crates/codegen/src/resolver.rs:23:21 [INFO] [stdout] | [INFO] [stdout] 23 | if let Some(variable) = self.scopes.get_variable(path[0]) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_variable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> crates/codegen/src/registries/modules.rs:218:29 [INFO] [stdout] | [INFO] [stdout] 218 | ... other => "i64", [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | module: &mut ObjectModule, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nty` [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:148:28 [INFO] [stdout] | [INFO] [stdout] 148 | MsType::Native(nty) => fbx.ins().load( [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_nty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ptr` [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:162:9 [INFO] [stdout] | [INFO] [stdout] 162 | ptr: MsVal, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ptr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `field` [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:163:9 [INFO] [stdout] | [INFO] [stdout] 163 | field: &str, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_field` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ms_ctx` [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 164 | ms_ctx: &mut MsContext, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_ms_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fbx` [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | fbx: &mut FunctionBuilder<'_>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_fbx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:166:9 [INFO] [stdout] | [INFO] [stdout] 166 | module: &mut ObjectModule, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:223:13 [INFO] [stdout] | [INFO] [stdout] 223 | _ => todo!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:223:13 [INFO] [stdout] | [INFO] [stdout] 188 | MsType::Native(nty) => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 207 | MsType::Struct(struct_ty) => { [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 211 | MsType::Ref(_, _) | MsType::Function(_) => { [INFO] [stdout] | --------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 219 | MsType::Enum(enum_ty) => { [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 223 | _ => todo!(), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `zero` [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:242:13 [INFO] [stdout] | [INFO] [stdout] 242 | let zero = fbx.ins().iconst(types::I64, 0); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_zero` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param_count` [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:244:13 [INFO] [stdout] | [INFO] [stdout] 244 | let param_count = fbx.func.dfg.signatures[sig].params.len(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_param_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ms_ctx` [INFO] [stdout] --> crates/codegen/src/registries/structs.rs:437:9 [INFO] [stdout] | [INFO] [stdout] 437 | ms_ctx: &mut MsContext, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_ms_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_main_fn` is never used [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:657:4 [INFO] [stdout] | [INFO] [stdout] 657 | fn build_main_fn(module: &mut ObjectModule, ctx: &mut Context, fbx: &mut FunctionBuilderContext) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `offset` and `ty` are never read [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct StructFieldValue { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 46 | offset: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 47 | ty: VariableType, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `StructFieldValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:373:25 [INFO] [stdout] | [INFO] [stdout] 373 | pub struct ConstLiteral(MsVariable); [INFO] [stdout] | ------------ ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `ConstLiteral` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `translate` is never used [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:427:8 [INFO] [stdout] | [INFO] [stdout] 426 | impl MsExpression { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 427 | fn translate( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `block` is never read [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:629:5 [INFO] [stdout] | [INFO] [stdout] 628 | pub struct MsScope { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 629 | block: Block, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:632:8 [INFO] [stdout] | [INFO] [stdout] 631 | impl MsScope { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 632 | fn new(block: Block) -> MsScope { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `args` and `return_values` are never read [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:654:5 [INFO] [stdout] | [INFO] [stdout] 653 | pub struct FunctionSignature { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 654 | args: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 655 | return_values: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `functions` is never read [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:659:5 [INFO] [stdout] | [INFO] [stdout] 658 | pub struct FunctionRegistry { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 659 | functions: BTreeMap, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `local_variables`, `struct_registry`, and `function_registry` are never read [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:663:5 [INFO] [stdout] | [INFO] [stdout] 662 | pub struct MsTypeContext { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 663 | local_variables: BTreeMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 664 | struct_registry: StructRegistry, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 665 | function_registry: FunctionRegistry, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `declare` is never used [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:912:19 [INFO] [stdout] | [INFO] [stdout] 911 | impl MsFunctionDeclaration { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] 912 | pub(crate) fn declare( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `try_from` is never used [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:1197:8 [INFO] [stdout] | [INFO] [stdout] 1196 | impl Operator { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 1197 | fn try_from(value: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `registry` is never read [INFO] [stdout] --> crates/codegen/src/registries/compiler_functions.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct MsCompilerFunctionsRegistry { [INFO] [stdout] | --------------------------- field in this struct [INFO] [stdout] 26 | registry: HashMap, MsCompilerFunction>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `generate` is never used [INFO] [stdout] --> crates/codegen/src/registries/functions.rs:75:19 [INFO] [stdout] | [INFO] [stdout] 74 | impl MsGenericFunction { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] 75 | pub(crate) fn generate(&self, _real_types: Vec) -> FunctionDecl { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `fn_decl` is never read [INFO] [stdout] --> crates/codegen/src/registries/types.rs:563:5 [INFO] [stdout] | [INFO] [stdout] 562 | pub struct FunctionWithGenerics { [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] 563 | fn_decl: Rc, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FunctionWithGenerics` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `generte` is never used [INFO] [stdout] --> crates/codegen/src/registries/types.rs:566:8 [INFO] [stdout] | [INFO] [stdout] 565 | impl FunctionWithGenerics { [INFO] [stdout] | ------------------------- method in this implementation [INFO] [stdout] 566 | fn generte( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `file_path` is never read [INFO] [stdout] --> crates/codegen/src/resolver.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Resolver { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 6 | file_path: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> crates/codegen/src/backend/compile.rs:467:5 [INFO] [stdout] | [INFO] [stdout] 467 | flag_builder.set("preserve_frame_pointers", "true"); [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 467 | let _ = flag_builder.set("preserve_frame_pointers", "true"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> crates/codegen/src/backend/compile.rs:468:5 [INFO] [stdout] | [INFO] [stdout] 468 | flag_builder.set("is_pic", "true"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 468 | let _ = flag_builder.set("is_pic", "true"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/codegen/src/registries/types.rs:227:13 [INFO] [stdout] | [INFO] [stdout] 227 | _ => panic!("Non native casting not supported yet"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/codegen/src/registries/types.rs:227:13 [INFO] [stdout] | [INFO] [stdout] 225 | MsType::Native(nty) => nty, [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] 226 | MsType::Function(_) | MsType::Ref(_, _) | MsType::Struct(_) | MsType::Enum(_) => return lhs, [INFO] [stdout] | ----------------------------------------------------------------------------- matches some of the same values [INFO] [stdout] 227 | _ => panic!("Non native casting not supported yet"), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | flag_builder.set("preserve_frame_pointers", "true"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 27 | let _ = flag_builder.set("preserve_frame_pointers", "true"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:587:9 [INFO] [stdout] | [INFO] [stdout] 587 | module.define_function(fn_id, ctx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 587 | let _ = module.define_function(fn_id, ctx); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:653:5 [INFO] [stdout] | [INFO] [stdout] 653 | module.define_function(func_id, ctx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 653 | let _ = module.define_function(func_id, ctx); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> crates/codegen/src/backend/simple.rs:103:5 [INFO] [stdout] | [INFO] [stdout] 103 | flag_builder.set("is_pic", "true"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 103 | let _ = flag_builder.set("is_pic", "true"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> crates/codegen/src/frontend/compile.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | flag_builder.set("is_pic", "true"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 60 | let _ = flag_builder.set("is_pic", "true"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> crates/codegen/src/frontend/compile.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | flag_builder.set("use_colocated_libcalls", "false"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 61 | let _ = flag_builder.set("use_colocated_libcalls", "false"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> crates/codegen/src/frontend/function.rs:122:17 [INFO] [stdout] | [INFO] [stdout] 122 | var.declare(val, local_variables, fbx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 122 | let _ = var.declare(val, local_variables, fbx); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> crates/codegen/src/frontend/function.rs:195:13 [INFO] [stdout] | [INFO] [stdout] 195 | variable.declare(value, &mut variables, &mut builder); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 195 | let _ = variable.declare(value, &mut variables, &mut builder); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> crates/codegen/src/frontend/function.rs:199:13 [INFO] [stdout] | [INFO] [stdout] 199 | expression.translate(&mut variables, &mut builder, ms_ctx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 199 | let _ = expression.translate(&mut variables, &mut builder, ms_ctx); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> crates/codegen/src/libc/libc.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | flag_builder.set("is_pic", "true"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 96 | let _ = flag_builder.set("is_pic", "true"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> crates/codegen/src/libc/libc.rs:97:5 [INFO] [stdout] | [INFO] [stdout] 97 | flag_builder.set("use_colocated_libcalls", "false"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 97 | let _ = flag_builder.set("use_colocated_libcalls", "false"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `real_types` [INFO] [stdout] --> crates/codegen/src/registries/types.rs:568:9 [INFO] [stdout] | [INFO] [stdout] 568 | real_types: &&HashMap, MsTypeWithId>, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_real_types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ms_module` [INFO] [stdout] --> crates/codegen/src/registries/types.rs:569:9 [INFO] [stdout] | [INFO] [stdout] 569 | ms_module: &mut MsModule, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ms_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/codegen/src/registries/types.rs:740:13 [INFO] [stdout] | [INFO] [stdout] 740 | _ => todo!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/codegen/src/registries/types.rs:740:13 [INFO] [stdout] | [INFO] [stdout] 732 | MsType::Native(ty) => ty.size(), [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] 733 | MsType::Struct(ty) => ty.size(), [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] 734 | MsType::Ref(_ty, _) => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 738 | MsType::Enum(ety) => ety.max_variant_size() + 8, [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 739 | MsType::Function(_) => 8, [INFO] [stdout] 740 | _ => todo!(), [INFO] [stdout] | ^ ...and 1 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/codegen/src/registries/types.rs:751:13 [INFO] [stdout] | [INFO] [stdout] 751 | _ => todo!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/codegen/src/registries/types.rs:751:13 [INFO] [stdout] | [INFO] [stdout] 746 | MsType::Native(ty) => ty.align(), [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] 747 | MsType::Struct(ty) => ty.align(), [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] 748 | MsType::Ref(_, _) => 8, [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 749 | MsType::Enum(_) => 8, [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 750 | MsType::Function(_) => 8, [INFO] [stdout] 751 | _ => todo!(), [INFO] [stdout] | ^ ...and 1 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/codegen/src/registries/types.rs:762:13 [INFO] [stdout] | [INFO] [stdout] 762 | _ => todo!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/codegen/src/registries/types.rs:762:13 [INFO] [stdout] | [INFO] [stdout] 757 | MsType::Native(ty) => ty.to_abi_param(), [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] 758 | MsType::Struct(ty) => Some(ty.to_abi_param()), [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] 759 | MsType::Ref(_, _) => Some(AbiParam::new(types::I64)), [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 760 | MsType::Enum(ty) => Some(ty.to_abi_param()), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 761 | MsType::Function(_) => Some(AbiParam::new(types::I64)), [INFO] [stdout] 762 | _ => todo!(), [INFO] [stdout] | ^ ...and 1 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/codegen/src/registries/types.rs:773:13 [INFO] [stdout] | [INFO] [stdout] 773 | _ => todo!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/codegen/src/registries/types.rs:773:13 [INFO] [stdout] | [INFO] [stdout] 768 | MsType::Native(ty) => ty.to_cl_type(), [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] 769 | MsType::Ref(ty, _) => Some(types::I64), [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] 770 | MsType::Struct(_) => Some(types::I64), [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 771 | MsType::Enum(ty) => Some(ty.to_cl_type()), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 772 | MsType::Function(_) => Some(types::I64), [INFO] [stdout] 773 | _ => todo!(), [INFO] [stdout] | ^ ...and 1 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/codegen/src/registries/types.rs:769:25 [INFO] [stdout] | [INFO] [stdout] 769 | MsType::Ref(ty, _) => Some(types::I64), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `variable` [INFO] [stdout] --> crates/codegen/src/resolver.rs:23:21 [INFO] [stdout] | [INFO] [stdout] 23 | if let Some(variable) = self.scopes.get_variable(path[0]) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_variable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_ifelse_main_fn` is never used [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:246:4 [INFO] [stdout] | [INFO] [stdout] 246 | fn build_ifelse_main_fn( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_loop_fn` is never used [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:345:4 [INFO] [stdout] | [INFO] [stdout] 345 | fn build_loop_fn( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_foo_fn` is never used [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:436:4 [INFO] [stdout] | [INFO] [stdout] 436 | fn create_foo_fn(module: &mut ObjectModule, ctx: &mut Context, fbx: &mut FunctionBuilderContext) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_small_struct_fn` is never used [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:472:4 [INFO] [stdout] | [INFO] [stdout] 472 | fn create_small_struct_fn( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sum_from_foo_ptr_fn` is never used [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:505:4 [INFO] [stdout] | [INFO] [stdout] 505 | fn sum_from_foo_ptr_fn( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sum_the_foo_fn` is never used [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:536:4 [INFO] [stdout] | [INFO] [stdout] 536 | fn sum_the_foo_fn( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `anonymous_fn_builder` is never used [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:562:4 [INFO] [stdout] | [INFO] [stdout] 562 | fn anonymous_fn_builder( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `recursive_fn_builder` is never used [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:610:4 [INFO] [stdout] | [INFO] [stdout] 610 | fn recursive_fn_builder( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_main_fn` is never used [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:657:4 [INFO] [stdout] | [INFO] [stdout] 657 | fn build_main_fn(module: &mut ObjectModule, ctx: &mut Context, fbx: &mut FunctionBuilderContext) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `offset` and `ty` are never read [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct StructFieldValue { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 46 | offset: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 47 | ty: VariableType, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `StructFieldValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:373:25 [INFO] [stdout] | [INFO] [stdout] 373 | pub struct ConstLiteral(MsVariable); [INFO] [stdout] | ------------ ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `ConstLiteral` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `translate` is never used [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:427:8 [INFO] [stdout] | [INFO] [stdout] 426 | impl MsExpression { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 427 | fn translate( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `block` is never read [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:629:5 [INFO] [stdout] | [INFO] [stdout] 628 | pub struct MsScope { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 629 | block: Block, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:632:8 [INFO] [stdout] | [INFO] [stdout] 631 | impl MsScope { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 632 | fn new(block: Block) -> MsScope { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `args` and `return_values` are never read [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:654:5 [INFO] [stdout] | [INFO] [stdout] 653 | pub struct FunctionSignature { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 654 | args: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 655 | return_values: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `functions` is never read [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:659:5 [INFO] [stdout] | [INFO] [stdout] 658 | pub struct FunctionRegistry { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 659 | functions: BTreeMap, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `local_variables`, `struct_registry`, and `function_registry` are never read [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:663:5 [INFO] [stdout] | [INFO] [stdout] 662 | pub struct MsTypeContext { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 663 | local_variables: BTreeMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 664 | struct_registry: StructRegistry, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 665 | function_registry: FunctionRegistry, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `declare` is never used [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:912:19 [INFO] [stdout] | [INFO] [stdout] 911 | impl MsFunctionDeclaration { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] 912 | pub(crate) fn declare( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `try_from` is never used [INFO] [stdout] --> crates/codegen/src/frontend/tokens.rs:1197:8 [INFO] [stdout] | [INFO] [stdout] 1196 | impl Operator { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 1197 | fn try_from(value: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `registry` is never read [INFO] [stdout] --> crates/codegen/src/registries/compiler_functions.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct MsCompilerFunctionsRegistry { [INFO] [stdout] | --------------------------- field in this struct [INFO] [stdout] 26 | registry: HashMap, MsCompilerFunction>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `generate` is never used [INFO] [stdout] --> crates/codegen/src/registries/functions.rs:75:19 [INFO] [stdout] | [INFO] [stdout] 74 | impl MsGenericFunction { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] 75 | pub(crate) fn generate(&self, _real_types: Vec) -> FunctionDecl { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `fn_decl` is never read [INFO] [stdout] --> crates/codegen/src/registries/types.rs:563:5 [INFO] [stdout] | [INFO] [stdout] 562 | pub struct FunctionWithGenerics { [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] 563 | fn_decl: Rc, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FunctionWithGenerics` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `generte` is never used [INFO] [stdout] --> crates/codegen/src/registries/types.rs:566:8 [INFO] [stdout] | [INFO] [stdout] 565 | impl FunctionWithGenerics { [INFO] [stdout] | ------------------------- method in this implementation [INFO] [stdout] 566 | fn generte( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `file_path` is never read [INFO] [stdout] --> crates/codegen/src/resolver.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Resolver { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 6 | file_path: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> crates/codegen/src/backend/compile.rs:467:5 [INFO] [stdout] | [INFO] [stdout] 467 | flag_builder.set("preserve_frame_pointers", "true"); [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 467 | let _ = flag_builder.set("preserve_frame_pointers", "true"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> crates/codegen/src/backend/compile.rs:468:5 [INFO] [stdout] | [INFO] [stdout] 468 | flag_builder.set("is_pic", "true"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 468 | let _ = flag_builder.set("is_pic", "true"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:587:9 [INFO] [stdout] | [INFO] [stdout] 587 | module.define_function(fn_id, ctx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 587 | let _ = module.define_function(fn_id, ctx); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> crates/codegen/src/backend/cranelift.rs:653:5 [INFO] [stdout] | [INFO] [stdout] 653 | module.define_function(func_id, ctx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 653 | let _ = module.define_function(func_id, ctx); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> crates/codegen/src/backend/simple.rs:103:5 [INFO] [stdout] | [INFO] [stdout] 103 | flag_builder.set("is_pic", "true"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 103 | let _ = flag_builder.set("is_pic", "true"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> crates/codegen/src/frontend/compile.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | flag_builder.set("is_pic", "true"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 60 | let _ = flag_builder.set("is_pic", "true"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> crates/codegen/src/frontend/compile.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | flag_builder.set("use_colocated_libcalls", "false"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 61 | let _ = flag_builder.set("use_colocated_libcalls", "false"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> crates/codegen/src/frontend/function.rs:122:17 [INFO] [stdout] | [INFO] [stdout] 122 | var.declare(val, local_variables, fbx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 122 | let _ = var.declare(val, local_variables, fbx); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> crates/codegen/src/frontend/function.rs:195:13 [INFO] [stdout] | [INFO] [stdout] 195 | variable.declare(value, &mut variables, &mut builder); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 195 | let _ = variable.declare(value, &mut variables, &mut builder); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> crates/codegen/src/frontend/function.rs:199:13 [INFO] [stdout] | [INFO] [stdout] 199 | expression.translate(&mut variables, &mut builder, ms_ctx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 199 | let _ = expression.translate(&mut variables, &mut builder, ms_ctx); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> crates/codegen/src/libc/libc.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | flag_builder.set("is_pic", "true"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 96 | let _ = flag_builder.set("is_pic", "true"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> crates/codegen/src/libc/libc.rs:97:5 [INFO] [stdout] | [INFO] [stdout] 97 | flag_builder.set("use_colocated_libcalls", "false"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 97 | let _ = flag_builder.set("use_colocated_libcalls", "false"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking mantisc v0.0.1 (/opt/rustwide/workdir/crates/cli) [INFO] [stderr] warning: unused dependency `cranelift-jit` [INFO] [stderr] --> crates/codegen/Cargo.toml:10:1 [INFO] [stderr] | [INFO] [stderr] 10 | cranelift-jit.workspace = true [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `cargo::unused_dependencies` is set to `warn` by default [INFO] [stderr] help: consider removing the dependency on `cranelift-jit` [INFO] [stderr] warning: unused dependency `env_logger` [INFO] [stderr] --> crates/codegen/Cargo.toml:15:1 [INFO] [stderr] | [INFO] [stderr] 15 | env_logger.workspace = true [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: consider removing the dependency on `env_logger` [INFO] [stderr] warning: `mantis_codegen` (manifest) generated 2 warnings [INFO] [stderr] warning: unused dependency `mantis_syntax` [INFO] [stderr] --> crates/lsp/Cargo.toml:8:1 [INFO] [stderr] | [INFO] [stderr] 8 | mantis_syntax = { path = "../syntax" } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `cargo::unused_dependencies` is set to `warn` by default [INFO] [stderr] help: consider removing the dependency on `mantis_syntax` [INFO] [stderr] warning: `mantis_lsp` (manifest) generated 1 warning [INFO] [stderr] warning: unused dependency `anyhow` [INFO] [stderr] --> crates/parser/Cargo.toml:8:1 [INFO] [stderr] | [INFO] [stderr] 8 | anyhow.workspace = true [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `cargo::unused_dependencies` is set to `warn` by default [INFO] [stderr] help: consider removing the dependency on `anyhow` [INFO] [stderr] warning: `mantis_parser` (manifest) generated 1 warning [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 57.64s [INFO] running `Command { std: "docker" "inspect" "7e33fada38f81f59f574796679cbe2024c0ef529fa3cf8066caddb99a2e3fab9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7e33fada38f81f59f574796679cbe2024c0ef529fa3cf8066caddb99a2e3fab9", kill_on_drop: false }` [INFO] [stdout] 7e33fada38f81f59f574796679cbe2024c0ef529fa3cf8066caddb99a2e3fab9