[INFO] cloning repository https://github.com/lavi27/new_lang [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lavi27/new_lang" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flavi27%2Fnew_lang", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flavi27%2Fnew_lang'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2725cf3eba3963a6fbef2aa48ee8d6730ec0ac79 [INFO] building lavi27/new_lang against try#d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flavi27%2Fnew_lang" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-6-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/lavi27/new_lang [INFO] finished tweaking git repo https://github.com/lavi27/new_lang [INFO] tweaked toml for git repo https://github.com/lavi27/new_lang written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/lavi27/new_lang on toolchain d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/lavi27/new_lang 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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f44a04da8b84de82509adc0e4ba2f28805ce34dc59692f790f6fd286cc2f71aa [INFO] running `Command { std: "docker" "start" "-a" "f44a04da8b84de82509adc0e4ba2f28805ce34dc59692f790f6fd286cc2f71aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f44a04da8b84de82509adc0e4ba2f28805ce34dc59692f790f6fd286cc2f71aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f44a04da8b84de82509adc0e4ba2f28805ce34dc59692f790f6fd286cc2f71aa", kill_on_drop: false }` [INFO] [stdout] f44a04da8b84de82509adc0e4ba2f28805ce34dc59692f790f6fd286cc2f71aa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 946f1a937b4f5110458630f1e3d5957392f71b72b2cc8d277b903ce8d819540d [INFO] running `Command { std: "docker" "start" "-a" "946f1a937b4f5110458630f1e3d5957392f71b72b2cc8d277b903ce8d819540d", kill_on_drop: false }` [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling clap_lex v0.7.5 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling strum v0.27.2 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling clap_builder v4.5.44 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling fid-rs v0.2.0 [INFO] [stderr] Compiling louds-rs v0.7.0 [INFO] [stderr] Compiling trie-rs v0.4.2 [INFO] [stderr] Compiling clap_derive v4.5.45 [INFO] [stderr] Compiling strum_macros v0.27.2 [INFO] [stderr] Compiling clap v4.5.45 [INFO] [stderr] Compiling new_lang v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `sync::Arc` [INFO] [stdout] --> src/compiler/analyzer/mod.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{mem::take, sync::Arc}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `codegen::ToRust` [INFO] [stdout] --> src/compiler/analyzer/mod.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | compiler::{codegen::ToRust, exprs::*, parser::SyntaxTree}, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::default` [INFO] [stdout] --> src/compiler/exprs.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::default; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EnumString` [INFO] [stdout] --> src/compiler/exprs.rs:13:29 [INFO] [stdout] | [INFO] [stdout] 13 | use strum_macros::{Display, EnumString}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `items` [INFO] [stdout] --> src/compiler/codegen/mod.rs:450:29 [INFO] [stdout] | [INFO] [stdout] 450 | if let ValueExpr::Tuple(items) = iter.get(&ctx.value_exprs) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_items` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `char` [INFO] [stdout] --> src/compiler/parser/token_stream.rs:273:17 [INFO] [stdout] | [INFO] [stdout] 273 | char => match self.token_state { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `varl` [INFO] [stdout] --> src/compiler/analyzer/mod.rs:824:28 [INFO] [stdout] | [INFO] [stdout] 824 | ValueExpr::Sub(varl, varr) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_varl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `varr` [INFO] [stdout] --> src/compiler/analyzer/mod.rs:824:34 [INFO] [stdout] | [INFO] [stdout] 824 | ValueExpr::Sub(varl, varr) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_varr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `varl` [INFO] [stdout] --> src/compiler/analyzer/mod.rs:883:28 [INFO] [stdout] | [INFO] [stdout] 883 | ValueExpr::Div(varl, varr) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_varl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `varr` [INFO] [stdout] --> src/compiler/analyzer/mod.rs:883:34 [INFO] [stdout] | [INFO] [stdout] 883 | ValueExpr::Div(varl, varr) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_varr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `end` [INFO] [stdout] --> src/compiler/parser/mod.rs:62:42 [INFO] [stdout] | [INFO] [stdout] 62 | let (col, Range { start, end }) = self.token_stream.get_curr_position(); [INFO] [stdout] | ^^^ help: try ignoring the field: `end: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/compiler/codegen/mod.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let mut codegen = Self::new(ast, opt); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `is_paralable` is never read [INFO] [stdout] --> src/compiler/analyzer/mod.rs:215:17 [INFO] [stdout] | [INFO] [stdout] 215 | let mut is_paralable = false; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/compiler/analyzer/mod.rs:446:72 [INFO] [stdout] | [INFO] [stdout] 446 | self.analyze_value_expr(variable).inspect_err(|e| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `variable` [INFO] [stdout] --> src/compiler/analyzer/mod.rs:417:31 [INFO] [stdout] | [INFO] [stdout] 417 | Expr::AddAssign { variable, value } => {} [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `variable: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/compiler/analyzer/mod.rs:417:41 [INFO] [stdout] | [INFO] [stdout] 417 | Expr::AddAssign { variable, value } => {} [INFO] [stdout] | ^^^^^ help: try ignoring the field: `value: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/compiler/analyzer/mod.rs:410:60 [INFO] [stdout] | [INFO] [stdout] 410 | self.analyze_value_expr(expr).inspect_err(|e| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/compiler/analyzer/mod.rs:419:61 [INFO] [stdout] | [INFO] [stdout] 419 | self.analyze_value_expr(value).inspect_err(|e| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/compiler/analyzer/mod.rs:430:69 [INFO] [stdout] | [INFO] [stdout] 430 | self.analyze_value_expr(index).inspect_err(|e| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/compiler/analyzer/mod.rs:498:65 [INFO] [stdout] | [INFO] [stdout] 498 | self.analyze_value_expr(condition).inspect_err(|e| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/compiler/analyzer/mod.rs:508:35 [INFO] [stdout] | [INFO] [stdout] 508 | .inspect_err(|e| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/compiler/codegen/mod.rs:379:23 [INFO] [stdout] | [INFO] [stdout] 379 | fn to_rust(&self, ctx: &SyntaxTree) -> String { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NonPureScope` is never constructed [INFO] [stdout] --> src/compiler/analyzer/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 11 | enum ExprAnalyzeErr { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] 12 | ExprErr, [INFO] [stdout] 13 | NonPureScope, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/compiler/analyzer/mod.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | Module(Module), [INFO] [stdout] | ------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 21 - Module(Module), [INFO] [stdout] 21 + Module(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/compiler/analyzer/mod.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 22 | Func { [INFO] [stdout] | ---- field in this variant [INFO] [stdout] 23 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `children` are never read [INFO] [stdout] --> src/compiler/analyzer/mod.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 29 | struct Module { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 30 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 31 | children: HashMap, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `is_chunkable` is never read [INFO] [stdout] --> src/compiler/analyzer/mod.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 42 | struct ScopeInfo { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 43 | vars: HashMap, [INFO] [stdout] 44 | is_chunkable: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `option` and `result` are never read [INFO] [stdout] --> src/compiler/codegen/mod.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Codegen<'a> { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 25 | ast: &'a SyntaxTree, [INFO] [stdout] 26 | option: CompileOption, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 27 | result: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BASE` is never used [INFO] [stdout] --> src/compiler/codegen/base_rust.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub const BASE: &str = "mod {newlang_base} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `CodeBlock`, `VariableDefineExpr`, `TypeExpr`, `NamespaceChain`, and `NamespaceTree` are never constructed [INFO] [stdout] --> src/compiler/exprs.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 48 | pub enum Expr { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 108 | CodeBlock(CodeBlockKey), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 109 | VariableDefineExpr(VariableDefineExpr), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 110 | TypeExpr(TypeExpr), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 111 | NamespaceChain(NamespaceChain), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 112 | NamespaceTree(NamespaceTree), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expr` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/compiler/exprs.rs:219:12 [INFO] [stdout] | [INFO] [stdout] 218 | impl NamespaceChain { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 219 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `parse_comma_type_exprs` is never used [INFO] [stdout] --> src/compiler/parser/mod.rs:182:8 [INFO] [stdout] | [INFO] [stdout] 39 | impl Parser { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 182 | fn parse_comma_type_exprs(&mut self, end_token: Token) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `skill_issue` should have an upper case name [INFO] [stdout] --> src/compiler/codegen/mod.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | static mut skill_issue: LazyLock = LazyLock::new(|| ahash::RandomState::new()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 13 - static mut skill_issue: LazyLock = LazyLock::new(|| ahash::RandomState::new()); [INFO] [stdout] 13 + static mut SKILL_ISSUE: LazyLock = LazyLock::new(|| ahash::RandomState::new()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/compiler/codegen/mod.rs:16:31 [INFO] [stdout] | [INFO] [stdout] 16 | let mut hasher = unsafe { skill_issue.build_hasher() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/compiler/analyzer/mod.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | self._analyze_routine(&self.ast.main_routine.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 100 | let _ = self._analyze_routine(&self.ast.main_routine.clone()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | / compiler::Compiler::compile_static( [INFO] [stdout] 64 | | file_path.clone(), [INFO] [stdout] 65 | | outdir.clone(), [INFO] [stdout] 66 | | CompileOption { [INFO] [stdout] ... | [INFO] [stdout] 70 | | }, [INFO] [stdout] 71 | | ); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 63 | let _ = compiler::Compiler::compile_static( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 87 | / compiler::Compiler::compile_static( [INFO] [stdout] 88 | | file_path.clone(), [INFO] [stdout] 89 | | outdir.clone(), [INFO] [stdout] 90 | | CompileOption { [INFO] [stdout] ... | [INFO] [stdout] 94 | | }, [INFO] [stdout] 95 | | ); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 87 | let _ = compiler::Compiler::compile_static( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/compiler/mod.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | stdin.read_to_string(&mut tmp); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 63 | let _ = stdin.read_to_string(&mut tmp); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/compiler/mod.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | create_dir(self.outdir.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 76 | let _ = create_dir(self.outdir.clone()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/compiler/mod.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | stdout.write_all(base_code.as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 88 | let _ = stdout.write_all(base_code.as_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/compiler/mod.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | stdout.write_all(output_code.as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 92 | let _ = stdout.write_all(output_code.as_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.56s [INFO] running `Command { std: "docker" "inspect" "946f1a937b4f5110458630f1e3d5957392f71b72b2cc8d277b903ce8d819540d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "946f1a937b4f5110458630f1e3d5957392f71b72b2cc8d277b903ce8d819540d", kill_on_drop: false }` [INFO] [stdout] 946f1a937b4f5110458630f1e3d5957392f71b72b2cc8d277b903ce8d819540d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e7c6524076861050ca96cbda7f6249157852492c58db3fe3241c8fe5020c1a84 [INFO] running `Command { std: "docker" "start" "-a" "e7c6524076861050ca96cbda7f6249157852492c58db3fe3241c8fe5020c1a84", kill_on_drop: false }` [INFO] [stderr] Compiling new_lang v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `sync::Arc` [INFO] [stdout] --> src/compiler/analyzer/mod.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{mem::take, sync::Arc}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `codegen::ToRust` [INFO] [stdout] --> src/compiler/analyzer/mod.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | compiler::{codegen::ToRust, exprs::*, parser::SyntaxTree}, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::default` [INFO] [stdout] --> src/compiler/exprs.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::default; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EnumString` [INFO] [stdout] --> src/compiler/exprs.rs:13:29 [INFO] [stdout] | [INFO] [stdout] 13 | use strum_macros::{Display, EnumString}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `items` [INFO] [stdout] --> src/compiler/codegen/mod.rs:450:29 [INFO] [stdout] | [INFO] [stdout] 450 | if let ValueExpr::Tuple(items) = iter.get(&ctx.value_exprs) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_items` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `varl` [INFO] [stdout] --> src/compiler/analyzer/mod.rs:824:28 [INFO] [stdout] | [INFO] [stdout] 824 | ValueExpr::Sub(varl, varr) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_varl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `varr` [INFO] [stdout] --> src/compiler/analyzer/mod.rs:824:34 [INFO] [stdout] | [INFO] [stdout] 824 | ValueExpr::Sub(varl, varr) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_varr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `varl` [INFO] [stdout] --> src/compiler/analyzer/mod.rs:883:28 [INFO] [stdout] | [INFO] [stdout] 883 | ValueExpr::Div(varl, varr) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_varl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `varr` [INFO] [stdout] --> src/compiler/analyzer/mod.rs:883:34 [INFO] [stdout] | [INFO] [stdout] 883 | ValueExpr::Div(varl, varr) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_varr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/compiler/codegen/mod.rs:379:23 [INFO] [stdout] | [INFO] [stdout] 379 | fn to_rust(&self, ctx: &SyntaxTree) -> String { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `is_paralable` is never read [INFO] [stdout] --> src/compiler/analyzer/mod.rs:215:17 [INFO] [stdout] | [INFO] [stdout] 215 | let mut is_paralable = false; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/compiler/codegen/mod.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let mut codegen = Self::new(ast, opt); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `variable` [INFO] [stdout] --> src/compiler/analyzer/mod.rs:417:31 [INFO] [stdout] | [INFO] [stdout] 417 | Expr::AddAssign { variable, value } => {} [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `variable: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/compiler/analyzer/mod.rs:417:41 [INFO] [stdout] | [INFO] [stdout] 417 | Expr::AddAssign { variable, value } => {} [INFO] [stdout] | ^^^^^ help: try ignoring the field: `value: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/compiler/analyzer/mod.rs:410:60 [INFO] [stdout] | [INFO] [stdout] 410 | self.analyze_value_expr(expr).inspect_err(|e| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/compiler/analyzer/mod.rs:419:61 [INFO] [stdout] | [INFO] [stdout] 419 | self.analyze_value_expr(value).inspect_err(|e| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/compiler/analyzer/mod.rs:430:69 [INFO] [stdout] | [INFO] [stdout] 430 | self.analyze_value_expr(index).inspect_err(|e| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/compiler/analyzer/mod.rs:446:72 [INFO] [stdout] | [INFO] [stdout] 446 | self.analyze_value_expr(variable).inspect_err(|e| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/compiler/analyzer/mod.rs:498:65 [INFO] [stdout] | [INFO] [stdout] 498 | self.analyze_value_expr(condition).inspect_err(|e| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/compiler/analyzer/mod.rs:508:35 [INFO] [stdout] | [INFO] [stdout] 508 | .inspect_err(|e| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `char` [INFO] [stdout] --> src/compiler/parser/token_stream.rs:273:17 [INFO] [stdout] | [INFO] [stdout] 273 | char => match self.token_state { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `end` [INFO] [stdout] --> src/compiler/parser/mod.rs:62:42 [INFO] [stdout] | [INFO] [stdout] 62 | let (col, Range { start, end }) = self.token_stream.get_curr_position(); [INFO] [stdout] | ^^^ help: try ignoring the field: `end: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NonPureScope` is never constructed [INFO] [stdout] --> src/compiler/analyzer/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 11 | enum ExprAnalyzeErr { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] 12 | ExprErr, [INFO] [stdout] 13 | NonPureScope, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BASE` is never used [INFO] [stdout] --> src/compiler/codegen/base_rust.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub const BASE: &str = "mod {newlang_base} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `parse_comma_type_exprs` is never used [INFO] [stdout] --> src/compiler/parser/mod.rs:182:8 [INFO] [stdout] | [INFO] [stdout] 39 | impl Parser { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 182 | fn parse_comma_type_exprs(&mut self, end_token: Token) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `CodeBlock`, `VariableDefineExpr`, `TypeExpr`, `NamespaceChain`, and `NamespaceTree` are never constructed [INFO] [stdout] --> src/compiler/exprs.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 48 | pub enum Expr { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 108 | CodeBlock(CodeBlockKey), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 109 | VariableDefineExpr(VariableDefineExpr), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 110 | TypeExpr(TypeExpr), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 111 | NamespaceChain(NamespaceChain), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 112 | NamespaceTree(NamespaceTree), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expr` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/compiler/exprs.rs:219:12 [INFO] [stdout] | [INFO] [stdout] 218 | impl NamespaceChain { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 219 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `option` and `result` are never read [INFO] [stdout] --> src/compiler/codegen/mod.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Codegen<'a> { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 25 | ast: &'a SyntaxTree, [INFO] [stdout] 26 | option: CompileOption, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 27 | result: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `skill_issue` should have an upper case name [INFO] [stdout] --> src/compiler/codegen/mod.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | static mut skill_issue: LazyLock = LazyLock::new(|| ahash::RandomState::new()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 13 - static mut skill_issue: LazyLock = LazyLock::new(|| ahash::RandomState::new()); [INFO] [stdout] 13 + static mut SKILL_ISSUE: LazyLock = LazyLock::new(|| ahash::RandomState::new()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/compiler/codegen/mod.rs:16:31 [INFO] [stdout] | [INFO] [stdout] 16 | let mut hasher = unsafe { skill_issue.build_hasher() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/compiler/analyzer/mod.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | Module(Module), [INFO] [stdout] | ------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 21 - Module(Module), [INFO] [stdout] 21 + Module(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/compiler/analyzer/mod.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 22 | Func { [INFO] [stdout] | ---- field in this variant [INFO] [stdout] 23 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `children` are never read [INFO] [stdout] --> src/compiler/analyzer/mod.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 29 | struct Module { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 30 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 31 | children: HashMap, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `is_chunkable` is never read [INFO] [stdout] --> src/compiler/analyzer/mod.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 42 | struct ScopeInfo { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 43 | vars: HashMap, [INFO] [stdout] 44 | is_chunkable: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/compiler/analyzer/mod.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | self._analyze_routine(&self.ast.main_routine.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 100 | let _ = self._analyze_routine(&self.ast.main_routine.clone()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/compiler/mod.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | stdin.read_to_string(&mut tmp); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 63 | let _ = stdin.read_to_string(&mut tmp); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/compiler/mod.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | create_dir(self.outdir.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 76 | let _ = create_dir(self.outdir.clone()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/compiler/mod.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | stdout.write_all(base_code.as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 88 | let _ = stdout.write_all(base_code.as_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/compiler/mod.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | stdout.write_all(output_code.as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 92 | let _ = stdout.write_all(output_code.as_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | / compiler::Compiler::compile_static( [INFO] [stdout] 64 | | file_path.clone(), [INFO] [stdout] 65 | | outdir.clone(), [INFO] [stdout] 66 | | CompileOption { [INFO] [stdout] ... | [INFO] [stdout] 70 | | }, [INFO] [stdout] 71 | | ); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 63 | let _ = compiler::Compiler::compile_static( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 87 | / compiler::Compiler::compile_static( [INFO] [stdout] 88 | | file_path.clone(), [INFO] [stdout] 89 | | outdir.clone(), [INFO] [stdout] 90 | | CompileOption { [INFO] [stdout] ... | [INFO] [stdout] 94 | | }, [INFO] [stdout] 95 | | ); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 87 | let _ = compiler::Compiler::compile_static( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.87s [INFO] running `Command { std: "docker" "inspect" "e7c6524076861050ca96cbda7f6249157852492c58db3fe3241c8fe5020c1a84", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e7c6524076861050ca96cbda7f6249157852492c58db3fe3241c8fe5020c1a84", kill_on_drop: false }` [INFO] [stdout] e7c6524076861050ca96cbda7f6249157852492c58db3fe3241c8fe5020c1a84