[INFO] fetching crate som 0.45.0... [INFO] testing som-0.45.0 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_getrandom_patch_0 [INFO] extracting crate som 0.45.0 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate som 0.45.0 [INFO] finished tweaking crates.io crate som 0.45.0 [INFO] tweaked toml for crates.io crate som 0.45.0 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate som 0.45.0 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate som 0.45.0 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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cranelift-native v0.121.1 [INFO] [stderr] Downloaded cranelift-control v0.121.1 [INFO] [stderr] Downloaded cranelift-bitset v0.121.1 [INFO] [stderr] Downloaded wasmtime-jit-icache-coherence v34.0.1 [INFO] [stderr] Downloaded cranelift v0.121.1 [INFO] [stderr] Downloaded cranelift-frontend v0.121.1 [INFO] [stderr] Downloaded cranelift-assembler-x64-meta v0.121.1 [INFO] [stderr] Downloaded cranelift-isle v0.121.1 [INFO] [stderr] Downloaded cranelift-jit v0.121.1 [INFO] [stderr] Downloaded cranelift-module v0.121.1 [INFO] [stderr] Downloaded cranelift-assembler-x64 v0.121.1 [INFO] [stderr] Downloaded cranelift-bforest v0.121.1 [INFO] [stderr] Downloaded cranelift-codegen-meta v0.121.1 [INFO] [stderr] Downloaded cranelift-srcgen v0.121.1 [INFO] [stderr] Downloaded cranelift-codegen-shared v0.121.1 [INFO] [stderr] Downloaded cranelift-entity v0.121.1 [INFO] [stderr] Downloaded wasmtime-math v34.0.1 [INFO] [stderr] Downloaded cranelift-codegen v0.121.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e40affe241545ba188da34ad30488fa8dfe37e18511bb1ae9c3b9b3eb02e881f [INFO] running `Command { std: "docker" "start" "-a" "e40affe241545ba188da34ad30488fa8dfe37e18511bb1ae9c3b9b3eb02e881f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e40affe241545ba188da34ad30488fa8dfe37e18511bb1ae9c3b9b3eb02e881f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e40affe241545ba188da34ad30488fa8dfe37e18511bb1ae9c3b9b3eb02e881f", kill_on_drop: false }` [INFO] [stdout] e40affe241545ba188da34ad30488fa8dfe37e18511bb1ae9c3b9b3eb02e881f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] bf05565f1e10d02b6978a23038e645632ada9dfe98b521412daaae1020f132b7 [INFO] running `Command { std: "docker" "start" "-a" "bf05565f1e10d02b6978a23038e645632ada9dfe98b521412daaae1020f132b7", kill_on_drop: false }` [INFO] [stderr] Compiling cranelift-srcgen v0.121.1 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling cranelift-isle v0.121.1 [INFO] [stderr] Compiling cranelift-codegen-shared v0.121.1 [INFO] [stderr] Compiling libm v0.2.15 [INFO] [stderr] Compiling libc v0.2.161 [INFO] [stderr] Compiling memchr v2.7.2 [INFO] [stderr] Compiling cranelift-bitset v0.121.1 [INFO] [stderr] Compiling target-lexicon v0.13.2 [INFO] [stderr] Compiling allocator-api2 v0.2.21 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling cc v1.1.31 [INFO] [stderr] Compiling log v0.4.25 [INFO] [stderr] Compiling rustc-hash v2.1.1 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling arbitrary v1.4.1 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Compiling cranelift-entity v0.121.1 [INFO] [stderr] Compiling cranelift-assembler-x64-meta v0.121.1 [INFO] [stderr] Compiling anyhow v1.0.95 [INFO] [stderr] Compiling bumpalo v3.17.0 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling indexmap v2.6.0 [INFO] [stderr] Compiling cranelift-bforest v0.121.1 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling regalloc2 v0.12.2 [INFO] [stderr] Compiling gimli v0.31.1 [INFO] [stderr] Compiling gimli v0.29.0 [INFO] [stderr] Compiling serde_json v1.0.132 [INFO] [stderr] Compiling cranelift-codegen-meta v0.121.1 [INFO] [stderr] Compiling adler2 v2.0.0 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling miniz_oxide v0.8.0 [INFO] [stderr] Compiling anstyle-parse v0.2.6 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Compiling wasmtime-math v34.0.1 [INFO] [stderr] Compiling object v0.36.5 [INFO] [stderr] Compiling quick-xml v0.32.0 [INFO] [stderr] Compiling cranelift-control v0.121.1 [INFO] [stderr] Compiling miniz_oxide v0.7.4 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling onig_sys v69.8.1 [INFO] [stderr] Compiling cranelift-assembler-x64 v0.121.1 [INFO] [stderr] Compiling backtrace v0.3.73 [INFO] [stderr] Compiling rustc-demangle v0.1.24 [INFO] [stderr] Compiling owo-colors v4.2.2 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling anstyle-query v1.1.2 [INFO] [stderr] Compiling anstyle v1.0.10 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling colorchoice v1.0.3 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling anstream v0.6.18 [INFO] [stderr] Compiling flate2 v1.0.34 [INFO] [stderr] Compiling is_ci v1.2.0 [INFO] [stderr] Compiling addr2line v0.22.0 [INFO] [stderr] Compiling clap_lex v0.7.4 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling unicode-width v0.1.13 [INFO] [stderr] Compiling regex-syntax v0.8.3 [INFO] [stderr] Compiling unicode-linebreak v0.1.5 [INFO] [stderr] Compiling terminal_size v0.4.1 [INFO] [stderr] Compiling clap_builder v4.5.40 [INFO] [stderr] Compiling supports-color v3.0.1 [INFO] [stderr] Compiling textwrap v0.16.1 [INFO] [stderr] Compiling wasmtime-jit-icache-coherence v34.0.1 [INFO] [stderr] Compiling region v3.0.2 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Compiling supports-hyperlinks v3.0.0 [INFO] [stderr] Compiling plist v1.7.0 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling supports-unicode v3.0.0 [INFO] [stderr] Compiling diff v0.1.13 [INFO] [stderr] Compiling memmap2 v0.9.5 [INFO] [stderr] Compiling pretty_assertions v1.4.1 [INFO] [stderr] Compiling cranelift-codegen v0.121.1 [INFO] [stderr] Compiling thiserror-impl v1.0.65 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling clap_derive v4.5.40 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling miette-derive v7.6.0 [INFO] [stderr] Compiling onig v6.4.0 [INFO] [stderr] Compiling backtrace-ext v0.2.1 [INFO] [stderr] Compiling thiserror v1.0.65 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling clap v4.5.40 [INFO] [stderr] Compiling syntect v5.2.0 [INFO] [stderr] Compiling miette v7.6.0 [INFO] [stderr] Compiling cranelift-module v0.121.1 [INFO] [stderr] Compiling cranelift-frontend v0.121.1 [INFO] [stderr] Compiling cranelift-native v0.121.1 [INFO] [stderr] Compiling cranelift-jit v0.121.1 [INFO] [stderr] Compiling cranelift v0.121.1 [INFO] [stderr] Compiling som v0.45.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::prelude::*` [INFO] [stdout] --> src/expressions/binary/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashSet` [INFO] [stdout] --> src/expressions/function.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{collections::HashSet, hash::Hash}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `InstBuilder` [INFO] [stdout] --> src/expressions/group.rs:1:43 [INFO] [stdout] | [INFO] [stdout] 1 | use cranelift::prelude::{FunctionBuilder, InstBuilder}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FunctionBuilder` and `InstBuilder` [INFO] [stdout] --> src/expressions/primary/integer.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use cranelift::prelude::{FunctionBuilder, InstBuilder}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> src/types/mod.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::{write, Display}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `identifier` [INFO] [stdout] --> src/compiler/environment.rs:40:32 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn get_function(&self, identifier: &Identifier) -> Option { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_identifier` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bp` [INFO] [stdout] --> src/expressions/call.rs:10:59 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn parse(parser: &mut Parser, expression: Expression, bp: BindingPower) -> Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_bp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expression` [INFO] [stdout] --> src/expressions/group.rs:49:16 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn compile(expression: &TypedExpression, function: &mut FunctionBuilder) -> CompileValue { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expression` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `function` [INFO] [stdout] --> src/expressions/group.rs:49:46 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn compile(expression: &TypedExpression, function: &mut FunctionBuilder) -> CompileValue { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_function` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expression` [INFO] [stdout] --> src/expressions/identifier.rs:40:16 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn compile(expression: &TypedExpression, function: &mut FunctionBuilder) -> CompileValue { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expression` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `function` [INFO] [stdout] --> src/expressions/identifier.rs:40:46 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn compile(expression: &TypedExpression, function: &mut FunctionBuilder) -> CompileValue { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_function` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/expressions/primary/boolean.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let value = match &expression.value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `compiler` [INFO] [stdout] --> src/expressions/primary/boolean.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | compiler: &mut Compiler, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_compiler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env` [INFO] [stdout] --> src/expressions/primary/boolean.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | env: &mut CompileEnvironment, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/expressions/primary/integer.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let value = match &expression.value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `compiler` [INFO] [stdout] --> src/expressions/primary/integer.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | compiler: &mut Compiler, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_compiler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env` [INFO] [stdout] --> src/expressions/primary/integer.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | env: &mut CompileEnvironment, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `compiler` [INFO] [stdout] --> src/expressions/primary/unit.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | compiler: &mut Compiler, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_compiler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expression` [INFO] [stdout] --> src/expressions/primary/unit.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | expression: &TypedExpression, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expression` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env` [INFO] [stdout] --> src/expressions/primary/unit.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | env: &mut crate::compiler::Environment, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expected` [INFO] [stdout] --> src/prelude.rs:251:5 [INFO] [stdout] | [INFO] [stdout] 251 | expected: &TokenKind, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expected` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `declaration` [INFO] [stdout] --> src/statements/declaration.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | let declaration = match &statement.value { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_declaration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `compiler` [INFO] [stdout] --> src/statements/declaration.rs:55:16 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn compile(compiler: &mut Compiler, statement: &TypedStatement, env: &mut CompileEnvironment) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_compiler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env` [INFO] [stdout] --> src/statements/declaration.rs:55:69 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn compile(compiler: &mut Compiler, statement: &TypedStatement, env: &mut CompileEnvironment) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `compiled` [INFO] [stdout] --> src/main.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | let compiled = compiler.compile(&type_checked); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_compiled` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `isa` is never read [INFO] [stdout] --> src/compiler/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Compiler { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 12 | isa: Arc, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `parent` and `declarations` are never read [INFO] [stdout] --> src/compiler/environment.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Environment<'env> { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 9 | pub parent: Option<&'env Environment<'env>>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 10 | pub declarations: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `block`, `get`, and `set` are never used [INFO] [stdout] --> src/compiler/environment.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl<'env> Environment<'env> { [INFO] [stdout] | ---------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn block(&'env self) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn get(&self, identifier: &Identifier) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn set(&mut self, identifier: &Identifier, type_: &Type) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compile` is never used [INFO] [stdout] --> src/expressions/binary/add.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn compile(expression: &TypedExpression, function: &mut FunctionBuilder) -> CompileValue { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compile` is never used [INFO] [stdout] --> src/expressions/binary/divide.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn compile(expression: &TypedExpression, function: &mut FunctionBuilder) -> CompileValue { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compile` is never used [INFO] [stdout] --> src/expressions/binary/multiply.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn compile(expression: &TypedExpression, function: &mut FunctionBuilder) -> CompileValue { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compile` is never used [INFO] [stdout] --> src/expressions/binary/subtract.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn compile(expression: &TypedExpression, function: &mut FunctionBuilder) -> CompileValue { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Argument` is never constructed [INFO] [stdout] --> src/expressions/function.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Argument { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Argument` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compile` is never used [INFO] [stdout] --> src/expressions/group.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn compile(expression: &TypedExpression, function: &mut FunctionBuilder) -> CompileValue { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GroupExpression` is never constructed [INFO] [stdout] --> src/expressions/identifier.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct GroupExpression { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GroupExpression` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compile` is never used [INFO] [stdout] --> src/expressions/identifier.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn compile(expression: &TypedExpression, function: &mut FunctionBuilder) -> CompileValue { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `next` is never used [INFO] [stdout] --> src/parser/mod.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl<'source> Parser<'source> { [INFO] [stdout] | ----------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn next(&mut self) -> Option> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Comma`, `Logical`, `Relational`, `Unary`, `Member`, and `Primary` are never constructed [INFO] [stdout] --> src/parser/lookup.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum BindingPower { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 7 | None = 0, [INFO] [stdout] 8 | Comma = 1, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | Assignment = 2, [INFO] [stdout] 10 | Logical = 3, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 11 | Relational = 4, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | Unary = 7, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | Call = 8, [INFO] [stdout] 16 | Member = 9, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 17 | Primary = 10, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BindingPower` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_left_type_handler` is never used [INFO] [stdout] --> src/parser/lookup.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl Lookup { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn add_left_type_handler(mut self, token: TokenKind, handler: LeftTypeHandler) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `CompileValue` is never used [INFO] [stdout] --> src/prelude.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | pub type CompileValue = cranelift::prelude::Value; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 21s [INFO] running `Command { std: "docker" "inspect" "bf05565f1e10d02b6978a23038e645632ada9dfe98b521412daaae1020f132b7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bf05565f1e10d02b6978a23038e645632ada9dfe98b521412daaae1020f132b7", kill_on_drop: false }` [INFO] [stdout] bf05565f1e10d02b6978a23038e645632ada9dfe98b521412daaae1020f132b7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] fab8b87841341f1b78157b6acb0e3017ecfb2a3cbea09134ba4ab5482849b4f7 [INFO] running `Command { std: "docker" "start" "-a" "fab8b87841341f1b78157b6acb0e3017ecfb2a3cbea09134ba4ab5482849b4f7", kill_on_drop: false }` [INFO] [stderr] Compiling som v0.45.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::prelude::*` [INFO] [stdout] --> src/expressions/binary/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashSet` [INFO] [stdout] --> src/expressions/function.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{collections::HashSet, hash::Hash}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `InstBuilder` [INFO] [stdout] --> src/expressions/group.rs:1:43 [INFO] [stdout] | [INFO] [stdout] 1 | use cranelift::prelude::{FunctionBuilder, InstBuilder}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FunctionBuilder` and `InstBuilder` [INFO] [stdout] --> src/expressions/primary/integer.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use cranelift::prelude::{FunctionBuilder, InstBuilder}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> src/types/mod.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::{write, Display}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `identifier` [INFO] [stdout] --> src/compiler/environment.rs:40:32 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn get_function(&self, identifier: &Identifier) -> Option { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_identifier` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bp` [INFO] [stdout] --> src/expressions/call.rs:10:59 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn parse(parser: &mut Parser, expression: Expression, bp: BindingPower) -> Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_bp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expression` [INFO] [stdout] --> src/expressions/group.rs:49:16 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn compile(expression: &TypedExpression, function: &mut FunctionBuilder) -> CompileValue { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expression` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `function` [INFO] [stdout] --> src/expressions/group.rs:49:46 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn compile(expression: &TypedExpression, function: &mut FunctionBuilder) -> CompileValue { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_function` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expression` [INFO] [stdout] --> src/expressions/identifier.rs:40:16 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn compile(expression: &TypedExpression, function: &mut FunctionBuilder) -> CompileValue { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expression` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `function` [INFO] [stdout] --> src/expressions/identifier.rs:40:46 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn compile(expression: &TypedExpression, function: &mut FunctionBuilder) -> CompileValue { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_function` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/expressions/primary/boolean.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let value = match &expression.value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `compiler` [INFO] [stdout] --> src/expressions/primary/boolean.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | compiler: &mut Compiler, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_compiler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env` [INFO] [stdout] --> src/expressions/primary/boolean.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | env: &mut CompileEnvironment, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/expressions/primary/integer.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let value = match &expression.value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `compiler` [INFO] [stdout] --> src/expressions/primary/integer.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | compiler: &mut Compiler, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_compiler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env` [INFO] [stdout] --> src/expressions/primary/integer.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | env: &mut CompileEnvironment, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `compiler` [INFO] [stdout] --> src/expressions/primary/unit.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | compiler: &mut Compiler, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_compiler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expression` [INFO] [stdout] --> src/expressions/primary/unit.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | expression: &TypedExpression, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expression` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env` [INFO] [stdout] --> src/expressions/primary/unit.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | env: &mut crate::compiler::Environment, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expected` [INFO] [stdout] --> src/prelude.rs:251:5 [INFO] [stdout] | [INFO] [stdout] 251 | expected: &TokenKind, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expected` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `declaration` [INFO] [stdout] --> src/statements/declaration.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | let declaration = match &statement.value { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_declaration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `compiler` [INFO] [stdout] --> src/statements/declaration.rs:55:16 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn compile(compiler: &mut Compiler, statement: &TypedStatement, env: &mut CompileEnvironment) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_compiler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env` [INFO] [stdout] --> src/statements/declaration.rs:55:69 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn compile(compiler: &mut Compiler, statement: &TypedStatement, env: &mut CompileEnvironment) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `compiled` [INFO] [stdout] --> src/main.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | let compiled = compiler.compile(&type_checked); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_compiled` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `isa` is never read [INFO] [stdout] --> src/compiler/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Compiler { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 12 | isa: Arc, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `parent` and `declarations` are never read [INFO] [stdout] --> src/compiler/environment.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Environment<'env> { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 9 | pub parent: Option<&'env Environment<'env>>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 10 | pub declarations: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `block`, `get`, and `set` are never used [INFO] [stdout] --> src/compiler/environment.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl<'env> Environment<'env> { [INFO] [stdout] | ---------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn block(&'env self) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn get(&self, identifier: &Identifier) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn set(&mut self, identifier: &Identifier, type_: &Type) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compile` is never used [INFO] [stdout] --> src/expressions/binary/add.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn compile(expression: &TypedExpression, function: &mut FunctionBuilder) -> CompileValue { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compile` is never used [INFO] [stdout] --> src/expressions/binary/divide.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn compile(expression: &TypedExpression, function: &mut FunctionBuilder) -> CompileValue { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compile` is never used [INFO] [stdout] --> src/expressions/binary/multiply.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn compile(expression: &TypedExpression, function: &mut FunctionBuilder) -> CompileValue { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compile` is never used [INFO] [stdout] --> src/expressions/binary/subtract.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn compile(expression: &TypedExpression, function: &mut FunctionBuilder) -> CompileValue { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Argument` is never constructed [INFO] [stdout] --> src/expressions/function.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Argument { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Argument` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compile` is never used [INFO] [stdout] --> src/expressions/group.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn compile(expression: &TypedExpression, function: &mut FunctionBuilder) -> CompileValue { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GroupExpression` is never constructed [INFO] [stdout] --> src/expressions/identifier.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct GroupExpression { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GroupExpression` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compile` is never used [INFO] [stdout] --> src/expressions/identifier.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn compile(expression: &TypedExpression, function: &mut FunctionBuilder) -> CompileValue { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `next` is never used [INFO] [stdout] --> src/parser/mod.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl<'source> Parser<'source> { [INFO] [stdout] | ----------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn next(&mut self) -> Option> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Comma`, `Logical`, `Relational`, `Unary`, `Member`, and `Primary` are never constructed [INFO] [stdout] --> src/parser/lookup.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum BindingPower { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 7 | None = 0, [INFO] [stdout] 8 | Comma = 1, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | Assignment = 2, [INFO] [stdout] 10 | Logical = 3, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 11 | Relational = 4, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | Unary = 7, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | Call = 8, [INFO] [stdout] 16 | Member = 9, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 17 | Primary = 10, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BindingPower` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_left_type_handler` is never used [INFO] [stdout] --> src/parser/lookup.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl Lookup { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn add_left_type_handler(mut self, token: TokenKind, handler: LeftTypeHandler) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `CompileValue` is never used [INFO] [stdout] --> src/prelude.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | pub type CompileValue = cranelift::prelude::Value; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.05s [INFO] running `Command { std: "docker" "inspect" "fab8b87841341f1b78157b6acb0e3017ecfb2a3cbea09134ba4ab5482849b4f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fab8b87841341f1b78157b6acb0e3017ecfb2a3cbea09134ba4ab5482849b4f7", kill_on_drop: false }` [INFO] [stdout] fab8b87841341f1b78157b6acb0e3017ecfb2a3cbea09134ba4ab5482849b4f7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 013aed154a1de4725b9e70e2cd28c8bafac014255499963af06bb33803b91452 [INFO] running `Command { std: "docker" "start" "-a" "013aed154a1de4725b9e70e2cd28c8bafac014255499963af06bb33803b91452", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `crate::prelude::*` [INFO] [stderr] --> src/expressions/binary/mod.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use crate::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `collections::HashSet` [INFO] [stderr] --> src/expressions/function.rs:2:11 [INFO] [stderr] | [INFO] [stderr] 2 | use std::{collections::HashSet, hash::Hash}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `InstBuilder` [INFO] [stderr] --> src/expressions/group.rs:1:43 [INFO] [stderr] | [INFO] [stderr] 1 | use cranelift::prelude::{FunctionBuilder, InstBuilder}; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `FunctionBuilder` and `InstBuilder` [INFO] [stderr] --> src/expressions/primary/integer.rs:1:26 [INFO] [stderr] | [INFO] [stderr] 1 | use cranelift::prelude::{FunctionBuilder, InstBuilder}; [INFO] [stderr] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `write` [INFO] [stderr] --> src/types/mod.rs:1:16 [INFO] [stderr] | [INFO] [stderr] 1 | use std::fmt::{write, Display}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `identifier` [INFO] [stderr] --> src/compiler/environment.rs:40:32 [INFO] [stderr] | [INFO] [stderr] 40 | pub fn get_function(&self, identifier: &Identifier) -> Option { [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_identifier` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `bp` [INFO] [stderr] --> src/expressions/call.rs:10:59 [INFO] [stderr] | [INFO] [stderr] 10 | pub fn parse(parser: &mut Parser, expression: Expression, bp: BindingPower) -> Result { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_bp` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `expression` [INFO] [stderr] --> src/expressions/group.rs:49:16 [INFO] [stderr] | [INFO] [stderr] 49 | pub fn compile(expression: &TypedExpression, function: &mut FunctionBuilder) -> CompileValue { [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expression` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `function` [INFO] [stderr] --> src/expressions/group.rs:49:46 [INFO] [stderr] | [INFO] [stderr] 49 | pub fn compile(expression: &TypedExpression, function: &mut FunctionBuilder) -> CompileValue { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_function` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `expression` [INFO] [stderr] --> src/expressions/identifier.rs:40:16 [INFO] [stderr] | [INFO] [stderr] 40 | pub fn compile(expression: &TypedExpression, function: &mut FunctionBuilder) -> CompileValue { [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expression` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `function` [INFO] [stderr] --> src/expressions/identifier.rs:40:46 [INFO] [stderr] | [INFO] [stderr] 40 | pub fn compile(expression: &TypedExpression, function: &mut FunctionBuilder) -> CompileValue { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_function` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `value` [INFO] [stderr] --> src/expressions/primary/boolean.rs:31:9 [INFO] [stderr] | [INFO] [stderr] 31 | let value = match &expression.value { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `compiler` [INFO] [stderr] --> src/expressions/primary/boolean.rs:27:5 [INFO] [stderr] | [INFO] [stderr] 27 | compiler: &mut Compiler, [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_compiler` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `env` [INFO] [stderr] --> src/expressions/primary/boolean.rs:29:5 [INFO] [stderr] | [INFO] [stderr] 29 | env: &mut CompileEnvironment, [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `value` [INFO] [stderr] --> src/expressions/primary/integer.rs:33:9 [INFO] [stderr] | [INFO] [stderr] 33 | let value = match &expression.value { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `compiler` [INFO] [stderr] --> src/expressions/primary/integer.rs:29:5 [INFO] [stderr] | [INFO] [stderr] 29 | compiler: &mut Compiler, [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_compiler` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `env` [INFO] [stderr] --> src/expressions/primary/integer.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 31 | env: &mut CompileEnvironment, [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `compiler` [INFO] [stderr] --> src/expressions/primary/unit.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | compiler: &mut Compiler, [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_compiler` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `expression` [INFO] [stderr] --> src/expressions/primary/unit.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | expression: &TypedExpression, [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expression` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `env` [INFO] [stderr] --> src/expressions/primary/unit.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | env: &mut crate::compiler::Environment, [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `expected` [INFO] [stderr] --> src/prelude.rs:251:5 [INFO] [stderr] | [INFO] [stderr] 251 | expected: &TokenKind, [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expected` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `declaration` [INFO] [stderr] --> src/statements/declaration.rs:56:9 [INFO] [stderr] | [INFO] [stderr] 56 | let declaration = match &statement.value { [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_declaration` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `compiler` [INFO] [stderr] --> src/statements/declaration.rs:55:16 [INFO] [stderr] | [INFO] [stderr] 55 | pub fn compile(compiler: &mut Compiler, statement: &TypedStatement, env: &mut CompileEnvironment) { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_compiler` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `env` [INFO] [stderr] --> src/statements/declaration.rs:55:69 [INFO] [stderr] | [INFO] [stderr] 55 | pub fn compile(compiler: &mut Compiler, statement: &TypedStatement, env: &mut CompileEnvironment) { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `compiled` [INFO] [stderr] --> src/main.rs:53:9 [INFO] [stderr] | [INFO] [stderr] 53 | let compiled = compiler.compile(&type_checked); [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_compiled` [INFO] [stderr] [INFO] [stderr] warning: field `isa` is never read [INFO] [stderr] --> src/compiler/mod.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 11 | pub struct Compiler { [INFO] [stderr] | -------- field in this struct [INFO] [stderr] 12 | isa: Arc, [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: fields `parent` and `declarations` are never read [INFO] [stderr] --> src/compiler/environment.rs:9:9 [INFO] [stderr] | [INFO] [stderr] 8 | pub struct Environment<'env> { [INFO] [stderr] | ----------- fields in this struct [INFO] [stderr] 9 | pub parent: Option<&'env Environment<'env>>, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 10 | pub declarations: HashMap, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `block`, `get`, and `set` are never used [INFO] [stderr] --> src/compiler/environment.rs:21:12 [INFO] [stderr] | [INFO] [stderr] 13 | impl<'env> Environment<'env> { [INFO] [stderr] | ---------------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 21 | pub fn block(&'env self) -> Self { [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 28 | pub fn get(&self, identifier: &Identifier) -> Option { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 44 | pub fn set(&mut self, identifier: &Identifier, type_: &Type) { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: function `compile` is never used [INFO] [stderr] --> src/expressions/binary/add.rs:50:8 [INFO] [stderr] | [INFO] [stderr] 50 | pub fn compile(expression: &TypedExpression, function: &mut FunctionBuilder) -> CompileValue { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `compile` is never used [INFO] [stderr] --> src/expressions/binary/divide.rs:50:8 [INFO] [stderr] | [INFO] [stderr] 50 | pub fn compile(expression: &TypedExpression, function: &mut FunctionBuilder) -> CompileValue { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `compile` is never used [INFO] [stderr] --> src/expressions/binary/multiply.rs:50:8 [INFO] [stderr] | [INFO] [stderr] 50 | pub fn compile(expression: &TypedExpression, function: &mut FunctionBuilder) -> CompileValue { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `compile` is never used [INFO] [stderr] --> src/expressions/binary/subtract.rs:50:8 [INFO] [stderr] | [INFO] [stderr] 50 | pub fn compile(expression: &TypedExpression, function: &mut FunctionBuilder) -> CompileValue { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Argument` is never constructed [INFO] [stderr] --> src/expressions/function.rs:5:12 [INFO] [stderr] | [INFO] [stderr] 5 | pub struct Argument { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Argument` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: function `compile` is never used [INFO] [stderr] --> src/expressions/group.rs:49:8 [INFO] [stderr] | [INFO] [stderr] 49 | pub fn compile(expression: &TypedExpression, function: &mut FunctionBuilder) -> CompileValue { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `GroupExpression` is never constructed [INFO] [stderr] --> src/expressions/identifier.rs:7:12 [INFO] [stderr] | [INFO] [stderr] 7 | pub struct GroupExpression { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `GroupExpression` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: function `compile` is never used [INFO] [stderr] --> src/expressions/identifier.rs:40:8 [INFO] [stderr] | [INFO] [stderr] 40 | pub fn compile(expression: &TypedExpression, function: &mut FunctionBuilder) -> CompileValue { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `next` is never used [INFO] [stderr] --> src/parser/mod.rs:69:12 [INFO] [stderr] | [INFO] [stderr] 15 | impl<'source> Parser<'source> { [INFO] [stderr] | ----------------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 69 | pub fn next(&mut self) -> Option> { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: variants `Comma`, `Logical`, `Relational`, `Unary`, `Member`, and `Primary` are never constructed [INFO] [stderr] --> src/parser/lookup.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 6 | pub enum BindingPower { [INFO] [stderr] | ------------ variants in this enum [INFO] [stderr] 7 | None = 0, [INFO] [stderr] 8 | Comma = 1, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 9 | Assignment = 2, [INFO] [stderr] 10 | Logical = 3, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 11 | Relational = 4, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 14 | Unary = 7, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 15 | Call = 8, [INFO] [stderr] 16 | Member = 9, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 17 | Primary = 10, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `BindingPower` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: method `add_left_type_handler` is never used [INFO] [stderr] --> src/parser/lookup.rs:78:12 [INFO] [stderr] | [INFO] [stderr] 35 | impl Lookup { [INFO] [stderr] | ----------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 78 | pub fn add_left_type_handler(mut self, token: TokenKind, handler: LeftTypeHandler) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type alias `CompileValue` is never used [INFO] [stderr] --> src/prelude.rs:28:10 [INFO] [stderr] | [INFO] [stderr] 28 | pub type CompileValue = cranelift::prelude::Value; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `som` (bin "som" test) generated 40 warnings (run `cargo fix --bin "som" --tests` to apply 5 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.15s [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/som-2b583b633be766f6) [INFO] running `Command { std: "docker" "inspect" "013aed154a1de4725b9e70e2cd28c8bafac014255499963af06bb33803b91452", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "013aed154a1de4725b9e70e2cd28c8bafac014255499963af06bb33803b91452", kill_on_drop: false }` [INFO] [stdout] 013aed154a1de4725b9e70e2cd28c8bafac014255499963af06bb33803b91452