[INFO] cloning repository https://github.com/toodols/chia [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/toodols/chia" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftoodols%2Fchia", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftoodols%2Fchia'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a14a034bae2fd0613c75b150a4748bcc39b25c4d [INFO] checking toodols/chia against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftoodols%2Fchia" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/toodols/chia on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/toodols/chia [INFO] finished tweaking git repo https://github.com/toodols/chia [INFO] tweaked toml for git repo https://github.com/toodols/chia written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/toodols/chia 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 867ec73dc90901e7ecc09612fbd67ca1cea04c871fecb80eadfafc58aeade42c [INFO] running `Command { std: "docker" "start" "-a" "867ec73dc90901e7ecc09612fbd67ca1cea04c871fecb80eadfafc58aeade42c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "867ec73dc90901e7ecc09612fbd67ca1cea04c871fecb80eadfafc58aeade42c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "867ec73dc90901e7ecc09612fbd67ca1cea04c871fecb80eadfafc58aeade42c", kill_on_drop: false }` [INFO] [stdout] 867ec73dc90901e7ecc09612fbd67ca1cea04c871fecb80eadfafc58aeade42c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 086ea9802e179786357af1a8992516f984b137c2dffcf847a4657609fb2409c3 [INFO] running `Command { std: "docker" "start" "-a" "086ea9802e179786357af1a8992516f984b137c2dffcf847a4657609fb2409c3", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling beef v0.5.2 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling thiserror v1.0.40 [INFO] [stderr] Checking unicode-ident v1.0.8 [INFO] [stderr] Checking xml-rs v0.8.4 [INFO] [stderr] Compiling quote v1.0.26 [INFO] [stderr] Compiling syn v2.0.15 [INFO] [stderr] Compiling include_dir_macros v0.7.3 [INFO] [stderr] Checking include_dir v0.7.3 [INFO] [stderr] Compiling logos-codegen v0.13.0 [INFO] [stderr] Compiling thiserror-impl v1.0.40 [INFO] [stderr] Compiling logos-derive v0.13.0 [INFO] [stderr] Checking logos v0.13.0 [INFO] [stderr] Checking chia v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `collections::HashMap`, `path::Path` [INFO] [stdout] --> src/lib.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, path::Path}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Context`, `Type`, `parser::Sources` [INFO] [stdout] --> src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | parser::Sources, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 5 | typecheck::{Context, Type}, [INFO] [stdout] | ^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/lib.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, path::Path}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sources` [INFO] [stdout] --> src/parser/expr/mod.rs:7:25 [INFO] [stdout] | [INFO] [stdout] 7 | ParseError, Parser, Sources, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sources` [INFO] [stdout] --> src/parser/expr/block.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | ParseError, Parser, Sources, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sources` [INFO] [stdout] --> src/parser/expr/if_expr.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | ParseError, Parser, Sources, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sources` [INFO] [stdout] --> src/parser/expr/literal.rs:1:69 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::parser::{ast::Literal, lexer::Token, ParseError, Parser, Sources}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sources` [INFO] [stdout] --> src/parser/expr/loops.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | ParseError, Parser, Sources, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sources` [INFO] [stdout] --> src/parser/expr/mod.rs:7:25 [INFO] [stdout] | [INFO] [stdout] 7 | ParseError, Parser, Sources, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sources` [INFO] [stdout] --> src/parser/item/mod.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | ParseError, Parser, Sources, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sources` [INFO] [stdout] --> src/parser/item/struct_decl.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | ParseError, Parser, Sources, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sources` [INFO] [stdout] --> src/parser/expr/block.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | ParseError, Parser, Sources, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sources` [INFO] [stdout] --> src/parser/expr/if_expr.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | ParseError, Parser, Sources, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sources` [INFO] [stdout] --> src/parser/expr/literal.rs:1:69 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::parser::{ast::Literal, lexer::Token, ParseError, Parser, Sources}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sources` [INFO] [stdout] --> src/parser/expr/loops.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | ParseError, Parser, Sources, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/parser/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sources` [INFO] [stdout] --> src/parser/item/mod.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | ParseError, Parser, Sources, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Symbol` [INFO] [stdout] --> src/typecheck/expr/for_loop.rs:4:82 [INFO] [stdout] | [INFO] [stdout] 4 | typecheck_block, CompilerError, CompilerResult, Context, NodeRef, State, Symbol, Type, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sources` [INFO] [stdout] --> src/parser/item/struct_decl.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | ParseError, Parser, Sources, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Symbol`, `expr::block` [INFO] [stdout] --> src/typecheck/fn_decl.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | expr::block, typecheck_block, CompilerError, CompilerResult, Context, NodeRef, State, Symbol, [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Symbol`, `Symtab` [INFO] [stdout] --> src/typecheck/program.rs:4:87 [INFO] [stdout] | [INFO] [stdout] 4 | fn_decl::typecheck_function_declaration, CompilerResult, Context, NodeRef, State, Symbol, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 5 | Symtab, Type, VarSymbolDetails, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/typecheck/stmt.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Pattern` [INFO] [stdout] --> src/typecheck/stmt.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | parser::ast::{Pattern, Statement}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Symbol` [INFO] [stdout] --> src/typecheck/stmt.rs:9:92 [INFO] [stdout] | [INFO] [stdout] 9 | typecheck_expression, CompilerError, CompilerResult, Context, NodeRef, ScopeId, State, Symbol, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/parser/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Symbol` [INFO] [stdout] --> src/typecheck/expr/for_loop.rs:4:82 [INFO] [stdout] | [INFO] [stdout] 4 | typecheck_block, CompilerError, CompilerResult, Context, NodeRef, State, Symbol, Type, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Symbol`, `expr::block` [INFO] [stdout] --> src/typecheck/fn_decl.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | expr::block, typecheck_block, CompilerError, CompilerResult, Context, NodeRef, State, Symbol, [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Symbol`, `Symtab` [INFO] [stdout] --> src/typecheck/program.rs:4:87 [INFO] [stdout] | [INFO] [stdout] 4 | fn_decl::typecheck_function_declaration, CompilerResult, Context, NodeRef, State, Symbol, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 5 | Symtab, Type, VarSymbolDetails, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/typecheck/stmt.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Pattern` [INFO] [stdout] --> src/typecheck/stmt.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | parser::ast::{Pattern, Statement}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Symbol` [INFO] [stdout] --> src/typecheck/stmt.rs:9:92 [INFO] [stdout] | [INFO] [stdout] 9 | typecheck_expression, CompilerError, CompilerResult, Context, NodeRef, ScopeId, State, Symbol, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/parser/mod.rs:113:21 [INFO] [stdout] | [INFO] [stdout] 113 | fn child(&self, path: &std::path::Path, child: &str) -> Option<&std::path::Path> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `child` [INFO] [stdout] --> src/parser/mod.rs:113:45 [INFO] [stdout] | [INFO] [stdout] 113 | fn child(&self, path: &std::path::Path, child: &str) -> Option<&std::path::Path> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_child` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/parser/mod.rs:113:21 [INFO] [stdout] | [INFO] [stdout] 113 | fn child(&self, path: &std::path::Path, child: &str) -> Option<&std::path::Path> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `child` [INFO] [stdout] --> src/parser/mod.rs:113:45 [INFO] [stdout] | [INFO] [stdout] 113 | fn child(&self, path: &std::path::Path, child: &str) -> Option<&std::path::Path> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_child` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `program` [INFO] [stdout] --> src/parser/mod.rs:377:9 [INFO] [stdout] | [INFO] [stdout] 377 | let program = parser.parse_expression().unwrap(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_program` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/targets/lua.rs:152:34 [INFO] [stdout] | [INFO] [stdout] 152 | ... let (path, symbol) = &symbols[0]; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/targets/lua.rs:181:71 [INFO] [stdout] | [INFO] [stdout] 181 | Item::FunctionDeclaration(fn_decl @ FunctionDeclaration { id, .. }) => { [INFO] [stdout] | ^^ help: try ignoring the field: `id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/targets/lua.rs:205:23 [INFO] [stdout] | [INFO] [stdout] 205 | Item::Mod(module) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/targets/lua.rs:152:34 [INFO] [stdout] | [INFO] [stdout] 152 | ... let (path, symbol) = &symbols[0]; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inner` [INFO] [stdout] --> src/transform/remove_inline_blocks.rs:10:29 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn remove_inline_blocks(inner: &Program, ctx: &Context<'_>) -> Program { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_inner` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/transform/remove_inline_blocks.rs:10:46 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn remove_inline_blocks(inner: &Program, ctx: &Context<'_>) -> Program { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt_expr_ty` [INFO] [stdout] --> src/typecheck/expr/block.rs:43:30 [INFO] [stdout] | [INFO] [stdout] 43 | expr_ty: stmt_expr_ty, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stmt_expr_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/targets/lua.rs:181:71 [INFO] [stdout] | [INFO] [stdout] 181 | Item::FunctionDeclaration(fn_decl @ FunctionDeclaration { id, .. }) => { [INFO] [stdout] | ^^ help: try ignoring the field: `id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/targets/lua.rs:205:23 [INFO] [stdout] | [INFO] [stdout] 205 | Item::Mod(module) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inner` [INFO] [stdout] --> src/transform/remove_inline_blocks.rs:10:29 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn remove_inline_blocks(inner: &Program, ctx: &Context<'_>) -> Program { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_inner` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/transform/remove_inline_blocks.rs:10:46 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn remove_inline_blocks(inner: &Program, ctx: &Context<'_>) -> Program { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt_expr_ty` [INFO] [stdout] --> src/typecheck/expr/block.rs:43:30 [INFO] [stdout] | [INFO] [stdout] 43 | expr_ty: stmt_expr_ty, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stmt_expr_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `decl` [INFO] [stdout] --> src/typecheck/program.rs:67:46 [INFO] [stdout] | [INFO] [stdout] 67 | Item::TupleStructDeclaration(decl) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_decl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `decl` [INFO] [stdout] --> src/typecheck/program.rs:73:41 [INFO] [stdout] | [INFO] [stdout] 73 | Item::StructDeclaration(decl) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_decl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `decl` [INFO] [stdout] --> src/typecheck/program.rs:67:46 [INFO] [stdout] | [INFO] [stdout] 67 | Item::TupleStructDeclaration(decl) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_decl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `decl` [INFO] [stdout] --> src/typecheck/program.rs:73:41 [INFO] [stdout] | [INFO] [stdout] 73 | Item::StructDeclaration(decl) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_decl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/typecheck/mod.rs:410:53 [INFO] [stdout] | [INFO] [stdout] 410 | value: TypeOrModule::Module(module), [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/typecheck/mod.rs:410:53 [INFO] [stdout] | [INFO] [stdout] 410 | value: TypeOrModule::Module(module), [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `range` is never read [INFO] [stdout] --> src/parser/mod.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 77 | pub struct SourceLocation { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 78 | range: Range, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SourceLocation` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `parse_ty_path` is never used [INFO] [stdout] --> src/parser/mod.rs:244:8 [INFO] [stdout] | [INFO] [stdout] 189 | impl Parser<'_> { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 244 | fn parse_ty_path(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `remove_inline_blocks` is never used [INFO] [stdout] --> src/transform/remove_inline_blocks.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn remove_inline_blocks(inner: &Program, ctx: &Context<'_>) -> Program { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `node_ref` is never read [INFO] [stdout] --> src/typecheck/mod.rs:182:5 [INFO] [stdout] | [INFO] [stdout] 180 | pub struct VarSymbolDetails<'a> { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 181 | ty: Type, [INFO] [stdout] 182 | node_ref: Option>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VarSymbolDetails` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Module` is never constructed [INFO] [stdout] --> src/typecheck/mod.rs:188:5 [INFO] [stdout] | [INFO] [stdout] 186 | enum TypeOrModule { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] 187 | Type(Type), [INFO] [stdout] 188 | Module(()), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeOrModule` 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 `node_ref` is never read [INFO] [stdout] --> src/typecheck/mod.rs:194:5 [INFO] [stdout] | [INFO] [stdout] 192 | pub struct TySymbolDetails<'a> { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 193 | value: TypeOrModule, [INFO] [stdout] 194 | node_ref: Option>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TySymbolDetails` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `range` is never read [INFO] [stdout] --> src/parser/mod.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 77 | pub struct SourceLocation { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 78 | range: Range, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SourceLocation` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `parse_ty_path` is never used [INFO] [stdout] --> src/parser/mod.rs:244:8 [INFO] [stdout] | [INFO] [stdout] 189 | impl Parser<'_> { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 244 | fn parse_ty_path(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `remove_inline_blocks` is never used [INFO] [stdout] --> src/transform/remove_inline_blocks.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn remove_inline_blocks(inner: &Program, ctx: &Context<'_>) -> Program { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `node_ref` is never read [INFO] [stdout] --> src/typecheck/mod.rs:182:5 [INFO] [stdout] | [INFO] [stdout] 180 | pub struct VarSymbolDetails<'a> { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 181 | ty: Type, [INFO] [stdout] 182 | node_ref: Option>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VarSymbolDetails` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Module` is never constructed [INFO] [stdout] --> src/typecheck/mod.rs:188:5 [INFO] [stdout] | [INFO] [stdout] 186 | enum TypeOrModule { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] 187 | Type(Type), [INFO] [stdout] 188 | Module(()), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeOrModule` 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 `node_ref` is never read [INFO] [stdout] --> src/typecheck/mod.rs:194:5 [INFO] [stdout] | [INFO] [stdout] 192 | pub struct TySymbolDetails<'a> { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 193 | value: TypeOrModule, [INFO] [stdout] 194 | node_ref: Option>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TySymbolDetails` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.05s [INFO] running `Command { std: "docker" "inspect" "086ea9802e179786357af1a8992516f984b137c2dffcf847a4657609fb2409c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "086ea9802e179786357af1a8992516f984b137c2dffcf847a4657609fb2409c3", kill_on_drop: false }` [INFO] [stdout] 086ea9802e179786357af1a8992516f984b137c2dffcf847a4657609fb2409c3 [INFO] checking toodols/chia against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftoodols%2Fchia" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/toodols/chia on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/toodols/chia [INFO] finished tweaking git repo https://github.com/toodols/chia [INFO] tweaked toml for git repo https://github.com/toodols/chia written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/toodols/chia 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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 38e259597df4d5324f6026bb3502cbea550a41c8e69c8ea3c84255e404188c94 [INFO] running `Command { std: "docker" "start" "-a" "38e259597df4d5324f6026bb3502cbea550a41c8e69c8ea3c84255e404188c94", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "38e259597df4d5324f6026bb3502cbea550a41c8e69c8ea3c84255e404188c94", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "38e259597df4d5324f6026bb3502cbea550a41c8e69c8ea3c84255e404188c94", kill_on_drop: false }` [INFO] [stdout] 38e259597df4d5324f6026bb3502cbea550a41c8e69c8ea3c84255e404188c94 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d99a9992d578bb3b3cec100b756ba7860ebde97f0e133cbaa10783963f52c695 [INFO] running `Command { std: "docker" "start" "-a" "d99a9992d578bb3b3cec100b756ba7860ebde97f0e133cbaa10783963f52c695", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling quote v1.0.26 [INFO] [stderr] Compiling beef v0.5.2 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling thiserror v1.0.40 [INFO] [stderr] Checking unicode-ident v1.0.8 [INFO] [stderr] Checking xml-rs v0.8.4 [INFO] [stderr] Compiling syn v2.0.15 [INFO] [stderr] Compiling include_dir_macros v0.7.3 [INFO] [stderr] Checking include_dir v0.7.3 [INFO] [stderr] Compiling logos-codegen v0.13.0 [INFO] [stderr] Compiling thiserror-impl v1.0.40 [INFO] [stderr] Compiling logos-derive v0.13.0 [INFO] [stderr] Checking logos v0.13.0 [INFO] [stderr] Checking chia v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/parser/item/mod.rs (1 fix) [INFO] [stderr] Fixed src/parser/expr/loops.rs (1 fix) [INFO] [stderr] Fixed src/parser/expr/mod.rs (1 fix) [INFO] [stderr] Fixed src/parser/expr/if_expr.rs (1 fix) [INFO] [stderr] Fixed src/lib.rs (1 fix) [INFO] [stderr] Fixed src/parser/expr/block.rs (1 fix) [INFO] [stderr] Fixed src/parser/expr/literal.rs (1 fix) [INFO] [stderr] Fixed src/parser/item/struct_decl.rs (1 fix) [INFO] [stderr] Fixed src/typecheck/program.rs (1 fix) [INFO] [stderr] Fixed src/parser/mod.rs (1 fix) [INFO] [stderr] Fixed src/typecheck/stmt.rs (3 fixes) [INFO] [stderr] Fixed src/typecheck/expr/for_loop.rs (1 fix) [INFO] [stderr] Fixed src/typecheck/fn_decl.rs (1 fix) [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/parser/mod.rs:112:21 [INFO] [stdout] | [INFO] [stdout] 112 | fn child(&self, path: &std::path::Path, child: &str) -> Option<&std::path::Path> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `child` [INFO] [stdout] --> src/parser/mod.rs:112:45 [INFO] [stdout] | [INFO] [stdout] 112 | fn child(&self, path: &std::path::Path, child: &str) -> Option<&std::path::Path> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_child` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `program` [INFO] [stdout] --> src/parser/mod.rs:376:9 [INFO] [stdout] | [INFO] [stdout] 376 | let program = parser.parse_expression().unwrap(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_program` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/targets/lua.rs:152:34 [INFO] [stdout] | [INFO] [stdout] 152 | ... let (path, symbol) = &symbols[0]; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/targets/lua.rs:181:71 [INFO] [stdout] | [INFO] [stdout] 181 | Item::FunctionDeclaration(fn_decl @ FunctionDeclaration { id, .. }) => { [INFO] [stdout] | ^^ help: try ignoring the field: `id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/targets/lua.rs:205:23 [INFO] [stdout] | [INFO] [stdout] 205 | Item::Mod(module) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inner` [INFO] [stdout] --> src/transform/remove_inline_blocks.rs:10:29 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn remove_inline_blocks(inner: &Program, ctx: &Context<'_>) -> Program { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_inner` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/transform/remove_inline_blocks.rs:10:46 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn remove_inline_blocks(inner: &Program, ctx: &Context<'_>) -> Program { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt_expr_ty` [INFO] [stdout] --> src/typecheck/expr/block.rs:43:30 [INFO] [stdout] | [INFO] [stdout] 43 | expr_ty: stmt_expr_ty, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stmt_expr_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `decl` [INFO] [stdout] --> src/typecheck/program.rs:66:46 [INFO] [stdout] | [INFO] [stdout] 66 | Item::TupleStructDeclaration(decl) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_decl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `decl` [INFO] [stdout] --> src/typecheck/program.rs:72:41 [INFO] [stdout] | [INFO] [stdout] 72 | Item::StructDeclaration(decl) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_decl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/typecheck/mod.rs:410:53 [INFO] [stdout] | [INFO] [stdout] 410 | value: TypeOrModule::Module(module), [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `range` is never read [INFO] [stdout] --> src/parser/mod.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 76 | pub struct SourceLocation { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 77 | range: Range, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SourceLocation` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `parse_ty_path` is never used [INFO] [stdout] --> src/parser/mod.rs:243:8 [INFO] [stdout] | [INFO] [stdout] 188 | impl Parser<'_> { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 243 | fn parse_ty_path(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `remove_inline_blocks` is never used [INFO] [stdout] --> src/transform/remove_inline_blocks.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn remove_inline_blocks(inner: &Program, ctx: &Context<'_>) -> Program { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `node_ref` is never read [INFO] [stdout] --> src/typecheck/mod.rs:182:5 [INFO] [stdout] | [INFO] [stdout] 180 | pub struct VarSymbolDetails<'a> { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 181 | ty: Type, [INFO] [stdout] 182 | node_ref: Option>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VarSymbolDetails` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Module` is never constructed [INFO] [stdout] --> src/typecheck/mod.rs:188:5 [INFO] [stdout] | [INFO] [stdout] 186 | enum TypeOrModule { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] 187 | Type(Type), [INFO] [stdout] 188 | Module(()), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeOrModule` 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 `node_ref` is never read [INFO] [stdout] --> src/typecheck/mod.rs:194:5 [INFO] [stdout] | [INFO] [stdout] 192 | pub struct TySymbolDetails<'a> { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 193 | value: TypeOrModule, [INFO] [stdout] 194 | node_ref: Option>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TySymbolDetails` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/lib.rs (2 fixes) [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/parser/mod.rs:112:21 [INFO] [stdout] | [INFO] [stdout] 112 | fn child(&self, path: &std::path::Path, child: &str) -> Option<&std::path::Path> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `child` [INFO] [stdout] --> src/parser/mod.rs:112:45 [INFO] [stdout] | [INFO] [stdout] 112 | fn child(&self, path: &std::path::Path, child: &str) -> Option<&std::path::Path> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_child` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/targets/lua.rs:152:34 [INFO] [stdout] | [INFO] [stdout] 152 | ... let (path, symbol) = &symbols[0]; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/targets/lua.rs:181:71 [INFO] [stdout] | [INFO] [stdout] 181 | Item::FunctionDeclaration(fn_decl @ FunctionDeclaration { id, .. }) => { [INFO] [stdout] | ^^ help: try ignoring the field: `id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/targets/lua.rs:205:23 [INFO] [stdout] | [INFO] [stdout] 205 | Item::Mod(module) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inner` [INFO] [stdout] --> src/transform/remove_inline_blocks.rs:10:29 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn remove_inline_blocks(inner: &Program, ctx: &Context<'_>) -> Program { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_inner` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/transform/remove_inline_blocks.rs:10:46 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn remove_inline_blocks(inner: &Program, ctx: &Context<'_>) -> Program { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt_expr_ty` [INFO] [stdout] --> src/typecheck/expr/block.rs:43:30 [INFO] [stdout] | [INFO] [stdout] 43 | expr_ty: stmt_expr_ty, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stmt_expr_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `decl` [INFO] [stdout] --> src/typecheck/program.rs:66:46 [INFO] [stdout] | [INFO] [stdout] 66 | Item::TupleStructDeclaration(decl) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_decl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `decl` [INFO] [stdout] --> src/typecheck/program.rs:72:41 [INFO] [stdout] | [INFO] [stdout] 72 | Item::StructDeclaration(decl) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_decl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/typecheck/mod.rs:410:53 [INFO] [stdout] | [INFO] [stdout] 410 | value: TypeOrModule::Module(module), [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `range` is never read [INFO] [stdout] --> src/parser/mod.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 76 | pub struct SourceLocation { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 77 | range: Range, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SourceLocation` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `parse_ty_path` is never used [INFO] [stdout] --> src/parser/mod.rs:243:8 [INFO] [stdout] | [INFO] [stdout] 188 | impl Parser<'_> { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 243 | fn parse_ty_path(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `remove_inline_blocks` is never used [INFO] [stdout] --> src/transform/remove_inline_blocks.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn remove_inline_blocks(inner: &Program, ctx: &Context<'_>) -> Program { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `node_ref` is never read [INFO] [stdout] --> src/typecheck/mod.rs:182:5 [INFO] [stdout] | [INFO] [stdout] 180 | pub struct VarSymbolDetails<'a> { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 181 | ty: Type, [INFO] [stdout] 182 | node_ref: Option>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VarSymbolDetails` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Module` is never constructed [INFO] [stdout] --> src/typecheck/mod.rs:188:5 [INFO] [stdout] | [INFO] [stdout] 186 | enum TypeOrModule { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] 187 | Type(Type), [INFO] [stdout] 188 | Module(()), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeOrModule` 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 `node_ref` is never read [INFO] [stdout] --> src/typecheck/mod.rs:194:5 [INFO] [stdout] | [INFO] [stdout] 192 | pub struct TySymbolDetails<'a> { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 193 | value: TypeOrModule, [INFO] [stdout] 194 | node_ref: Option>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TySymbolDetails` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.24s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking chia v0.1.0 (/tmp/fixit) [INFO] [stdout] error[E0405]: cannot find trait `Sources` in this scope [INFO] [stdout] --> src/lib.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 13 | impl<'a> Sources for Dir<'a> { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 3 + use crate::parser::Sources; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/lib.rs:16:24 [INFO] [stdout] | [INFO] [stdout] 16 | path = Path::new("main"); [INFO] [stdout] | ^^^^ use of undeclared type `Path` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 + use crate::parser::ast::Path; [INFO] [stdout] | [INFO] [stdout] 3 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Context` [INFO] [stdout] --> src/lib.rs:37:19 [INFO] [stdout] | [INFO] [stdout] 37 | let mut ctx = Context::new(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Context` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 + use core::task::Context; [INFO] [stdout] | [INFO] [stdout] 3 + use crate::typecheck::Context; [INFO] [stdout] | [INFO] [stdout] 3 + use std::task::Context; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Type` [INFO] [stdout] --> src/lib.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | Type::Function(vec![Type::String], Box::new(Type::Unit)), [INFO] [stdout] | ^^^^ use of undeclared type `Type` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 3 + use crate::typecheck::Type; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Type` [INFO] [stdout] --> src/lib.rs:40:29 [INFO] [stdout] | [INFO] [stdout] 40 | Type::Function(vec![Type::String], Box::new(Type::Unit)), [INFO] [stdout] | ^^^^ use of undeclared type `Type` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 3 + use crate::typecheck::Type; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Type` [INFO] [stdout] --> src/lib.rs:40:53 [INFO] [stdout] | [INFO] [stdout] 40 | Type::Function(vec![Type::String], Box::new(Type::Unit)), [INFO] [stdout] | ^^^^ use of undeclared type `Type` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 3 + use crate::typecheck::Type; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] [INFO] [stderr] error: could not compile `chia` (lib test) due to 7 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/parser/mod.rs:112:21 [INFO] [stdout] | [INFO] [stdout] 112 | fn child(&self, path: &std::path::Path, child: &str) -> Option<&std::path::Path> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `child` [INFO] [stdout] --> src/parser/mod.rs:112:45 [INFO] [stdout] | [INFO] [stdout] 112 | fn child(&self, path: &std::path::Path, child: &str) -> Option<&std::path::Path> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_child` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/targets/lua.rs:152:34 [INFO] [stdout] | [INFO] [stdout] 152 | ... let (path, symbol) = &symbols[0]; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/targets/lua.rs:181:71 [INFO] [stdout] | [INFO] [stdout] 181 | Item::FunctionDeclaration(fn_decl @ FunctionDeclaration { id, .. }) => { [INFO] [stdout] | ^^ help: try ignoring the field: `id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/targets/lua.rs:205:23 [INFO] [stdout] | [INFO] [stdout] 205 | Item::Mod(module) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inner` [INFO] [stdout] --> src/transform/remove_inline_blocks.rs:10:29 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn remove_inline_blocks(inner: &Program, ctx: &Context<'_>) -> Program { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_inner` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/transform/remove_inline_blocks.rs:10:46 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn remove_inline_blocks(inner: &Program, ctx: &Context<'_>) -> Program { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt_expr_ty` [INFO] [stdout] --> src/typecheck/expr/block.rs:43:30 [INFO] [stdout] | [INFO] [stdout] 43 | expr_ty: stmt_expr_ty, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stmt_expr_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `decl` [INFO] [stdout] --> src/typecheck/program.rs:66:46 [INFO] [stdout] | [INFO] [stdout] 66 | Item::TupleStructDeclaration(decl) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_decl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `decl` [INFO] [stdout] --> src/typecheck/program.rs:72:41 [INFO] [stdout] | [INFO] [stdout] 72 | Item::StructDeclaration(decl) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_decl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/typecheck/mod.rs:410:53 [INFO] [stdout] | [INFO] [stdout] 410 | value: TypeOrModule::Module(module), [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `range` is never read [INFO] [stdout] --> src/parser/mod.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 76 | pub struct SourceLocation { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 77 | range: Range, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SourceLocation` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `parse_ty_path` is never used [INFO] [stdout] --> src/parser/mod.rs:243:8 [INFO] [stdout] | [INFO] [stdout] 188 | impl Parser<'_> { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 243 | fn parse_ty_path(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `remove_inline_blocks` is never used [INFO] [stdout] --> src/transform/remove_inline_blocks.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn remove_inline_blocks(inner: &Program, ctx: &Context<'_>) -> Program { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `node_ref` is never read [INFO] [stdout] --> src/typecheck/mod.rs:182:5 [INFO] [stdout] | [INFO] [stdout] 180 | pub struct VarSymbolDetails<'a> { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 181 | ty: Type, [INFO] [stdout] 182 | node_ref: Option>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VarSymbolDetails` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Module` is never constructed [INFO] [stdout] --> src/typecheck/mod.rs:188:5 [INFO] [stdout] | [INFO] [stdout] 186 | enum TypeOrModule { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] 187 | Type(Type), [INFO] [stdout] 188 | Module(()), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeOrModule` 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 `node_ref` is never read [INFO] [stdout] --> src/typecheck/mod.rs:194:5 [INFO] [stdout] | [INFO] [stdout] 192 | pub struct TySymbolDetails<'a> { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 193 | value: TypeOrModule, [INFO] [stdout] 194 | node_ref: Option>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TySymbolDetails` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "d99a9992d578bb3b3cec100b756ba7860ebde97f0e133cbaa10783963f52c695", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d99a9992d578bb3b3cec100b756ba7860ebde97f0e133cbaa10783963f52c695", kill_on_drop: false }` [INFO] [stdout] d99a9992d578bb3b3cec100b756ba7860ebde97f0e133cbaa10783963f52c695