[INFO] fetching crate nargo-type-check 0.0.0... [INFO] testing nargo-type-check-0.0.0 against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-2 [INFO] extracting crate nargo-type-check 0.0.0 into /workspace/builds/worker-7-tc2/source [INFO] started tweaking crates.io crate nargo-type-check 0.0.0 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate nargo-type-check 0.0.0 [INFO] tweaked toml for crates.io crate nargo-type-check 0.0.0 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate nargo-type-check 0.0.0 on toolchain dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate nargo-type-check 0.0.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6b568a971597fc5d98fd04c60f5e2b9b07c4ec926e56046f97f257211c7b85cc [INFO] running `Command { std: "docker" "start" "-a" "6b568a971597fc5d98fd04c60f5e2b9b07c4ec926e56046f97f257211c7b85cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6b568a971597fc5d98fd04c60f5e2b9b07c4ec926e56046f97f257211c7b85cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6b568a971597fc5d98fd04c60f5e2b9b07c4ec926e56046f97f257211c7b85cc", kill_on_drop: false }` [INFO] [stdout] 6b568a971597fc5d98fd04c60f5e2b9b07c4ec926e56046f97f257211c7b85cc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a002f6269b5adb782bf4f42345de40f1598b78e76bc0061ed22eae057d74f87d [INFO] running `Command { std: "docker" "start" "-a" "a002f6269b5adb782bf4f42345de40f1598b78e76bc0061ed22eae057d74f87d", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Compiling libc v0.2.183 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling zerocopy v0.8.47 [INFO] [stderr] Compiling getrandom v0.4.2 [INFO] [stderr] Compiling rustix v1.1.4 [INFO] [stderr] Compiling unicode-width v0.2.2 [INFO] [stderr] Compiling linux-raw-sys v0.12.1 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling aho-corasick v1.1.4 [INFO] [stderr] Compiling notify-types v2.1.0 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling shell-words v1.1.1 [INFO] [stderr] Compiling winnow v1.0.0 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling toml_writer v1.0.7+spec-1.1.0 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling glob v0.3.3 [INFO] [stderr] Compiling itertools v0.14.0 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling toml_parser v1.0.10+spec-1.1.0 [INFO] [stderr] Compiling regex-automata v0.4.14 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling inotify-sys v0.1.5 [INFO] [stderr] Compiling mio v1.1.1 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling console v0.15.11 [INFO] [stderr] Compiling errno v0.3.14 [INFO] [stderr] Compiling socket2 v0.6.3 [INFO] [stderr] Compiling signal-hook-registry v1.4.8 [INFO] [stderr] Compiling rand_core v0.9.5 [INFO] [stderr] Compiling inotify v0.11.1 [INFO] [stderr] Compiling console v0.16.3 [INFO] [stderr] Compiling dashmap v6.1.0 [INFO] [stderr] Compiling tempfile v3.27.0 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling notify v8.2.0 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling serde_spanned v1.0.4 [INFO] [stderr] Compiling toml_datetime v1.0.1+spec-1.1.0 [INFO] [stderr] Compiling toml v1.0.7+spec-1.1.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling regex v1.12.3 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling futures-macro v0.3.32 [INFO] [stderr] Compiling oak-macros v0.0.7 [INFO] [stderr] Compiling tokio-macros v2.6.1 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling tokio v1.50.0 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling futures-util v0.3.32 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Compiling tracing v0.1.44 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Compiling twox-hash v2.1.2 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling dialoguer v0.11.0 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling triomphe v0.1.15 [INFO] [stderr] Compiling nargo-types v0.0.0 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Compiling icu_properties v2.1.2 [INFO] [stderr] Compiling oak-core v0.0.7 [INFO] [stderr] Compiling futures-executor v0.3.32 [INFO] [stderr] Compiling nargo-ir v0.0.0 [INFO] [stderr] Compiling futures v0.3.32 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.8 [INFO] [stderr] Compiling oak-symbols v0.0.7 [INFO] [stderr] Compiling oak-navigation v0.0.7 [INFO] [stderr] Compiling oak-folding v0.0.7 [INFO] [stderr] Compiling oak-pretty-print v0.0.7 [INFO] [stderr] Compiling oak-highlight v0.0.7 [INFO] [stderr] Compiling oak-sass v0.0.7 [INFO] [stderr] Compiling oak-json v0.0.7 [INFO] [stderr] Compiling oak-hover v0.0.7 [INFO] [stderr] Compiling oak-scss v0.0.7 [INFO] [stderr] Compiling oak-tailwind v0.0.7 [INFO] [stderr] Compiling oak-css v0.0.7 [INFO] [stderr] Compiling oak-vue v0.0.7 [INFO] [stderr] Compiling oak-vfs v0.0.7 [INFO] [stderr] Compiling oak-typescript v0.0.7 [INFO] [stderr] Compiling nargo-style-processor v0.0.0 [INFO] [stderr] Compiling oak-resolver v0.0.7 [INFO] [stderr] Compiling oak-lsp v0.0.7 [INFO] [stderr] Compiling nargo-script-analyzer v0.0.0 [INFO] [stderr] Compiling oak-toml v0.0.7 [INFO] [stderr] Compiling nargo-parser v0.0.0 [INFO] [stderr] Compiling nargo-type-check v0.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `JsExpr`, `JsStmt`, and `TseAttribute` [INFO] [stdout] --> src/lib.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | use nargo_ir::{JsExpr, JsStmt, TseAttribute}; [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: `Result` [INFO] [stdout] --> src/lib.rs:8:26 [INFO] [stdout] | [INFO] [stdout] 8 | use nargo_types::{Error, Result, Result as NargoResult}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/lib.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fs::File` and `io::Read` [INFO] [stdout] --> src/lib.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | fs::File, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 14 | io::Read, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `walkdir::WalkDir` [INFO] [stdout] --> src/lib.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use walkdir::WalkDir; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TypeError` [INFO] [stdout] --> src/modules/check.rs:5:35 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::modules::types::{Type, TypeError}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Type` [INFO] [stdout] --> src/modules/module.rs:8:29 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::modules::types::{Type, TypeEnv}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> src/modules/typescript.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use regex::Regex; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TypeEnv` [INFO] [stdout] --> src/modules/typescript.rs:8:35 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::modules::types::{Type, TypeEnv}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> src/modules/utils.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use regex::Regex; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::modules::types::TsConfig` [INFO] [stdout] --> src/modules/utils.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::modules::types::TsConfig; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:519:21 [INFO] [stdout] | [INFO] [stdout] 519 | let mut var_type = Type::Any; [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: `body` [INFO] [stdout] --> src/lib.rs:501:58 [INFO] [stdout] | [INFO] [stdout] 501 | nargo_ir::JsStmt::FunctionDecl { id, params, body, .. } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `body: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `init_expr` [INFO] [stdout] --> src/lib.rs:522:29 [INFO] [stdout] | [INFO] [stdout] 522 | if let Some(init_expr) = init { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_init_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_name` [INFO] [stdout] --> src/lib.rs:560:13 [INFO] [stdout] | [INFO] [stdout] 560 | let file_name = PathBuf::from(file_path).file_name().unwrap_or_default().to_string_lossy().to_string(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `this_type` [INFO] [stdout] --> src/lib.rs:1096:21 [INFO] [stdout] | [INFO] [stdout] 1096 | if let Some(this_type) = type_args.get(0) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_this_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target_type` [INFO] [stdout] --> src/lib.rs:1178:21 [INFO] [stdout] | [INFO] [stdout] 1178 | if let Some(target_type) = type_args.get(0) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_path` [INFO] [stdout] --> src/lib.rs:1189:41 [INFO] [stdout] | [INFO] [stdout] 1189 | fn collect_file_dependencies(&self, file_path: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/lib.rs:1300:21 [INFO] [stdout] | [INFO] [stdout] 1300 | for param in params { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:1537:37 [INFO] [stdout] | [INFO] [stdout] 1537 | nargo_ir::JsExpr::Other(code, ..) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/lib.rs:1746:21 [INFO] [stdout] | [INFO] [stdout] 1746 | for param in params { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `consequent_type` [INFO] [stdout] --> src/lib.rs:1773:21 [INFO] [stdout] | [INFO] [stdout] 1773 | let consequent_type = self.check_expression(consequent); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_consequent_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `alternate_type` [INFO] [stdout] --> src/lib.rs:1774:21 [INFO] [stdout] | [INFO] [stdout] 1774 | let alternate_type = self.check_expression(alternate); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_alternate_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tag` [INFO] [stdout] --> src/lib.rs:1786:44 [INFO] [stdout] | [INFO] [stdout] 1786 | nargo_ir::JsExpr::TseElement { tag, attributes, children, .. } => { [INFO] [stdout] | ^^^ help: try ignoring the field: `tag: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/modules/check.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait ExpressionChecker { [INFO] [stdout] | ----------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 14 | fn check_program(&mut self, program: &nargo_ir::JsProgram); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | fn check_template(&mut self, template: &nargo_ir::TemplateIR); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | fn check_template_node(&mut self, node: &nargo_ir::TemplateNodeIR); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | fn check_element(&mut self, element: &nargo_ir::ElementIR); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | fn check_attribute(&mut self, attr: &nargo_ir::AttributeIR); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | fn check_if_node(&mut self, if_node: &nargo_ir::IfNodeIR); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | fn check_for_node(&mut self, for_node: &nargo_ir::ForNodeIR); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | fn check_interpolation(&mut self, interpolation: &nargo_ir::ExpressionIR); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TemplateChecker` is never used [INFO] [stdout] --> src/modules/template.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait TemplateChecker { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for the crate [INFO] [stdout] --> src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / #![warn(missing_docs)] [INFO] [stdout] 2 | | [INFO] [stdout] 3 | | use console; [INFO] [stdout] 4 | | use glob; [INFO] [stdout] ... | [INFO] [stdout] 2055 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | #![warn(missing_docs)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a variant [INFO] [stdout] --> src/modules/types.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | Void, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a variant [INFO] [stdout] --> src/modules/types.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | Never, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a variant [INFO] [stdout] --> src/modules/types.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | Unknown, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a variant [INFO] [stdout] --> src/modules/types.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | Number, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a variant [INFO] [stdout] --> src/modules/types.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a variant [INFO] [stdout] --> src/modules/types.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 84 | Boolean, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a variant [INFO] [stdout] --> src/modules/types.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 85 | Symbol, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a variant [INFO] [stdout] --> src/modules/types.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | BigInt, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a variant [INFO] [stdout] --> src/modules/types.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | Object(HashMap), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a variant [INFO] [stdout] --> src/modules/types.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | Function(Vec, Box), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 55.98s [INFO] running `Command { std: "docker" "inspect" "a002f6269b5adb782bf4f42345de40f1598b78e76bc0061ed22eae057d74f87d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a002f6269b5adb782bf4f42345de40f1598b78e76bc0061ed22eae057d74f87d", kill_on_drop: false }` [INFO] [stdout] a002f6269b5adb782bf4f42345de40f1598b78e76bc0061ed22eae057d74f87d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d4d9ce2d6aa8bf0fc5566f2a242b2279174f32ee36cd0c30ce0d291780c521ee [INFO] running `Command { std: "docker" "start" "-a" "d4d9ce2d6aa8bf0fc5566f2a242b2279174f32ee36cd0c30ce0d291780c521ee", kill_on_drop: false }` [INFO] [stdout] warning: unused imports: `JsExpr`, `JsStmt`, and `TseAttribute` [INFO] [stdout] --> src/lib.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | use nargo_ir::{JsExpr, JsStmt, TseAttribute}; [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: `Result` [INFO] [stdout] --> src/lib.rs:8:26 [INFO] [stdout] | [INFO] [stdout] 8 | use nargo_types::{Error, Result, Result as NargoResult}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/lib.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fs::File` and `io::Read` [INFO] [stdout] --> src/lib.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | fs::File, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 14 | io::Read, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `walkdir::WalkDir` [INFO] [stdout] --> src/lib.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use walkdir::WalkDir; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TypeError` [INFO] [stdout] --> src/modules/check.rs:5:35 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::modules::types::{Type, TypeError}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Type` [INFO] [stdout] --> src/modules/module.rs:8:29 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::modules::types::{Type, TypeEnv}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> src/modules/typescript.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use regex::Regex; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TypeEnv` [INFO] [stdout] --> src/modules/typescript.rs:8:35 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::modules::types::{Type, TypeEnv}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> src/modules/utils.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use regex::Regex; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::modules::types::TsConfig` [INFO] [stdout] --> src/modules/utils.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::modules::types::TsConfig; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:519:21 [INFO] [stdout] | [INFO] [stdout] 519 | let mut var_type = Type::Any; [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: `body` [INFO] [stdout] --> src/lib.rs:501:58 [INFO] [stdout] | [INFO] [stdout] 501 | nargo_ir::JsStmt::FunctionDecl { id, params, body, .. } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `body: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `init_expr` [INFO] [stdout] --> src/lib.rs:522:29 [INFO] [stdout] | [INFO] [stdout] 522 | if let Some(init_expr) = init { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_init_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_name` [INFO] [stdout] --> src/lib.rs:560:13 [INFO] [stdout] | [INFO] [stdout] 560 | let file_name = PathBuf::from(file_path).file_name().unwrap_or_default().to_string_lossy().to_string(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `this_type` [INFO] [stdout] --> src/lib.rs:1096:21 [INFO] [stdout] | [INFO] [stdout] 1096 | if let Some(this_type) = type_args.get(0) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_this_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target_type` [INFO] [stdout] --> src/lib.rs:1178:21 [INFO] [stdout] | [INFO] [stdout] 1178 | if let Some(target_type) = type_args.get(0) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_path` [INFO] [stdout] --> src/lib.rs:1189:41 [INFO] [stdout] | [INFO] [stdout] 1189 | fn collect_file_dependencies(&self, file_path: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/lib.rs:1300:21 [INFO] [stdout] | [INFO] [stdout] 1300 | for param in params { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:1537:37 [INFO] [stdout] | [INFO] [stdout] 1537 | nargo_ir::JsExpr::Other(code, ..) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/lib.rs:1746:21 [INFO] [stdout] | [INFO] [stdout] 1746 | for param in params { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `consequent_type` [INFO] [stdout] --> src/lib.rs:1773:21 [INFO] [stdout] | [INFO] [stdout] 1773 | let consequent_type = self.check_expression(consequent); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_consequent_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `alternate_type` [INFO] [stdout] --> src/lib.rs:1774:21 [INFO] [stdout] | [INFO] [stdout] 1774 | let alternate_type = self.check_expression(alternate); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_alternate_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tag` [INFO] [stdout] --> src/lib.rs:1786:44 [INFO] [stdout] | [INFO] [stdout] 1786 | nargo_ir::JsExpr::TseElement { tag, attributes, children, .. } => { [INFO] [stdout] | ^^^ help: try ignoring the field: `tag: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/modules/check.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait ExpressionChecker { [INFO] [stdout] | ----------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 14 | fn check_program(&mut self, program: &nargo_ir::JsProgram); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | fn check_template(&mut self, template: &nargo_ir::TemplateIR); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | fn check_template_node(&mut self, node: &nargo_ir::TemplateNodeIR); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | fn check_element(&mut self, element: &nargo_ir::ElementIR); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | fn check_attribute(&mut self, attr: &nargo_ir::AttributeIR); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | fn check_if_node(&mut self, if_node: &nargo_ir::IfNodeIR); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | fn check_for_node(&mut self, for_node: &nargo_ir::ForNodeIR); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | fn check_interpolation(&mut self, interpolation: &nargo_ir::ExpressionIR); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TemplateChecker` is never used [INFO] [stdout] --> src/modules/template.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait TemplateChecker { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling nargo-type-check v0.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: missing documentation for the crate [INFO] [stdout] --> src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / #![warn(missing_docs)] [INFO] [stdout] 2 | | [INFO] [stdout] 3 | | use console; [INFO] [stdout] 4 | | use glob; [INFO] [stdout] ... | [INFO] [stdout] 2055 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | #![warn(missing_docs)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a variant [INFO] [stdout] --> src/modules/types.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | Void, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a variant [INFO] [stdout] --> src/modules/types.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | Never, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a variant [INFO] [stdout] --> src/modules/types.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | Unknown, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a variant [INFO] [stdout] --> src/modules/types.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | Number, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a variant [INFO] [stdout] --> src/modules/types.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a variant [INFO] [stdout] --> src/modules/types.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 84 | Boolean, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a variant [INFO] [stdout] --> src/modules/types.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 85 | Symbol, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a variant [INFO] [stdout] --> src/modules/types.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | BigInt, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a variant [INFO] [stdout] --> src/modules/types.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | Object(HashMap), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a variant [INFO] [stdout] --> src/modules/types.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | Function(Vec, Box), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `JsExpr`, `JsStmt`, and `TseAttribute` [INFO] [stdout] --> src/lib.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | use nargo_ir::{JsExpr, JsStmt, TseAttribute}; [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: `Result` [INFO] [stdout] --> src/lib.rs:8:26 [INFO] [stdout] | [INFO] [stdout] 8 | use nargo_types::{Error, Result, Result as NargoResult}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/lib.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fs::File` and `io::Read` [INFO] [stdout] --> src/lib.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | fs::File, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 14 | io::Read, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `walkdir::WalkDir` [INFO] [stdout] --> src/lib.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use walkdir::WalkDir; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TypeError` [INFO] [stdout] --> src/modules/check.rs:5:35 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::modules::types::{Type, TypeError}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Type` [INFO] [stdout] --> src/modules/module.rs:8:29 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::modules::types::{Type, TypeEnv}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> src/modules/typescript.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use regex::Regex; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TypeEnv` [INFO] [stdout] --> src/modules/typescript.rs:8:35 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::modules::types::{Type, TypeEnv}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> src/modules/utils.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use regex::Regex; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::modules::types::TsConfig` [INFO] [stdout] --> src/modules/utils.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::modules::types::TsConfig; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `VmzConfig` in this scope [INFO] [stdout] --> tests/audit_test.rs:15:22 [INFO] [stdout] | [INFO] [stdout] 15 | let mut config = VmzConfig::default(); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `VmzConfig` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `VmzContext` in this scope [INFO] [stdout] --> tests/audit_test.rs:17:24 [INFO] [stdout] | [INFO] [stdout] 17 | let ctx = Arc::new(VmzContext::new(config)); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `VmzContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `VmzAudit` in this scope [INFO] [stdout] --> tests/audit_test.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | let auditor = VmzAudit::new(ctx); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `VmzAudit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `VmzConfig` in this scope [INFO] [stdout] --> tests/audit_test.rs:34:22 [INFO] [stdout] | [INFO] [stdout] 34 | let mut config = VmzConfig::default(); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `VmzConfig` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `VmzContext` in this scope [INFO] [stdout] --> tests/audit_test.rs:36:24 [INFO] [stdout] | [INFO] [stdout] 36 | let ctx = Arc::new(VmzContext::new(config)); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `VmzContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `VmzAudit` in this scope [INFO] [stdout] --> tests/audit_test.rs:37:19 [INFO] [stdout] | [INFO] [stdout] 37 | let auditor = VmzAudit::new(ctx); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `VmzAudit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `VmzConfig` in this scope [INFO] [stdout] --> tests/audit_test.rs:53:22 [INFO] [stdout] | [INFO] [stdout] 53 | let mut config = VmzConfig::default(); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `VmzConfig` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `VmzContext` in this scope [INFO] [stdout] --> tests/audit_test.rs:55:24 [INFO] [stdout] | [INFO] [stdout] 55 | let ctx = Arc::new(VmzContext::new(config)); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `VmzContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `VmzAudit` in this scope [INFO] [stdout] --> tests/audit_test.rs:56:19 [INFO] [stdout] | [INFO] [stdout] 56 | let auditor = VmzAudit::new(ctx); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `VmzAudit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `nargo-type-check` (test "audit_test") due to 9 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:519:21 [INFO] [stdout] | [INFO] [stdout] 519 | let mut var_type = Type::Any; [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: `body` [INFO] [stdout] --> src/lib.rs:501:58 [INFO] [stdout] | [INFO] [stdout] 501 | nargo_ir::JsStmt::FunctionDecl { id, params, body, .. } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `body: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `init_expr` [INFO] [stdout] --> src/lib.rs:522:29 [INFO] [stdout] | [INFO] [stdout] 522 | if let Some(init_expr) = init { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_init_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_name` [INFO] [stdout] --> src/lib.rs:560:13 [INFO] [stdout] | [INFO] [stdout] 560 | let file_name = PathBuf::from(file_path).file_name().unwrap_or_default().to_string_lossy().to_string(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `this_type` [INFO] [stdout] --> src/lib.rs:1096:21 [INFO] [stdout] | [INFO] [stdout] 1096 | if let Some(this_type) = type_args.get(0) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_this_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target_type` [INFO] [stdout] --> src/lib.rs:1178:21 [INFO] [stdout] | [INFO] [stdout] 1178 | if let Some(target_type) = type_args.get(0) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_path` [INFO] [stdout] --> src/lib.rs:1189:41 [INFO] [stdout] | [INFO] [stdout] 1189 | fn collect_file_dependencies(&self, file_path: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/lib.rs:1300:21 [INFO] [stdout] | [INFO] [stdout] 1300 | for param in params { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:1537:37 [INFO] [stdout] | [INFO] [stdout] 1537 | nargo_ir::JsExpr::Other(code, ..) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/lib.rs:1746:21 [INFO] [stdout] | [INFO] [stdout] 1746 | for param in params { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `consequent_type` [INFO] [stdout] --> src/lib.rs:1773:21 [INFO] [stdout] | [INFO] [stdout] 1773 | let consequent_type = self.check_expression(consequent); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_consequent_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `alternate_type` [INFO] [stdout] --> src/lib.rs:1774:21 [INFO] [stdout] | [INFO] [stdout] 1774 | let alternate_type = self.check_expression(alternate); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_alternate_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tag` [INFO] [stdout] --> src/lib.rs:1786:44 [INFO] [stdout] | [INFO] [stdout] 1786 | nargo_ir::JsExpr::TseElement { tag, attributes, children, .. } => { [INFO] [stdout] | ^^^ help: try ignoring the field: `tag: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/modules/check.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait ExpressionChecker { [INFO] [stdout] | ----------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 14 | fn check_program(&mut self, program: &nargo_ir::JsProgram); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | fn check_template(&mut self, template: &nargo_ir::TemplateIR); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | fn check_template_node(&mut self, node: &nargo_ir::TemplateNodeIR); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | fn check_element(&mut self, element: &nargo_ir::ElementIR); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | fn check_attribute(&mut self, attr: &nargo_ir::AttributeIR); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | fn check_if_node(&mut self, if_node: &nargo_ir::IfNodeIR); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | fn check_for_node(&mut self, for_node: &nargo_ir::ForNodeIR); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | fn check_interpolation(&mut self, interpolation: &nargo_ir::ExpressionIR); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TemplateChecker` is never used [INFO] [stdout] --> src/modules/template.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait TemplateChecker { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for the crate [INFO] [stdout] --> src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / #![warn(missing_docs)] [INFO] [stdout] 2 | | [INFO] [stdout] 3 | | use console; [INFO] [stdout] 4 | | use glob; [INFO] [stdout] ... | [INFO] [stdout] 2055 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | #![warn(missing_docs)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a variant [INFO] [stdout] --> src/modules/types.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | Void, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a variant [INFO] [stdout] --> src/modules/types.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | Never, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a variant [INFO] [stdout] --> src/modules/types.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | Unknown, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a variant [INFO] [stdout] --> src/modules/types.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | Number, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a variant [INFO] [stdout] --> src/modules/types.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a variant [INFO] [stdout] --> src/modules/types.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 84 | Boolean, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a variant [INFO] [stdout] --> src/modules/types.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 85 | Symbol, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a variant [INFO] [stdout] --> src/modules/types.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | BigInt, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a variant [INFO] [stdout] --> src/modules/types.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | Object(HashMap), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a variant [INFO] [stdout] --> src/modules/types.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | Function(Vec, Box), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "d4d9ce2d6aa8bf0fc5566f2a242b2279174f32ee36cd0c30ce0d291780c521ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d4d9ce2d6aa8bf0fc5566f2a242b2279174f32ee36cd0c30ce0d291780c521ee", kill_on_drop: false }` [INFO] [stdout] d4d9ce2d6aa8bf0fc5566f2a242b2279174f32ee36cd0c30ce0d291780c521ee