[INFO] cloning repository https://github.com/drakending/C_compiler [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/drakending/C_compiler" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdrakending%2FC_compiler", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdrakending%2FC_compiler'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d7e6a8b6440c5b91bce3e81991dc36c1b9855ac4 [INFO] checking drakending/C_compiler/d7e6a8b6440c5b91bce3e81991dc36c1b9855ac4 against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdrakending%2FC_compiler" "/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/drakending/C_compiler on toolchain 4d98531622e1718ae0bc3c7a1ab9cd8938428452 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/drakending/C_compiler [INFO] finished tweaking git repo https://github.com/drakending/C_compiler [INFO] tweaked toml for git repo https://github.com/drakending/C_compiler written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/drakending/C_compiler 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" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: Patch `termion v1.5.5 (https://gitlab.redox-os.org/Jezza/termion.git?branch=windows-support#9e35f915)` was not used in the crate graph. [INFO] [stderr] Check that the patched package version and available features are compatible [INFO] [stderr] with the dependency requirements. If the patch has a different version from [INFO] [stderr] what is locked in the Cargo.lock file, run `cargo update` to use the new [INFO] [stderr] version. This may also occur with an optional dependency that is not enabled. [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ae4f68fb38283958ad2cfad8550fcf694cb83ce5497a0c0634cbc7f3912489bd [INFO] running `Command { std: "docker" "start" "-a" "ae4f68fb38283958ad2cfad8550fcf694cb83ce5497a0c0634cbc7f3912489bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ae4f68fb38283958ad2cfad8550fcf694cb83ce5497a0c0634cbc7f3912489bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ae4f68fb38283958ad2cfad8550fcf694cb83ce5497a0c0634cbc7f3912489bd", kill_on_drop: false }` [INFO] [stdout] ae4f68fb38283958ad2cfad8550fcf694cb83ce5497a0c0634cbc7f3912489bd [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 -Dtail_expr_drop_order" "-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" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] caed9df267732fe101e12ca97267505d2e063169d8a72d588544e6b54e340efa [INFO] running `Command { std: "docker" "start" "-a" "caed9df267732fe101e12ca97267505d2e063169d8a72d588544e6b54e340efa", kill_on_drop: false }` [INFO] [stderr] warning: Patch `termion v1.5.5 (https://gitlab.redox-os.org/Jezza/termion.git?branch=windows-support#9e35f915)` was not used in the crate graph. [INFO] [stderr] Check that the patched package version and available features are compatible [INFO] [stderr] with the dependency requirements. If the patch has a different version from [INFO] [stderr] what is locked in the Cargo.lock file, run `cargo update` to use the new [INFO] [stderr] version. This may also occur with an optional dependency that is not enabled. [INFO] [stderr] Checking compiler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::env::var` [INFO] [stdout] --> src/ast/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::env::var; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> src/ast/lexer.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::{write, Debug, Display, Formatter}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ast/parser.rs:153:15 [INFO] [stdout] | [INFO] [stdout] 153 | if(current.kind==TokenKind::RightBrace) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 153 - if(current.kind==TokenKind::RightBrace) { [INFO] [stdout] 153 + if current.kind==TokenKind::RightBrace { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ast/parser.rs:167:15 [INFO] [stdout] | [INFO] [stdout] 167 | if(current.kind!=TokenKind::Comma) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 167 - if(current.kind!=TokenKind::Comma) { [INFO] [stdout] 167 + if current.kind!=TokenKind::Comma { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/ast/evaluator.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GrammarVartype` [INFO] [stdout] --> src/ast/evaluator.rs:3:147 [INFO] [stdout] | [INFO] [stdout] 3 | ...xpression, ASTStatement, ASTVariableExpression, ASTVisitor, GrammarVartype, ASTAssignment, LeftValue}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ast/evaluator.rs:103:11 [INFO] [stdout] | [INFO] [stdout] 103 | if(function.name=="main"){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 103 - if(function.name=="main"){ [INFO] [stdout] 103 + if function.name=="main" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::statement::*` [INFO] [stdout] --> src/ast/visitor.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::ast::statement::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Display` [INFO] [stdout] --> src/ast/expression.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::Display; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::expression::ASTBinaryExpression` [INFO] [stdout] --> src/ast/progranunit.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::ast::expression::ASTBinaryExpression; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/main.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::{self,Read}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env::var` [INFO] [stdout] --> src/ast/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::env::var; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> src/ast/lexer.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::{write, Debug, Display, Formatter}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ast/parser.rs:153:15 [INFO] [stdout] | [INFO] [stdout] 153 | if(current.kind==TokenKind::RightBrace) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 153 - if(current.kind==TokenKind::RightBrace) { [INFO] [stdout] 153 + if current.kind==TokenKind::RightBrace { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ast/parser.rs:167:15 [INFO] [stdout] | [INFO] [stdout] 167 | if(current.kind!=TokenKind::Comma) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 167 - if(current.kind!=TokenKind::Comma) { [INFO] [stdout] 167 + if current.kind!=TokenKind::Comma { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/ast/evaluator.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GrammarVartype` [INFO] [stdout] --> src/ast/evaluator.rs:3:147 [INFO] [stdout] | [INFO] [stdout] 3 | ...xpression, ASTStatement, ASTVariableExpression, ASTVisitor, GrammarVartype, ASTAssignment, LeftValue}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ast/evaluator.rs:103:11 [INFO] [stdout] | [INFO] [stdout] 103 | if(function.name=="main"){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 103 - if(function.name=="main"){ [INFO] [stdout] 103 + if function.name=="main" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::statement::*` [INFO] [stdout] --> src/ast/visitor.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::ast::statement::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Display` [INFO] [stdout] --> src/ast/expression.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::Display; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::expression::ASTBinaryExpression` [INFO] [stdout] --> src/ast/progranunit.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::ast::expression::ASTBinaryExpression; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/main.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::{self,Read}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `kind` is never read [INFO] [stdout] --> src/ast/lexer.rs:149:21 [INFO] [stdout] | [INFO] [stdout] 149 | let mut kind = TokenKind::Bad; [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: `vartype` [INFO] [stdout] --> src/ast/parser.rs:72:32 [INFO] [stdout] | [INFO] [stdout] 72 | TokenKind::VarType(vartype) =>{ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vartype` [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] --> src/ast/parser.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | let mut function_name; [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: value assigned to `kind` is never read [INFO] [stdout] --> src/ast/lexer.rs:149:21 [INFO] [stdout] | [INFO] [stdout] 149 | let mut kind = TokenKind::Bad; [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: `span` [INFO] [stdout] --> src/ast/evaluator.rs:65:31 [INFO] [stdout] | [INFO] [stdout] 65 | fn visit_error(&mut self, span: &TextSpan) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vartype` [INFO] [stdout] --> src/ast/parser.rs:72:32 [INFO] [stdout] | [INFO] [stdout] 72 | TokenKind::VarType(vartype) =>{ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vartype` [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] --> src/ast/parser.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | let mut function_name; [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: `span` [INFO] [stdout] --> src/ast/evaluator.rs:65:31 [INFO] [stdout] | [INFO] [stdout] 65 | fn visit_error(&mut self, span: &TextSpan) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `arguments` and `returntype` are never read [INFO] [stdout] --> src/ast/mod.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct GrammarFunctiontype{ [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 41 | pub arguments:Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 42 | pub returntype:GrammarVartype [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GrammarFunctiontype` has derived impls for the traits `Clone` and `Debug`, 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 `0` is never read [INFO] [stdout] --> src/ast/mod.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | Direct(lexer::VartypeKind), [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `GrammarVartype` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 54 | Direct(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Ref` and `Function` are never constructed [INFO] [stdout] --> src/ast/mod.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 53 | pub enum GrammarVartype{ [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 54 | Direct(lexer::VartypeKind), [INFO] [stdout] 55 | Ref(Box), [INFO] [stdout] | ^^^ [INFO] [stdout] 56 | Function(Box) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GrammarVartype` 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: associated functions `Ref` and `Function` are never used [INFO] [stdout] --> src/ast/mod.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 58 | impl GrammarVartype{ [INFO] [stdout] | ------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn Ref(vartype:GrammarVartype) -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn Function(arguments:Vec,returntype:GrammarVartype) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `next_statement` and `consume_and_check` are never used [INFO] [stdout] --> src/ast/parser.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl Parser { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn next_statement(&mut self) -> Option{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 318 | fn consume_and_check(&mut self,kind:TokenKind) -> &Token{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `value` is never used [INFO] [stdout] --> src/ast/expression.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl ASTNumberExpression { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn value(&self) -> i64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `token` is never read [INFO] [stdout] --> src/ast/expression.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 79 | pub struct ASTBinaryOperator{ [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 80 | pub(crate) kind:ASTBinaryOperatorKind, [INFO] [stdout] 81 | token:Token, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ASTBinaryOperator` 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 `function_type` is never read [INFO] [stdout] --> src/ast/progranunit.rs:26:16 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct ASTFunction{ [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 26 | pub(crate) function_type:GrammarFunctiontype, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ASTFunction` 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: variant `Warning` is never constructed [INFO] [stdout] --> src/diagnostics/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum DiagnosticKind { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] 8 | Error, [INFO] [stdout] 9 | Warning, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `kind` is never read [INFO] [stdout] --> src/diagnostics/mod.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Diagnostic{ [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 15 | pub kind: DiagnosticKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `report_warning` and `report_unexpected_token` are never used [INFO] [stdout] --> src/diagnostics/mod.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl DiagnosticBag{ [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn report_warning(&mut self,message:String,span:TextSpan) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn report_unexpected_token(&mut self, expected: &TokenKind, token: &Token){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | file.read_to_string(&mut input); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 16 | let _ = file.read_to_string(&mut input); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Ref` should have a snake case name [INFO] [stdout] --> src/ast/mod.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn Ref(vartype:GrammarVartype) -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] help: rename the identifier or convert it to a snake case raw identifier [INFO] [stdout] | [INFO] [stdout] 62 | pub fn r#ref(vartype:GrammarVartype) -> Self{ [INFO] [stdout] | ~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/mod.rs:63:29 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn Ref(vartype:GrammarVartype) -> Self{ [INFO] [stdout] | ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 63 | GrammarVartype::Ref(Box::new(vartype)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Function` should have a snake case name [INFO] [stdout] --> src/ast/mod.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn Function(arguments:Vec,returntype:GrammarVartype) -> Self { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `function` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/mod.rs:66:34 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn Function(arguments:Vec,returntype:GrammarVartype) -> Self { [INFO] [stdout] | ----------------------------- ------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 66 | GrammarVartype::Function(Box::new(GrammarFunctiontype::new(arguments,returntype))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/statement.rs:20:27 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn expression(expr: ASTExpression) -> Self { [INFO] [stdout] | ------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 20 | ASTStatement::new(ASTStatementKind::Expression(expr)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/statement.rs:23:27 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn declaration(declaration_list: ASTDeclarationList) -> Self { [INFO] [stdout] | ------------------------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 23 | ASTStatement::new(ASTStatementKind::Declaration(declaration_list)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/statement.rs:26:27 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn return_statement(expr: ASTExpression) -> Self { [INFO] [stdout] | ------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 26 | ASTStatement::new(ASTStatementKind::Return(expr)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/statement.rs:48:35 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn new(vartype:GrammarVartype) -> Self{ [INFO] [stdout] | ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 48 | Self{vartype,declare_list:Vec::new()} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/expression.rs:27:28 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn binary( operator:ASTBinaryOperator,left:ASTExpression,right:ASTExpression) -> Self{ [INFO] [stdout] | ------------------ ------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 27 | ASTExpression::new(ASTExpressionKind::Binary(ASTBinaryExpression::new(left,right,operator))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/expression.rs:33:28 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn assignment(name:ASTExpression,expr:ASTExpression) -> Self{ [INFO] [stdout] | ------------------ ------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 33 | ASTExpression::new(ASTExpressionKind::Assignment(ASTAssignment::new(name,expr))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/expression.rs:36:28 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn function_call(name:String,param_list:Vec>) -> Self{ [INFO] [stdout] | ---------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 36 | ASTExpression::new(ASTExpressionKind::FunctionCall(ASTFuncionCall::new(name,param_list))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/expression.rs:115:19 [INFO] [stdout] | [INFO] [stdout] 113 | fn new(left:ASTExpression,right:ASTExpression,operator:ASTBinaryOperator) -> Self{ [INFO] [stdout] | ------------------ ------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 114 | ASTBinaryExpression { [INFO] [stdout] 115 | left: Box::new(left), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/expression.rs:116:20 [INFO] [stdout] | [INFO] [stdout] 113 | fn new(left:ASTExpression,right:ASTExpression,operator:ASTBinaryOperator) -> Self{ [INFO] [stdout] | ------------------ ------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 116 | right: Box::new(right), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/expression.rs:134:19 [INFO] [stdout] | [INFO] [stdout] 131 | pub fn new(name:ASTExpression,expr:ASTExpression) -> Self{ [INFO] [stdout] | ------------------ ------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 134 | expr: Box::new(expr), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/progranunit.rs:16:29 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn function(function:ASTFunction) -> Self{ [INFO] [stdout] | -------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 16 | ASTProgramunit{kind:ASTProgramunitKind::Function(function)} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/progranunit.rs:19:29 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn declaration(declaration_list: ASTDeclarationList) -> Self{ [INFO] [stdout] | ------------------------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 19 | ASTProgramunit{kind:ASTProgramunitKind::Declaration(declaration_list)} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/progranunit.rs:37:24 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn new(function_type:GrammarFunctiontype,params:Vec) -> Self{ [INFO] [stdout] | --------------------------------- --------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 37 | statements:Vec::new(), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 15 previous errors; 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `compiler` (bin "compiler") due to 16 previous errors; 29 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: fields `arguments` and `returntype` are never read [INFO] [stdout] --> src/ast/mod.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct GrammarFunctiontype{ [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 41 | pub arguments:Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 42 | pub returntype:GrammarVartype [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GrammarFunctiontype` has derived impls for the traits `Clone` and `Debug`, 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 `0` is never read [INFO] [stdout] --> src/ast/mod.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | Direct(lexer::VartypeKind), [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `GrammarVartype` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 54 | Direct(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Ref` and `Function` are never constructed [INFO] [stdout] --> src/ast/mod.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 53 | pub enum GrammarVartype{ [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 54 | Direct(lexer::VartypeKind), [INFO] [stdout] 55 | Ref(Box), [INFO] [stdout] | ^^^ [INFO] [stdout] 56 | Function(Box) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GrammarVartype` 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: associated functions `Ref` and `Function` are never used [INFO] [stdout] --> src/ast/mod.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 58 | impl GrammarVartype{ [INFO] [stdout] | ------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn Ref(vartype:GrammarVartype) -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn Function(arguments:Vec,returntype:GrammarVartype) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `next_statement` and `consume_and_check` are never used [INFO] [stdout] --> src/ast/parser.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl Parser { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn next_statement(&mut self) -> Option{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 318 | fn consume_and_check(&mut self,kind:TokenKind) -> &Token{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `value` is never used [INFO] [stdout] --> src/ast/expression.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl ASTNumberExpression { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn value(&self) -> i64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `token` is never read [INFO] [stdout] --> src/ast/expression.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 79 | pub struct ASTBinaryOperator{ [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 80 | pub(crate) kind:ASTBinaryOperatorKind, [INFO] [stdout] 81 | token:Token, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ASTBinaryOperator` 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 `function_type` is never read [INFO] [stdout] --> src/ast/progranunit.rs:26:16 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct ASTFunction{ [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 26 | pub(crate) function_type:GrammarFunctiontype, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ASTFunction` 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: variant `Warning` is never constructed [INFO] [stdout] --> src/diagnostics/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum DiagnosticKind { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] 8 | Error, [INFO] [stdout] 9 | Warning, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `kind` is never read [INFO] [stdout] --> src/diagnostics/mod.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Diagnostic{ [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 15 | pub kind: DiagnosticKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `report_warning` and `report_unexpected_token` are never used [INFO] [stdout] --> src/diagnostics/mod.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl DiagnosticBag{ [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn report_warning(&mut self,message:String,span:TextSpan) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn report_unexpected_token(&mut self, expected: &TokenKind, token: &Token){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | file.read_to_string(&mut input); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 16 | let _ = file.read_to_string(&mut input); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Ref` should have a snake case name [INFO] [stdout] --> src/ast/mod.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn Ref(vartype:GrammarVartype) -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] help: rename the identifier or convert it to a snake case raw identifier [INFO] [stdout] | [INFO] [stdout] 62 | pub fn r#ref(vartype:GrammarVartype) -> Self{ [INFO] [stdout] | ~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/mod.rs:63:29 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn Ref(vartype:GrammarVartype) -> Self{ [INFO] [stdout] | ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 63 | GrammarVartype::Ref(Box::new(vartype)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Function` should have a snake case name [INFO] [stdout] --> src/ast/mod.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn Function(arguments:Vec,returntype:GrammarVartype) -> Self { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `function` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/mod.rs:66:34 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn Function(arguments:Vec,returntype:GrammarVartype) -> Self { [INFO] [stdout] | ----------------------------- ------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 66 | GrammarVartype::Function(Box::new(GrammarFunctiontype::new(arguments,returntype))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/statement.rs:20:27 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn expression(expr: ASTExpression) -> Self { [INFO] [stdout] | ------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 20 | ASTStatement::new(ASTStatementKind::Expression(expr)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/statement.rs:23:27 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn declaration(declaration_list: ASTDeclarationList) -> Self { [INFO] [stdout] | ------------------------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 23 | ASTStatement::new(ASTStatementKind::Declaration(declaration_list)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/statement.rs:26:27 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn return_statement(expr: ASTExpression) -> Self { [INFO] [stdout] | ------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 26 | ASTStatement::new(ASTStatementKind::Return(expr)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/statement.rs:48:35 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn new(vartype:GrammarVartype) -> Self{ [INFO] [stdout] | ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 48 | Self{vartype,declare_list:Vec::new()} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/expression.rs:27:28 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn binary( operator:ASTBinaryOperator,left:ASTExpression,right:ASTExpression) -> Self{ [INFO] [stdout] | ------------------ ------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 27 | ASTExpression::new(ASTExpressionKind::Binary(ASTBinaryExpression::new(left,right,operator))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/expression.rs:33:28 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn assignment(name:ASTExpression,expr:ASTExpression) -> Self{ [INFO] [stdout] | ------------------ ------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 33 | ASTExpression::new(ASTExpressionKind::Assignment(ASTAssignment::new(name,expr))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/expression.rs:36:28 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn function_call(name:String,param_list:Vec>) -> Self{ [INFO] [stdout] | ---------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 36 | ASTExpression::new(ASTExpressionKind::FunctionCall(ASTFuncionCall::new(name,param_list))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/expression.rs:115:19 [INFO] [stdout] | [INFO] [stdout] 113 | fn new(left:ASTExpression,right:ASTExpression,operator:ASTBinaryOperator) -> Self{ [INFO] [stdout] | ------------------ ------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 114 | ASTBinaryExpression { [INFO] [stdout] 115 | left: Box::new(left), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/expression.rs:116:20 [INFO] [stdout] | [INFO] [stdout] 113 | fn new(left:ASTExpression,right:ASTExpression,operator:ASTBinaryOperator) -> Self{ [INFO] [stdout] | ------------------ ------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 116 | right: Box::new(right), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/expression.rs:134:19 [INFO] [stdout] | [INFO] [stdout] 131 | pub fn new(name:ASTExpression,expr:ASTExpression) -> Self{ [INFO] [stdout] | ------------------ ------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 134 | expr: Box::new(expr), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/progranunit.rs:16:29 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn function(function:ASTFunction) -> Self{ [INFO] [stdout] | -------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 16 | ASTProgramunit{kind:ASTProgramunitKind::Function(function)} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/progranunit.rs:19:29 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn declaration(declaration_list: ASTDeclarationList) -> Self{ [INFO] [stdout] | ------------------------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 19 | ASTProgramunit{kind:ASTProgramunitKind::Declaration(declaration_list)} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/progranunit.rs:37:24 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn new(function_type:GrammarFunctiontype,params:Vec) -> Self{ [INFO] [stdout] | --------------------------------- --------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 37 | statements:Vec::new(), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `compiler` (bin "compiler" test) due to 16 previous errors; 29 warnings emitted [INFO] [stdout] error: aborting due to 15 previous errors; 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "caed9df267732fe101e12ca97267505d2e063169d8a72d588544e6b54e340efa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "caed9df267732fe101e12ca97267505d2e063169d8a72d588544e6b54e340efa", kill_on_drop: false }` [INFO] [stdout] caed9df267732fe101e12ca97267505d2e063169d8a72d588544e6b54e340efa