[INFO] cloning repository https://github.com/cjavad/better_php [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/cjavad/better_php" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcjavad%2Fbetter_php", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcjavad%2Fbetter_php'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ce231f9cd82beb1e45c9866686a004defb02308d [INFO] checking cjavad/better_php/ce231f9cd82beb1e45c9866686a004defb02308d against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcjavad%2Fbetter_php" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/cjavad/better_php on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/cjavad/better_php [INFO] finished tweaking git repo https://github.com/cjavad/better_php [INFO] tweaked toml for git repo https://github.com/cjavad/better_php written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/cjavad/better_php 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8ba51191d4b4c429ae0b37a0fd2b4c87f4378db03fa08e7d0a22a53b68672097 [INFO] running `Command { std: "docker" "start" "-a" "8ba51191d4b4c429ae0b37a0fd2b4c87f4378db03fa08e7d0a22a53b68672097", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8ba51191d4b4c429ae0b37a0fd2b4c87f4378db03fa08e7d0a22a53b68672097", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ba51191d4b4c429ae0b37a0fd2b4c87f4378db03fa08e7d0a22a53b68672097", kill_on_drop: false }` [INFO] [stdout] 8ba51191d4b4c429ae0b37a0fd2b4c87f4378db03fa08e7d0a22a53b68672097 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2b13b7069854254ab256ea7ee23745fc4bf445f56554fa2687bfabb4b39813d6 [INFO] running `Command { std: "docker" "start" "-a" "2b13b7069854254ab256ea7ee23745fc4bf445f56554fa2687bfabb4b39813d6", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling beef v0.5.2 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Checking anstyle v1.0.4 [INFO] [stderr] Checking clap_lex v0.5.1 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking anstyle-parse v0.2.2 [INFO] [stderr] Checking anstream v0.6.4 [INFO] [stderr] Checking clap_builder v4.4.6 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.38 [INFO] [stderr] Compiling logos-codegen v0.13.0 [INFO] [stderr] Compiling clap_derive v4.4.2 [INFO] [stderr] Compiling logos-derive v0.13.0 [INFO] [stderr] Checking logos v0.13.0 [INFO] [stderr] Checking a_parser v0.1.0 (/opt/rustwide/workdir/crates/a_parser) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> crates/a_parser/src/ast.rs:270:16 [INFO] [stdout] | [INFO] [stdout] 270 | if (token.eq(&Token::Keyword(KeywordKind::Function))) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 270 - if (token.eq(&Token::Keyword(KeywordKind::Function))) { [INFO] [stdout] 270 + if token.eq(&Token::Keyword(KeywordKind::Function)) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::default` [INFO] [stdout] --> crates/a_parser/src/parser.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::default; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Function`, `KeywordBlock`, and `token::KeywordKind` [INFO] [stdout] --> crates/a_parser/src/parser.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::{ast::{AST, Function, Expression, KeywordBlock, FromToken}, token::KeywordKind}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> crates/a_parser/src/ast.rs:270:16 [INFO] [stdout] | [INFO] [stdout] 270 | if (token.eq(&Token::Keyword(KeywordKind::Function))) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 270 - if (token.eq(&Token::Keyword(KeywordKind::Function))) { [INFO] [stdout] 270 + if token.eq(&Token::Keyword(KeywordKind::Function)) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::default` [INFO] [stdout] --> crates/a_parser/src/parser.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::default; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Function`, `KeywordBlock`, and `token::KeywordKind` [INFO] [stdout] --> crates/a_parser/src/parser.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::{ast::{AST, Function, Expression, KeywordBlock, FromToken}, token::KeywordKind}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking clap v4.4.6 [INFO] [stdout] warning: unused variable: `until_token` [INFO] [stdout] --> crates/a_parser/src/ast.rs:89:104 [INFO] [stdout] | [INFO] [stdout] 89 | ...tate: &mut ParserState, until_token: Option) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_until_token` [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/a_parser/src/ast.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | let mut type_parameters = None; [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/a_parser/src/ast.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | let mut body = None; [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/a_parser/src/ast.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | let mut uses = None; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `inner` is never read [INFO] [stdout] --> crates/a_parser/src/ast.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Type { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 18 | inner: Vec [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Type` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `index`, `name`, `type_parameters`, and `value` are never read [INFO] [stdout] --> crates/a_parser/src/ast.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct ParameterDefinition { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 24 | index: u64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 25 | // If name is None, then this is an anonymous parameter [INFO] [stdout] 26 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 27 | // Type hints given to the parameter [INFO] [stdout] 28 | type_parameters: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | // If value is None, then this is a required parameter [INFO] [stdout] 30 | value: Option>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParameterDefinition` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `index`, `name`, and `value` are never read [INFO] [stdout] --> crates/a_parser/src/ast.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct Parameter { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 37 | index: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 38 | name: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 39 | value: Option>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Parameter` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind` and `value` are never read [INFO] [stdout] --> crates/a_parser/src/ast.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct Keyword { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 45 | kind: KeywordKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] 46 | // If value is None, then this is a required parameter [INFO] [stdout] 47 | value: Option>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Keyword` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind`, `value`, `body`, and `next` are never read [INFO] [stdout] --> crates/a_parser/src/ast.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct KeywordBlock { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 52 | kind: KeywordKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] 53 | value: Option>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 54 | body: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 55 | next: Option>, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `KeywordBlock` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `left`, `op`, and `right` are never read [INFO] [stdout] --> crates/a_parser/src/ast.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct BinaryOp { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 61 | left: Box, [INFO] [stdout] | ^^^^ [INFO] [stdout] 62 | op: BinaryOpKind, [INFO] [stdout] | ^^ [INFO] [stdout] 63 | right: Box, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinaryOp` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `op` and `expr` are never read [INFO] [stdout] --> crates/a_parser/src/ast.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 68 | pub struct UnaryOp { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 69 | op: UnaryOpKind, [INFO] [stdout] | ^^ [INFO] [stdout] 70 | expr: Box, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UnaryOp` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `type_parameters`, `args`, `body`, and `uses` are never read [INFO] [stdout] --> crates/a_parser/src/ast.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 75 | pub struct Function { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 76 | // If name is None, then this is an anonymous function [INFO] [stdout] 77 | name: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 78 | // Type hints given to the function [INFO] [stdout] 79 | type_parameters: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 80 | // This would be a list of parameters. [INFO] [stdout] 81 | args: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 82 | // This would be the body of the function [INFO] [stdout] 83 | body: Option>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 84 | // Optinal array of uses [INFO] [stdout] 85 | uses: Option>, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Function` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `is_static`, `is_readonly`, `visibility`, and `parameter` are never read [INFO] [stdout] --> crates/a_parser/src/ast.rs:162:5 [INFO] [stdout] | [INFO] [stdout] 161 | pub struct ClassProperty { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 162 | is_static: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 163 | is_readonly: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 164 | visibility: KeywordKind, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 165 | parameter: ParameterDefinition, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ClassProperty` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `is_static`, `visibility`, and `function` are never read [INFO] [stdout] --> crates/a_parser/src/ast.rs:170:5 [INFO] [stdout] | [INFO] [stdout] 169 | pub struct ClassFunction { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 170 | is_static: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 171 | visibility: KeywordKind, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 172 | function: Function, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ClassFunction` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `traits` and `conflict_resolution` are never read [INFO] [stdout] --> crates/a_parser/src/ast.rs:194:5 [INFO] [stdout] | [INFO] [stdout] 193 | pub struct TraitUse { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 194 | traits: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 195 | // If the alias is None, then the name is used as the alias [INFO] [stdout] 196 | conflict_resolution: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TraitUse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> crates/a_parser/src/ast.rs:201:5 [INFO] [stdout] | [INFO] [stdout] 200 | pub struct Class { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 201 | is_final: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 202 | is_readonly: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 203 | is_abstract: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 204 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 205 | kind: ClassKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] 206 | members: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 207 | uses: Option>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 208 | extends: Option>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 209 | implements: Option>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Class` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `until_token` [INFO] [stdout] --> crates/a_parser/src/ast.rs:89:104 [INFO] [stdout] | [INFO] [stdout] 89 | ...tate: &mut ParserState, until_token: Option) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_until_token` [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/a_parser/src/ast.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | let mut type_parameters = None; [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/a_parser/src/ast.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | let mut body = None; [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/a_parser/src/ast.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | let mut uses = None; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `inner` is never read [INFO] [stdout] --> crates/a_parser/src/ast.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Type { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 18 | inner: Vec [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Type` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `index`, `name`, `type_parameters`, and `value` are never read [INFO] [stdout] --> crates/a_parser/src/ast.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct ParameterDefinition { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 24 | index: u64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 25 | // If name is None, then this is an anonymous parameter [INFO] [stdout] 26 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 27 | // Type hints given to the parameter [INFO] [stdout] 28 | type_parameters: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | // If value is None, then this is a required parameter [INFO] [stdout] 30 | value: Option>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParameterDefinition` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `index`, `name`, and `value` are never read [INFO] [stdout] --> crates/a_parser/src/ast.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct Parameter { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 37 | index: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 38 | name: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 39 | value: Option>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Parameter` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind` and `value` are never read [INFO] [stdout] --> crates/a_parser/src/ast.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct Keyword { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 45 | kind: KeywordKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] 46 | // If value is None, then this is a required parameter [INFO] [stdout] 47 | value: Option>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Keyword` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind`, `value`, `body`, and `next` are never read [INFO] [stdout] --> crates/a_parser/src/ast.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct KeywordBlock { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 52 | kind: KeywordKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] 53 | value: Option>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 54 | body: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 55 | next: Option>, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `KeywordBlock` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `left`, `op`, and `right` are never read [INFO] [stdout] --> crates/a_parser/src/ast.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct BinaryOp { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 61 | left: Box, [INFO] [stdout] | ^^^^ [INFO] [stdout] 62 | op: BinaryOpKind, [INFO] [stdout] | ^^ [INFO] [stdout] 63 | right: Box, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinaryOp` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `op` and `expr` are never read [INFO] [stdout] --> crates/a_parser/src/ast.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 68 | pub struct UnaryOp { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 69 | op: UnaryOpKind, [INFO] [stdout] | ^^ [INFO] [stdout] 70 | expr: Box, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UnaryOp` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `type_parameters`, `args`, `body`, and `uses` are never read [INFO] [stdout] --> crates/a_parser/src/ast.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 75 | pub struct Function { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 76 | // If name is None, then this is an anonymous function [INFO] [stdout] 77 | name: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 78 | // Type hints given to the function [INFO] [stdout] 79 | type_parameters: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 80 | // This would be a list of parameters. [INFO] [stdout] 81 | args: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 82 | // This would be the body of the function [INFO] [stdout] 83 | body: Option>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 84 | // Optinal array of uses [INFO] [stdout] 85 | uses: Option>, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Function` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `is_static`, `is_readonly`, `visibility`, and `parameter` are never read [INFO] [stdout] --> crates/a_parser/src/ast.rs:162:5 [INFO] [stdout] | [INFO] [stdout] 161 | pub struct ClassProperty { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 162 | is_static: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 163 | is_readonly: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 164 | visibility: KeywordKind, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 165 | parameter: ParameterDefinition, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ClassProperty` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `is_static`, `visibility`, and `function` are never read [INFO] [stdout] --> crates/a_parser/src/ast.rs:170:5 [INFO] [stdout] | [INFO] [stdout] 169 | pub struct ClassFunction { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 170 | is_static: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 171 | visibility: KeywordKind, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 172 | function: Function, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ClassFunction` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `traits` and `conflict_resolution` are never read [INFO] [stdout] --> crates/a_parser/src/ast.rs:194:5 [INFO] [stdout] | [INFO] [stdout] 193 | pub struct TraitUse { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 194 | traits: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 195 | // If the alias is None, then the name is used as the alias [INFO] [stdout] 196 | conflict_resolution: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TraitUse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> crates/a_parser/src/ast.rs:201:5 [INFO] [stdout] | [INFO] [stdout] 200 | pub struct Class { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 201 | is_final: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 202 | is_readonly: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 203 | is_abstract: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 204 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 205 | kind: ClassKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] 206 | members: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 207 | uses: Option>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 208 | extends: Option>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 209 | implements: Option>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Class` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking better_php v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.81s [INFO] running `Command { std: "docker" "inspect" "2b13b7069854254ab256ea7ee23745fc4bf445f56554fa2687bfabb4b39813d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2b13b7069854254ab256ea7ee23745fc4bf445f56554fa2687bfabb4b39813d6", kill_on_drop: false }` [INFO] [stdout] 2b13b7069854254ab256ea7ee23745fc4bf445f56554fa2687bfabb4b39813d6