[INFO] cloning repository https://github.com/lgnixai/nice [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lgnixai/nice" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flgnixai%2Fnice", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flgnixai%2Fnice'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b5e63befaeaf673b3caf0235af729aff9fcd6f49 [INFO] checking lgnixai/nice against try#d8a5ee01b913730aca7ab44c72c8f2722c0533ff for pr-139022 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flgnixai%2Fnice" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/lgnixai/nice on toolchain d8a5ee01b913730aca7ab44c72c8f2722c0533ff [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d8a5ee01b913730aca7ab44c72c8f2722c0533ff" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/lgnixai/nice [INFO] finished tweaking git repo https://github.com/lgnixai/nice [INFO] tweaked toml for git repo https://github.com/lgnixai/nice written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/lgnixai/nice 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" "+d8a5ee01b913730aca7ab44c72c8f2722c0533ff" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+d8a5ee01b913730aca7ab44c72c8f2722c0533ff" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f06fc11204be269d7af04e956874a08b09ff7198006c2b86c08f4dec14b004e7 [INFO] running `Command { std: "docker" "start" "-a" "f06fc11204be269d7af04e956874a08b09ff7198006c2b86c08f4dec14b004e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f06fc11204be269d7af04e956874a08b09ff7198006c2b86c08f4dec14b004e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f06fc11204be269d7af04e956874a08b09ff7198006c2b86c08f4dec14b004e7", kill_on_drop: false }` [INFO] [stdout] f06fc11204be269d7af04e956874a08b09ff7198006c2b86c08f4dec14b004e7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+d8a5ee01b913730aca7ab44c72c8f2722c0533ff" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0b91fe311500cc8981fca92a784faac5d9d44924c858981ae912a136bebf9cf2 [INFO] running `Command { std: "docker" "start" "-a" "0b91fe311500cc8981fca92a784faac5d9d44924c858981ae912a136bebf9cf2", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling serde v1.0.208 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking yansi v0.5.1 [INFO] [stderr] Checking regex-syntax v0.8.4 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking bytecount v0.6.8 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling libc v0.2.157 [INFO] [stderr] Checking colored v2.1.0 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Checking owo-colors v4.0.0 [INFO] [stderr] Checking similar v2.6.0 [INFO] [stderr] Checking safer_owning_ref v0.5.0 [INFO] [stderr] Checking linked-hash-map v0.5.6 [INFO] [stderr] Checking diff v0.1.13 [INFO] [stderr] Compiling indoc v2.0.5 [INFO] [stderr] Checking ariadne v0.1.5 [INFO] [stderr] Checking pretty_assertions v1.4.0 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking quote v1.0.36 [INFO] [stderr] Checking syn v2.0.75 [INFO] [stderr] Checking console v0.15.8 [INFO] [stderr] Checking insta v1.39.0 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Checking nom_locate v4.2.0 [INFO] [stderr] Checking darling_core v0.20.10 [INFO] [stderr] Checking regex v1.10.6 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling serde_derive v1.0.208 [INFO] [stderr] Compiling darling_macro v0.20.10 [INFO] [stderr] Compiling darling v0.20.10 [INFO] [stderr] Compiling macro v0.1.0 (/opt/rustwide/workdir/crates/macro) [INFO] [stderr] Checking position v0.1.0 (/opt/rustwide/workdir/crates/position) [INFO] [stderr] Checking ast v0.1.0 (/opt/rustwide/workdir/crates/ast) [INFO] [stdout] warning: unused import: `ForeignImport` [INFO] [stdout] --> crates/ast/src/ast/main.rs:2:79 [INFO] [stdout] | [INFO] [stdout] 2 | function_definition::FunctionDefinition, type_definition::TypeDefinition, ForeignImport, Import, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `foreign_export::ForeignExport` and `lambda::Lambda` [INFO] [stdout] --> crates/ast/src/ast/variable_definition.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{foreign_export::ForeignExport, lambda::Lambda}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> crates/ast/src/ast/node.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Block`, `ForeignExport`, `FunctionDefinition`, and `Lambda` [INFO] [stdout] --> crates/ast/src/ast/node.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{Block, Comment, Expression, ForeignExport, FunctionDefinition, Identifier, Import, Lambda, NodeId, Statement, VariableDefinit... [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ResolutionMap` and `TraitSolver` [INFO] [stdout] --> crates/ast/src/ast/node.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::ast::utils::{ResolutionMap, TraitSolver}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `expression::*` [INFO] [stdout] --> crates/ast/src/ast.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | pub use expression::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ForeignImport` [INFO] [stdout] --> crates/ast/src/ast/main.rs:2:79 [INFO] [stdout] | [INFO] [stdout] 2 | function_definition::FunctionDefinition, type_definition::TypeDefinition, ForeignImport, Import, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `foreign_export::ForeignExport` and `lambda::Lambda` [INFO] [stdout] --> crates/ast/src/ast/variable_definition.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{foreign_export::ForeignExport, lambda::Lambda}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> crates/ast/src/ast/node.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Block`, `ForeignExport`, `FunctionDefinition`, and `Lambda` [INFO] [stdout] --> crates/ast/src/ast/node.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{Block, Comment, Expression, ForeignExport, FunctionDefinition, Identifier, Import, Lambda, NodeId, Statement, VariableDefinit... [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ResolutionMap` and `TraitSolver` [INFO] [stdout] --> crates/ast/src/ast/node.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::ast::utils::{ResolutionMap, TraitSolver}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `expression::*` [INFO] [stdout] --> crates/ast/src/ast.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | pub use expression::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `type_definitions` is never read [INFO] [stdout] --> crates/ast/src/ast/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Main { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 9 | type_definitions: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Main` has derived impls for the traits `Debug` and `Clone`, 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: field `type_definitions` is never read [INFO] [stdout] --> crates/ast/src/ast/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Main { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 9 | type_definitions: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Main` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking parse v0.1.0 (/opt/rustwide/workdir/crates/parse) [INFO] [stdout] warning: unused imports: `BTreeMap` and `HashMap` [INFO] [stdout] --> crates/parse/src/input.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{BTreeMap, HashMap}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ast::For::In` [INFO] [stdout] --> crates/parse/src/input.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use ast::For::In; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ast::NodeId` [INFO] [stdout] --> crates/parse/src/input.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use ast::NodeId; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> crates/parse/src/input.rs:246:42 [INFO] [stdout] | [INFO] [stdout] 244 | pub fn spaced<'a, F, O>(mut parser: F) -> impl FnMut(Input<'a>) -> PineResult [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] 245 | where [INFO] [stdout] 246 | F: FnMut(Input<'a>) -> PineResult, [INFO] [stdout] | ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> crates/parse/src/input.rs:244:78 [INFO] [stdout] | [INFO] [stdout] 244 | pub fn spaced<'a, F, O>(mut parser: F) -> impl FnMut(Input<'a>) -> PineResult [INFO] [stdout] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> crates/parse/src/input.rs:260:42 [INFO] [stdout] | [INFO] [stdout] 258 | pub fn span<'a, F, O>(mut parser: F) -> impl FnMut(Input<'a>) -> PineResult< (Span, O)> [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] 259 | where [INFO] [stdout] 260 | F: FnMut(Input<'a>) -> PineResult< O>, [INFO] [stdout] | ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> crates/parse/src/input.rs:258:76 [INFO] [stdout] | [INFO] [stdout] 258 | pub fn span<'a, F, O>(mut parser: F) -> impl FnMut(Input<'a>) -> PineResult< (Span, O)> [INFO] [stdout] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::Err::Error` [INFO] [stdout] --> crates/parse/src/parsing/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use nom::Err::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::error::ErrorKind` [INFO] [stdout] --> crates/parse/src/parsing/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use nom::error::ErrorKind; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ast::Main` [INFO] [stdout] --> crates/parse/src/parsing/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use ast::Main; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Input` [INFO] [stdout] --> crates/parse/src/parsing/main.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::input::{Input, input}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::bytes::complete::tag` [INFO] [stdout] --> crates/parse/src/parsing/parse_statement.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use nom::bytes::complete::tag; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `eof` and `opt` [INFO] [stdout] --> crates/parse/src/parsing/parse_statement.rs:3:38 [INFO] [stdout] | [INFO] [stdout] 3 | use nom::combinator::{all_consuming, eof, into, map, opt}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `separated_list0` [INFO] [stdout] --> crates/parse/src/parsing/parse_statement.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | use nom::multi::{many0, separated_list0}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Module`, `Statement`, and `TypeDefinition` [INFO] [stdout] --> crates/parse/src/parsing/parse_statement.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | use ast::{Main, Module, Statement, Statements, TypeDefinition}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `function_definition` [INFO] [stdout] --> crates/parse/src/parsing/parse_statement.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{blank, function_definition, PineResult, parsing, record_definition}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Identifier` [INFO] [stdout] --> crates/parse/src/parsing/parse_import.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use ast::{Identifier, Import}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `alpha1` and `success` [INFO] [stdout] --> crates/parse/src/parsing/parse_util.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | alpha1, alphanumeric1, char, digit1, multispace0, multispace1, none_of, one_of, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | all_consuming, cut, into, map, not, opt, peek, recognize, success, value, verify, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashSet` [INFO] [stdout] --> crates/parse/src/parsing/parse_util.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | use std::{collections::HashSet, str}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::branch::alt` [INFO] [stdout] --> crates/parse/src/parsing/parse_identifier.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use nom::branch::alt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `alpha1`, `alphanumeric1`, and `char` [INFO] [stdout] --> crates/parse/src/parsing/parse_identifier.rs:3:32 [INFO] [stdout] | [INFO] [stdout] 3 | use nom::character::complete::{alpha1, alphanumeric1, char, one_of}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `value` [INFO] [stdout] --> crates/parse/src/parsing/parse_identifier.rs:4:49 [INFO] [stdout] | [INFO] [stdout] 4 | use nom::combinator::{cut, map, opt, recognize, value, verify}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `many0_count` [INFO] [stdout] --> crates/parse/src/parsing/parse_identifier.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | use nom::multi::{many0_count, many1}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Span` [INFO] [stdout] --> crates/parse/src/parsing/parse_identifier.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::input::{Input, Span}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashSet` [INFO] [stdout] --> crates/parse/src/parsing/parse_identifier.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | use std::{collections::HashSet, str}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> crates/parse/src/parsing/parse_variable.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> crates/parse/src/parsing/parse_variable.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FunctionDefinition` and `Variable` [INFO] [stdout] --> crates/parse/src/parsing/parse_variable.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | use ast::{FunctionDefinition, Variable, VariableDefinition}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `input` [INFO] [stdout] --> crates/parse/src/parsing/parse_variable.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::input::{Input, input, spaced}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `token` and `type_alias` [INFO] [stdout] --> crates/parse/src/parsing/parse_variable.rs:11:35 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::parse_util::{position, token, type_alias}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `qualified_identifier` [INFO] [stdout] --> crates/parse/src/parsing/parse_variable.rs:14:58 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::parsing::parse_identifier::{parse_identifier, qualified_identifier}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `char`, `multispace0`, `opt`, `pair`, `preceded`, `recognize`, `take_while1`, and `tuple` [INFO] [stdout] --> crates/parse/src/parsing/parse_declaration_mode.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 3 | bytes::complete::{tag, take_while1}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 4 | character::complete::{char, multispace0}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^ [INFO] [stdout] 5 | combinator::{opt, recognize}, [INFO] [stdout] | ^^^ ^^^^^^^^^ [INFO] [stdout] 6 | sequence::{pair, preceded, tuple}, [INFO] [stdout] | ^^^^ ^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::bytes::complete::take_while` [INFO] [stdout] --> crates/parse/src/parsing/parse_declaration_mode.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use nom::bytes::complete::take_while; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::character::complete::not_line_ending` [INFO] [stdout] --> crates/parse/src/parsing/parse_declaration_mode.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use nom::character::complete::not_line_ending; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::sequence::terminated` [INFO] [stdout] --> crates/parse/src/parsing/parse_declaration_mode.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use nom::sequence::terminated; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `char`, `multispace0`, `opt`, `pair`, `recognize`, `take_while1`, and `tuple` [INFO] [stdout] --> crates/parse/src/parsing/parse_data_type.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 3 | bytes::complete::{tag, take_while1}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 4 | character::complete::{char, multispace0}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^ [INFO] [stdout] 5 | combinator::{opt, recognize}, [INFO] [stdout] | ^^^ ^^^^^^^^^ [INFO] [stdout] 6 | sequence::{pair, preceded, tuple}, [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::bytes::complete::take_while` [INFO] [stdout] --> crates/parse/src/parsing/parse_data_type.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use nom::bytes::complete::take_while; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::character::complete::not_line_ending` [INFO] [stdout] --> crates/parse/src/parsing/parse_data_type.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use nom::character::complete::not_line_ending; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> crates/parse/src/parsing/parse_function.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::branch::alt` [INFO] [stdout] --> crates/parse/src/parsing/parse_function.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use nom::branch::alt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `one_of` and `space1` [INFO] [stdout] --> crates/parse/src/parsing/parse_function.rs:5:45 [INFO] [stdout] | [INFO] [stdout] 5 | use nom::character::complete::{line_ending, one_of, space0, space1}; [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cut`, `recognize`, and `verify` [INFO] [stdout] --> crates/parse/src/parsing/parse_function.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | use nom::combinator::{cut, map, opt, recognize, verify}; [INFO] [stdout] | ^^^ ^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::error::context` [INFO] [stdout] --> crates/parse/src/parsing/parse_function.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use nom::error::context; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::error_position` [INFO] [stdout] --> crates/parse/src/parsing/parse_function.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use nom::error_position; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `separated_list0` [INFO] [stdout] --> crates/parse/src/parsing/parse_function.rs:9:25 [INFO] [stdout] | [INFO] [stdout] 9 | use nom::multi::{many1, separated_list0, separated_list1}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `LocatedSpan` and `position` [INFO] [stdout] --> crates/parse/src/parsing/parse_function.rs:11:18 [INFO] [stdout] | [INFO] [stdout] 11 | use nom_locate::{LocatedSpan, position}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Block`, `FunctionDefinition`, `Identifier`, `NodeId`, `Parameter`, and `Statement` [INFO] [stdout] --> crates/parse/src/parsing/parse_function.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | use ast::{Block, Body, FunctionDecl, FunctionDefinition, Identifier, NodeId, Parameter, Statement}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^ ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Span` and `input` [INFO] [stdout] --> crates/parse/src/parsing/parse_function.rs:13:27 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::input::{Input, input, Span}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sign` [INFO] [stdout] --> crates/parse/src/parsing/parse_function.rs:14:37 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::{parse_util, PineResult, sign, statement}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::parse_statement::parse_statement` [INFO] [stdout] --> crates/parse/src/parsing/parse_function.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::parse_statement::parse_statement; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> crates/parse/src/parsing/parse_block.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `line_ending` [INFO] [stdout] --> crates/parse/src/parsing/parse_block.rs:2:32 [INFO] [stdout] | [INFO] [stdout] 2 | use nom::character::complete::{line_ending, space1}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::combinator::map` [INFO] [stdout] --> crates/parse/src/parsing/parse_block.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use nom::combinator::map; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `many1` and `separated_list1` [INFO] [stdout] --> crates/parse/src/parsing/parse_block.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | use nom::multi::{many1, separated_list1}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::sequence::preceded` [INFO] [stdout] --> crates/parse/src/parsing/parse_block.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use nom::sequence::preceded; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::parse` [INFO] [stdout] --> crates/parse/src/parsing.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | use crate::parse; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::parser::DiagnosticKind::NoError` [INFO] [stdout] --> crates/parse/src/parser/diagnostic.rs:117:5 [INFO] [stdout] | [INFO] [stdout] 117 | use crate::parser::DiagnosticKind::NoError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::error::VerboseError` [INFO] [stdout] --> crates/parse/src/parser/diagnostics_list.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use nom::error::VerboseError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> crates/parse/src/parser/diagnostics_list.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | use log::{trace, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::input::Input` [INFO] [stdout] --> crates/parse/src/parser/diagnostics_list.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::input::Input; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Spaned` [INFO] [stdout] --> crates/parse/src/parser/diagnostics_list.rs:7:33 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::parser::{SourceFile, Spaned}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `source_file::*` [INFO] [stdout] --> crates/parse/src/parser.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use source_file::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private item shadows public glob re-export [INFO] [stdout] --> crates/parse/src/parser.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use crate::parser::config::Config; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the name `Config` in the type namespace is supposed to be publicly re-exported here [INFO] [stdout] --> crates/parse/src/parser.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use config::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] note: but the private item here shadows it [INFO] [stdout] --> crates/parse/src/parser.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use crate::parser::config::Config; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(hidden_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private item shadows public glob re-export [INFO] [stdout] --> crates/parse/src/parser.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | use crate::parser::diagnostics_list::Diagnostics; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the name `Diagnostics` in the type namespace is supposed to be publicly re-exported here [INFO] [stdout] --> crates/parse/src/parser.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use diagnostics_list::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: but the private item here shadows it [INFO] [stdout] --> crates/parse/src/parser.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | use crate::parser::diagnostics_list::Diagnostics; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `struct_type::*` [INFO] [stdout] --> crates/parse/src/ty/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use struct_type::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes::complete::take_while1` [INFO] [stdout] --> crates/parse/src/engine/tt.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | bytes::complete::take_while1, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> crates/parse/src/engine/eval_ast.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> crates/parse/src/engine/eval_ast.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str` [INFO] [stdout] --> crates/parse/src/util.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::str; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> crates/parse/src/util.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::Utf8Error` [INFO] [stdout] --> crates/parse/src/util.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Utf8Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::input::Input` [INFO] [stdout] --> crates/parse/src/util.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::input::Input; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> crates/parse/src/lib.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use self::parsing::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the name `position` in the value namespace is first re-exported here [INFO] [stdout] 13 | pub use self::parser::*; [INFO] [stdout] 14 | pub use self::input::*; [INFO] [stdout] | -------------- but the name `position` in the value namespace is also re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private item shadows public glob re-export [INFO] [stdout] --> crates/parse/src/lib.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use input::input; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the name `input` in the value namespace is supposed to be publicly re-exported here [INFO] [stdout] --> crates/parse/src/lib.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub use self::input::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] note: but the private item here shadows it [INFO] [stdout] --> crates/parse/src/lib.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use input::input; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private item shadows public glob re-export [INFO] [stdout] --> crates/parse/src/lib.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use crate::input::Input; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the name `Input` in the type namespace is supposed to be publicly re-exported here [INFO] [stdout] --> crates/parse/src/lib.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub use self::input::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] note: but the private item here shadows it [INFO] [stdout] --> crates/parse/src/lib.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use crate::input::Input; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private item shadows public glob re-export [INFO] [stdout] --> crates/parse/src/lib.rs:23:25 [INFO] [stdout] | [INFO] [stdout] 23 | use crate::parse_util::{comments, module}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the name `comments` in the value namespace is supposed to be publicly re-exported here [INFO] [stdout] --> crates/parse/src/lib.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use self::parsing::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] note: but the private item here shadows it [INFO] [stdout] --> crates/parse/src/lib.rs:23:25 [INFO] [stdout] | [INFO] [stdout] 23 | use crate::parse_util::{comments, module}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private item shadows public glob re-export [INFO] [stdout] --> crates/parse/src/lib.rs:23:35 [INFO] [stdout] | [INFO] [stdout] 23 | use crate::parse_util::{comments, module}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the name `module` in the value namespace is supposed to be publicly re-exported here [INFO] [stdout] --> crates/parse/src/lib.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use self::parsing::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] note: but the private item here shadows it [INFO] [stdout] --> crates/parse/src/lib.rs:23:35 [INFO] [stdout] | [INFO] [stdout] 23 | use crate::parse_util::{comments, module}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::parsing::*` [INFO] [stdout] --> crates/parse/src/lib.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | pub use self::parsing::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BTreeMap` and `HashMap` [INFO] [stdout] --> crates/parse/src/input.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{BTreeMap, HashMap}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ast::For::In` [INFO] [stdout] --> crates/parse/src/input.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use ast::For::In; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ast::NodeId` [INFO] [stdout] --> crates/parse/src/input.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use ast::NodeId; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> crates/parse/src/input.rs:246:42 [INFO] [stdout] | [INFO] [stdout] 244 | pub fn spaced<'a, F, O>(mut parser: F) -> impl FnMut(Input<'a>) -> PineResult [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] 245 | where [INFO] [stdout] 246 | F: FnMut(Input<'a>) -> PineResult, [INFO] [stdout] | ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> crates/parse/src/input.rs:244:78 [INFO] [stdout] | [INFO] [stdout] 244 | pub fn spaced<'a, F, O>(mut parser: F) -> impl FnMut(Input<'a>) -> PineResult [INFO] [stdout] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> crates/parse/src/input.rs:260:42 [INFO] [stdout] | [INFO] [stdout] 258 | pub fn span<'a, F, O>(mut parser: F) -> impl FnMut(Input<'a>) -> PineResult< (Span, O)> [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] 259 | where [INFO] [stdout] 260 | F: FnMut(Input<'a>) -> PineResult< O>, [INFO] [stdout] | ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> crates/parse/src/input.rs:258:76 [INFO] [stdout] | [INFO] [stdout] 258 | pub fn span<'a, F, O>(mut parser: F) -> impl FnMut(Input<'a>) -> PineResult< (Span, O)> [INFO] [stdout] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::Err::Error` [INFO] [stdout] --> crates/parse/src/parsing/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use nom::Err::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::error::ErrorKind` [INFO] [stdout] --> crates/parse/src/parsing/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use nom::error::ErrorKind; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ast::Main` [INFO] [stdout] --> crates/parse/src/parsing/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use ast::Main; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Input` [INFO] [stdout] --> crates/parse/src/parsing/main.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::input::{Input, input}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::bytes::complete::tag` [INFO] [stdout] --> crates/parse/src/parsing/parse_statement.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use nom::bytes::complete::tag; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `eof` and `opt` [INFO] [stdout] --> crates/parse/src/parsing/parse_statement.rs:3:38 [INFO] [stdout] | [INFO] [stdout] 3 | use nom::combinator::{all_consuming, eof, into, map, opt}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `separated_list0` [INFO] [stdout] --> crates/parse/src/parsing/parse_statement.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | use nom::multi::{many0, separated_list0}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Module`, `Statement`, and `TypeDefinition` [INFO] [stdout] --> crates/parse/src/parsing/parse_statement.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | use ast::{Main, Module, Statement, Statements, TypeDefinition}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `function_definition` [INFO] [stdout] --> crates/parse/src/parsing/parse_statement.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{blank, function_definition, PineResult, parsing, record_definition}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Identifier` [INFO] [stdout] --> crates/parse/src/parsing/parse_import.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use ast::{Identifier, Import}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `alpha1` and `success` [INFO] [stdout] --> crates/parse/src/parsing/parse_util.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | alpha1, alphanumeric1, char, digit1, multispace0, multispace1, none_of, one_of, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | all_consuming, cut, into, map, not, opt, peek, recognize, success, value, verify, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashSet` [INFO] [stdout] --> crates/parse/src/parsing/parse_util.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | use std::{collections::HashSet, str}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::branch::alt` [INFO] [stdout] --> crates/parse/src/parsing/parse_identifier.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use nom::branch::alt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `alpha1`, `alphanumeric1`, and `char` [INFO] [stdout] --> crates/parse/src/parsing/parse_identifier.rs:3:32 [INFO] [stdout] | [INFO] [stdout] 3 | use nom::character::complete::{alpha1, alphanumeric1, char, one_of}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `value` [INFO] [stdout] --> crates/parse/src/parsing/parse_identifier.rs:4:49 [INFO] [stdout] | [INFO] [stdout] 4 | use nom::combinator::{cut, map, opt, recognize, value, verify}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `many0_count` [INFO] [stdout] --> crates/parse/src/parsing/parse_identifier.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | use nom::multi::{many0_count, many1}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Span` [INFO] [stdout] --> crates/parse/src/parsing/parse_identifier.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::input::{Input, Span}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashSet` [INFO] [stdout] --> crates/parse/src/parsing/parse_identifier.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | use std::{collections::HashSet, str}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> crates/parse/src/parsing/parse_variable.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> crates/parse/src/parsing/parse_variable.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FunctionDefinition` and `Variable` [INFO] [stdout] --> crates/parse/src/parsing/parse_variable.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | use ast::{FunctionDefinition, Variable, VariableDefinition}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `token` and `type_alias` [INFO] [stdout] --> crates/parse/src/parsing/parse_variable.rs:11:35 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::parse_util::{position, token, type_alias}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `qualified_identifier` [INFO] [stdout] --> crates/parse/src/parsing/parse_variable.rs:14:58 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::parsing::parse_identifier::{parse_identifier, qualified_identifier}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `char`, `multispace0`, `opt`, `pair`, `preceded`, `recognize`, `take_while1`, and `tuple` [INFO] [stdout] --> crates/parse/src/parsing/parse_declaration_mode.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 3 | bytes::complete::{tag, take_while1}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 4 | character::complete::{char, multispace0}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^ [INFO] [stdout] 5 | combinator::{opt, recognize}, [INFO] [stdout] | ^^^ ^^^^^^^^^ [INFO] [stdout] 6 | sequence::{pair, preceded, tuple}, [INFO] [stdout] | ^^^^ ^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::bytes::complete::take_while` [INFO] [stdout] --> crates/parse/src/parsing/parse_declaration_mode.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use nom::bytes::complete::take_while; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::character::complete::not_line_ending` [INFO] [stdout] --> crates/parse/src/parsing/parse_declaration_mode.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use nom::character::complete::not_line_ending; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::sequence::terminated` [INFO] [stdout] --> crates/parse/src/parsing/parse_declaration_mode.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use nom::sequence::terminated; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `char`, `multispace0`, `opt`, `pair`, `recognize`, `take_while1`, and `tuple` [INFO] [stdout] --> crates/parse/src/parsing/parse_data_type.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 3 | bytes::complete::{tag, take_while1}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 4 | character::complete::{char, multispace0}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^ [INFO] [stdout] 5 | combinator::{opt, recognize}, [INFO] [stdout] | ^^^ ^^^^^^^^^ [INFO] [stdout] 6 | sequence::{pair, preceded, tuple}, [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::bytes::complete::take_while` [INFO] [stdout] --> crates/parse/src/parsing/parse_data_type.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use nom::bytes::complete::take_while; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::character::complete::not_line_ending` [INFO] [stdout] --> crates/parse/src/parsing/parse_data_type.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use nom::character::complete::not_line_ending; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> crates/parse/src/parsing/parse_function.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::branch::alt` [INFO] [stdout] --> crates/parse/src/parsing/parse_function.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use nom::branch::alt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `one_of` and `space1` [INFO] [stdout] --> crates/parse/src/parsing/parse_function.rs:5:45 [INFO] [stdout] | [INFO] [stdout] 5 | use nom::character::complete::{line_ending, one_of, space0, space1}; [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cut`, `recognize`, and `verify` [INFO] [stdout] --> crates/parse/src/parsing/parse_function.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | use nom::combinator::{cut, map, opt, recognize, verify}; [INFO] [stdout] | ^^^ ^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::error::context` [INFO] [stdout] --> crates/parse/src/parsing/parse_function.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use nom::error::context; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::error_position` [INFO] [stdout] --> crates/parse/src/parsing/parse_function.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use nom::error_position; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `separated_list0` [INFO] [stdout] --> crates/parse/src/parsing/parse_function.rs:9:25 [INFO] [stdout] | [INFO] [stdout] 9 | use nom::multi::{many1, separated_list0, separated_list1}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `LocatedSpan` and `position` [INFO] [stdout] --> crates/parse/src/parsing/parse_function.rs:11:18 [INFO] [stdout] | [INFO] [stdout] 11 | use nom_locate::{LocatedSpan, position}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Block`, `FunctionDefinition`, `Identifier`, `NodeId`, `Parameter`, and `Statement` [INFO] [stdout] --> crates/parse/src/parsing/parse_function.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | use ast::{Block, Body, FunctionDecl, FunctionDefinition, Identifier, NodeId, Parameter, Statement}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^ ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Span` [INFO] [stdout] --> crates/parse/src/parsing/parse_function.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::input::{Input, input, Span}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sign` [INFO] [stdout] --> crates/parse/src/parsing/parse_function.rs:14:37 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::{parse_util, PineResult, sign, statement}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::parse_statement::parse_statement` [INFO] [stdout] --> crates/parse/src/parsing/parse_function.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::parse_statement::parse_statement; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> crates/parse/src/parsing/parse_block.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `line_ending` [INFO] [stdout] --> crates/parse/src/parsing/parse_block.rs:2:32 [INFO] [stdout] | [INFO] [stdout] 2 | use nom::character::complete::{line_ending, space1}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::combinator::map` [INFO] [stdout] --> crates/parse/src/parsing/parse_block.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use nom::combinator::map; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `many1` and `separated_list1` [INFO] [stdout] --> crates/parse/src/parsing/parse_block.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | use nom::multi::{many1, separated_list1}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::sequence::preceded` [INFO] [stdout] --> crates/parse/src/parsing/parse_block.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use nom::sequence::preceded; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::parse` [INFO] [stdout] --> crates/parse/src/parsing.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | use crate::parse; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> crates/parse/src/parsing.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ast::*` [INFO] [stdout] --> crates/parse/src/parsing.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | use ast::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Position` and `test::PositionFake` [INFO] [stdout] --> crates/parse/src/parsing.rs:37:20 [INFO] [stdout] | [INFO] [stdout] 37 | use position::{test::PositionFake, Position}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::input::input` [INFO] [stdout] --> crates/parse/src/parsing.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | use crate::input::input; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::parse_util::expression` [INFO] [stdout] --> crates/parse/src/parsing.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | use crate::parse_util::expression; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::parser::DiagnosticKind::NoError` [INFO] [stdout] --> crates/parse/src/parser/diagnostic.rs:117:5 [INFO] [stdout] | [INFO] [stdout] 117 | use crate::parser::DiagnosticKind::NoError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::error::VerboseError` [INFO] [stdout] --> crates/parse/src/parser/diagnostics_list.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use nom::error::VerboseError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> crates/parse/src/parser/diagnostics_list.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | use log::{trace, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::input::Input` [INFO] [stdout] --> crates/parse/src/parser/diagnostics_list.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::input::Input; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Spaned` [INFO] [stdout] --> crates/parse/src/parser/diagnostics_list.rs:7:33 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::parser::{SourceFile, Spaned}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `source_file::*` [INFO] [stdout] --> crates/parse/src/parser.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use source_file::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private item shadows public glob re-export [INFO] [stdout] --> crates/parse/src/parser.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use crate::parser::config::Config; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the name `Config` in the type namespace is supposed to be publicly re-exported here [INFO] [stdout] --> crates/parse/src/parser.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use config::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] note: but the private item here shadows it [INFO] [stdout] --> crates/parse/src/parser.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use crate::parser::config::Config; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(hidden_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private item shadows public glob re-export [INFO] [stdout] --> crates/parse/src/parser.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | use crate::parser::diagnostics_list::Diagnostics; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the name `Diagnostics` in the type namespace is supposed to be publicly re-exported here [INFO] [stdout] --> crates/parse/src/parser.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use diagnostics_list::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: but the private item here shadows it [INFO] [stdout] --> crates/parse/src/parser.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | use crate::parser::diagnostics_list::Diagnostics; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `struct_type::*` [INFO] [stdout] --> crates/parse/src/ty/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use struct_type::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes::complete::take_while1` [INFO] [stdout] --> crates/parse/src/engine/tt.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | bytes::complete::take_while1, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> crates/parse/src/engine/eval_ast.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str` [INFO] [stdout] --> crates/parse/src/util.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::str; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> crates/parse/src/util.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::Utf8Error` [INFO] [stdout] --> crates/parse/src/util.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Utf8Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::input::Input` [INFO] [stdout] --> crates/parse/src/util.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::input::Input; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> crates/parse/src/lib.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use self::parsing::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the name `position` in the value namespace is first re-exported here [INFO] [stdout] 13 | pub use self::parser::*; [INFO] [stdout] 14 | pub use self::input::*; [INFO] [stdout] | -------------- but the name `position` in the value namespace is also re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private item shadows public glob re-export [INFO] [stdout] --> crates/parse/src/lib.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use input::input; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the name `input` in the value namespace is supposed to be publicly re-exported here [INFO] [stdout] --> crates/parse/src/lib.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub use self::input::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] note: but the private item here shadows it [INFO] [stdout] --> crates/parse/src/lib.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use input::input; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private item shadows public glob re-export [INFO] [stdout] --> crates/parse/src/lib.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use crate::input::Input; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the name `Input` in the type namespace is supposed to be publicly re-exported here [INFO] [stdout] --> crates/parse/src/lib.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub use self::input::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] note: but the private item here shadows it [INFO] [stdout] --> crates/parse/src/lib.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use crate::input::Input; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private item shadows public glob re-export [INFO] [stdout] --> crates/parse/src/lib.rs:23:25 [INFO] [stdout] | [INFO] [stdout] 23 | use crate::parse_util::{comments, module}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the name `comments` in the value namespace is supposed to be publicly re-exported here [INFO] [stdout] --> crates/parse/src/lib.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use self::parsing::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] note: but the private item here shadows it [INFO] [stdout] --> crates/parse/src/lib.rs:23:25 [INFO] [stdout] | [INFO] [stdout] 23 | use crate::parse_util::{comments, module}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private item shadows public glob re-export [INFO] [stdout] --> crates/parse/src/lib.rs:23:35 [INFO] [stdout] | [INFO] [stdout] 23 | use crate::parse_util::{comments, module}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the name `module` in the value namespace is supposed to be publicly re-exported here [INFO] [stdout] --> crates/parse/src/lib.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use self::parsing::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] note: but the private item here shadows it [INFO] [stdout] --> crates/parse/src/lib.rs:23:35 [INFO] [stdout] | [INFO] [stdout] 23 | use crate::parse_util::{comments, module}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::parsing::*` [INFO] [stdout] --> crates/parse/src/lib.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | pub use self::parsing::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ast::*` [INFO] [stdout] --> crates/parse/src/lib.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | use ast::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Position` and `test::PositionFake` [INFO] [stdout] --> crates/parse/src/lib.rs:54:20 [INFO] [stdout] | [INFO] [stdout] 54 | use position::{test::PositionFake, Position}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fragment` is never read [INFO] [stdout] --> crates/parse/src/input.rs:171:9 [INFO] [stdout] | [INFO] [stdout] 171 | fragment = &fragment[trim_start..(len - trim_end)]; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fragment` is never read [INFO] [stdout] --> crates/parse/src/input.rs:171:9 [INFO] [stdout] | [INFO] [stdout] 171 | fragment = &fragment[trim_start..(len - trim_end)]; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/parse/src/parsing/parse_identifier.rs:26:25 [INFO] [stdout] | [INFO] [stdout] 26 | fn unchecked_identifier(mut input: Input) -> PineResult { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/parse/src/parsing/parse_identifier.rs:26:25 [INFO] [stdout] | [INFO] [stdout] 26 | fn unchecked_identifier(mut input: Input) -> PineResult { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input23` [INFO] [stdout] --> crates/parse/src/parsing/parse_function.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | let input23 = r#"geom_average(x, y) => [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_input23` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input23` [INFO] [stdout] --> crates/parse/src/parsing/parse_function.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | let input23 = r#" add abc@ "#; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_input23` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/parse/src/parser/diagnostic.rs:174:13 [INFO] [stdout] | [INFO] [stdout] 174 | let mut span=Spaned::new(PathBuf::from(filename),span1.start,span1.end); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `files` [INFO] [stdout] --> crates/parse/src/parser/diagnostics_list.rs:48:25 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn print(&self, files: &HashMap) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_files` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/parse/src/parser.rs:266:9 [INFO] [stdout] | [INFO] [stdout] 266 | let mut file = SourceFile::from_file(file_path.clone()).unwrap(); // FIXME: ERRORS ARE swallowed HERE [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> crates/parse/src/engine/eval_ast.rs:41:48 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn parse_str(parsing_ctx: &mut ParsingCtx, config: &Config) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/parse/src/engine/eval_ast.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let mut ast = parser::parse(parsing_ctx)?; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/parse/src/parser/diagnostic.rs:174:13 [INFO] [stdout] | [INFO] [stdout] 174 | let mut span=Spaned::new(PathBuf::from(filename),span1.start,span1.end); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_node_id` is never used [INFO] [stdout] --> crates/parse/src/parsing/parse_node.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn parse_node_id(input: Input) -> PineResult< NodeId> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_block_indent_plus_one` is never used [INFO] [stdout] --> crates/parse/src/parsing/parse_block.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn parse_block_indent_plus_one(input: Input) -> PineResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `structs` and `allow_newline_dot` are never read [INFO] [stdout] --> crates/parse/src/parser.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct ParserCtx { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 43 | structs: HashMap, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 44 | pub config: Config, [INFO] [stdout] 45 | allow_newline_dot: Vec<()>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParserCtx` 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: method `extend` is never used [INFO] [stdout] --> crates/parse/src/parser/scopes.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 25 | / impl Scopes [INFO] [stdout] 26 | | where [INFO] [stdout] 27 | | K: Default + Hash + Eq + Clone, [INFO] [stdout] 28 | | T: Clone, [INFO] [stdout] | |_____________- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn extend(&mut self, other: &Scope) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_tuple` is never used [INFO] [stdout] --> crates/parse/src/engine/tt.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn parse_tuple(input: &str) -> IResult<&str, (&str, &str)> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build` is never used [INFO] [stdout] --> crates/parse/src/engine/run.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn build(input: String, config: Config) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run` is never used [INFO] [stdout] --> crates/parse/src/engine/run.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn run(path: &str, input: String, config: Config) -> (i64, String) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> crates/parse/src/input.rs:233:18 [INFO] [stdout] | [INFO] [stdout] 233 | let path = "".clone(); // 克隆 path 避免所有权转移 [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> crates/parse/src/parser/source_file.rs:47:46 [INFO] [stdout] | [INFO] [stdout] 47 | let mut mod_path = PathBuf::from(path.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> crates/parse/src/parser/source_file.rs:54:42 [INFO] [stdout] | [INFO] [stdout] 54 | file_path: PathBuf::from(path.clone()), [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `files` [INFO] [stdout] --> crates/parse/src/parser/diagnostics_list.rs:48:25 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn print(&self, files: &HashMap) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_files` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/parse/src/parser.rs:266:9 [INFO] [stdout] | [INFO] [stdout] 266 | let mut file = SourceFile::from_file(file_path.clone()).unwrap(); // FIXME: ERRORS ARE swallowed HERE [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> crates/parse/src/engine/eval_ast.rs:41:48 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn parse_str(parsing_ctx: &mut ParsingCtx, config: &Config) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/parse/src/engine/eval_ast.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let mut ast = parser::parse(parsing_ctx)?; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_node_id` is never used [INFO] [stdout] --> crates/parse/src/parsing/parse_node.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn parse_node_id(input: Input) -> PineResult< NodeId> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_block_indent_plus_one` is never used [INFO] [stdout] --> crates/parse/src/parsing/parse_block.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn parse_block_indent_plus_one(input: Input) -> PineResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `structs` and `allow_newline_dot` are never read [INFO] [stdout] --> crates/parse/src/parser.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct ParserCtx { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 43 | structs: HashMap, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 44 | pub config: Config, [INFO] [stdout] 45 | allow_newline_dot: Vec<()>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParserCtx` 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 `scopes` is never read [INFO] [stdout] --> crates/parse/src/parser/scopes.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Scopes [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | pub scopes: Vec>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Scopes` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get`, `add`, `extend`, `push`, and `pop` are never used [INFO] [stdout] --> crates/parse/src/parser/scopes.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 25 | / impl Scopes [INFO] [stdout] 26 | | where [INFO] [stdout] 27 | | K: Default + Hash + Eq + Clone, [INFO] [stdout] 28 | | T: Clone, [INFO] [stdout] | |_____________- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn get(&self, s: K) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn add(&mut self, s: K, val: T) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn extend(&mut self, other: &Scope) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn push(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn pop(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `accepted_operator_chars` is never used [INFO] [stdout] --> crates/parse/src/engine/tt.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn accepted_operator_chars() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_operator` is never used [INFO] [stdout] --> crates/parse/src/engine/tt.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn parse_operator(input: &str) -> IResult<&str, &str> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_tuple` is never used [INFO] [stdout] --> crates/parse/src/engine/tt.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn parse_tuple(input: &str) -> IResult<&str, (&str, &str)> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build` is never used [INFO] [stdout] --> crates/parse/src/engine/run.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn build(input: String, config: Config) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run` is never used [INFO] [stdout] --> crates/parse/src/engine/run.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn run(path: &str, input: String, config: Config) -> (i64, String) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> crates/parse/src/input.rs:233:18 [INFO] [stdout] | [INFO] [stdout] 233 | let path = "".clone(); // 克隆 path 避免所有权转移 [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> crates/parse/src/parser/source_file.rs:47:46 [INFO] [stdout] | [INFO] [stdout] 47 | let mut mod_path = PathBuf::from(path.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> crates/parse/src/parser/source_file.rs:54:42 [INFO] [stdout] | [INFO] [stdout] 54 | file_path: PathBuf::from(path.clone()), [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking runtime v0.0.0 (/opt/rustwide/workdir/crates/runtime) [INFO] [stdout] error[E0412]: cannot find type `Literal` in this scope [INFO] [stdout] --> crates/runtime/src/value/mod.rs:899:11 [INFO] [stdout] | [INFO] [stdout] 899 | impl From for Value { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 899 | impl From for Value { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Literal` in this scope [INFO] [stdout] --> crates/runtime/src/value/mod.rs:900:22 [INFO] [stdout] | [INFO] [stdout] 900 | fn from(literal: Literal) -> Self { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Block` [INFO] [stdout] --> crates/runtime/src/lib.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | use ast::{Block, Body, TopLevel}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `value::Value` [INFO] [stdout] --> crates/runtime/src/eval/expression/literal.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{value::Value, Runtime}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Statement` and `Statements` [INFO] [stdout] --> crates/runtime/src/eval/statement/mod.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use ast::{Statement, Statements, TopLevel}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ErrorCode` [INFO] [stdout] --> crates/runtime/src/eval/statement/variable.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | value::{ErrorCode, Value}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Runtime` [INFO] [stdout] --> crates/runtime/src/value/mod.rs:4:45 [INFO] [stdout] | [INFO] [stdout] 4 | use super::{environment::Scope, FArguments, Runtime}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Literal` in this scope [INFO] [stdout] --> crates/runtime/src/value/mod.rs:899:11 [INFO] [stdout] | [INFO] [stdout] 899 | impl From for Value { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 899 | impl From for Value { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Literal` in this scope [INFO] [stdout] --> crates/runtime/src/value/mod.rs:900:22 [INFO] [stdout] | [INFO] [stdout] 900 | fn from(literal: Literal) -> Self { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Block` [INFO] [stdout] --> crates/runtime/src/lib.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | use ast::{Block, Body, TopLevel}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `value::Value` [INFO] [stdout] --> crates/runtime/src/eval/expression/literal.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{value::Value, Runtime}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Statement` and `Statements` [INFO] [stdout] --> crates/runtime/src/eval/statement/mod.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use ast::{Statement, Statements, TopLevel}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ErrorCode` [INFO] [stdout] --> crates/runtime/src/eval/statement/variable.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | value::{ErrorCode, Value}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Runtime` [INFO] [stdout] --> crates/runtime/src/value/mod.rs:4:45 [INFO] [stdout] | [INFO] [stdout] 4 | use super::{environment::Scope, FArguments, Runtime}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0614]: type `ast::Expression` cannot be dereferenced [INFO] [stdout] --> crates/runtime/src/eval/expression/list.rs:16:52 [INFO] [stdout] | [INFO] [stdout] 16 | match self.eval_expression(**element) { [INFO] [stdout] | ^^^^^^^^^ can't be dereferenced [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0614]: type `ast::Expression` cannot be dereferenced [INFO] [stdout] --> crates/runtime/src/eval/expression/list.rs:22:52 [INFO] [stdout] | [INFO] [stdout] 22 | match self.eval_expression(**element) { [INFO] [stdout] | ^^^^^^^^^ can't be dereferenced [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `map` found for struct `Vec` in the current scope [INFO] [stdout] --> crates/runtime/src/eval/expression/list.rs:37:18 [INFO] [stdout] | [INFO] [stdout] 36 | / elements [INFO] [stdout] 37 | | .map(ArraySize::Dynamic, ArraySize::Fixed(size)), [INFO] [stdout] | | -^^^ `Vec` is not an iterator [INFO] [stdout] | |_________________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] help: call `.into_iter()` first [INFO] [stdout] | [INFO] [stdout] 37 | .into_iter().map(ArraySize::Dynamic, ArraySize::Fixed(size)), [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> crates/runtime/src/eval/statement/function.rs:27:16 [INFO] [stdout] | [INFO] [stdout] 27 | if let Some(body) = function.body { [INFO] [stdout] | ^^^^^^^^^^ ------------- this expression has type `ast::Body` [INFO] [stdout] | | [INFO] [stdout] | expected `Body`, found `Option<_>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `ast::Body` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0614]: type `ast::Expression` cannot be dereferenced [INFO] [stdout] --> crates/runtime/src/eval/expression/list.rs:16:52 [INFO] [stdout] | [INFO] [stdout] 16 | match self.eval_expression(**element) { [INFO] [stdout] | ^^^^^^^^^ can't be dereferenced [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0614]: type `ast::Expression` cannot be dereferenced [INFO] [stdout] --> crates/runtime/src/eval/expression/list.rs:22:52 [INFO] [stdout] | [INFO] [stdout] 22 | match self.eval_expression(**element) { [INFO] [stdout] | ^^^^^^^^^ can't be dereferenced [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `map` found for struct `Vec` in the current scope [INFO] [stdout] --> crates/runtime/src/eval/expression/list.rs:37:18 [INFO] [stdout] | [INFO] [stdout] 36 | / elements [INFO] [stdout] 37 | | .map(ArraySize::Dynamic, ArraySize::Fixed(size)), [INFO] [stdout] | | -^^^ `Vec` is not an iterator [INFO] [stdout] | |_________________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] help: call `.into_iter()` first [INFO] [stdout] | [INFO] [stdout] 37 | .into_iter().map(ArraySize::Dynamic, ArraySize::Fixed(size)), [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `wrap` found for struct `Span` in the current scope [INFO] [stdout] --> crates/runtime/src/eval/statement/function.rs:43:31 [INFO] [stdout] | [INFO] [stdout] 43 | Span::empty().wrap(Value::Function(Function { [INFO] [stdout] | --------------^^^^ method not found in `Span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `value::Function` has no field named `ty` [INFO] [stdout] --> crates/runtime/src/eval/statement/function.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 50 | ty: Type::Function(Type::Function), [INFO] [stdout] | ^^ `value::Function` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: all struct fields are already assigned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> crates/runtime/src/eval/statement/function.rs:27:16 [INFO] [stdout] | [INFO] [stdout] 27 | if let Some(body) = function.body { [INFO] [stdout] | ^^^^^^^^^^ ------------- this expression has type `ast::Body` [INFO] [stdout] | | [INFO] [stdout] | expected `Body`, found `Option<_>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `ast::Body` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `wrap` found for struct `Span` in the current scope [INFO] [stdout] --> crates/runtime/src/eval/statement/function.rs:43:31 [INFO] [stdout] | [INFO] [stdout] 43 | Span::empty().wrap(Value::Function(Function { [INFO] [stdout] | --------------^^^^ method not found in `Span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> crates/runtime/src/eval/statement/function.rs:50:40 [INFO] [stdout] | [INFO] [stdout] 50 | ty: Type::Function(Type::Function), [INFO] [stdout] | -------------- ^^^^^^^^^^^^^^ expected `Function`, found enum constructor [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `ast::types::Function` [INFO] [stdout] found enum constructor `fn(ast::types::Function) -> ast::types::Type {ast::types::Type::Function}` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/workdir/crates/ast/src/types/type_.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | Function(Function), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `value::Function` has no field named `ty` [INFO] [stdout] --> crates/runtime/src/eval/statement/function.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 50 | ty: Type::Function(Type::Function), [INFO] [stdout] | ^^ `value::Function` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: all struct fields are already assigned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> crates/runtime/src/eval/statement/variable.rs:17:46 [INFO] [stdout] | [INFO] [stdout] 17 | let (value_span, value) = if let Some(expression) = variable.value { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ -------------- this expression has type `ast::Expression` [INFO] [stdout] | | [INFO] [stdout] | expected `Expression`, found `Option<_>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `ast::Expression` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> crates/runtime/src/eval/statement/function.rs:50:40 [INFO] [stdout] | [INFO] [stdout] 50 | ty: Type::Function(Type::Function), [INFO] [stdout] | -------------- ^^^^^^^^^^^^^^ expected `Function`, found enum constructor [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `ast::types::Function` [INFO] [stdout] found enum constructor `fn(ast::types::Function) -> ast::types::Type {ast::types::Type::Function}` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/workdir/crates/ast/src/types/type_.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | Function(Function), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> crates/runtime/src/eval/statement/variable.rs:17:46 [INFO] [stdout] | [INFO] [stdout] 17 | let (value_span, value) = if let Some(expression) = variable.value { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ -------------- this expression has type `ast::Expression` [INFO] [stdout] | | [INFO] [stdout] | expected `Expression`, found `Option<_>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `ast::Expression` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> crates/runtime/src/eval/statement/mod.rs:18:69 [INFO] [stdout] | [INFO] [stdout] 18 | TopLevel::Variable(variable) => self.declare_variable(variable), [INFO] [stdout] | ---------------- ^^^^^^^^ expected `VariableStatement`, found `VariableDefinition` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> crates/runtime/src/eval/statement/variable.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn declare_variable(&mut self, variables: VariableStatement) -> Value { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ---------------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> crates/runtime/src/eval/statement/mod.rs:18:69 [INFO] [stdout] | [INFO] [stdout] 18 | TopLevel::Variable(variable) => self.declare_variable(variable), [INFO] [stdout] | ---------------- ^^^^^^^^ expected `VariableStatement`, found `VariableDefinition` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> crates/runtime/src/eval/statement/variable.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn declare_variable(&mut self, variables: VariableStatement) -> Value { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ---------------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `ast::types::Type: std::default::Default` is not satisfied [INFO] [stdout] --> crates/runtime/src/value/builders.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 46 | ty: Default::default(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the trait `std::default::Default` is not implemented for `ast::types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `ast::types::Type: std::default::Default` is not satisfied [INFO] [stdout] --> crates/runtime/src/value/builders.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 46 | ty: Default::default(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the trait `std::default::Default` is not implemented for `ast::types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `ty` on type `&value::Function` [INFO] [stdout] --> crates/runtime/src/value/mod.rs:591:26 [INFO] [stdout] | [INFO] [stdout] 591 | function.ty [INFO] [stdout] | ^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `visibility`, `overloads`, `is_async`, `is_static`, `name` ... and 2 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PredefinedType` [INFO] [stdout] --> crates/runtime/src/value/mod.rs:813:36 [INFO] [stdout] | [INFO] [stdout] 813 | .unwrap_or(PredefinedType::Any.into()) [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PredefinedType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `ty` on type `&value::Function` [INFO] [stdout] --> crates/runtime/src/value/mod.rs:591:26 [INFO] [stdout] | [INFO] [stdout] 591 | function.ty [INFO] [stdout] | ^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `visibility`, `overloads`, `is_async`, `is_static`, `name` ... and 2 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `UnionOrIntersectionOrPrimaryType` found for enum `ast::types::Type` in the current scope [INFO] [stdout] --> crates/runtime/src/value/mod.rs:818:30 [INFO] [stdout] | [INFO] [stdout] 818 | if let Type::UnionOrIntersectionOrPrimaryType( [INFO] [stdout] | ------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ variant or associated item not found in `Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PrimaryType` [INFO] [stdout] --> crates/runtime/src/value/mod.rs:824:21 [INFO] [stdout] | [INFO] [stdout] 824 | PrimaryType::ArrayType(Box::new(ty), *size).into() [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `PrimaryType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PredefinedType` [INFO] [stdout] --> crates/runtime/src/value/mod.rs:830:33 [INFO] [stdout] | [INFO] [stdout] 830 | Value::Number(_) => PredefinedType::Number.into(), [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PredefinedType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PredefinedType` [INFO] [stdout] --> crates/runtime/src/value/mod.rs:831:32 [INFO] [stdout] | [INFO] [stdout] 831 | Value::Float(_) => PredefinedType::Float.into(), [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PredefinedType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PredefinedType` [INFO] [stdout] --> crates/runtime/src/value/mod.rs:832:34 [INFO] [stdout] | [INFO] [stdout] 832 | Value::Boolean(_) => PredefinedType::Boolean.into(), [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PredefinedType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PredefinedType` [INFO] [stdout] --> crates/runtime/src/value/mod.rs:833:33 [INFO] [stdout] | [INFO] [stdout] 833 | Value::String(_) => PredefinedType::String.into(), [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PredefinedType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PredefinedType` [INFO] [stdout] --> crates/runtime/src/value/mod.rs:835:43 [INFO] [stdout] | [INFO] [stdout] 835 | Value::ArrowFunction(func) => PredefinedType::Any.into(), [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PredefinedType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PredefinedType` [INFO] [stdout] --> crates/runtime/src/value/mod.rs:850:28 [INFO] [stdout] | [INFO] [stdout] 850 | Value::Null => PredefinedType::Null.into(), [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PredefinedType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PredefinedType` [INFO] [stdout] --> crates/runtime/src/value/mod.rs:851:28 [INFO] [stdout] | [INFO] [stdout] 851 | Value::None => PredefinedType::Void.into(), [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PredefinedType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PredefinedType` [INFO] [stdout] --> crates/runtime/src/value/mod.rs:852:50 [INFO] [stdout] | [INFO] [stdout] 852 | Value::Error(span, code, message) => PredefinedType::Void.into(), [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PredefinedType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PrimaryType` [INFO] [stdout] --> crates/runtime/src/value/mod.rs:856:40 [INFO] [stdout] | [INFO] [stdout] 856 | Value::ClassInstance(_) => PrimaryType::ThisType.into(), [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `PrimaryType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PredefinedType` [INFO] [stdout] --> crates/runtime/src/value/mod.rs:813:36 [INFO] [stdout] | [INFO] [stdout] 813 | .unwrap_or(PredefinedType::Any.into()) [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PredefinedType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0026]: struct `NativeFunction` does not have a field named `ty` [INFO] [stdout] --> crates/runtime/src/lib.rs:92:21 [INFO] [stdout] | [INFO] [stdout] 92 | ty, [INFO] [stdout] | ^^ [INFO] [stdout] | | [INFO] [stdout] | struct `NativeFunction` does not have this field [INFO] [stdout] | help: `NativeFunction` has a field named `body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0026]: struct `value::Function` does not have a field named `ty` [INFO] [stdout] --> crates/runtime/src/lib.rs:101:21 [INFO] [stdout] | [INFO] [stdout] 101 | ty, [INFO] [stdout] | ^^ struct `value::Function` does not have this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `UnionOrIntersectionOrPrimaryType` found for enum `ast::types::Type` in the current scope [INFO] [stdout] --> crates/runtime/src/value/mod.rs:818:30 [INFO] [stdout] | [INFO] [stdout] 818 | if let Type::UnionOrIntersectionOrPrimaryType( [INFO] [stdout] | ------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ variant or associated item not found in `Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PrimaryType` [INFO] [stdout] --> crates/runtime/src/value/mod.rs:824:21 [INFO] [stdout] | [INFO] [stdout] 824 | PrimaryType::ArrayType(Box::new(ty), *size).into() [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `PrimaryType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PredefinedType` [INFO] [stdout] --> crates/runtime/src/value/mod.rs:830:33 [INFO] [stdout] | [INFO] [stdout] 830 | Value::Number(_) => PredefinedType::Number.into(), [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PredefinedType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PredefinedType` [INFO] [stdout] --> crates/runtime/src/value/mod.rs:831:32 [INFO] [stdout] | [INFO] [stdout] 831 | Value::Float(_) => PredefinedType::Float.into(), [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PredefinedType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PredefinedType` [INFO] [stdout] --> crates/runtime/src/value/mod.rs:832:34 [INFO] [stdout] | [INFO] [stdout] 832 | Value::Boolean(_) => PredefinedType::Boolean.into(), [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PredefinedType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PredefinedType` [INFO] [stdout] --> crates/runtime/src/value/mod.rs:833:33 [INFO] [stdout] | [INFO] [stdout] 833 | Value::String(_) => PredefinedType::String.into(), [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PredefinedType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PredefinedType` [INFO] [stdout] --> crates/runtime/src/value/mod.rs:835:43 [INFO] [stdout] | [INFO] [stdout] 835 | Value::ArrowFunction(func) => PredefinedType::Any.into(), [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PredefinedType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PredefinedType` [INFO] [stdout] --> crates/runtime/src/value/mod.rs:850:28 [INFO] [stdout] | [INFO] [stdout] 850 | Value::Null => PredefinedType::Null.into(), [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PredefinedType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PredefinedType` [INFO] [stdout] --> crates/runtime/src/value/mod.rs:851:28 [INFO] [stdout] | [INFO] [stdout] 851 | Value::None => PredefinedType::Void.into(), [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PredefinedType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PredefinedType` [INFO] [stdout] --> crates/runtime/src/value/mod.rs:852:50 [INFO] [stdout] | [INFO] [stdout] 852 | Value::Error(span, code, message) => PredefinedType::Void.into(), [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PredefinedType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PrimaryType` [INFO] [stdout] --> crates/runtime/src/value/mod.rs:856:40 [INFO] [stdout] | [INFO] [stdout] 856 | Value::ClassInstance(_) => PrimaryType::ThisType.into(), [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `PrimaryType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0026]: struct `NativeFunction` does not have a field named `ty` [INFO] [stdout] --> crates/runtime/src/lib.rs:92:21 [INFO] [stdout] | [INFO] [stdout] 92 | ty, [INFO] [stdout] | ^^ [INFO] [stdout] | | [INFO] [stdout] | struct `NativeFunction` does not have this field [INFO] [stdout] | help: `NativeFunction` has a field named `body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0026]: struct `value::Function` does not have a field named `ty` [INFO] [stdout] --> crates/runtime/src/lib.rs:101:21 [INFO] [stdout] | [INFO] [stdout] 101 | ty, [INFO] [stdout] | ^^ struct `value::Function` does not have this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `eval_statement` found for mutable reference `&mut Runtime` in the current scope [INFO] [stdout] --> crates/runtime/src/lib.rs:237:23 [INFO] [stdout] | [INFO] [stdout] 237 | 1 => self.eval_statement(body.stmts.remove(0)), [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `&mut Runtime` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `eval_statement` found for mutable reference `&mut Runtime` in the current scope [INFO] [stdout] --> crates/runtime/src/lib.rs:240:34 [INFO] [stdout] | [INFO] [stdout] 240 | let value = self.eval_statement(statement); [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `&mut Runtime` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `eval_statement` found for mutable reference `&mut Runtime` in the current scope [INFO] [stdout] --> crates/runtime/src/lib.rs:237:23 [INFO] [stdout] | [INFO] [stdout] 237 | 1 => self.eval_statement(body.stmts.remove(0)), [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `&mut Runtime` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `eval_statement` found for mutable reference `&mut Runtime` in the current scope [INFO] [stdout] --> crates/runtime/src/lib.rs:240:34 [INFO] [stdout] | [INFO] [stdout] 240 | let value = self.eval_statement(statement); [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `&mut Runtime` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/runtime/src/value/builders.rs:50:67 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn param, T: Into>(mut self, name: N, ty: T) -> Self { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ty` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/runtime/src/value/builders.rs:63:91 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn param_default, T: Into, V: Into>(mut self, name: N, ty: T, default: V) -> Self { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/runtime/src/value/builders.rs:76:45 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn returns>(mut self, ty: T) -> Self { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/runtime/src/value/builders.rs:76:35 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn returns>(mut self, ty: T) -> Self { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/runtime/src/value/builders.rs:50:67 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn param, T: Into>(mut self, name: N, ty: T) -> Self { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ty` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/runtime/src/value/builders.rs:63:91 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn param_default, T: Into, V: Into>(mut self, name: N, ty: T, default: V) -> Self { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/runtime/src/value/builders.rs:76:45 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn returns>(mut self, ty: T) -> Self { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/runtime/src/value/builders.rs:76:35 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn returns>(mut self, ty: T) -> Self { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> crates/runtime/src/lib.rs:305:30 [INFO] [stdout] | [INFO] [stdout] 305 | Value::Reference(path, scope) => todo!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scope` [INFO] [stdout] --> crates/runtime/src/lib.rs:305:36 [INFO] [stdout] | [INFO] [stdout] 305 | Value::Reference(path, scope) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_scope` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Literal` [INFO] [stdout] --> crates/runtime/src/value/mod.rs:905:13 [INFO] [stdout] | [INFO] [stdout] 905 | Literal::Boolean(boolean) => Value::Boolean(boolean.value), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Literal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `UnionOrIntersectionOrPrimaryType` [INFO] [stdout] --> crates/runtime/src/value/mod.rs:819:21 [INFO] [stdout] | [INFO] [stdout] 819 | UnionOrIntersectionOrPrimaryType::IntersectionOrPrimaryType( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `UnionOrIntersectionOrPrimaryType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IntersectionOrPrimaryType` [INFO] [stdout] --> crates/runtime/src/value/mod.rs:820:25 [INFO] [stdout] | [INFO] [stdout] 820 | IntersectionOrPrimaryType::PrimaryType(ty), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `IntersectionOrPrimaryType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Literal` [INFO] [stdout] --> crates/runtime/src/value/mod.rs:904:13 [INFO] [stdout] | [INFO] [stdout] 904 | Literal::Float(float) => Value::Float(float.value), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Literal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Literal` [INFO] [stdout] --> crates/runtime/src/value/mod.rs:903:13 [INFO] [stdout] | [INFO] [stdout] 903 | Literal::Number(number) => Value::Number(number.value), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Literal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Literal` [INFO] [stdout] --> crates/runtime/src/value/mod.rs:902:13 [INFO] [stdout] | [INFO] [stdout] 902 | Literal::String(string) => Value::String(string.value), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Literal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0026, E0277, E0308, E0412, E0433, E0560, E0599, E0609, E0614. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0026`. [INFO] [stdout] [INFO] [stderr] error: could not compile `runtime` (lib test) due to 35 previous errors; 11 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> crates/runtime/src/lib.rs:305:30 [INFO] [stdout] | [INFO] [stdout] 305 | Value::Reference(path, scope) => todo!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scope` [INFO] [stdout] --> crates/runtime/src/lib.rs:305:36 [INFO] [stdout] | [INFO] [stdout] 305 | Value::Reference(path, scope) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_scope` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Literal` [INFO] [stdout] --> crates/runtime/src/value/mod.rs:905:13 [INFO] [stdout] | [INFO] [stdout] 905 | Literal::Boolean(boolean) => Value::Boolean(boolean.value), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Literal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `UnionOrIntersectionOrPrimaryType` [INFO] [stdout] --> crates/runtime/src/value/mod.rs:819:21 [INFO] [stdout] | [INFO] [stdout] 819 | UnionOrIntersectionOrPrimaryType::IntersectionOrPrimaryType( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `UnionOrIntersectionOrPrimaryType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IntersectionOrPrimaryType` [INFO] [stdout] --> crates/runtime/src/value/mod.rs:820:25 [INFO] [stdout] | [INFO] [stdout] 820 | IntersectionOrPrimaryType::PrimaryType(ty), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `IntersectionOrPrimaryType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Literal` [INFO] [stdout] --> crates/runtime/src/value/mod.rs:904:13 [INFO] [stdout] | [INFO] [stdout] 904 | Literal::Float(float) => Value::Float(float.value), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Literal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Literal` [INFO] [stdout] --> crates/runtime/src/value/mod.rs:903:13 [INFO] [stdout] | [INFO] [stdout] 903 | Literal::Number(number) => Value::Number(number.value), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Literal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Literal` [INFO] [stdout] --> crates/runtime/src/value/mod.rs:902:13 [INFO] [stdout] | [INFO] [stdout] 902 | Literal::String(string) => Value::String(string.value), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Literal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0026, E0277, E0308, E0412, E0433, E0560, E0599, E0609, E0614. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0026`. [INFO] [stdout] [INFO] [stderr] error: could not compile `runtime` (lib) due to 35 previous errors; 11 warnings emitted [INFO] running `Command { std: "docker" "inspect" "0b91fe311500cc8981fca92a784faac5d9d44924c858981ae912a136bebf9cf2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0b91fe311500cc8981fca92a784faac5d9d44924c858981ae912a136bebf9cf2", kill_on_drop: false }` [INFO] [stdout] 0b91fe311500cc8981fca92a784faac5d9d44924c858981ae912a136bebf9cf2