[INFO] cloning repository https://github.com/ryjones-dev/toy-language [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ryjones-dev/toy-language" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fryjones-dev%2Ftoy-language", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fryjones-dev%2Ftoy-language'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e6453864a7f56d20c8127b960ecbfb874a7fb385 [INFO] checking ryjones-dev/toy-language against try#9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869 for pr-129249 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fryjones-dev%2Ftoy-language" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ryjones-dev/toy-language on toolchain 9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ryjones-dev/toy-language [INFO] finished tweaking git repo https://github.com/ryjones-dev/toy-language [INFO] tweaked toml for git repo https://github.com/ryjones-dev/toy-language written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ryjones-dev/toy-language 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" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ed2b139bd40436efae47c601a1ae4a237aa6a046dc4565e2bb8c5ba6f0f3c7e6 [INFO] running `Command { std: "docker" "start" "-a" "ed2b139bd40436efae47c601a1ae4a237aa6a046dc4565e2bb8c5ba6f0f3c7e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ed2b139bd40436efae47c601a1ae4a237aa6a046dc4565e2bb8c5ba6f0f3c7e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ed2b139bd40436efae47c601a1ae4a237aa6a046dc4565e2bb8c5ba6f0f3c7e6", kill_on_drop: false }` [INFO] [stdout] ed2b139bd40436efae47c601a1ae4a237aa6a046dc4565e2bb8c5ba6f0f3c7e6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 03b7a3901ee00f26eb1f83609a925c3ddc571d439cb6289c5511a36c6d425ca2 [INFO] running `Command { std: "docker" "start" "-a" "03b7a3901ee00f26eb1f83609a925c3ddc571d439cb6289c5511a36c6d425ca2", kill_on_drop: false }` [INFO] [stderr] Compiling cranelift-isle v0.115.0 [INFO] [stderr] Compiling cranelift-codegen-shared v0.115.0 [INFO] [stderr] Checking hashbrown v0.14.2 [INFO] [stderr] Checking foldhash v0.1.3 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Compiling target-lexicon v0.12.16 [INFO] [stderr] Checking allocator-api2 v0.2.21 [INFO] [stderr] Checking cranelift-bitset v0.115.0 [INFO] [stderr] Checking smallvec v1.11.1 [INFO] [stderr] Compiling cranelift-codegen-meta v0.115.0 [INFO] [stderr] Checking hashbrown v0.15.2 [INFO] [stderr] Checking cranelift-entity v0.115.0 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Checking rustc-hash v2.1.0 [INFO] [stderr] Checking arbitrary v1.3.2 [INFO] [stderr] Checking bumpalo v3.16.0 [INFO] [stderr] Checking cranelift-bforest v0.115.0 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Checking indexmap v2.1.0 [INFO] [stderr] Compiling anyhow v1.0.95 [INFO] [stderr] Checking regalloc2 v0.11.1 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.168 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking cranelift-control v0.115.0 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling thiserror v2.0.9 [INFO] [stderr] Checking gimli v0.31.1 [INFO] [stderr] Compiling syn v2.0.90 [INFO] [stderr] Compiling peg-runtime v0.8.3 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Compiling peg-macros v0.8.4 [INFO] [stderr] Checking object v0.36.5 [INFO] [stderr] Checking wasmtime-jit-icache-coherence v28.0.0 [INFO] [stderr] Checking region v3.0.2 [INFO] [stderr] Checking unicode-width v0.1.11 [INFO] [stderr] Checking termcolor v1.4.0 [INFO] [stderr] Checking codespan-reporting v0.11.1 [INFO] [stderr] Compiling cranelift-codegen v0.115.0 [INFO] [stderr] Checking peg v0.8.4 [INFO] [stderr] Compiling thiserror-impl v2.0.9 [INFO] [stderr] Checking cranelift-module v0.115.0 [INFO] [stderr] Checking cranelift-frontend v0.115.0 [INFO] [stderr] Checking cranelift-native v0.115.0 [INFO] [stderr] Checking cranelift-jit v0.115.0 [INFO] [stderr] Checking cranelift-object v0.115.0 [INFO] [stderr] Checking cranelift v0.115.0 [INFO] [stderr] Checking cranelift-toy-langauge v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `semantic_assert` [INFO] [stdout] --> src/codegen/semantic_assert.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | pub(super) use semantic_assert; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `semantic_assert` [INFO] [stdout] --> src/codegen/semantic_assert.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | pub(super) use semantic_assert; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source_code` [INFO] [stdout] --> src/compiler/mod.rs:43:16 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn compile(source_code: &str, options: CompileOptions) -> Result<(), RenderErrorFailure> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_source_code` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `options` [INFO] [stdout] --> src/compiler/mod.rs:43:35 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn compile(source_code: &str, options: CompileOptions) -> Result<(), RenderErrorFailure> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_options` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source_code` [INFO] [stdout] --> src/compiler/mod.rs:43:16 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn compile(source_code: &str, options: CompileOptions) -> Result<(), RenderErrorFailure> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_source_code` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `options` [INFO] [stdout] --> src/compiler/mod.rs:43:35 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn compile(source_code: &str, options: CompileOptions) -> Result<(), RenderErrorFailure> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_options` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `FunctionError` is more private than the item `SemanticError::FunctionError::0` [INFO] [stdout] --> src/semantic/mod.rs:42:27 [INFO] [stdout] | [INFO] [stdout] 42 | FunctionError(#[from] FunctionError), [INFO] [stdout] | ^^^^^^^^^^^^^ field `SemanticError::FunctionError::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `FunctionError` is only usable at visibility `pub(semantic)` [INFO] [stdout] --> src/semantic/function.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | pub(super) enum FunctionError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `StructError` is more private than the item `SemanticError::StructError::0` [INFO] [stdout] --> src/semantic/mod.rs:44:25 [INFO] [stdout] | [INFO] [stdout] 44 | StructError(#[from] StructError), [INFO] [stdout] | ^^^^^^^^^^^ field `SemanticError::StructError::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `StructError` is only usable at visibility `pub(semantic)` [INFO] [stdout] --> src/semantic/struct.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub(super) enum StructError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ScopeError` is more private than the item `SemanticError::ScopeError::0` [INFO] [stdout] --> src/semantic/mod.rs:46:24 [INFO] [stdout] | [INFO] [stdout] 46 | ScopeError(#[from] ScopeError), [INFO] [stdout] | ^^^^^^^^^^ field `SemanticError::ScopeError::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ScopeError` is only usable at visibility `pub(semantic)` [INFO] [stdout] --> src/semantic/scope.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub(super) enum ScopeError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BlockVariable` is never constructed [INFO] [stdout] --> src/codegen/block.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 10 | pub(super) struct BlockVariable { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BlockVariables` is never constructed [INFO] [stdout] --> src/codegen/block.rs:15:19 [INFO] [stdout] | [INFO] [stdout] 15 | pub(super) struct BlockVariables { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `block_vars` are never used [INFO] [stdout] --> src/codegen/block.rs:21:19 [INFO] [stdout] | [INFO] [stdout] 20 | impl BlockVariables { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 21 | pub(super) fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub(super) fn block_vars(&mut self, variable: Variable) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `CreateError`, `FinalizeError`, `FunctionDeclarationError`, and `FunctionDefinitionError` are never constructed [INFO] [stdout] --> src/codegen/codegen.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub(crate) enum CodeGenError { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 24 | #[error("Error creating codegen module: {0}")] [INFO] [stdout] 25 | CreateError(cranelift_module::ModuleError), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 26 | #[error("Error finalizing compilation: {0}")] [INFO] [stdout] 27 | FinalizeError(cranelift_module::ModuleError), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 28 | #[error("Error declaring function {0}: {1}")] [INFO] [stdout] 29 | FunctionDeclarationError(String, String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 30 | #[error("Error defining function {0}: {1}")] [INFO] [stdout] 31 | FunctionDefinitionError(String, String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CodeGenError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CodeGeneratorModule` is never used [INFO] [stdout] --> src/codegen/codegen.rs:41:18 [INFO] [stdout] | [INFO] [stdout] 41 | pub(crate) trait CodeGeneratorModule: cranelift_module::Module { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeGenerator` is never constructed [INFO] [stdout] --> src/codegen/codegen.rs:55:19 [INFO] [stdout] | [INFO] [stdout] 55 | pub(crate) struct CodeGenerator { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `JitCodeGenResults` is never constructed [INFO] [stdout] --> src/codegen/codegen.rs:65:19 [INFO] [stdout] | [INFO] [stdout] 65 | pub(crate) struct JitCodeGenResults { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `results`, and `get_main_function` are never used [INFO] [stdout] --> src/codegen/codegen.rs:73:19 [INFO] [stdout] | [INFO] [stdout] 71 | impl CodeGenerator { [INFO] [stdout] | -------------------------------------------- associated items in this implementation [INFO] [stdout] 72 | /// Creates a new [`CodeGenerator`] instance with a given [`OptimizationLevel`]. [INFO] [stdout] 73 | pub(crate) fn new(options: &CodeGenOptions) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub(crate) fn results(self) -> JitCodeGenResults { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub(crate) fn get_main_function(&self) -> Option<*const u8> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `generate`, `generate_function`, and `check_codegen_error` are never used [INFO] [stdout] --> src/codegen/codegen.rs:135:19 [INFO] [stdout] | [INFO] [stdout] 123 | impl CodeGenerator { [INFO] [stdout] | --------------------------------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 135 | pub(crate) fn generate(&mut self, ast: AbstractSyntaxTree) -> Result<(), CodeGenError> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | fn generate_function( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 292 | fn check_codegen_error(err: &cranelift_module::ModuleError) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeGenContext` is never constructed [INFO] [stdout] --> src/codegen/context.rs:8:19 [INFO] [stdout] | [INFO] [stdout] 8 | pub(crate) struct CodeGenContext { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `clear`, and `get_inner_context_mut` are never used [INFO] [stdout] --> src/codegen/context.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 13 | impl CodeGenContext { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 14 | pub(crate) fn new(module: &M, request_disassembly: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub(crate) fn clear(&mut self, module: &M) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub(crate) fn get_inner_context_mut(&mut self) -> &mut Context { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ExpressionGenerator` is never constructed [INFO] [stdout] --> src/codegen/expression_generator.rs:44:19 [INFO] [stdout] | [INFO] [stdout] 44 | pub(super) struct ExpressionGenerator< [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/codegen/expression_generator.rs:59:19 [INFO] [stdout] | [INFO] [stdout] 56 | / impl<'module, 'ctx: 'builder, 'builder, 'block, M: cranelift_module::Module> [INFO] [stdout] 57 | | ExpressionGenerator<'module, 'ctx, 'builder, 'block, M> [INFO] [stdout] | |___________________________________________________________- associated function in this implementation [INFO] [stdout] 58 | { [INFO] [stdout] 59 | pub(super) fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/codegen/expression_generator.rs:86:19 [INFO] [stdout] | [INFO] [stdout] 72 | / impl<'module, 'ctx: 'builder, 'builder, 'var, M: cranelift_module::Module + 'module> [INFO] [stdout] 73 | | ExpressionGenerator<'module, 'ctx, 'builder, 'var, M> [INFO] [stdout] | |_________________________________________________________- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 86 | pub(super) fn generate(&mut self, expression: Expression) -> (Vec, bool) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 384 | fn generate_boolean_comparison( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 538 | fn generate_binary_operation( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 638 | fn generate_unary_operation( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 669 | fn generate_function_call( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 749 | fn generate_variable(&mut self, variable: Variable) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 766 | fn generate_int_literal(&mut self, value: i64) -> ExpressionValue { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 773 | fn generate_float_literal(&mut self, value: f64) -> ExpressionValue { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 780 | fn generate_bool_literal(&mut self, value: bool) -> ExpressionValue { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Speed` and `SpeedAndSize` are never constructed [INFO] [stdout] --> src/codegen/options.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum OptimizationLevel { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 8 | Speed, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | SpeedAndSize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `disabled`, `optimization_level`, `request_ir`, and `request_disassembly` are never read [INFO] [stdout] --> src/codegen/options.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct CodeGenOptions { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 15 | pub(crate) disabled: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 16 | pub(super) optimization_level: OptimizationLevel, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | pub(super) request_ir: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 18 | pub(super) request_disassembly: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `enable`, `with_optimization_level`, `with_ir`, and `with_disassembly` are never used [INFO] [stdout] --> src/codegen/options.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl CodeGenOptions { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 22 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn enable(mut self, enable: bool) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn with_optimization_level(mut self, optimization_level: OptimizationLevel) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn with_ir(mut self, request_ir: bool) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn with_disassembly(mut self, request_disassembly: bool) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `primitive_types` is never used [INFO] [stdout] --> src/codegen/types.rs:65:19 [INFO] [stdout] | [INFO] [stdout] 11 | impl DataType { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | pub(crate) fn primitive_types(self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `JitCompileResults` is never used [INFO] [stdout] --> src/compiler/mod.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | pub enum JitCompileResults { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compile` is never used [INFO] [stdout] --> src/compiler/mod.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn compile(source_code: &str, options: CompileOptions) -> Result<(), RenderErrorFailure> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compile_jit` is never used [INFO] [stdout] --> src/compiler/mod.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn compile_jit( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `JitBackendResults` is never constructed [INFO] [stdout] --> src/compiler/backend.rs:26:19 [INFO] [stdout] | [INFO] [stdout] 26 | pub(super) struct JitBackendResults { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `jit_backend` is never used [INFO] [stdout] --> src/compiler/backend.rs:32:15 [INFO] [stdout] | [INFO] [stdout] 32 | pub(super) fn jit_backend( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `FrontendResults` is never used [INFO] [stdout] --> src/compiler/frontend.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | pub(super) enum FrontendResults { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `frontend` is never used [INFO] [stdout] --> src/compiler/frontend.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | pub(super) fn frontend(source_code: &str) -> FrontendResults { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CompileOptions` is never constructed [INFO] [stdout] --> src/compiler/options.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct CompileOptions { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `with_ast`, and `with_codegen_options` are never used [INFO] [stdout] --> src/compiler/options.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl CompileOptions { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 9 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn with_ast(mut self, request_ast: bool) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn with_codegen_options(mut self, codegen_options: CodeGenOptions) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `message` and `source` are never read [INFO] [stdout] --> src/diagnostic/mod.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate) struct DiagnosticMessage { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 18 | message: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 19 | source: SourceRange, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `to_primary`, `to_secondary`, and `to_range` are never used [INFO] [stdout] --> src/diagnostic/mod.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 22 | impl DiagnosticMessage { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | fn to_primary(self, file_id: F) -> codespan_reporting::diagnostic::Label { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | fn to_secondary(self, file_id: F) -> codespan_reporting::diagnostic::Label { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | fn to_range(source: SourceRange) -> std::ops::Range { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `labels` is never read [INFO] [stdout] --> src/diagnostic/mod.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 60 | pub(crate) struct DiagnosticContext { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 61 | message: DiagnosticMessage, [INFO] [stdout] 62 | labels: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `level` and `to_diagnostic` are never used [INFO] [stdout] --> src/diagnostic/mod.rs:108:19 [INFO] [stdout] | [INFO] [stdout] 98 | impl Diagnostic { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 108 | pub(crate) fn level(&self) -> DiagnosticLevel { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | fn to_diagnostic(self, file_id: F) -> codespan_reporting::diagnostic::Diagnostic { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `report_diagnostic` is never used [INFO] [stdout] --> src/diagnostic/mod.rs:166:15 [INFO] [stdout] | [INFO] [stdout] 166 | pub(crate) fn report_diagnostic( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `lhs` and `rhs` are never read [INFO] [stdout] --> src/parser/expression.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 90 | Assignment { [INFO] [stdout] | ---------- fields in this variant [INFO] [stdout] 91 | lhs: Vec, [INFO] [stdout] | ^^^ [INFO] [stdout] 92 | rhs: Box, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expression` 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: fields `name` and `members` are never read [INFO] [stdout] --> src/parser/expression.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 104 | StructInstantiation { [INFO] [stdout] | ------------------- fields in this variant [INFO] [stdout] 105 | name: Identifier, [INFO] [stdout] | ^^^^ [INFO] [stdout] 106 | members: Vec<(Identifier, Expression)>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expression` 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: field `structs` is never read [INFO] [stdout] --> src/parser/expression.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 117 | StructMemberAccess { [INFO] [stdout] | ------------------ field in this variant [INFO] [stdout] ... [INFO] [stdout] 120 | structs: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expression` 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: field `expression` is never read [INFO] [stdout] --> src/parser/expression.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 123 | FunctionReturn { [INFO] [stdout] | -------------- field in this variant [INFO] [stdout] 124 | expression: Box, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expression` 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: fields `name` and `argument_expression` are never read [INFO] [stdout] --> src/parser/expression.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 130 | FunctionCall { [INFO] [stdout] | ------------ fields in this variant [INFO] [stdout] 131 | name: Identifier, [INFO] [stdout] | ^^^^ [INFO] [stdout] 132 | argument_expression: Box>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expression` 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: fields `cond_expression`, `then_expression`, and `else_expression` are never read [INFO] [stdout] --> src/parser/expression.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 136 | IfElse { [INFO] [stdout] | ------ fields in this variant [INFO] [stdout] 137 | cond_expression: Box, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 138 | then_expression: Box, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 139 | else_expression: Box>, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expression` 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: methods `unwrap_transparent` and `last_function_return` are never used [INFO] [stdout] --> src/parser/expression.rs:218:19 [INFO] [stdout] | [INFO] [stdout] 165 | impl Expression { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 218 | pub(crate) fn unwrap_transparent(&self) -> &Expression { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 240 | pub(crate) fn last_function_return(&self) -> Option<&Self> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_discarded` is never used [INFO] [stdout] --> src/parser/function.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 17 | impl FunctionSignature { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] 18 | pub(crate) fn is_discarded(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `scope` is never read [INFO] [stdout] --> src/parser/function.rs:30:16 [INFO] [stdout] | [INFO] [stdout] 28 | pub(crate) struct Function { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 29 | pub(crate) signature: FunctionSignature, [INFO] [stdout] 30 | pub(crate) scope: Scope, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Function` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_discarded` is never used [INFO] [stdout] --> src/parser/identifier.rs:25:19 [INFO] [stdout] | [INFO] [stdout] 16 | impl Identifier { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub(super) fn is_discarded(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `val` is never used [INFO] [stdout] --> src/parser/literal.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 9 | impl Literal { [INFO] [stdout] | ------------------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 14 | pub(crate) fn val(&self) -> T { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `split_into_return`, `split_return`, `split_return_mut`, and `wrap_function_return` are never used [INFO] [stdout] --> src/parser/scope.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 6 | impl Scope { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 11 | pub(crate) fn split_into_return(mut self) -> (Vec, Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub(crate) fn split_return(&self) -> Option<(&Expression, &[Expression])> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub(crate) fn split_return_mut(&mut self) -> Option<(&mut Expression, &mut [Expression])> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub(crate) fn wrap_function_return(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_type_mut`, `into_type`, and `is_discarded` are never used [INFO] [stdout] --> src/parser/struct.rs:26:19 [INFO] [stdout] | [INFO] [stdout] 13 | impl StructMember { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub(crate) fn get_type_mut(&mut self) -> &mut Type { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub(crate) fn into_type(self) -> Type { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub(crate) fn is_discarded(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `members` is never read [INFO] [stdout] --> src/parser/struct.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 62 | pub(crate) struct Struct { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 63 | name: Identifier, [INFO] [stdout] 64 | members: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Struct` 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: methods `members`, `members_mut`, `into_members`, and `is_discarded` are never used [INFO] [stdout] --> src/parser/struct.rs:81:19 [INFO] [stdout] | [INFO] [stdout] 68 | impl Struct { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 81 | pub(crate) fn members(&self) -> &Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub(crate) fn members_mut(&mut self) -> &mut Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub(crate) fn into_members(self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub(crate) fn is_discarded(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `struct_data_types` is never read [INFO] [stdout] --> src/parser/types.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 13 | Struct { [INFO] [stdout] | ------ field in this variant [INFO] [stdout] 14 | name: String, [INFO] [stdout] 15 | struct_data_types: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DataType` 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: methods `set_type`, `update_struct_data_type`, `into_type`, and `is_discarded` are never used [INFO] [stdout] --> src/parser/variable.rs:33:19 [INFO] [stdout] | [INFO] [stdout] 20 | impl Variable { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub(crate) fn set_type(&mut self, ty: &Type) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub(crate) fn update_struct_data_type(&mut self, _struct: Struct) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub(crate) fn into_type(self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub(crate) fn is_discarded(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXPECT_STRUCT` is never used [INFO] [stdout] --> src/semantic/mod.rs:28:18 [INFO] [stdout] | [INFO] [stdout] 28 | pub(crate) const EXPECT_STRUCT: &str = "struct should have a type by this point"; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `MissingMainError`, `FunctionAlreadyDefinedError`, and `StructAlreadyDefinedError` are never constructed [INFO] [stdout] --> src/semantic/mod.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub(super) enum SemanticError { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 32 | #[error("main function is not defined")] [INFO] [stdout] 33 | MissingMainError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 34 | #[error("duplicate function definition")] [INFO] [stdout] 35 | FunctionAlreadyDefinedError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | StructAlreadyDefinedError { original: Struct, new: Struct }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SemanticError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `semantic_analysis` is never used [INFO] [stdout] --> src/semantic/mod.rs:97:15 [INFO] [stdout] | [INFO] [stdout] 97 | pub(crate) fn semantic_analysis(ast: &mut AbstractSyntaxTree) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/semantic/expression.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub(super) enum ExpressionError { [INFO] [stdout] | --------------- variants in this enum [INFO] [stdout] 33 | #[error("wrong number of variables in assignment")] [INFO] [stdout] 34 | AssignmentWrongNumberOfVariablesError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | AssignmentTypeMismatchError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | AssignmentVariableTypeRedefinitionError { prev_var: Variable, var: Variable }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 50 | #[error("duplicate struct member in instantiation")] [INFO] [stdout] 51 | StructMemberAlreadyInitializedError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | StructMemberNotInitializedError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | StructMemberUnknownError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | NonStructMemberAccessError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | StructUnknownError(String, SourceRange), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 73 | #[error("return value mismatch")] [INFO] [stdout] 74 | FunctionReturnValueMismatchError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | FunctionCallUnknownError(Identifier, SourceRange), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 81 | #[error("call to discarded function")] [INFO] [stdout] 82 | FunctionCallFunctionDiscardedError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | FunctionCallArgumentTypeMismatchError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | IfElseReturnTypeMismatchError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | VariableUnknownError(Variable), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 103 | #[error("read from discarded variable")] [INFO] [stdout] 104 | VariableReadFromDiscardedError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | ExpectedSingleValueError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | TypeMismatchError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | UnexpectedTypeError { ty: Type, source_range: SourceRange }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExpressionError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `analyze_expression` is never used [INFO] [stdout] --> src/semantic/expression.rs:457:15 [INFO] [stdout] | [INFO] [stdout] 457 | pub(super) fn analyze_expression( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `analyze_function_call` is never used [INFO] [stdout] --> src/semantic/expression.rs:1067:15 [INFO] [stdout] | [INFO] [stdout] 1067 | pub(super) fn analyze_function_call( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `struct_data_and_member_type` is never used [INFO] [stdout] --> src/semantic/expression.rs:1125:4 [INFO] [stdout] | [INFO] [stdout] 1125 | fn struct_data_and_member_type<'a>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `expect_any_single_type` is never used [INFO] [stdout] --> src/semantic/expression.rs:1159:4 [INFO] [stdout] | [INFO] [stdout] 1159 | fn expect_any_single_type(expression: &Expression, types: &Types) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `expect_single_type` is never used [INFO] [stdout] --> src/semantic/expression.rs:1170:4 [INFO] [stdout] | [INFO] [stdout] 1170 | fn expect_single_type( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `expect_single_equal_types` is never used [INFO] [stdout] --> src/semantic/expression.rs:1190:4 [INFO] [stdout] | [INFO] [stdout] 1190 | fn expect_single_equal_types<'a>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `DuplicateParameterError` is never constructed [INFO] [stdout] --> src/semantic/function.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub(super) enum FunctionError { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] 22 | #[error("duplicate function parameter")] [INFO] [stdout] 23 | DuplicateParameterError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FunctionError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `analyze_function` is never used [INFO] [stdout] --> src/semantic/function.rs:59:15 [INFO] [stdout] | [INFO] [stdout] 59 | pub(super) fn analyze_function( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `EarlyReturnError`, `NonZeroReturnError`, `UnusedVariableError`, `UnusedFunctionError`, and `UnusedStructError` are never constructed [INFO] [stdout] --> src/semantic/scope.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub(super) enum ScopeError { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 19 | #[error("return before end of scope")] [INFO] [stdout] 20 | EarlyReturnError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | NonZeroReturnError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | UnusedVariableError { variable: Variable }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 32 | #[error("unused function")] [INFO] [stdout] 33 | UnusedFunctionError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | UnusedStructError { _struct: Struct }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ScopeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `analyze_scope` is never used [INFO] [stdout] --> src/semantic/scope.rs:132:15 [INFO] [stdout] | [INFO] [stdout] 132 | pub(super) fn analyze_scope( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VariableMetadata` is never constructed [INFO] [stdout] --> src/semantic/scope_tracker.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct VariableMetadata { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FunctionMetadata` is never constructed [INFO] [stdout] --> src/semantic/scope_tracker.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | struct FunctionMetadata { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StructMetadata` is never constructed [INFO] [stdout] --> src/semantic/scope_tracker.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | struct StructMetadata { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ScopeTracker` is never constructed [INFO] [stdout] --> src/semantic/scope_tracker.rs:43:19 [INFO] [stdout] | [INFO] [stdout] 43 | pub(super) struct ScopeTracker<'a> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/semantic/scope_tracker.rs:53:19 [INFO] [stdout] | [INFO] [stdout] 52 | impl<'a> ScopeTracker<'a> { [INFO] [stdout] | ------------------------- associated function in this implementation [INFO] [stdout] 53 | pub(super) fn new(outer_scope: Option<&'a ScopeTracker<'a>>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/semantic/scope_tracker.rs:67:19 [INFO] [stdout] | [INFO] [stdout] 63 | impl ScopeTracker<'_> { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 67 | pub(super) fn get_var<'s>( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub(super) fn insert_var(&mut self, variable: Variable) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | fn get_var_meta<'s>( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | fn has_var_meta<'s>(&self, name: impl Into<&'s str> + Eq + std::hash::Hash) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub(super) fn get_func_sig<'s>( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 162 | pub(super) fn has_main_func(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | pub(super) fn insert_func_sig( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 199 | pub(super) fn get_struct<'s>( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 218 | fn get_struct_mut<'s>( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 236 | pub(super) fn insert_struct(&mut self, _struct: Struct) -> Option<&Struct> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 257 | pub(super) fn update_struct_data_types<'s>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 287 | pub(super) fn get_unused(self) -> (Vec, Vec, Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `DuplicateMemberError`, `RecursiveStructDefinitionError`, and `UnknownStructMemberTypeError` are never constructed [INFO] [stdout] --> src/semantic/struct.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub(super) enum StructError { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 18 | #[error("duplicate struct member")] [INFO] [stdout] 19 | DuplicateMemberError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | RecursiveStructDefinitionError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | UnknownStructMemberTypeError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StructError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `analyze_struct` is never used [INFO] [stdout] --> src/semantic/struct.rs:90:15 [INFO] [stdout] | [INFO] [stdout] 90 | pub(super) fn analyze_struct<'a>( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_struct_member_recursive` is never used [INFO] [stdout] --> src/semantic/struct.rs:125:4 [INFO] [stdout] | [INFO] [stdout] 125 | fn check_struct_member_recursive( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `populate_struct_member` is never used [INFO] [stdout] --> src/semantic/struct.rs:175:4 [INFO] [stdout] | [INFO] [stdout] 175 | fn populate_struct_member( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `variable::Variable` to `variable::Variable` [INFO] [stdout] --> src/semantic/function.rs:69:58 [INFO] [stdout] | [INFO] [stdout] 69 | if let Some(variable) = scope_tracker.insert_var(param.clone().into()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(self_type_conversion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `cranelift-toy-langauge` (lib test) due to 1 previous error; 79 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: type `FunctionError` is more private than the item `SemanticError::FunctionError::0` [INFO] [stdout] --> src/semantic/mod.rs:42:27 [INFO] [stdout] | [INFO] [stdout] 42 | FunctionError(#[from] FunctionError), [INFO] [stdout] | ^^^^^^^^^^^^^ field `SemanticError::FunctionError::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `FunctionError` is only usable at visibility `pub(semantic)` [INFO] [stdout] --> src/semantic/function.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | pub(super) enum FunctionError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `StructError` is more private than the item `SemanticError::StructError::0` [INFO] [stdout] --> src/semantic/mod.rs:44:25 [INFO] [stdout] | [INFO] [stdout] 44 | StructError(#[from] StructError), [INFO] [stdout] | ^^^^^^^^^^^ field `SemanticError::StructError::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `StructError` is only usable at visibility `pub(semantic)` [INFO] [stdout] --> src/semantic/struct.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub(super) enum StructError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ScopeError` is more private than the item `SemanticError::ScopeError::0` [INFO] [stdout] --> src/semantic/mod.rs:46:24 [INFO] [stdout] | [INFO] [stdout] 46 | ScopeError(#[from] ScopeError), [INFO] [stdout] | ^^^^^^^^^^ field `SemanticError::ScopeError::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ScopeError` is only usable at visibility `pub(semantic)` [INFO] [stdout] --> src/semantic/scope.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub(super) enum ScopeError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BlockVariable` is never constructed [INFO] [stdout] --> src/codegen/block.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 10 | pub(super) struct BlockVariable { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BlockVariables` is never constructed [INFO] [stdout] --> src/codegen/block.rs:15:19 [INFO] [stdout] | [INFO] [stdout] 15 | pub(super) struct BlockVariables { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `block_vars` are never used [INFO] [stdout] --> src/codegen/block.rs:21:19 [INFO] [stdout] | [INFO] [stdout] 20 | impl BlockVariables { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 21 | pub(super) fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub(super) fn block_vars(&mut self, variable: Variable) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `CreateError`, `FinalizeError`, `FunctionDeclarationError`, and `FunctionDefinitionError` are never constructed [INFO] [stdout] --> src/codegen/codegen.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub(crate) enum CodeGenError { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 24 | #[error("Error creating codegen module: {0}")] [INFO] [stdout] 25 | CreateError(cranelift_module::ModuleError), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 26 | #[error("Error finalizing compilation: {0}")] [INFO] [stdout] 27 | FinalizeError(cranelift_module::ModuleError), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 28 | #[error("Error declaring function {0}: {1}")] [INFO] [stdout] 29 | FunctionDeclarationError(String, String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 30 | #[error("Error defining function {0}: {1}")] [INFO] [stdout] 31 | FunctionDefinitionError(String, String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CodeGenError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CodeGeneratorModule` is never used [INFO] [stdout] --> src/codegen/codegen.rs:41:18 [INFO] [stdout] | [INFO] [stdout] 41 | pub(crate) trait CodeGeneratorModule: cranelift_module::Module { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeGenerator` is never constructed [INFO] [stdout] --> src/codegen/codegen.rs:55:19 [INFO] [stdout] | [INFO] [stdout] 55 | pub(crate) struct CodeGenerator { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `JitCodeGenResults` is never constructed [INFO] [stdout] --> src/codegen/codegen.rs:65:19 [INFO] [stdout] | [INFO] [stdout] 65 | pub(crate) struct JitCodeGenResults { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `results`, and `get_main_function` are never used [INFO] [stdout] --> src/codegen/codegen.rs:73:19 [INFO] [stdout] | [INFO] [stdout] 71 | impl CodeGenerator { [INFO] [stdout] | -------------------------------------------- associated items in this implementation [INFO] [stdout] 72 | /// Creates a new [`CodeGenerator`] instance with a given [`OptimizationLevel`]. [INFO] [stdout] 73 | pub(crate) fn new(options: &CodeGenOptions) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub(crate) fn results(self) -> JitCodeGenResults { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub(crate) fn get_main_function(&self) -> Option<*const u8> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `generate`, `generate_function`, and `check_codegen_error` are never used [INFO] [stdout] --> src/codegen/codegen.rs:135:19 [INFO] [stdout] | [INFO] [stdout] 123 | impl CodeGenerator { [INFO] [stdout] | --------------------------------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 135 | pub(crate) fn generate(&mut self, ast: AbstractSyntaxTree) -> Result<(), CodeGenError> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | fn generate_function( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 292 | fn check_codegen_error(err: &cranelift_module::ModuleError) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeGenContext` is never constructed [INFO] [stdout] --> src/codegen/context.rs:8:19 [INFO] [stdout] | [INFO] [stdout] 8 | pub(crate) struct CodeGenContext { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `clear`, and `get_inner_context_mut` are never used [INFO] [stdout] --> src/codegen/context.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 13 | impl CodeGenContext { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 14 | pub(crate) fn new(module: &M, request_disassembly: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub(crate) fn clear(&mut self, module: &M) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub(crate) fn get_inner_context_mut(&mut self) -> &mut Context { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ExpressionGenerator` is never constructed [INFO] [stdout] --> src/codegen/expression_generator.rs:44:19 [INFO] [stdout] | [INFO] [stdout] 44 | pub(super) struct ExpressionGenerator< [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/codegen/expression_generator.rs:59:19 [INFO] [stdout] | [INFO] [stdout] 56 | / impl<'module, 'ctx: 'builder, 'builder, 'block, M: cranelift_module::Module> [INFO] [stdout] 57 | | ExpressionGenerator<'module, 'ctx, 'builder, 'block, M> [INFO] [stdout] | |___________________________________________________________- associated function in this implementation [INFO] [stdout] 58 | { [INFO] [stdout] 59 | pub(super) fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/codegen/expression_generator.rs:86:19 [INFO] [stdout] | [INFO] [stdout] 72 | / impl<'module, 'ctx: 'builder, 'builder, 'var, M: cranelift_module::Module + 'module> [INFO] [stdout] 73 | | ExpressionGenerator<'module, 'ctx, 'builder, 'var, M> [INFO] [stdout] | |_________________________________________________________- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 86 | pub(super) fn generate(&mut self, expression: Expression) -> (Vec, bool) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 384 | fn generate_boolean_comparison( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 538 | fn generate_binary_operation( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 638 | fn generate_unary_operation( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 669 | fn generate_function_call( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 749 | fn generate_variable(&mut self, variable: Variable) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 766 | fn generate_int_literal(&mut self, value: i64) -> ExpressionValue { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 773 | fn generate_float_literal(&mut self, value: f64) -> ExpressionValue { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 780 | fn generate_bool_literal(&mut self, value: bool) -> ExpressionValue { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Speed` and `SpeedAndSize` are never constructed [INFO] [stdout] --> src/codegen/options.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum OptimizationLevel { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 8 | Speed, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | SpeedAndSize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `disabled`, `optimization_level`, `request_ir`, and `request_disassembly` are never read [INFO] [stdout] --> src/codegen/options.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct CodeGenOptions { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 15 | pub(crate) disabled: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 16 | pub(super) optimization_level: OptimizationLevel, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | pub(super) request_ir: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 18 | pub(super) request_disassembly: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `enable`, `with_optimization_level`, `with_ir`, and `with_disassembly` are never used [INFO] [stdout] --> src/codegen/options.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl CodeGenOptions { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 22 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn enable(mut self, enable: bool) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn with_optimization_level(mut self, optimization_level: OptimizationLevel) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn with_ir(mut self, request_ir: bool) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn with_disassembly(mut self, request_disassembly: bool) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `primitive_types` is never used [INFO] [stdout] --> src/codegen/types.rs:65:19 [INFO] [stdout] | [INFO] [stdout] 11 | impl DataType { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | pub(crate) fn primitive_types(self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `JitCompileResults` is never used [INFO] [stdout] --> src/compiler/mod.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | pub enum JitCompileResults { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compile` is never used [INFO] [stdout] --> src/compiler/mod.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn compile(source_code: &str, options: CompileOptions) -> Result<(), RenderErrorFailure> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compile_jit` is never used [INFO] [stdout] --> src/compiler/mod.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn compile_jit( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `JitBackendResults` is never constructed [INFO] [stdout] --> src/compiler/backend.rs:26:19 [INFO] [stdout] | [INFO] [stdout] 26 | pub(super) struct JitBackendResults { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `jit_backend` is never used [INFO] [stdout] --> src/compiler/backend.rs:32:15 [INFO] [stdout] | [INFO] [stdout] 32 | pub(super) fn jit_backend( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `FrontendResults` is never used [INFO] [stdout] --> src/compiler/frontend.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | pub(super) enum FrontendResults { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `frontend` is never used [INFO] [stdout] --> src/compiler/frontend.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | pub(super) fn frontend(source_code: &str) -> FrontendResults { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CompileOptions` is never constructed [INFO] [stdout] --> src/compiler/options.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct CompileOptions { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `with_ast`, and `with_codegen_options` are never used [INFO] [stdout] --> src/compiler/options.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl CompileOptions { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 9 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn with_ast(mut self, request_ast: bool) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn with_codegen_options(mut self, codegen_options: CodeGenOptions) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `message` and `source` are never read [INFO] [stdout] --> src/diagnostic/mod.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate) struct DiagnosticMessage { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 18 | message: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 19 | source: SourceRange, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `to_primary`, `to_secondary`, and `to_range` are never used [INFO] [stdout] --> src/diagnostic/mod.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 22 | impl DiagnosticMessage { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | fn to_primary(self, file_id: F) -> codespan_reporting::diagnostic::Label { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | fn to_secondary(self, file_id: F) -> codespan_reporting::diagnostic::Label { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | fn to_range(source: SourceRange) -> std::ops::Range { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `labels` is never read [INFO] [stdout] --> src/diagnostic/mod.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 60 | pub(crate) struct DiagnosticContext { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 61 | message: DiagnosticMessage, [INFO] [stdout] 62 | labels: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `level` and `to_diagnostic` are never used [INFO] [stdout] --> src/diagnostic/mod.rs:108:19 [INFO] [stdout] | [INFO] [stdout] 98 | impl Diagnostic { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 108 | pub(crate) fn level(&self) -> DiagnosticLevel { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | fn to_diagnostic(self, file_id: F) -> codespan_reporting::diagnostic::Diagnostic { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `report_diagnostic` is never used [INFO] [stdout] --> src/diagnostic/mod.rs:166:15 [INFO] [stdout] | [INFO] [stdout] 166 | pub(crate) fn report_diagnostic( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `lhs` and `rhs` are never read [INFO] [stdout] --> src/parser/expression.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 90 | Assignment { [INFO] [stdout] | ---------- fields in this variant [INFO] [stdout] 91 | lhs: Vec, [INFO] [stdout] | ^^^ [INFO] [stdout] 92 | rhs: Box, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expression` 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: fields `name` and `members` are never read [INFO] [stdout] --> src/parser/expression.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 104 | StructInstantiation { [INFO] [stdout] | ------------------- fields in this variant [INFO] [stdout] 105 | name: Identifier, [INFO] [stdout] | ^^^^ [INFO] [stdout] 106 | members: Vec<(Identifier, Expression)>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expression` 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: field `structs` is never read [INFO] [stdout] --> src/parser/expression.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 117 | StructMemberAccess { [INFO] [stdout] | ------------------ field in this variant [INFO] [stdout] ... [INFO] [stdout] 120 | structs: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expression` 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: field `expression` is never read [INFO] [stdout] --> src/parser/expression.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 123 | FunctionReturn { [INFO] [stdout] | -------------- field in this variant [INFO] [stdout] 124 | expression: Box, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expression` 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: fields `name` and `argument_expression` are never read [INFO] [stdout] --> src/parser/expression.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 130 | FunctionCall { [INFO] [stdout] | ------------ fields in this variant [INFO] [stdout] 131 | name: Identifier, [INFO] [stdout] | ^^^^ [INFO] [stdout] 132 | argument_expression: Box>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expression` 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: fields `cond_expression`, `then_expression`, and `else_expression` are never read [INFO] [stdout] --> src/parser/expression.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 136 | IfElse { [INFO] [stdout] | ------ fields in this variant [INFO] [stdout] 137 | cond_expression: Box, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 138 | then_expression: Box, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 139 | else_expression: Box>, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expression` 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: methods `unwrap_transparent` and `last_function_return` are never used [INFO] [stdout] --> src/parser/expression.rs:218:19 [INFO] [stdout] | [INFO] [stdout] 165 | impl Expression { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 218 | pub(crate) fn unwrap_transparent(&self) -> &Expression { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 240 | pub(crate) fn last_function_return(&self) -> Option<&Self> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_discarded` is never used [INFO] [stdout] --> src/parser/function.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 17 | impl FunctionSignature { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] 18 | pub(crate) fn is_discarded(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `scope` is never read [INFO] [stdout] --> src/parser/function.rs:30:16 [INFO] [stdout] | [INFO] [stdout] 28 | pub(crate) struct Function { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 29 | pub(crate) signature: FunctionSignature, [INFO] [stdout] 30 | pub(crate) scope: Scope, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Function` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_discarded` is never used [INFO] [stdout] --> src/parser/identifier.rs:25:19 [INFO] [stdout] | [INFO] [stdout] 16 | impl Identifier { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub(super) fn is_discarded(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `val` is never used [INFO] [stdout] --> src/parser/literal.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 9 | impl Literal { [INFO] [stdout] | ------------------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 14 | pub(crate) fn val(&self) -> T { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `split_into_return`, `split_return`, `split_return_mut`, and `wrap_function_return` are never used [INFO] [stdout] --> src/parser/scope.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 6 | impl Scope { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 11 | pub(crate) fn split_into_return(mut self) -> (Vec, Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub(crate) fn split_return(&self) -> Option<(&Expression, &[Expression])> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub(crate) fn split_return_mut(&mut self) -> Option<(&mut Expression, &mut [Expression])> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub(crate) fn wrap_function_return(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_type_mut`, `into_type`, and `is_discarded` are never used [INFO] [stdout] --> src/parser/struct.rs:26:19 [INFO] [stdout] | [INFO] [stdout] 13 | impl StructMember { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub(crate) fn get_type_mut(&mut self) -> &mut Type { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub(crate) fn into_type(self) -> Type { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub(crate) fn is_discarded(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `members` is never read [INFO] [stdout] --> src/parser/struct.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 62 | pub(crate) struct Struct { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 63 | name: Identifier, [INFO] [stdout] 64 | members: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Struct` 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: methods `members`, `members_mut`, `into_members`, and `is_discarded` are never used [INFO] [stdout] --> src/parser/struct.rs:81:19 [INFO] [stdout] | [INFO] [stdout] 68 | impl Struct { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 81 | pub(crate) fn members(&self) -> &Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub(crate) fn members_mut(&mut self) -> &mut Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub(crate) fn into_members(self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub(crate) fn is_discarded(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `struct_data_types` is never read [INFO] [stdout] --> src/parser/types.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 13 | Struct { [INFO] [stdout] | ------ field in this variant [INFO] [stdout] 14 | name: String, [INFO] [stdout] 15 | struct_data_types: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DataType` 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: methods `set_type`, `update_struct_data_type`, `into_type`, and `is_discarded` are never used [INFO] [stdout] --> src/parser/variable.rs:33:19 [INFO] [stdout] | [INFO] [stdout] 20 | impl Variable { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub(crate) fn set_type(&mut self, ty: &Type) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub(crate) fn update_struct_data_type(&mut self, _struct: Struct) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub(crate) fn into_type(self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub(crate) fn is_discarded(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXPECT_STRUCT` is never used [INFO] [stdout] --> src/semantic/mod.rs:28:18 [INFO] [stdout] | [INFO] [stdout] 28 | pub(crate) const EXPECT_STRUCT: &str = "struct should have a type by this point"; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `MissingMainError`, `FunctionAlreadyDefinedError`, and `StructAlreadyDefinedError` are never constructed [INFO] [stdout] --> src/semantic/mod.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub(super) enum SemanticError { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 32 | #[error("main function is not defined")] [INFO] [stdout] 33 | MissingMainError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 34 | #[error("duplicate function definition")] [INFO] [stdout] 35 | FunctionAlreadyDefinedError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | StructAlreadyDefinedError { original: Struct, new: Struct }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SemanticError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `semantic_analysis` is never used [INFO] [stdout] --> src/semantic/mod.rs:97:15 [INFO] [stdout] | [INFO] [stdout] 97 | pub(crate) fn semantic_analysis(ast: &mut AbstractSyntaxTree) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/semantic/expression.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub(super) enum ExpressionError { [INFO] [stdout] | --------------- variants in this enum [INFO] [stdout] 33 | #[error("wrong number of variables in assignment")] [INFO] [stdout] 34 | AssignmentWrongNumberOfVariablesError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | AssignmentTypeMismatchError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | AssignmentVariableTypeRedefinitionError { prev_var: Variable, var: Variable }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 50 | #[error("duplicate struct member in instantiation")] [INFO] [stdout] 51 | StructMemberAlreadyInitializedError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | StructMemberNotInitializedError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | StructMemberUnknownError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | NonStructMemberAccessError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | StructUnknownError(String, SourceRange), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 73 | #[error("return value mismatch")] [INFO] [stdout] 74 | FunctionReturnValueMismatchError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | FunctionCallUnknownError(Identifier, SourceRange), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 81 | #[error("call to discarded function")] [INFO] [stdout] 82 | FunctionCallFunctionDiscardedError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | FunctionCallArgumentTypeMismatchError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | IfElseReturnTypeMismatchError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | VariableUnknownError(Variable), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 103 | #[error("read from discarded variable")] [INFO] [stdout] 104 | VariableReadFromDiscardedError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | ExpectedSingleValueError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | TypeMismatchError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | UnexpectedTypeError { ty: Type, source_range: SourceRange }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExpressionError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `analyze_expression` is never used [INFO] [stdout] --> src/semantic/expression.rs:457:15 [INFO] [stdout] | [INFO] [stdout] 457 | pub(super) fn analyze_expression( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `analyze_function_call` is never used [INFO] [stdout] --> src/semantic/expression.rs:1067:15 [INFO] [stdout] | [INFO] [stdout] 1067 | pub(super) fn analyze_function_call( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `struct_data_and_member_type` is never used [INFO] [stdout] --> src/semantic/expression.rs:1125:4 [INFO] [stdout] | [INFO] [stdout] 1125 | fn struct_data_and_member_type<'a>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `expect_any_single_type` is never used [INFO] [stdout] --> src/semantic/expression.rs:1159:4 [INFO] [stdout] | [INFO] [stdout] 1159 | fn expect_any_single_type(expression: &Expression, types: &Types) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `expect_single_type` is never used [INFO] [stdout] --> src/semantic/expression.rs:1170:4 [INFO] [stdout] | [INFO] [stdout] 1170 | fn expect_single_type( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `expect_single_equal_types` is never used [INFO] [stdout] --> src/semantic/expression.rs:1190:4 [INFO] [stdout] | [INFO] [stdout] 1190 | fn expect_single_equal_types<'a>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `DuplicateParameterError` is never constructed [INFO] [stdout] --> src/semantic/function.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub(super) enum FunctionError { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] 22 | #[error("duplicate function parameter")] [INFO] [stdout] 23 | DuplicateParameterError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FunctionError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `analyze_function` is never used [INFO] [stdout] --> src/semantic/function.rs:59:15 [INFO] [stdout] | [INFO] [stdout] 59 | pub(super) fn analyze_function( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `EarlyReturnError`, `NonZeroReturnError`, `UnusedVariableError`, `UnusedFunctionError`, and `UnusedStructError` are never constructed [INFO] [stdout] --> src/semantic/scope.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub(super) enum ScopeError { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 19 | #[error("return before end of scope")] [INFO] [stdout] 20 | EarlyReturnError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | NonZeroReturnError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | UnusedVariableError { variable: Variable }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 32 | #[error("unused function")] [INFO] [stdout] 33 | UnusedFunctionError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | UnusedStructError { _struct: Struct }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ScopeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `analyze_scope` is never used [INFO] [stdout] --> src/semantic/scope.rs:132:15 [INFO] [stdout] | [INFO] [stdout] 132 | pub(super) fn analyze_scope( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VariableMetadata` is never constructed [INFO] [stdout] --> src/semantic/scope_tracker.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct VariableMetadata { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FunctionMetadata` is never constructed [INFO] [stdout] --> src/semantic/scope_tracker.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | struct FunctionMetadata { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StructMetadata` is never constructed [INFO] [stdout] --> src/semantic/scope_tracker.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | struct StructMetadata { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ScopeTracker` is never constructed [INFO] [stdout] --> src/semantic/scope_tracker.rs:43:19 [INFO] [stdout] | [INFO] [stdout] 43 | pub(super) struct ScopeTracker<'a> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/semantic/scope_tracker.rs:53:19 [INFO] [stdout] | [INFO] [stdout] 52 | impl<'a> ScopeTracker<'a> { [INFO] [stdout] | ------------------------- associated function in this implementation [INFO] [stdout] 53 | pub(super) fn new(outer_scope: Option<&'a ScopeTracker<'a>>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/semantic/scope_tracker.rs:67:19 [INFO] [stdout] | [INFO] [stdout] 63 | impl ScopeTracker<'_> { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 67 | pub(super) fn get_var<'s>( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub(super) fn insert_var(&mut self, variable: Variable) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | fn get_var_meta<'s>( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | fn has_var_meta<'s>(&self, name: impl Into<&'s str> + Eq + std::hash::Hash) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub(super) fn get_func_sig<'s>( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 162 | pub(super) fn has_main_func(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | pub(super) fn insert_func_sig( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 199 | pub(super) fn get_struct<'s>( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 218 | fn get_struct_mut<'s>( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 236 | pub(super) fn insert_struct(&mut self, _struct: Struct) -> Option<&Struct> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 257 | pub(super) fn update_struct_data_types<'s>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 287 | pub(super) fn get_unused(self) -> (Vec, Vec, Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `DuplicateMemberError`, `RecursiveStructDefinitionError`, and `UnknownStructMemberTypeError` are never constructed [INFO] [stdout] --> src/semantic/struct.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub(super) enum StructError { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 18 | #[error("duplicate struct member")] [INFO] [stdout] 19 | DuplicateMemberError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | RecursiveStructDefinitionError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | UnknownStructMemberTypeError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StructError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `analyze_struct` is never used [INFO] [stdout] --> src/semantic/struct.rs:90:15 [INFO] [stdout] | [INFO] [stdout] 90 | pub(super) fn analyze_struct<'a>( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_struct_member_recursive` is never used [INFO] [stdout] --> src/semantic/struct.rs:125:4 [INFO] [stdout] | [INFO] [stdout] 125 | fn check_struct_member_recursive( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `populate_struct_member` is never used [INFO] [stdout] --> src/semantic/struct.rs:175:4 [INFO] [stdout] | [INFO] [stdout] 175 | fn populate_struct_member( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `variable::Variable` to `variable::Variable` [INFO] [stdout] --> src/semantic/function.rs:69:58 [INFO] [stdout] | [INFO] [stdout] 69 | if let Some(variable) = scope_tracker.insert_var(param.clone().into()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(self_type_conversion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `cranelift-toy-langauge` (lib) due to 1 previous error; 79 warnings emitted [INFO] running `Command { std: "docker" "inspect" "03b7a3901ee00f26eb1f83609a925c3ddc571d439cb6289c5511a36c6d425ca2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "03b7a3901ee00f26eb1f83609a925c3ddc571d439cb6289c5511a36c6d425ca2", kill_on_drop: false }` [INFO] [stdout] 03b7a3901ee00f26eb1f83609a925c3ddc571d439cb6289c5511a36c6d425ca2