[INFO] cloning repository https://github.com/CreatorSiSo/rym [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/CreatorSiSo/rym" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCreatorSiSo%2Frym", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCreatorSiSo%2Frym'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d6966c5ee5acf58f6f87eba305c0f816a13cdadf [INFO] checking CreatorSiSo/rym against nightly-2024-02-05 for check-cfg-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCreatorSiSo%2Frym" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/CreatorSiSo/rym on toolchain nightly-2024-02-05 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly-2024-02-05" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/CreatorSiSo/rym [INFO] finished tweaking git repo https://github.com/CreatorSiSo/rym [INFO] tweaked toml for git repo https://github.com/CreatorSiSo/rym written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/CreatorSiSo/rym 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" "+nightly-2024-02-05" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Updating git repository `https://github.com/zesterer/chumsky` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded fd-lock v4.0.1 [INFO] [stderr] Downloaded logos-derive v0.13.0 [INFO] [stderr] Downloaded logos v0.13.0 [INFO] [stderr] Downloaded windows-targets v0.42.2 [INFO] [stderr] Downloaded endian-type v0.1.2 [INFO] [stderr] Downloaded beef v0.5.2 [INFO] [stderr] Downloaded error-code v3.0.0 [INFO] [stderr] Downloaded strip-ansi-escapes v0.2.0 [INFO] [stderr] Downloaded anstyle-parse v0.2.1 [INFO] [stderr] Downloaded logos-codegen v0.13.0 [INFO] [stderr] Downloaded rustyline v13.0.0 [INFO] [stderr] Downloaded libc v0.2.151 [INFO] [stderr] Downloaded bstr v1.6.0 [INFO] [stderr] Downloaded regex-automata v0.3.6 [INFO] [stderr] Downloaded regex-syntax v0.7.4 [INFO] [stderr] Downloaded regex v1.9.3 [INFO] [stderr] Downloaded logos-display v0.1.2 [INFO] [stderr] Downloaded insta v1.34.0 [INFO] [stderr] Downloaded zerocopy-derive v0.7.3 [INFO] [stderr] Downloaded radix_trie v0.2.1 [INFO] [stderr] Downloaded cc v1.0.79 [INFO] [stderr] Downloaded clap_builder v4.4.0 [INFO] [stderr] Downloaded serde v1.0.187 [INFO] [stderr] Downloaded aho-corasick v1.0.4 [INFO] [stderr] Downloaded itertools v0.12.0 [INFO] [stderr] Downloaded zerocopy v0.7.3 [INFO] [stderr] Downloaded lasso v0.7.2 [INFO] [stderr] Downloaded rustix v0.38.28 [INFO] [stderr] Downloaded owo-colors v4.0.0 [INFO] [stderr] Downloaded smallvec v1.10.0 [INFO] [stderr] Downloaded vte v0.11.1 [INFO] [stderr] Downloaded anyhow v1.0.70 [INFO] [stderr] Downloaded clap v4.4.0 [INFO] [stderr] Downloaded console v0.15.7 [INFO] [stderr] Downloaded serde_derive v1.0.187 [INFO] [stderr] Downloaded once_cell v1.17.1 [INFO] [stderr] Downloaded ahash v0.8.5 [INFO] [stderr] Downloaded anstyle-wincon v2.1.0 [INFO] [stderr] Downloaded anstream v0.5.0 [INFO] [stderr] Downloaded globset v0.4.13 [INFO] [stderr] Downloaded nibble_vec v0.1.0 [INFO] [stderr] Downloaded ariadne v0.3.0 [INFO] [stderr] Downloaded anstyle v1.0.2 [INFO] [stderr] Downloaded clipboard-win v5.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2024-02-05" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2a15618b3a9699f9a7e7c63b38b88b99fa134f890e5f41acb6d2e87e8ece8e19 [INFO] running `Command { std: "docker" "start" "-a" "2a15618b3a9699f9a7e7c63b38b88b99fa134f890e5f41acb6d2e87e8ece8e19", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2a15618b3a9699f9a7e7c63b38b88b99fa134f890e5f41acb6d2e87e8ece8e19", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2a15618b3a9699f9a7e7c63b38b88b99fa134f890e5f41acb6d2e87e8ece8e19", kill_on_drop: false }` [INFO] [stdout] 2a15618b3a9699f9a7e7c63b38b88b99fa134f890e5f41acb6d2e87e8ece8e19 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2024-02-05" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4055b960ddce405bd4bbe6a612492714e76d7a1ae79247deaefe32a4ac4a9c59 [INFO] running `Command { std: "docker" "start" "-a" "4055b960ddce405bd4bbe6a612492714e76d7a1ae79247deaefe32a4ac4a9c59", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling libc v0.2.151 [INFO] [stderr] Compiling cc v1.0.79 [INFO] [stderr] Checking once_cell v1.17.1 [INFO] [stderr] Compiling ahash v0.8.5 [INFO] [stderr] Checking zerocopy v0.7.3 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Checking regex-syntax v0.7.4 [INFO] [stderr] Compiling rustix v0.38.28 [INFO] [stderr] Checking bitflags v2.4.0 [INFO] [stderr] Checking anstyle-parse v0.2.1 [INFO] [stderr] Checking anstyle v1.0.2 [INFO] [stderr] Compiling beef v0.5.2 [INFO] [stderr] Checking linux-raw-sys v0.4.12 [INFO] [stderr] Checking aho-corasick v1.0.4 [INFO] [stderr] Checking smallvec v1.10.0 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.29 [INFO] [stderr] Compiling psm v0.1.21 [INFO] [stderr] Compiling stacker v0.1.15 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Checking anstream v0.5.0 [INFO] [stderr] Compiling vte_generate_state_changes v0.1.1 [INFO] [stderr] Checking nibble_vec v0.1.0 [INFO] [stderr] Checking bstr v1.6.0 [INFO] [stderr] Compiling chumsky v1.0.0-alpha.6 (https://github.com/zesterer/chumsky?rev=e045b140497bd07fecbe13ae1ad22aa252678de3#e045b140) [INFO] [stderr] Checking allocator-api2 v0.2.16 [INFO] [stderr] Checking clap_lex v0.5.1 [INFO] [stderr] Checking unicode-width v0.1.10 [INFO] [stderr] Checking endian-type v0.1.2 [INFO] [stderr] Compiling anyhow v1.0.70 [INFO] [stderr] Checking console v0.15.7 [INFO] [stderr] Checking radix_trie v0.2.1 [INFO] [stderr] Checking regex-automata v0.3.6 [INFO] [stderr] Checking clap_builder v4.4.0 [INFO] [stderr] Checking walkdir v2.3.3 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Checking vte v0.11.1 [INFO] [stderr] Checking hashbrown v0.14.2 [INFO] [stderr] Checking nix v0.27.1 [INFO] [stderr] Checking fd-lock v4.0.1 [INFO] [stderr] Checking hashbrown v0.13.2 [INFO] [stderr] Checking unicode-segmentation v1.10.1 [INFO] [stderr] Checking home v0.5.5 [INFO] [stderr] Checking similar v2.2.1 [INFO] [stderr] Checking itertools v0.12.0 [INFO] [stderr] Checking lasso v0.7.2 [INFO] [stderr] Compiling logos-codegen v0.13.0 [INFO] [stderr] Checking clap v4.4.0 [INFO] [stderr] Checking strip-ansi-escapes v0.2.0 [INFO] [stderr] Checking ariadne v0.3.0 [INFO] [stderr] Checking regex v1.9.3 [INFO] [stderr] Checking globset v0.4.13 [INFO] [stderr] Checking insta v1.34.0 [INFO] [stderr] Checking rustyline v13.0.0 [INFO] [stderr] Checking bumpalo v3.14.0 [INFO] [stderr] Checking owo-colors v4.0.0 [INFO] [stderr] Checking interpolate v0.1.0 (/opt/rustwide/workdir/crates/interpolate) [INFO] [stderr] Compiling logos-derive v0.13.0 [INFO] [stderr] Compiling logos-display v0.1.2 [INFO] [stderr] Checking logos v0.13.0 [INFO] [stderr] Checking rymx v0.0.3 (/opt/rustwide/workdir/crates/rymx) [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> crates/rymx/src/compile/eval.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | for (name, _, expr) in &this.ast_module.constants { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> crates/rymx/src/compile/eval.rs:34:31 [INFO] [stdout] | [INFO] [stdout] 34 | ast::Expr::Struct(name, fields) => todo!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fields` [INFO] [stdout] --> crates/rymx/src/compile/eval.rs:34:37 [INFO] [stdout] | [INFO] [stdout] 34 | ast::Expr::Struct(name, fields) => todo!(), [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_fields` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> crates/rymx/src/compile/eval.rs:54:29 [INFO] [stdout] | [INFO] [stdout] 54 | fn eval_function(&self, func: FunctionPrototype) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_func` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> crates/rymx/src/compile/eval.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | for (name, _, expr) in &this.ast_module.constants { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> crates/rymx/src/compile/eval.rs:34:31 [INFO] [stdout] | [INFO] [stdout] 34 | ast::Expr::Struct(name, fields) => todo!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `typ` [INFO] [stdout] --> crates/rymx/src/interpret/function.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | for ((name, typ), arg) in self.params.iter().zip(args) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_typ` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fields` [INFO] [stdout] --> crates/rymx/src/compile/eval.rs:34:37 [INFO] [stdout] | [INFO] [stdout] 34 | ast::Expr::Struct(name, fields) => todo!(), [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_fields` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> crates/rymx/src/compile/eval.rs:54:29 [INFO] [stdout] | [INFO] [stdout] 54 | fn eval_function(&self, func: FunctionPrototype) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_func` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `typ` [INFO] [stdout] --> crates/rymx/src/interpret.rs:119:40 [INFO] [stdout] | [INFO] [stdout] 119 | Stmt::Variable(kind, name, typ, expr) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_typ` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `array` [INFO] [stdout] --> crates/rymx/src/interpret.rs:139:25 [INFO] [stdout] | [INFO] [stdout] 139 | Expr::Array(array) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> crates/rymx/src/interpret.rs:142:35 [INFO] [stdout] | [INFO] [stdout] 142 | Expr::ArrayWithRepeat(value, length) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length` [INFO] [stdout] --> crates/rymx/src/interpret.rs:142:42 [INFO] [stdout] | [INFO] [stdout] 142 | Expr::ArrayWithRepeat(value, length) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> crates/rymx/src/interpret.rs:145:26 [INFO] [stdout] | [INFO] [stdout] 145 | Expr::Struct(name, fields) => Value::Struct({ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `this` [INFO] [stdout] --> crates/rymx/src/parse/error.rs:102:29 [INFO] [stdout] | [INFO] [stdout] 102 | (Reason::Custom(this), Reason::Custom(other)) => todo!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_this` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> crates/rymx/src/parse/error.rs:102:51 [INFO] [stdout] | [INFO] [stdout] 102 | (Reason::Custom(this), Reason::Custom(other)) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `typ` [INFO] [stdout] --> crates/rymx/src/interpret/function.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | for ((name, typ), arg) in self.params.iter().zip(args) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_typ` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `typ` [INFO] [stdout] --> crates/rymx/src/interpret.rs:119:40 [INFO] [stdout] | [INFO] [stdout] 119 | Stmt::Variable(kind, name, typ, expr) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_typ` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `array` [INFO] [stdout] --> crates/rymx/src/interpret.rs:139:25 [INFO] [stdout] | [INFO] [stdout] 139 | Expr::Array(array) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> crates/rymx/src/interpret.rs:142:35 [INFO] [stdout] | [INFO] [stdout] 142 | Expr::ArrayWithRepeat(value, length) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length` [INFO] [stdout] --> crates/rymx/src/interpret.rs:142:42 [INFO] [stdout] | [INFO] [stdout] 142 | Expr::ArrayWithRepeat(value, length) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> crates/rymx/src/interpret.rs:145:26 [INFO] [stdout] | [INFO] [stdout] 145 | Expr::Struct(name, fields) => Value::Struct({ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `this` [INFO] [stdout] --> crates/rymx/src/parse/error.rs:102:29 [INFO] [stdout] | [INFO] [stdout] 102 | (Reason::Custom(this), Reason::Custom(other)) => todo!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_this` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> crates/rymx/src/parse/error.rs:102:51 [INFO] [stdout] | [INFO] [stdout] 102 | (Reason::Custom(this), Reason::Custom(other)) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `FunctionType` is more private than the item `compile::r#type::Type::Function::0` [INFO] [stdout] --> crates/rymx/src/compile/type.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | Function(FunctionType), [INFO] [stdout] | ^^^^^^^^^^^^ field `compile::r#type::Type::Function::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `FunctionType` is only usable at visibility `pub(self)` [INFO] [stdout] --> crates/rymx/src/compile/type.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | struct FunctionType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `write`, `get`, and `instructions` are never used [INFO] [stdout] --> crates/rymx/src/compile/bytecode.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl ByteCode { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 6 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | pub fn write(&mut self, instr: OpCode) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn get(&self, index: usize) -> OpCode { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn instructions(&self) -> &[OpCode] { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REGISTERS_LENGTH` is never used [INFO] [stdout] --> crates/rymx/src/compile/bytecode.rs:36:11 [INFO] [stdout] | [INFO] [stdout] 36 | pub const REGISTERS_LENGTH: usize = Register::MAX as usize + 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `LiteralId` is never used [INFO] [stdout] --> crates/rymx/src/compile/bytecode.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 38 | pub type LiteralId = u16; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> crates/rymx/src/compile/bytecode.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub enum OpCode { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 43 | Return, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 44 | LoadInt { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | Copy { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | Add { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | IsEqual { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | IsLessThan { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | IsGreaterThan { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | Increment { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | Jump { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | JumpIfTrue { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | JumpIfNotTrue { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpCode` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> crates/rymx/src/compile/type.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Type { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 7 | Unit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | Never, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | Unknown, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 10 | Bool, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | IntLiteral, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 12 | Int(u8), [INFO] [stdout] | ^^^ [INFO] [stdout] 13 | ISize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 14 | UInt(u8), [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | USize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 16 | FloatLiteral, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 17 | Float(u8), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 18 | Array(Option, Box), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 19 | Union(Vec), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | Function(FunctionType), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Unit`, `Bool`, `Int`, `Float`, `Array`, and `String` are never constructed [INFO] [stdout] --> crates/rymx/src/compile/constant.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Constant { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 7 | Unit = 0, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | Bool(bool), [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | Int(i64), [INFO] [stdout] | ^^^ [INFO] [stdout] 10 | Float(f64), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 11 | Array(Vec), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | String(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Constant` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> crates/rymx/src/compile/constant.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl Constant { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 29 | /// Interprets Floats and Ints as an Int, if possible [INFO] [stdout] 30 | pub fn to_int(&self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn to_float(&self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn concat(&self, rhs: &Self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn add(&self, rhs: &Self) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn subtract(&self, rhs: &Self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn multiply(&self, rhs: &Self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn float_divide(&self, rhs: &Self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn int_divide(&self, rhs: &Self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn remainder(&self, rhs: &Self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn exponentiate(&self, rhs: &Self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConstEvaluator` is never constructed [INFO] [stdout] --> crates/rymx/src/compile/eval.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct ConstEvaluator { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `eval_module`, `eval_expr`, `eval_function`, `resolve_ident`, and `literal_to_constant` are never used [INFO] [stdout] --> crates/rymx/src/compile/eval.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl ConstEvaluator { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 14 | fn eval_module(ast_module: ast::Module) -> ModulePrototype { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | fn eval_expr(&self, expr: &ast::Expr) -> Constant { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | fn eval_function(&self, func: FunctionPrototype) {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | fn resolve_ident(&self, ident: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | fn literal_to_constant(lit: &ast::Literal) -> Constant { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ModulePrototype` is never constructed [INFO] [stdout] --> crates/rymx/src/compile/module.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct ModulePrototype { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> crates/rymx/src/compile/module.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl ModulePrototype { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 11 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FunctionPrototype` is never constructed [INFO] [stdout] --> crates/rymx/src/compile/module.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct FunctionPrototype { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> crates/rymx/src/compile/symbol.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl SymbolTable { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 23 | pub fn new(name: String, typ: SymbolTableType) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Module` and `Function` are never constructed [INFO] [stdout] --> crates/rymx/src/compile/symbol.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub enum SymbolTableType { [INFO] [stdout] | --------------- variants in this enum [INFO] [stdout] 35 | Module, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 36 | Function, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SymbolTableType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SymbolTableBuilder` is never constructed [INFO] [stdout] --> crates/rymx/src/compile/symbol.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | struct SymbolTableBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> crates/rymx/src/compile/symbol.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 49 | impl SymbolTableBuilder { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 50 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn enter_scope(&mut self, name: &str, typ: SymbolTableType) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn leave_scope(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn scan_expressions(&mut self, exprs: &[Expr]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn scan_expression(&mut self, expr: &Expr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn scan_function(&mut self, func: &Function) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub fn register_name(&mut self, name: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `found` is never used [INFO] [stdout] --> crates/rymx/src/parse/error.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 57 | impl Reason { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 58 | /// Return the token that was found by this error reason. `None` implies that the end of input was expected. [INFO] [stdout] 59 | pub fn found(&self) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `reason`, `found`, `contexts`, and `expected` are never used [INFO] [stdout] --> crates/rymx/src/parse/error.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 117 | impl ParseError { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 134 | pub fn reason(&self) -> &Reason { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn found(&self) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn contexts(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn expected(&self) -> impl ExactSizeIterator { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `val` and `span` are never read [INFO] [stdout] --> crates/rymx/src/span.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Spanned { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 9 | val: T, [INFO] [stdout] | ^^^ [INFO] [stdout] 10 | span: Span, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Spanned` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `FunctionType` is more private than the item `compile::r#type::Type::Function::0` [INFO] [stdout] --> crates/rymx/src/compile/type.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | Function(FunctionType), [INFO] [stdout] | ^^^^^^^^^^^^ field `compile::r#type::Type::Function::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `FunctionType` is only usable at visibility `pub(self)` [INFO] [stdout] --> crates/rymx/src/compile/type.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | struct FunctionType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get` and `instructions` are never used [INFO] [stdout] --> crates/rymx/src/compile/bytecode.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl ByteCode { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn get(&self, index: usize) -> OpCode { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn instructions(&self) -> &[OpCode] { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REGISTERS_LENGTH` is never used [INFO] [stdout] --> crates/rymx/src/compile/bytecode.rs:36:11 [INFO] [stdout] | [INFO] [stdout] 36 | pub const REGISTERS_LENGTH: usize = Register::MAX as usize + 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `LiteralId` is never used [INFO] [stdout] --> crates/rymx/src/compile/bytecode.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 38 | pub type LiteralId = u16; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Copy`, `Add`, `IsLessThan`, `IsGreaterThan`, `Jump`, and `JumpIfNotTrue` are never constructed [INFO] [stdout] --> crates/rymx/src/compile/bytecode.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub enum OpCode { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 48 | Copy { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | Add { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | IsLessThan { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | IsGreaterThan { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | Jump { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | JumpIfNotTrue { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpCode` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> crates/rymx/src/compile/type.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Type { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 7 | Unit, [INFO] [stdout] 8 | Never, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | Unknown, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 10 | Bool, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | IntLiteral, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 12 | Int(u8), [INFO] [stdout] 13 | ISize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 14 | UInt(u8), [INFO] [stdout] 15 | USize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 16 | FloatLiteral, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Unit`, `Bool`, `Float`, `Array`, and `String` are never constructed [INFO] [stdout] --> crates/rymx/src/compile/constant.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Constant { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 7 | Unit = 0, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | Bool(bool), [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | Int(i64), [INFO] [stdout] 10 | Float(f64), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 11 | Array(Vec), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | String(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Constant` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> crates/rymx/src/compile/constant.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl Constant { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 29 | /// Interprets Floats and Ints as an Int, if possible [INFO] [stdout] 30 | pub fn to_int(&self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn to_float(&self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn concat(&self, rhs: &Self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn add(&self, rhs: &Self) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn subtract(&self, rhs: &Self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn multiply(&self, rhs: &Self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn float_divide(&self, rhs: &Self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn int_divide(&self, rhs: &Self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn remainder(&self, rhs: &Self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn exponentiate(&self, rhs: &Self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConstEvaluator` is never constructed [INFO] [stdout] --> crates/rymx/src/compile/eval.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct ConstEvaluator { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `eval_module`, `eval_expr`, `eval_function`, `resolve_ident`, and `literal_to_constant` are never used [INFO] [stdout] --> crates/rymx/src/compile/eval.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl ConstEvaluator { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 14 | fn eval_module(ast_module: ast::Module) -> ModulePrototype { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | fn eval_expr(&self, expr: &ast::Expr) -> Constant { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | fn eval_function(&self, func: FunctionPrototype) {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | fn resolve_ident(&self, ident: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | fn literal_to_constant(lit: &ast::Literal) -> Constant { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ModulePrototype` is never constructed [INFO] [stdout] --> crates/rymx/src/compile/module.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct ModulePrototype { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> crates/rymx/src/compile/module.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl ModulePrototype { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 11 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FunctionPrototype` is never constructed [INFO] [stdout] --> crates/rymx/src/compile/module.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct FunctionPrototype { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> crates/rymx/src/compile/symbol.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl SymbolTable { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 23 | pub fn new(name: String, typ: SymbolTableType) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Module` and `Function` are never constructed [INFO] [stdout] --> crates/rymx/src/compile/symbol.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub enum SymbolTableType { [INFO] [stdout] | --------------- variants in this enum [INFO] [stdout] 35 | Module, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 36 | Function, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SymbolTableType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SymbolTableBuilder` is never constructed [INFO] [stdout] --> crates/rymx/src/compile/symbol.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | struct SymbolTableBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> crates/rymx/src/compile/symbol.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 49 | impl SymbolTableBuilder { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 50 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn enter_scope(&mut self, name: &str, typ: SymbolTableType) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn leave_scope(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn scan_expressions(&mut self, exprs: &[Expr]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn scan_expression(&mut self, expr: &Expr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn scan_function(&mut self, func: &Function) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub fn register_name(&mut self, name: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `found` is never used [INFO] [stdout] --> crates/rymx/src/parse/error.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 57 | impl Reason { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 58 | /// Return the token that was found by this error reason. `None` implies that the end of input was expected. [INFO] [stdout] 59 | pub fn found(&self) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `reason`, `found`, `contexts`, and `expected` are never used [INFO] [stdout] --> crates/rymx/src/parse/error.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 117 | impl ParseError { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 134 | pub fn reason(&self) -> &Reason { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn found(&self) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn contexts(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn expected(&self) -> impl ExactSizeIterator { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `val` and `span` are never read [INFO] [stdout] --> crates/rymx/src/span.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Spanned { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 9 | val: T, [INFO] [stdout] | ^^^ [INFO] [stdout] 10 | span: Span, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Spanned` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 37.39s [INFO] running `Command { std: "docker" "inspect" "4055b960ddce405bd4bbe6a612492714e76d7a1ae79247deaefe32a4ac4a9c59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4055b960ddce405bd4bbe6a612492714e76d7a1ae79247deaefe32a4ac4a9c59", kill_on_drop: false }` [INFO] [stdout] 4055b960ddce405bd4bbe6a612492714e76d7a1ae79247deaefe32a4ac4a9c59 [INFO] checking CreatorSiSo/rym against nightly-2024-02-05+rustflags=-Dunexpected_cfgs+cargoflags=-Zcheck-cfg for check-cfg-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCreatorSiSo%2Frym" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/CreatorSiSo/rym on toolchain nightly-2024-02-05 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly-2024-02-05" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/CreatorSiSo/rym [INFO] finished tweaking git repo https://github.com/CreatorSiSo/rym [INFO] tweaked toml for git repo https://github.com/CreatorSiSo/rym written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/CreatorSiSo/rym 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" "+nightly-2024-02-05" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2024-02-05" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6a061447cf14f44d9fcddfe9bfa9e65f6b736d92f71ed18a0221965e96f8a46a [INFO] running `Command { std: "docker" "start" "-a" "6a061447cf14f44d9fcddfe9bfa9e65f6b736d92f71ed18a0221965e96f8a46a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6a061447cf14f44d9fcddfe9bfa9e65f6b736d92f71ed18a0221965e96f8a46a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6a061447cf14f44d9fcddfe9bfa9e65f6b736d92f71ed18a0221965e96f8a46a", kill_on_drop: false }` [INFO] [stdout] 6a061447cf14f44d9fcddfe9bfa9e65f6b736d92f71ed18a0221965e96f8a46a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dunexpected_cfgs" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2024-02-05" "check" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zcheck-cfg", kill_on_drop: false }` [INFO] [stdout] b63219f115940c6c833414c7d15999aa6d8939b46d07a3d488573f7f516f515f [INFO] running `Command { std: "docker" "start" "-a" "b63219f115940c6c833414c7d15999aa6d8939b46d07a3d488573f7f516f515f", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling libc v0.2.151 [INFO] [stderr] Checking once_cell v1.17.1 [INFO] [stderr] Compiling cc v1.0.79 [INFO] [stderr] Compiling ahash v0.8.5 [INFO] [stderr] Checking zerocopy v0.7.3 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Checking bitflags v2.4.0 [INFO] [stderr] Checking regex-syntax v0.7.4 [INFO] [stderr] Compiling rustix v0.38.28 [INFO] [stderr] Checking anstyle-parse v0.2.1 [INFO] [stderr] Checking anstyle v1.0.2 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Checking linux-raw-sys v0.4.12 [INFO] [stderr] Checking smallvec v1.10.0 [INFO] [stderr] Checking aho-corasick v1.0.4 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling syn v2.0.29 [INFO] [stderr] Compiling beef v0.5.2 [INFO] [stderr] Compiling vte_generate_state_changes v0.1.1 [INFO] [stderr] Checking anstream v0.5.0 [INFO] [stderr] Compiling psm v0.1.21 [INFO] [stderr] Checking regex-automata v0.3.6 [INFO] [stderr] Compiling stacker v0.1.15 [INFO] [stderr] Checking nibble_vec v0.1.0 [INFO] [stderr] Checking bstr v1.6.0 [INFO] [stderr] Checking unicode-width v0.1.10 [INFO] [stderr] Checking allocator-api2 v0.2.16 [INFO] [stderr] Compiling anyhow v1.0.70 [INFO] [stderr] Checking endian-type v0.1.2 [INFO] [stderr] Compiling chumsky v1.0.0-alpha.6 (https://github.com/zesterer/chumsky?rev=e045b140497bd07fecbe13ae1ad22aa252678de3#e045b140) [INFO] [stderr] Checking clap_lex v0.5.1 [INFO] [stderr] Checking hashbrown v0.14.2 [INFO] [stderr] Checking clap_builder v4.4.0 [INFO] [stderr] Checking radix_trie v0.2.1 [INFO] [stderr] Checking console v0.15.7 [INFO] [stderr] Checking nix v0.27.1 [INFO] [stderr] Checking walkdir v2.3.3 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Checking vte v0.11.1 [INFO] [stderr] Checking hashbrown v0.13.2 [INFO] [stderr] Checking fd-lock v4.0.1 [INFO] [stderr] Checking unicode-segmentation v1.10.1 [INFO] [stderr] Checking similar v2.2.1 [INFO] [stderr] Checking regex v1.9.3 [INFO] [stderr] Checking home v0.5.5 [INFO] [stderr] Checking ariadne v0.3.0 [INFO] [stderr] Checking lasso v0.7.2 [INFO] [stderr] Checking strip-ansi-escapes v0.2.0 [INFO] [stderr] Compiling logos-codegen v0.13.0 [INFO] [stderr] Checking itertools v0.12.0 [INFO] [stderr] Checking globset v0.4.13 [INFO] [stderr] Checking insta v1.34.0 [INFO] [stderr] Checking rustyline v13.0.0 [INFO] [stderr] Checking owo-colors v4.0.0 [INFO] [stderr] Checking clap v4.4.0 [INFO] [stderr] Checking bumpalo v3.14.0 [INFO] [stderr] Checking interpolate v0.1.0 (/opt/rustwide/workdir/crates/interpolate) [INFO] [stderr] Compiling logos-derive v0.13.0 [INFO] [stderr] Compiling logos-display v0.1.2 [INFO] [stderr] Checking logos v0.13.0 [INFO] [stderr] Checking rymx v0.0.3 (/opt/rustwide/workdir/crates/rymx) [INFO] [stdout] error: unexpected `cfg` condition value: (none) [INFO] [stdout] --> crates/rymx/src/compile.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | #[cfg(target_os)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `openbsd`, `psp`, `redox`, `solaris`, `solid_asp3`, `teeos`, `tvos`, `uefi`, `unknown`, `vita`, `vxworks`, `wasi`, `watchos`, `windows`, `xous`, `zkvm` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: requested on the command line with `-D unexpected-cfgs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected `cfg` condition value: (none) [INFO] [stdout] --> crates/rymx/src/compile.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | #[cfg(target_os)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `android`, `cuda`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `macos`, `netbsd`, `none`, `nto`, `openbsd`, `psp`, `redox`, `solaris`, `solid_asp3`, `teeos`, `tvos`, `uefi`, `unknown`, `vita`, `vxworks`, `wasi`, `watchos`, `windows`, `xous`, `zkvm` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: requested on the command line with `-D unexpected-cfgs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> crates/rymx/src/compile/eval.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | for (name, _, expr) in &this.ast_module.constants { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> crates/rymx/src/compile/eval.rs:34:31 [INFO] [stdout] | [INFO] [stdout] 34 | ast::Expr::Struct(name, fields) => todo!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fields` [INFO] [stdout] --> crates/rymx/src/compile/eval.rs:34:37 [INFO] [stdout] | [INFO] [stdout] 34 | ast::Expr::Struct(name, fields) => todo!(), [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_fields` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> crates/rymx/src/compile/eval.rs:54:29 [INFO] [stdout] | [INFO] [stdout] 54 | fn eval_function(&self, func: FunctionPrototype) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_func` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `typ` [INFO] [stdout] --> crates/rymx/src/interpret/function.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | for ((name, typ), arg) in self.params.iter().zip(args) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_typ` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `typ` [INFO] [stdout] --> crates/rymx/src/interpret.rs:119:40 [INFO] [stdout] | [INFO] [stdout] 119 | Stmt::Variable(kind, name, typ, expr) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_typ` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `array` [INFO] [stdout] --> crates/rymx/src/interpret.rs:139:25 [INFO] [stdout] | [INFO] [stdout] 139 | Expr::Array(array) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> crates/rymx/src/interpret.rs:142:35 [INFO] [stdout] | [INFO] [stdout] 142 | Expr::ArrayWithRepeat(value, length) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length` [INFO] [stdout] --> crates/rymx/src/interpret.rs:142:42 [INFO] [stdout] | [INFO] [stdout] 142 | Expr::ArrayWithRepeat(value, length) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> crates/rymx/src/interpret.rs:145:26 [INFO] [stdout] | [INFO] [stdout] 145 | Expr::Struct(name, fields) => Value::Struct({ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `this` [INFO] [stdout] --> crates/rymx/src/parse/error.rs:102:29 [INFO] [stdout] | [INFO] [stdout] 102 | (Reason::Custom(this), Reason::Custom(other)) => todo!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_this` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> crates/rymx/src/parse/error.rs:102:51 [INFO] [stdout] | [INFO] [stdout] 102 | (Reason::Custom(this), Reason::Custom(other)) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `FunctionType` is more private than the item `compile::r#type::Type::Function::0` [INFO] [stdout] --> crates/rymx/src/compile/type.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | Function(FunctionType), [INFO] [stdout] | ^^^^^^^^^^^^ field `compile::r#type::Type::Function::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `FunctionType` is only usable at visibility `pub(self)` [INFO] [stdout] --> crates/rymx/src/compile/type.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | struct FunctionType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `write`, `get`, and `instructions` are never used [INFO] [stdout] --> crates/rymx/src/compile/bytecode.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl ByteCode { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 6 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | pub fn write(&mut self, instr: OpCode) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn get(&self, index: usize) -> OpCode { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn instructions(&self) -> &[OpCode] { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REGISTERS_LENGTH` is never used [INFO] [stdout] --> crates/rymx/src/compile/bytecode.rs:36:11 [INFO] [stdout] | [INFO] [stdout] 36 | pub const REGISTERS_LENGTH: usize = Register::MAX as usize + 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `LiteralId` is never used [INFO] [stdout] --> crates/rymx/src/compile/bytecode.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 38 | pub type LiteralId = u16; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> crates/rymx/src/compile/bytecode.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub enum OpCode { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 43 | Return, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 44 | LoadInt { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | Copy { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | Add { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | IsEqual { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | IsLessThan { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | IsGreaterThan { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | Increment { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | Jump { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | JumpIfTrue { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | JumpIfNotTrue { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpCode` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> crates/rymx/src/compile/type.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Type { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 7 | Unit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | Never, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | Unknown, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 10 | Bool, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | IntLiteral, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 12 | Int(u8), [INFO] [stdout] | ^^^ [INFO] [stdout] 13 | ISize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 14 | UInt(u8), [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | USize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 16 | FloatLiteral, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 17 | Float(u8), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 18 | Array(Option, Box), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 19 | Union(Vec), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | Function(FunctionType), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Unit`, `Bool`, `Int`, `Float`, `Array`, and `String` are never constructed [INFO] [stdout] --> crates/rymx/src/compile/constant.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Constant { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 7 | Unit = 0, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | Bool(bool), [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | Int(i64), [INFO] [stdout] | ^^^ [INFO] [stdout] 10 | Float(f64), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 11 | Array(Vec), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | String(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Constant` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> crates/rymx/src/compile/constant.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl Constant { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 29 | /// Interprets Floats and Ints as an Int, if possible [INFO] [stdout] 30 | pub fn to_int(&self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn to_float(&self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn concat(&self, rhs: &Self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn add(&self, rhs: &Self) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn subtract(&self, rhs: &Self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn multiply(&self, rhs: &Self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn float_divide(&self, rhs: &Self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn int_divide(&self, rhs: &Self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn remainder(&self, rhs: &Self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn exponentiate(&self, rhs: &Self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConstEvaluator` is never constructed [INFO] [stdout] --> crates/rymx/src/compile/eval.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct ConstEvaluator { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `eval_module`, `eval_expr`, `eval_function`, `resolve_ident`, and `literal_to_constant` are never used [INFO] [stdout] --> crates/rymx/src/compile/eval.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl ConstEvaluator { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 14 | fn eval_module(ast_module: ast::Module) -> ModulePrototype { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | fn eval_expr(&self, expr: &ast::Expr) -> Constant { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | fn eval_function(&self, func: FunctionPrototype) {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | fn resolve_ident(&self, ident: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | fn literal_to_constant(lit: &ast::Literal) -> Constant { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ModulePrototype` is never constructed [INFO] [stdout] --> crates/rymx/src/compile/module.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct ModulePrototype { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> crates/rymx/src/compile/module.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl ModulePrototype { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 11 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FunctionPrototype` is never constructed [INFO] [stdout] --> crates/rymx/src/compile/module.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct FunctionPrototype { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> crates/rymx/src/compile/symbol.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl SymbolTable { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 23 | pub fn new(name: String, typ: SymbolTableType) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Module` and `Function` are never constructed [INFO] [stdout] --> crates/rymx/src/compile/symbol.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub enum SymbolTableType { [INFO] [stdout] | --------------- variants in this enum [INFO] [stdout] 35 | Module, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 36 | Function, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SymbolTableType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SymbolTableBuilder` is never constructed [INFO] [stdout] --> crates/rymx/src/compile/symbol.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | struct SymbolTableBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> crates/rymx/src/compile/symbol.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 49 | impl SymbolTableBuilder { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 50 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn enter_scope(&mut self, name: &str, typ: SymbolTableType) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn leave_scope(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn scan_expressions(&mut self, exprs: &[Expr]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn scan_expression(&mut self, expr: &Expr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn scan_function(&mut self, func: &Function) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub fn register_name(&mut self, name: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `found` is never used [INFO] [stdout] --> crates/rymx/src/parse/error.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 57 | impl Reason { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 58 | /// Return the token that was found by this error reason. `None` implies that the end of input was expected. [INFO] [stdout] 59 | pub fn found(&self) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `reason`, `found`, `contexts`, and `expected` are never used [INFO] [stdout] --> crates/rymx/src/parse/error.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 117 | impl ParseError { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 134 | pub fn reason(&self) -> &Reason { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn found(&self) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn contexts(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn expected(&self) -> impl ExactSizeIterator { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `val` and `span` are never read [INFO] [stdout] --> crates/rymx/src/span.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Spanned { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 9 | val: T, [INFO] [stdout] | ^^^ [INFO] [stdout] 10 | span: Span, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Spanned` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> crates/rymx/src/compile/eval.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | for (name, _, expr) in &this.ast_module.constants { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> crates/rymx/src/compile/eval.rs:34:31 [INFO] [stdout] | [INFO] [stdout] 34 | ast::Expr::Struct(name, fields) => todo!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fields` [INFO] [stdout] --> crates/rymx/src/compile/eval.rs:34:37 [INFO] [stdout] | [INFO] [stdout] 34 | ast::Expr::Struct(name, fields) => todo!(), [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_fields` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> crates/rymx/src/compile/eval.rs:54:29 [INFO] [stdout] | [INFO] [stdout] 54 | fn eval_function(&self, func: FunctionPrototype) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_func` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `typ` [INFO] [stdout] --> crates/rymx/src/interpret/function.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | for ((name, typ), arg) in self.params.iter().zip(args) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_typ` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `typ` [INFO] [stdout] --> crates/rymx/src/interpret.rs:119:40 [INFO] [stdout] | [INFO] [stdout] 119 | Stmt::Variable(kind, name, typ, expr) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_typ` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `array` [INFO] [stdout] --> crates/rymx/src/interpret.rs:139:25 [INFO] [stdout] | [INFO] [stdout] 139 | Expr::Array(array) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> crates/rymx/src/interpret.rs:142:35 [INFO] [stdout] | [INFO] [stdout] 142 | Expr::ArrayWithRepeat(value, length) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length` [INFO] [stdout] --> crates/rymx/src/interpret.rs:142:42 [INFO] [stdout] | [INFO] [stdout] 142 | Expr::ArrayWithRepeat(value, length) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> crates/rymx/src/interpret.rs:145:26 [INFO] [stdout] | [INFO] [stdout] 145 | Expr::Struct(name, fields) => Value::Struct({ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `this` [INFO] [stdout] --> crates/rymx/src/parse/error.rs:102:29 [INFO] [stdout] | [INFO] [stdout] 102 | (Reason::Custom(this), Reason::Custom(other)) => todo!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_this` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> crates/rymx/src/parse/error.rs:102:51 [INFO] [stdout] | [INFO] [stdout] 102 | (Reason::Custom(this), Reason::Custom(other)) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rymx` (lib) due to 2 previous errors; 32 warnings emitted [INFO] [stdout] warning: type `FunctionType` is more private than the item `compile::r#type::Type::Function::0` [INFO] [stdout] --> crates/rymx/src/compile/type.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | Function(FunctionType), [INFO] [stdout] | ^^^^^^^^^^^^ field `compile::r#type::Type::Function::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `FunctionType` is only usable at visibility `pub(self)` [INFO] [stdout] --> crates/rymx/src/compile/type.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | struct FunctionType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: methods `get` and `instructions` are never used [INFO] [stdout] --> crates/rymx/src/compile/bytecode.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl ByteCode { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn get(&self, index: usize) -> OpCode { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn instructions(&self) -> &[OpCode] { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REGISTERS_LENGTH` is never used [INFO] [stdout] --> crates/rymx/src/compile/bytecode.rs:36:11 [INFO] [stdout] | [INFO] [stdout] 36 | pub const REGISTERS_LENGTH: usize = Register::MAX as usize + 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `LiteralId` is never used [INFO] [stdout] --> crates/rymx/src/compile/bytecode.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 38 | pub type LiteralId = u16; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Copy`, `Add`, `IsLessThan`, `IsGreaterThan`, `Jump`, and `JumpIfNotTrue` are never constructed [INFO] [stdout] --> crates/rymx/src/compile/bytecode.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub enum OpCode { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 48 | Copy { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | Add { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | IsLessThan { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | IsGreaterThan { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | Jump { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | JumpIfNotTrue { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpCode` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> crates/rymx/src/compile/type.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Type { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 7 | Unit, [INFO] [stdout] 8 | Never, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | Unknown, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 10 | Bool, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | IntLiteral, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 12 | Int(u8), [INFO] [stdout] 13 | ISize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 14 | UInt(u8), [INFO] [stdout] 15 | USize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 16 | FloatLiteral, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Unit`, `Bool`, `Float`, `Array`, and `String` are never constructed [INFO] [stdout] --> crates/rymx/src/compile/constant.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Constant { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 7 | Unit = 0, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | Bool(bool), [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | Int(i64), [INFO] [stdout] 10 | Float(f64), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 11 | Array(Vec), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | String(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Constant` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> crates/rymx/src/compile/constant.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl Constant { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 29 | /// Interprets Floats and Ints as an Int, if possible [INFO] [stdout] 30 | pub fn to_int(&self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn to_float(&self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn concat(&self, rhs: &Self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn add(&self, rhs: &Self) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn subtract(&self, rhs: &Self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn multiply(&self, rhs: &Self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn float_divide(&self, rhs: &Self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn int_divide(&self, rhs: &Self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn remainder(&self, rhs: &Self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn exponentiate(&self, rhs: &Self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConstEvaluator` is never constructed [INFO] [stdout] --> crates/rymx/src/compile/eval.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct ConstEvaluator { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `eval_module`, `eval_expr`, `eval_function`, `resolve_ident`, and `literal_to_constant` are never used [INFO] [stdout] --> crates/rymx/src/compile/eval.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl ConstEvaluator { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 14 | fn eval_module(ast_module: ast::Module) -> ModulePrototype { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | fn eval_expr(&self, expr: &ast::Expr) -> Constant { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | fn eval_function(&self, func: FunctionPrototype) {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | fn resolve_ident(&self, ident: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | fn literal_to_constant(lit: &ast::Literal) -> Constant { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ModulePrototype` is never constructed [INFO] [stdout] --> crates/rymx/src/compile/module.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct ModulePrototype { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> crates/rymx/src/compile/module.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl ModulePrototype { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 11 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FunctionPrototype` is never constructed [INFO] [stdout] --> crates/rymx/src/compile/module.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct FunctionPrototype { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> crates/rymx/src/compile/symbol.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl SymbolTable { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 23 | pub fn new(name: String, typ: SymbolTableType) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Module` and `Function` are never constructed [INFO] [stdout] --> crates/rymx/src/compile/symbol.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub enum SymbolTableType { [INFO] [stdout] | --------------- variants in this enum [INFO] [stdout] 35 | Module, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 36 | Function, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SymbolTableType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SymbolTableBuilder` is never constructed [INFO] [stdout] --> crates/rymx/src/compile/symbol.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | struct SymbolTableBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> crates/rymx/src/compile/symbol.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 49 | impl SymbolTableBuilder { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 50 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn enter_scope(&mut self, name: &str, typ: SymbolTableType) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn leave_scope(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn scan_expressions(&mut self, exprs: &[Expr]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn scan_expression(&mut self, expr: &Expr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn scan_function(&mut self, func: &Function) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub fn register_name(&mut self, name: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `found` is never used [INFO] [stdout] --> crates/rymx/src/parse/error.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 57 | impl Reason { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 58 | /// Return the token that was found by this error reason. `None` implies that the end of input was expected. [INFO] [stdout] 59 | pub fn found(&self) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `reason`, `found`, `contexts`, and `expected` are never used [INFO] [stdout] --> crates/rymx/src/parse/error.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 117 | impl ParseError { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 134 | pub fn reason(&self) -> &Reason { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn found(&self) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn contexts(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn expected(&self) -> impl ExactSizeIterator { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `val` and `span` are never read [INFO] [stdout] --> crates/rymx/src/span.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Spanned { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 9 | val: T, [INFO] [stdout] | ^^^ [INFO] [stdout] 10 | span: Span, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Spanned` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rymx` (lib test) due to 2 previous errors; 32 warnings emitted [INFO] running `Command { std: "docker" "inspect" "b63219f115940c6c833414c7d15999aa6d8939b46d07a3d488573f7f516f515f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b63219f115940c6c833414c7d15999aa6d8939b46d07a3d488573f7f516f515f", kill_on_drop: false }` [INFO] [stdout] b63219f115940c6c833414c7d15999aa6d8939b46d07a3d488573f7f516f515f