[INFO] cloning repository https://github.com/cheese3660/cheese [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/cheese3660/cheese" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcheese3660%2Fcheese", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcheese3660%2Fcheese'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4c0608eb09c058c0f15a142cdacb95b4d82990ac [INFO] checking cheese3660/cheese against try#a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399 for pr-145770 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcheese3660%2Fcheese" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/cheese3660/cheese [INFO] finished tweaking git repo https://github.com/cheese3660/cheese [INFO] tweaked toml for git repo https://github.com/cheese3660/cheese written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/cheese3660/cheese on toolchain a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/cheese3660/cheese 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" "+a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b02e20726261ea6810ea4b22425fef3ed7e9fbfba0ced171168d8a7997479e56 [INFO] running `Command { std: "docker" "start" "-a" "b02e20726261ea6810ea4b22425fef3ed7e9fbfba0ced171168d8a7997479e56", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b02e20726261ea6810ea4b22425fef3ed7e9fbfba0ced171168d8a7997479e56", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b02e20726261ea6810ea4b22425fef3ed7e9fbfba0ced171168d8a7997479e56", kill_on_drop: false }` [INFO] [stdout] b02e20726261ea6810ea4b22425fef3ed7e9fbfba0ced171168d8a7997479e56 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1b186b8b0930aa8a41e27977cbf185036dcff8cadac519e89d10dcb2288bafaa [INFO] running `Command { std: "docker" "start" "-a" "1b186b8b0930aa8a41e27977cbf185036dcff8cadac519e89d10dcb2288bafaa", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Checking concolor-query v0.3.3 [INFO] [stderr] Compiling proc-macro2 v1.0.85 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking unicode-width v0.1.13 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Checking yansi v1.0.1 [INFO] [stderr] Compiling serde v1.0.203 [INFO] [stderr] Compiling rustversion v1.0.17 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling serde_json v1.0.117 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Checking bitflags v2.5.0 [INFO] [stderr] Checking strum v0.26.2 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling syn v2.0.66 [INFO] [stderr] Checking is-terminal v0.4.12 [INFO] [stderr] Checking num-bigint v0.4.5 [INFO] [stderr] Checking concolor v0.1.1 [INFO] [stderr] Checking ariadne v0.4.1 [INFO] [stderr] Checking cheese_diagnostics v0.1.0 (/opt/rustwide/workdir/cheese_diagnostics) [INFO] [stderr] Checking cheese_utilities v0.1.0 (/opt/rustwide/workdir/cheese_utilities) [INFO] [stdout] warning: unused import: `std::sync::Mutex` [INFO] [stdout] --> cheese_diagnostics/src/locating.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lazy_static::lazy_static` [INFO] [stdout] --> cheese_diagnostics/src/locating.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use lazy_static::lazy_static; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Cache` [INFO] [stdout] --> cheese_diagnostics/src/lib.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use ariadne::{Cache, Color, Label, Report, ReportKind}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WARNING` is never used [INFO] [stdout] --> cheese_diagnostics/src/lib.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const WARNING: isize = 500; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeMap` [INFO] [stdout] --> cheese_utilities/src/trees.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | 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: `std::ops::Bound` [INFO] [stdout] --> cheese_utilities/src/trees.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::ops::Bound; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking cheese_lexer v0.1.0 (/opt/rustwide/workdir/cheese_lexer) [INFO] [stdout] warning: unused import: `ariadne::IndexType::Char` [INFO] [stdout] --> cheese_lexer/src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use ariadne::IndexType::Char; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `depth` is never read [INFO] [stdout] --> cheese_lexer/src/lib.rs:414:25 [INFO] [stdout] | [INFO] [stdout] 414 | depth += 1; [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: unused variable: `line` [INFO] [stdout] --> cheese_utilities/src/trees.rs:359:9 [INFO] [stdout] | [INFO] [stdout] 359 | for line in lines {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `last_start` is never read [INFO] [stdout] --> cheese_utilities/src/trees.rs:376:25 [INFO] [stdout] | [INFO] [stdout] 376 | let mut last_start = 0; [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: function `print_lines` is never used [INFO] [stdout] --> cheese_utilities/src/trees.rs:358:4 [INFO] [stdout] | [INFO] [stdout] 358 | fn print_lines(lines: &Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Checking cheese_parser v0.1.0 (/opt/rustwide/workdir/cheese_parser) [INFO] [stdout] error[E0408]: variable `EndOfFile` is not bound in all patterns [INFO] [stdout] --> cheese_parser/src/parser/match_parser.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | RightBrace | EndOfFile => false, [INFO] [stdout] | ^^^^^^^^^^ --------- variable not in all patterns [INFO] [stdout] | | [INFO] [stdout] | pattern doesn't bind `EndOfFile` [INFO] [stdout] | [INFO] [stdout] help: if you meant to match on unit variants, use the full path in the pattern [INFO] [stdout] | [INFO] [stdout] 70 | RightBrace | crate::parser::TokenType::EndOfFile => false, [INFO] [stdout] | ++++++++++++++++++++++++++ [INFO] [stdout] 70 | RightBrace | cheese_lexer::TokenType::EndOfFile => false, [INFO] [stdout] | +++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `arguments` in this scope [INFO] [stdout] --> cheese_parser/src/parser/function_parser.rs:120:13 [INFO] [stdout] | [INFO] [stdout] 120 | arguments, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arguments`, `Pointer`, and `format` [INFO] [stdout] --> cheese_parser/src/ast.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::{Arguments, Display, format, Formatter, Pointer}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::canonicalize` [INFO] [stdout] --> cheese_parser/src/ast.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs::canonicalize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Fmt` [INFO] [stdout] --> cheese_parser/src/ast.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | use ariadne::{Color, Fmt}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::ErrorKind::UnexpectedEof` [INFO] [stdout] --> cheese_parser/src/parser/module_parser.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::ErrorKind::UnexpectedEof; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ExpectedCommaOrClose` and `UnexpectedEndOfFile` [INFO] [stdout] --> cheese_parser/src/parser/module_parser.rs:3:37 [INFO] [stdout] | [INFO] [stdout] 3 | ...::{ExpectedCommaOrClose, ExpectedEndOfFile, ExpectedEquals, ExpectedImportPath, ExpectedModuleStatement, ExpectedName, ExpectedSemicolon, UnexpectedEndOfFile, U... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Coordinate` [INFO] [stdout] --> cheese_parser/src/parser/module_parser.rs:4:36 [INFO] [stdout] | [INFO] [stdout] 4 | use cheese_diagnostics::locating::{Coordinate, FileSpan}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Comma` [INFO] [stdout] --> cheese_parser/src/parser/module_parser.rs:7:38 [INFO] [stdout] | [INFO] [stdout] 7 | use cheese_lexer::TokenType::{Colon, Comma, EndOfFile, Identifier, RightBrace}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ExpectedCloseParentheses` [INFO] [stdout] --> cheese_parser/src/parser/type_parser.rs:2:37 [INFO] [stdout] | [INFO] [stdout] 2 | use cheese_diagnostics::ErrorCode::{ExpectedCloseParentheses, ExpectedFn, ExpectedIdentifierOrOpeningDiamond, ExpectedOpenParentheses, Ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Comma` [INFO] [stdout] --> cheese_parser/src/parser/function_parser.rs:6:45 [INFO] [stdout] | [INFO] [stdout] 6 | use cheese_lexer::TokenType::{Arrow, Colon, Comma, Identifier, LeftBracket, Pipe, RightBracket, Underscore}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AnonymousFunction` [INFO] [stdout] --> cheese_parser/src/parser/function_parser.rs:8:31 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::ast::AstNodeData::{AnonymousFunction, Argument, Closure, ConstReferenceImplicitCapture, ConstSelfValue, InferredArgument, Self... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `File` [INFO] [stdout] --> cheese_parser/src/parser/expression_parser.rs:4:36 [INFO] [stdout] | [INFO] [stdout] 4 | use cheese_diagnostics::locating::{File, FileSpan}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::Operator::Assign` [INFO] [stdout] --> cheese_parser/src/parser/expression_parser.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::ast::Operator::Assign; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DeclarationFlags` and `OptionalNode` [INFO] [stdout] --> cheese_parser/src/parser/let_parser.rs:7:27 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::ast::{AstNode, DeclarationFlags, NodePtr, OptionalNode}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Display` [INFO] [stdout] --> cheese_parser/src/parser.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::fmt::Display; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ExpectedOpenParentheses` [INFO] [stdout] --> cheese_parser/src/parser.rs:13:135 [INFO] [stdout] | [INFO] [stdout] 13 | ...er, ExpectedClose, ExpectedCommaOrClose, ExpectedName, ExpectedOpenParentheses, GeneralCompilerError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `File` [INFO] [stdout] --> cheese_parser/src/parser.rs:14:48 [INFO] [stdout] | [INFO] [stdout] 14 | use cheese_diagnostics::locating::{Coordinate, File, FileSpan}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LeftParentheses` [INFO] [stdout] --> cheese_parser/src/parser.rs:16:78 [INFO] [stdout] | [INFO] [stdout] 16 | use cheese_lexer::TokenType::{Assign, Colon, Comma, GreaterThan, Identifier, LeftParentheses}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `False` and `Type` [INFO] [stdout] --> cheese_parser/src/parser.rs:18:133 [INFO] [stdout] | [INFO] [stdout] 18 | ...pture, CopyImplicitCapture, ErrorNode, False, ReferenceCapture, ReferenceImplicitCapture, Type}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Token` [INFO] [stdout] --> cheese_parser/src/utilities.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | use cheese_lexer::{Token, TokenType}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DeclarationFlags` [INFO] [stdout] --> cheese_parser/src/utilities.rs:4:27 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::ast::{AstNode, DeclarationFlags, NodePtr}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `default` in initializer of `AstNodeData` [INFO] [stdout] --> cheese_parser/src/parser/function_parser.rs:63:79 [INFO] [stdout] | [INFO] [stdout] 63 | AstNode::new(start_loc.expanded(&argument_type.span), Argument { [INFO] [stdout] | ^^^^^^^^ missing `default` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `default` in initializer of `AstNodeData` [INFO] [stdout] --> cheese_parser/src/parser/function_parser.rs:88:67 [INFO] [stdout] | [INFO] [stdout] 88 | AstNode::new(start_loc.expanded(&argument_type.span), Argument { [INFO] [stdout] | ^^^^^^^^ missing `default` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> cheese_parser/src/parser.rs:275:67 [INFO] [stdout] | [INFO] [stdout] 275 | fn parse_generic_parameter(&mut self, allow_default: bool) -> NodePtr { [INFO] [stdout] | ----------------------- ^^^^^^^ expected `Box`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Box` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `prefix` is never read [INFO] [stdout] --> cheese_parser/src/ast.rs:232:13 [INFO] [stdout] | [INFO] [stdout] 232 | prefix = " "; [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: unused variable: `value` [INFO] [stdout] --> cheese_parser/src/ast.rs:2016:69 [INFO] [stdout] | [INFO] [stdout] 2016 | StaticVariableDeclaration { flags, name, variable_type, value } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `value: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v2` [INFO] [stdout] --> cheese_parser/src/ast.rs:2017:98 [INFO] [stdout] | [INFO] [stdout] 2017 | if let StaticVariableDeclaration {flags: f2, name: n2, variable_type: t2, value: v2} = &data { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_v2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tt` [INFO] [stdout] --> cheese_parser/src/parser/module_parser.rs:53:52 [INFO] [stdout] | [INFO] [stdout] 53 | ... self.eat(TokenType::Semicolon,|tt| ExpectedInformation::new("a semicolon", ExpectedSemicolon, NO_NOTE, vec![])).unwrap_or_else( [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_tt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> cheese_parser/src/parser/module_parser.rs:69:21 [INFO] [stdout] | [INFO] [stdout] 69 | let mut current_span = self.peek_ref().span.clone(); [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: `tt` [INFO] [stdout] --> cheese_parser/src/parser/module_parser.rs:102:40 [INFO] [stdout] | [INFO] [stdout] 102 | try_err!(self.eat(Identifier, |tt| ExpectedInformation::new("a name for a static variable", ExpectedName, NO_NOTE, vec![ [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_tt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tt` [INFO] [stdout] --> cheese_parser/src/parser/module_parser.rs:115:47 [INFO] [stdout] | [INFO] [stdout] 115 | ... try_err!(self.eat(TokenType::Assign, |tt|ExpectedInformation::new(format!("an '=' for the initial value of static variable {name}")... [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_tt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tt` [INFO] [stdout] --> cheese_parser/src/parser/module_parser.rs:124:50 [INFO] [stdout] | [INFO] [stdout] 124 | ... try_err!(self.eat(TokenType::Semicolon, |tt|ExpectedInformation::new(format!("a ';' following the static variable declaration for {... [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_tt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> cheese_parser/src/parser/type_parser.rs:19:18 [INFO] [stdout] | [INFO] [stdout] 19 | let (a,b,c) = self.parse_comma_separated_list(Self::parse_generic_type_argument, |t| t == GreaterThan, ">"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_location` [INFO] [stdout] --> cheese_parser/src/parser/function_parser.rs:12:54 [INFO] [stdout] | [INFO] [stdout] 12 | pub(super) fn parse_imported_function(&mut self, start_location: FileSpan, flags: DeclarationFlags) -> NodePtr { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_location` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `flags` [INFO] [stdout] --> cheese_parser/src/parser/function_parser.rs:12:80 [INFO] [stdout] | [INFO] [stdout] 12 | pub(super) fn parse_imported_function(&mut self, start_location: FileSpan, flags: DeclarationFlags) -> NodePtr { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_flags` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_location` [INFO] [stdout] --> cheese_parser/src/parser/function_parser.rs:22:44 [INFO] [stdout] | [INFO] [stdout] 22 | fn parse_top_level_function(&mut self, start_location: FileSpan, flags: DeclarationFlags) -> NodePtr { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_location` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `flags` [INFO] [stdout] --> cheese_parser/src/parser/function_parser.rs:22:70 [INFO] [stdout] | [INFO] [stdout] 22 | fn parse_top_level_function(&mut self, start_location: FileSpan, flags: DeclarationFlags) -> NodePtr { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_flags` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `EndOfFile` is named the same as one of the variants of the type `cheese_lexer::TokenType` [INFO] [stdout] --> cheese_parser/src/parser/match_parser.rs:70:26 [INFO] [stdout] | [INFO] [stdout] 70 | RightBrace | EndOfFile => false, [INFO] [stdout] | ^^^^^^^^^ help: to match on the variant, qualify the path: `cheese_lexer::TokenType::EndOfFile` [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(bindings_with_variant_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> cheese_parser/src/parser/match_parser.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 70 | RightBrace | EndOfFile => false, [INFO] [stdout] | ---------------------- matches all the relevant values [INFO] [stdout] 71 | _ => true [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `brace_loc` [INFO] [stdout] --> cheese_parser/src/parser/match_parser.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | let brace_loc = self.peek_ref().span.clone(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_brace_loc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `EndOfFile` is assigned to, but never used [INFO] [stdout] --> cheese_parser/src/parser/match_parser.rs:70:26 [INFO] [stdout] | [INFO] [stdout] 70 | RightBrace | EndOfFile => false, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_EndOfFile` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> cheese_parser/src/parser/match_parser.rs:292:38 [INFO] [stdout] | [INFO] [stdout] 292 | try_err!(self.eat(Colon,|t| ExpectedInformation::new( [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> cheese_parser/src/parser/match_parser.rs:379:38 [INFO] [stdout] | [INFO] [stdout] 379 | try_err!(self.eat(Colon,|t| ExpectedInformation::new( [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0063, E0170, E0308, E0408, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0063`. [INFO] [stdout] [INFO] [stderr] error: could not compile `cheese_parser` (lib) due to 6 previous errors; 38 warnings emitted [INFO] running `Command { std: "docker" "inspect" "1b186b8b0930aa8a41e27977cbf185036dcff8cadac519e89d10dcb2288bafaa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1b186b8b0930aa8a41e27977cbf185036dcff8cadac519e89d10dcb2288bafaa", kill_on_drop: false }` [INFO] [stdout] 1b186b8b0930aa8a41e27977cbf185036dcff8cadac519e89d10dcb2288bafaa