[INFO] cloning repository https://github.com/df5602/interpreter_tutorial [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/df5602/interpreter_tutorial" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdf5602%2Finterpreter_tutorial", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdf5602%2Finterpreter_tutorial'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 56cce21a7c0ad1d6cbf3bcc5751fc2196ae345b2 [INFO] checking df5602/interpreter_tutorial against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdf5602%2Finterpreter_tutorial" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/df5602/interpreter_tutorial on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/df5602/interpreter_tutorial [INFO] finished tweaking git repo https://github.com/df5602/interpreter_tutorial [INFO] tweaked toml for git repo https://github.com/df5602/interpreter_tutorial written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/df5602/interpreter_tutorial 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded afl-plugin v0.1.5 [INFO] [stderr] Downloaded gcc v0.3.45 [INFO] [stderr] Downloaded leftpad v0.2.0 [INFO] [stderr] Downloaded afl v0.1.5 [INFO] [stderr] Downloaded quale v1.0.0 [INFO] [stderr] Downloaded afl-sys v0.1.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0950af8282466d279f66ae59cccd5099b8882299ea473b7d902926edc89041f9 [INFO] running `Command { std: "docker" "start" "-a" "0950af8282466d279f66ae59cccd5099b8882299ea473b7d902926edc89041f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0950af8282466d279f66ae59cccd5099b8882299ea473b7d902926edc89041f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0950af8282466d279f66ae59cccd5099b8882299ea473b7d902926edc89041f9", kill_on_drop: false }` [INFO] [stdout] 0950af8282466d279f66ae59cccd5099b8882299ea473b7d902926edc89041f9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7d70751804155fa56102c89ac12a48ebcbc1307724ac1a2649eea1082170f062 [INFO] running `Command { std: "docker" "start" "-a" "7d70751804155fa56102c89ac12a48ebcbc1307724ac1a2649eea1082170f062", kill_on_drop: false }` [INFO] [stderr] Checking unicode-width v0.1.4 [INFO] [stderr] Checking leftpad v0.2.0 [INFO] [stderr] Checking interpreter_tutorial v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused macro definition: `int_node` [INFO] [stdout] --> src/ast/macros.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | macro_rules! int_node { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `real_node` [INFO] [stdout] --> src/ast/macros.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | macro_rules! real_node { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `binop_node` [INFO] [stdout] --> src/ast/macros.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 21 | macro_rules! binop_node { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `unop_node` [INFO] [stdout] --> src/ast/macros.rs:31:14 [INFO] [stdout] | [INFO] [stdout] 31 | macro_rules! unop_node { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `cmpd_stmt_node` [INFO] [stdout] --> src/ast/macros.rs:41:14 [INFO] [stdout] | [INFO] [stdout] 41 | macro_rules! cmpd_stmt_node { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `var_node` [INFO] [stdout] --> src/ast/macros.rs:50:14 [INFO] [stdout] | [INFO] [stdout] 50 | macro_rules! var_node { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `assign_node` [INFO] [stdout] --> src/ast/macros.rs:60:14 [INFO] [stdout] | [INFO] [stdout] 60 | macro_rules! assign_node { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `block_node` [INFO] [stdout] --> src/ast/macros.rs:68:14 [INFO] [stdout] | [INFO] [stdout] 68 | macro_rules! block_node { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `type_node` [INFO] [stdout] --> src/ast/macros.rs:75:14 [INFO] [stdout] | [INFO] [stdout] 75 | macro_rules! type_node { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `var_decl_node` [INFO] [stdout] --> src/ast/macros.rs:85:14 [INFO] [stdout] | [INFO] [stdout] 85 | macro_rules! var_decl_node { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `program_node` [INFO] [stdout] --> src/ast/macros.rs:92:14 [INFO] [stdout] | [INFO] [stdout] 92 | macro_rules! program_node { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ast/mod.rs:75:20 [INFO] [stdout] | [INFO] [stdout] 75 | nodes: Vec>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 75 | nodes: Vec>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ast/mod.rs:111:49 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn get_node(&self, index: AstIndex) -> &AstNode { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 111 | pub fn get_node(&self, index: AstIndex) -> &dyn AstNode { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ast/mod.rs:121:61 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn get_node_mut(&mut self, index: AstIndex) -> &mut AstNode { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 121 | pub fn get_node_mut(&mut self, index: AstIndex) -> &mut dyn AstNode { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ast/mod.rs:126:39 [INFO] [stdout] | [INFO] [stdout] 126 | pub fn get_root(&self) -> Option<&AstNode> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 126 | pub fn get_root(&self) -> Option<&dyn AstNode> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/lexer/pascal_lexer.rs:221:34 [INFO] [stdout] | [INFO] [stdout] 221 | ... e.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/lexer/pascal_lexer.rs:232:30 [INFO] [stdout] | [INFO] [stdout] 232 | ... e.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Ast` is imported redundantly [INFO] [stdout] --> src/ast/number_node.rs:100:15 [INFO] [stdout] | [INFO] [stdout] 99 | use super::*; [INFO] [stdout] | -------- the item `Ast` is already imported here [INFO] [stdout] 100 | use ast::{Ast, AstNode, AstIndex}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `AstNode` is imported redundantly [INFO] [stdout] --> src/ast/number_node.rs:100:20 [INFO] [stdout] | [INFO] [stdout] 99 | use super::*; [INFO] [stdout] | -------- the item `AstNode` is already imported here [INFO] [stdout] 100 | use ast::{Ast, AstNode, AstIndex}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `AstIndex` is imported redundantly [INFO] [stdout] --> src/ast/number_node.rs:100:29 [INFO] [stdout] | [INFO] [stdout] 99 | use super::*; [INFO] [stdout] | -------- the item `AstIndex` is already imported here [INFO] [stdout] 100 | use ast::{Ast, AstNode, AstIndex}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Token` is imported redundantly [INFO] [stdout] --> src/ast/number_node.rs:101:18 [INFO] [stdout] | [INFO] [stdout] 99 | use super::*; [INFO] [stdout] | -------- the item `Token` is already imported here [INFO] [stdout] 100 | use ast::{Ast, AstNode, AstIndex}; [INFO] [stdout] 101 | use tokens::{Token, TokenType, TokenValue, Span}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TokenValue` is imported redundantly [INFO] [stdout] --> src/ast/number_node.rs:101:36 [INFO] [stdout] | [INFO] [stdout] 99 | use super::*; [INFO] [stdout] | -------- the item `TokenValue` is already imported here [INFO] [stdout] 100 | use ast::{Ast, AstNode, AstIndex}; [INFO] [stdout] 101 | use tokens::{Token, TokenType, TokenValue, Span}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Span` is imported redundantly [INFO] [stdout] --> src/ast/number_node.rs:101:48 [INFO] [stdout] | [INFO] [stdout] 99 | use super::*; [INFO] [stdout] | -------- the item `Span` is already imported here [INFO] [stdout] 100 | use ast::{Ast, AstNode, AstIndex}; [INFO] [stdout] 101 | use tokens::{Token, TokenType, TokenValue, Span}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `NodeVisitor` is imported redundantly [INFO] [stdout] --> src/ast/number_node.rs:102:23 [INFO] [stdout] | [INFO] [stdout] 99 | use super::*; [INFO] [stdout] | -------- the item `NodeVisitor` is already imported here [INFO] [stdout] ... [INFO] [stdout] 102 | use interpreter::{NodeVisitor, Value}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Value` is imported redundantly [INFO] [stdout] --> src/ast/number_node.rs:102:36 [INFO] [stdout] | [INFO] [stdout] 99 | use super::*; [INFO] [stdout] | -------- the item `Value` is already imported here [INFO] [stdout] ... [INFO] [stdout] 102 | use interpreter::{NodeVisitor, Value}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Ast` is imported redundantly [INFO] [stdout] --> src/ast/binary_operator_node.rs:157:15 [INFO] [stdout] | [INFO] [stdout] 156 | use super::*; [INFO] [stdout] | -------- the item `Ast` is already imported here [INFO] [stdout] 157 | use ast::{Ast, AstNode, AstIndex, NumberNode}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `AstNode` is imported redundantly [INFO] [stdout] --> src/ast/binary_operator_node.rs:157:20 [INFO] [stdout] | [INFO] [stdout] 156 | use super::*; [INFO] [stdout] | -------- the item `AstNode` is already imported here [INFO] [stdout] 157 | use ast::{Ast, AstNode, AstIndex, NumberNode}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `AstIndex` is imported redundantly [INFO] [stdout] --> src/ast/binary_operator_node.rs:157:29 [INFO] [stdout] | [INFO] [stdout] 156 | use super::*; [INFO] [stdout] | -------- the item `AstIndex` is already imported here [INFO] [stdout] 157 | use ast::{Ast, AstNode, AstIndex, NumberNode}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Token` is imported redundantly [INFO] [stdout] --> src/ast/binary_operator_node.rs:158:18 [INFO] [stdout] | [INFO] [stdout] 156 | use super::*; [INFO] [stdout] | -------- the item `Token` is already imported here [INFO] [stdout] 157 | use ast::{Ast, AstNode, AstIndex, NumberNode}; [INFO] [stdout] 158 | use tokens::{Token, TokenType, TokenValue, OperatorType, Span}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TokenValue` is imported redundantly [INFO] [stdout] --> src/ast/binary_operator_node.rs:158:36 [INFO] [stdout] | [INFO] [stdout] 156 | use super::*; [INFO] [stdout] | -------- the item `TokenValue` is already imported here [INFO] [stdout] 157 | use ast::{Ast, AstNode, AstIndex, NumberNode}; [INFO] [stdout] 158 | use tokens::{Token, TokenType, TokenValue, OperatorType, Span}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `OperatorType` is imported redundantly [INFO] [stdout] --> src/ast/binary_operator_node.rs:158:48 [INFO] [stdout] | [INFO] [stdout] 156 | use super::*; [INFO] [stdout] | -------- the item `OperatorType` is already imported here [INFO] [stdout] 157 | use ast::{Ast, AstNode, AstIndex, NumberNode}; [INFO] [stdout] 158 | use tokens::{Token, TokenType, TokenValue, OperatorType, Span}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Span` is imported redundantly [INFO] [stdout] --> src/ast/binary_operator_node.rs:158:62 [INFO] [stdout] | [INFO] [stdout] 156 | use super::*; [INFO] [stdout] | -------- the item `Span` is already imported here [INFO] [stdout] 157 | use ast::{Ast, AstNode, AstIndex, NumberNode}; [INFO] [stdout] 158 | use tokens::{Token, TokenType, TokenValue, OperatorType, Span}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Token` is imported redundantly [INFO] [stdout] --> src/ast/unary_operator_node.rs:121:18 [INFO] [stdout] | [INFO] [stdout] 120 | use super::*; [INFO] [stdout] | -------- the item `Token` is already imported here [INFO] [stdout] 121 | use tokens::{Token, TokenType, OperatorType, TokenValue, Span}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `OperatorType` is imported redundantly [INFO] [stdout] --> src/ast/unary_operator_node.rs:121:36 [INFO] [stdout] | [INFO] [stdout] 120 | use super::*; [INFO] [stdout] | -------- the item `OperatorType` is already imported here [INFO] [stdout] 121 | use tokens::{Token, TokenType, OperatorType, TokenValue, Span}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TokenValue` is imported redundantly [INFO] [stdout] --> src/ast/unary_operator_node.rs:121:50 [INFO] [stdout] | [INFO] [stdout] 120 | use super::*; [INFO] [stdout] | -------- the item `TokenValue` is already imported here [INFO] [stdout] 121 | use tokens::{Token, TokenType, OperatorType, TokenValue, Span}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Span` is imported redundantly [INFO] [stdout] --> src/ast/unary_operator_node.rs:121:62 [INFO] [stdout] | [INFO] [stdout] 120 | use super::*; [INFO] [stdout] | -------- the item `Span` is already imported here [INFO] [stdout] 121 | use tokens::{Token, TokenType, OperatorType, TokenValue, Span}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Ast` is imported redundantly [INFO] [stdout] --> src/ast/unary_operator_node.rs:122:15 [INFO] [stdout] | [INFO] [stdout] 120 | use super::*; [INFO] [stdout] | -------- the item `Ast` is already imported here [INFO] [stdout] 121 | use tokens::{Token, TokenType, OperatorType, TokenValue, Span}; [INFO] [stdout] 122 | use ast::{Ast, AstNode, AstIndex, NumberNode}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `AstNode` is imported redundantly [INFO] [stdout] --> src/ast/unary_operator_node.rs:122:20 [INFO] [stdout] | [INFO] [stdout] 120 | use super::*; [INFO] [stdout] | -------- the item `AstNode` is already imported here [INFO] [stdout] 121 | use tokens::{Token, TokenType, OperatorType, TokenValue, Span}; [INFO] [stdout] 122 | use ast::{Ast, AstNode, AstIndex, NumberNode}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `AstIndex` is imported redundantly [INFO] [stdout] --> src/ast/unary_operator_node.rs:122:29 [INFO] [stdout] | [INFO] [stdout] 120 | use super::*; [INFO] [stdout] | -------- the item `AstIndex` is already imported here [INFO] [stdout] 121 | use tokens::{Token, TokenType, OperatorType, TokenValue, Span}; [INFO] [stdout] 122 | use ast::{Ast, AstNode, AstIndex, NumberNode}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Ast` is imported redundantly [INFO] [stdout] --> src/ast/compound_stmt_node.rs:98:15 [INFO] [stdout] | [INFO] [stdout] 97 | use super::*; [INFO] [stdout] | -------- the item `Ast` is already imported here [INFO] [stdout] 98 | use ast::{Ast, AstNode, AstIndex, NumberNode, BinaryOperatorNode}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `AstNode` is imported redundantly [INFO] [stdout] --> src/ast/compound_stmt_node.rs:98:20 [INFO] [stdout] | [INFO] [stdout] 97 | use super::*; [INFO] [stdout] | -------- the item `AstNode` is already imported here [INFO] [stdout] 98 | use ast::{Ast, AstNode, AstIndex, NumberNode, BinaryOperatorNode}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `AstIndex` is imported redundantly [INFO] [stdout] --> src/ast/compound_stmt_node.rs:98:29 [INFO] [stdout] | [INFO] [stdout] 97 | use super::*; [INFO] [stdout] | -------- the item `AstIndex` is already imported here [INFO] [stdout] 98 | use ast::{Ast, AstNode, AstIndex, NumberNode, BinaryOperatorNode}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Token` is imported redundantly [INFO] [stdout] --> src/ast/compound_stmt_node.rs:99:18 [INFO] [stdout] | [INFO] [stdout] 97 | use super::*; [INFO] [stdout] | -------- the item `Token` is already imported here [INFO] [stdout] 98 | use ast::{Ast, AstNode, AstIndex, NumberNode, BinaryOperatorNode}; [INFO] [stdout] 99 | use tokens::{Token, TokenType, TokenValue, OperatorType, Span}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TokenValue` is imported redundantly [INFO] [stdout] --> src/ast/compound_stmt_node.rs:99:36 [INFO] [stdout] | [INFO] [stdout] 97 | use super::*; [INFO] [stdout] | -------- the item `TokenValue` is already imported here [INFO] [stdout] 98 | use ast::{Ast, AstNode, AstIndex, NumberNode, BinaryOperatorNode}; [INFO] [stdout] 99 | use tokens::{Token, TokenType, TokenValue, OperatorType, Span}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Span` is imported redundantly [INFO] [stdout] --> src/ast/compound_stmt_node.rs:99:62 [INFO] [stdout] | [INFO] [stdout] 97 | use super::*; [INFO] [stdout] | -------- the item `Span` is already imported here [INFO] [stdout] 98 | use ast::{Ast, AstNode, AstIndex, NumberNode, BinaryOperatorNode}; [INFO] [stdout] 99 | use tokens::{Token, TokenType, TokenValue, OperatorType, Span}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Value` is imported redundantly [INFO] [stdout] --> src/ast/compound_stmt_node.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 97 | use super::*; [INFO] [stdout] | -------- the item `Value` is already imported here [INFO] [stdout] ... [INFO] [stdout] 100 | use interpreter::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:53:50 [INFO] [stdout] | [INFO] [stdout] 53 | ... file_res.unwrap_err().description())); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Token` is imported redundantly [INFO] [stdout] --> src/ast/variable_node.rs:96:18 [INFO] [stdout] | [INFO] [stdout] 95 | use super::*; [INFO] [stdout] | -------- the item `Token` is already imported here [INFO] [stdout] 96 | use tokens::{Token, TokenType, TokenValue, Span, Type}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TokenValue` is imported redundantly [INFO] [stdout] --> src/ast/variable_node.rs:96:36 [INFO] [stdout] | [INFO] [stdout] 95 | use super::*; [INFO] [stdout] | -------- the item `TokenValue` is already imported here [INFO] [stdout] 96 | use tokens::{Token, TokenType, TokenValue, Span, Type}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:59:77 [INFO] [stdout] | [INFO] [stdout] 59 | Err(why) => Err(format!("Couldn't read {}: {}", path.display(), why.description())), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Span` is imported redundantly [INFO] [stdout] --> src/ast/variable_node.rs:96:48 [INFO] [stdout] | [INFO] [stdout] 95 | use super::*; [INFO] [stdout] | -------- the item `Span` is already imported here [INFO] [stdout] 96 | use tokens::{Token, TokenType, TokenValue, Span, Type}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Ast` is imported redundantly [INFO] [stdout] --> src/ast/variable_node.rs:97:15 [INFO] [stdout] | [INFO] [stdout] 95 | use super::*; [INFO] [stdout] | -------- the item `Ast` is already imported here [INFO] [stdout] 96 | use tokens::{Token, TokenType, TokenValue, Span, Type}; [INFO] [stdout] 97 | use ast::{Ast, AstNode, AstIndex, NumberNode, AssignmentStmtNode}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `AstNode` is imported redundantly [INFO] [stdout] --> src/ast/variable_node.rs:97:20 [INFO] [stdout] | [INFO] [stdout] 95 | use super::*; [INFO] [stdout] | -------- the item `AstNode` is already imported here [INFO] [stdout] 96 | use tokens::{Token, TokenType, TokenValue, Span, Type}; [INFO] [stdout] 97 | use ast::{Ast, AstNode, AstIndex, NumberNode, AssignmentStmtNode}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `AstIndex` is imported redundantly [INFO] [stdout] --> src/ast/variable_node.rs:97:29 [INFO] [stdout] | [INFO] [stdout] 95 | use super::*; [INFO] [stdout] | -------- the item `AstIndex` is already imported here [INFO] [stdout] 96 | use tokens::{Token, TokenType, TokenValue, Span, Type}; [INFO] [stdout] 97 | use ast::{Ast, AstNode, AstIndex, NumberNode, AssignmentStmtNode}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Value` is imported redundantly [INFO] [stdout] --> src/ast/variable_node.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 95 | use super::*; [INFO] [stdout] | -------- the item `Value` is already imported here [INFO] [stdout] ... [INFO] [stdout] 98 | use interpreter::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Token` is imported redundantly [INFO] [stdout] --> src/ast/assignment_stmt_node.rs:134:18 [INFO] [stdout] | [INFO] [stdout] 133 | use super::*; [INFO] [stdout] | -------- the item `Token` is already imported here [INFO] [stdout] 134 | use tokens::{Token, TokenType, TokenValue, Span, Type}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TokenValue` is imported redundantly [INFO] [stdout] --> src/ast/assignment_stmt_node.rs:134:36 [INFO] [stdout] | [INFO] [stdout] 133 | use super::*; [INFO] [stdout] | -------- the item `TokenValue` is already imported here [INFO] [stdout] 134 | use tokens::{Token, TokenType, TokenValue, Span, Type}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Span` is imported redundantly [INFO] [stdout] --> src/ast/assignment_stmt_node.rs:134:48 [INFO] [stdout] | [INFO] [stdout] 133 | use super::*; [INFO] [stdout] | -------- the item `Span` is already imported here [INFO] [stdout] 134 | use tokens::{Token, TokenType, TokenValue, Span, Type}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Type` is imported redundantly [INFO] [stdout] --> src/ast/assignment_stmt_node.rs:134:54 [INFO] [stdout] | [INFO] [stdout] 133 | use super::*; [INFO] [stdout] | -------- the item `Type` is already imported here [INFO] [stdout] 134 | use tokens::{Token, TokenType, TokenValue, Span, Type}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Ast` is imported redundantly [INFO] [stdout] --> src/ast/assignment_stmt_node.rs:135:15 [INFO] [stdout] | [INFO] [stdout] 133 | use super::*; [INFO] [stdout] | -------- the item `Ast` is already imported here [INFO] [stdout] 134 | use tokens::{Token, TokenType, TokenValue, Span, Type}; [INFO] [stdout] 135 | use ast::{Ast, AstNode, AstIndex, VariableNode, NumberNode, CompoundStmtNode}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `AstNode` is imported redundantly [INFO] [stdout] --> src/ast/assignment_stmt_node.rs:135:20 [INFO] [stdout] | [INFO] [stdout] 133 | use super::*; [INFO] [stdout] | -------- the item `AstNode` is already imported here [INFO] [stdout] 134 | use tokens::{Token, TokenType, TokenValue, Span, Type}; [INFO] [stdout] 135 | use ast::{Ast, AstNode, AstIndex, VariableNode, NumberNode, CompoundStmtNode}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `AstIndex` is imported redundantly [INFO] [stdout] --> src/ast/assignment_stmt_node.rs:135:29 [INFO] [stdout] | [INFO] [stdout] 133 | use super::*; [INFO] [stdout] | -------- the item `AstIndex` is already imported here [INFO] [stdout] 134 | use tokens::{Token, TokenType, TokenValue, Span, Type}; [INFO] [stdout] 135 | use ast::{Ast, AstNode, AstIndex, VariableNode, NumberNode, CompoundStmtNode}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Value` is imported redundantly [INFO] [stdout] --> src/ast/assignment_stmt_node.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 133 | use super::*; [INFO] [stdout] | -------- the item `Value` is already imported here [INFO] [stdout] ... [INFO] [stdout] 136 | use interpreter::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/ast/assignment_stmt_node.rs:251:50 [INFO] [stdout] | [INFO] [stdout] 251 | ... real_node!(ast, (i64::MAX as f64 + 1000.0))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 251 - real_node!(ast, (i64::MAX as f64 + 1000.0))); [INFO] [stdout] 251 + real_node!(ast, i64::MAX as f64 + 1000.0)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `AstNode` is imported redundantly [INFO] [stdout] --> src/ast/block_node.rs:99:15 [INFO] [stdout] | [INFO] [stdout] 97 | use super::*; [INFO] [stdout] | -------- the item `AstNode` is already imported here [INFO] [stdout] 98 | use tokens::{Token, TokenType, OperatorType, Type}; [INFO] [stdout] 99 | use ast::{AstNode, AstIndex, CompoundStmtNode, BinaryOperatorNode, NumberNode, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `AstIndex` is imported redundantly [INFO] [stdout] --> src/ast/block_node.rs:99:24 [INFO] [stdout] | [INFO] [stdout] 97 | use super::*; [INFO] [stdout] | -------- the item `AstIndex` is already imported here [INFO] [stdout] 98 | use tokens::{Token, TokenType, OperatorType, Type}; [INFO] [stdout] 99 | use ast::{AstNode, AstIndex, CompoundStmtNode, BinaryOperatorNode, NumberNode, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `AstNode` is imported redundantly [INFO] [stdout] --> src/ast/type_node.rs:78:15 [INFO] [stdout] | [INFO] [stdout] 77 | use super::*; [INFO] [stdout] | -------- the item `AstNode` is already imported here [INFO] [stdout] 78 | use ast::{AstNode, AstIndex}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `AstIndex` is imported redundantly [INFO] [stdout] --> src/ast/type_node.rs:78:24 [INFO] [stdout] | [INFO] [stdout] 77 | use super::*; [INFO] [stdout] | -------- the item `AstIndex` is already imported here [INFO] [stdout] 78 | use ast::{AstNode, AstIndex}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Token` is imported redundantly [INFO] [stdout] --> src/ast/type_node.rs:79:18 [INFO] [stdout] | [INFO] [stdout] 77 | use super::*; [INFO] [stdout] | -------- the item `Token` is already imported here [INFO] [stdout] 78 | use ast::{AstNode, AstIndex}; [INFO] [stdout] 79 | use tokens::{Token, TokenType, TokenValue, Span}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TokenValue` is imported redundantly [INFO] [stdout] --> src/ast/type_node.rs:79:36 [INFO] [stdout] | [INFO] [stdout] 77 | use super::*; [INFO] [stdout] | -------- the item `TokenValue` is already imported here [INFO] [stdout] 78 | use ast::{AstNode, AstIndex}; [INFO] [stdout] 79 | use tokens::{Token, TokenType, TokenValue, Span}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Span` is imported redundantly [INFO] [stdout] --> src/ast/type_node.rs:79:48 [INFO] [stdout] | [INFO] [stdout] 77 | use super::*; [INFO] [stdout] | -------- the item `Span` is already imported here [INFO] [stdout] 78 | use ast::{AstNode, AstIndex}; [INFO] [stdout] 79 | use tokens::{Token, TokenType, TokenValue, Span}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Span` is imported redundantly [INFO] [stdout] --> src/ast/variable_decl_node.rs:109:36 [INFO] [stdout] | [INFO] [stdout] 108 | use super::*; [INFO] [stdout] | -------- the item `Span` is already imported here [INFO] [stdout] 109 | use tokens::{Token, TokenType, Span, Type}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `AstNode` is imported redundantly [INFO] [stdout] --> src/ast/variable_decl_node.rs:110:15 [INFO] [stdout] | [INFO] [stdout] 108 | use super::*; [INFO] [stdout] | -------- the item `AstNode` is already imported here [INFO] [stdout] 109 | use tokens::{Token, TokenType, Span, Type}; [INFO] [stdout] 110 | use ast::{AstNode, AstIndex, VariableNode, TypeNode}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `AstIndex` is imported redundantly [INFO] [stdout] --> src/ast/variable_decl_node.rs:110:24 [INFO] [stdout] | [INFO] [stdout] 108 | use super::*; [INFO] [stdout] | -------- the item `AstIndex` is already imported here [INFO] [stdout] 109 | use tokens::{Token, TokenType, Span, Type}; [INFO] [stdout] 110 | use ast::{AstNode, AstIndex, VariableNode, TypeNode}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `AstNode` is imported redundantly [INFO] [stdout] --> src/ast/program_node.rs:99:15 [INFO] [stdout] | [INFO] [stdout] 97 | use super::*; [INFO] [stdout] | -------- the item `AstNode` is already imported here [INFO] [stdout] 98 | use tokens::{Token, TokenType, OperatorType, Type}; [INFO] [stdout] 99 | use ast::{AstNode, AstIndex, VariableNode, BlockNode, CompoundStmtNode, BinaryOperatorNode, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `AstIndex` is imported redundantly [INFO] [stdout] --> src/ast/program_node.rs:99:24 [INFO] [stdout] | [INFO] [stdout] 97 | use super::*; [INFO] [stdout] | -------- the item `AstIndex` is already imported here [INFO] [stdout] 98 | use tokens::{Token, TokenType, OperatorType, Type}; [INFO] [stdout] 99 | use ast::{AstNode, AstIndex, VariableNode, BlockNode, CompoundStmtNode, BinaryOperatorNode, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Lexer` is imported redundantly [INFO] [stdout] --> src/lexer/pascal_lexer.rs:388:9 [INFO] [stdout] | [INFO] [stdout] 384 | use super::*; [INFO] [stdout] | -------- the item `Lexer` is already imported here [INFO] [stdout] ... [INFO] [stdout] 388 | use lexer::Lexer; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Lexer` is imported redundantly [INFO] [stdout] --> src/lexer/mock_lexer.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 134 | use super::*; [INFO] [stdout] | -------- the item `Lexer` is already imported here [INFO] [stdout] 135 | use lexer::Lexer; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Ast` is imported redundantly [INFO] [stdout] --> src/parser/mod.rs:449:9 [INFO] [stdout] | [INFO] [stdout] 447 | use super::*; [INFO] [stdout] | -------- the item `Ast` is already imported here [INFO] [stdout] 448 | use tokens::*; [INFO] [stdout] 449 | use ast::Ast; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Lexer` is imported redundantly [INFO] [stdout] --> src/parser/mod.rs:450:17 [INFO] [stdout] | [INFO] [stdout] 447 | use super::*; [INFO] [stdout] | -------- the item `Lexer` is already imported here [INFO] [stdout] ... [INFO] [stdout] 450 | use lexer::{Lexer, MockLexer}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Ast` is imported redundantly [INFO] [stdout] --> src/interpreter/mod.rs:241:9 [INFO] [stdout] | [INFO] [stdout] 239 | use super::*; [INFO] [stdout] | -------- the item `Ast` is already imported here [INFO] [stdout] 240 | use tokens::{TokenType, TokenValue, OperatorType, Type}; [INFO] [stdout] 241 | use ast::Ast; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ast/mod.rs:75:20 [INFO] [stdout] | [INFO] [stdout] 75 | nodes: Vec>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 75 | nodes: Vec>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ast/mod.rs:111:49 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn get_node(&self, index: AstIndex) -> &AstNode { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 111 | pub fn get_node(&self, index: AstIndex) -> &dyn AstNode { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ast/mod.rs:121:61 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn get_node_mut(&mut self, index: AstIndex) -> &mut AstNode { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 121 | pub fn get_node_mut(&mut self, index: AstIndex) -> &mut dyn AstNode { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ast/mod.rs:126:39 [INFO] [stdout] | [INFO] [stdout] 126 | pub fn get_root(&self) -> Option<&AstNode> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 126 | pub fn get_root(&self) -> Option<&dyn AstNode> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `token` is never read [INFO] [stdout] --> src/ast/number_node.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct NumberNode { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 15 | token: Token, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NumberNode` 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: field `token` is never read [INFO] [stdout] --> src/ast/binary_operator_node.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct BinaryOperatorNode { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 18 | token: Token, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinaryOperatorNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `token` is never read [INFO] [stdout] --> src/ast/unary_operator_node.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct UnaryOperatorNode { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | token: Token, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UnaryOperatorNode` 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 `token_begin` and `token_end` are never read [INFO] [stdout] --> src/ast/compound_stmt_node.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct CompoundStmtNode { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | token_begin: Token, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 18 | token_end: Token, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CompoundStmtNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `token` is never read [INFO] [stdout] --> src/ast/assignment_stmt_node.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct AssignmentStmtNode { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | token: Token, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AssignmentStmtNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `token` is never read [INFO] [stdout] --> src/ast/type_node.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct TypeNode { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 15 | token: Token, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_position` is never used [INFO] [stdout] --> src/lexer/mod.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub trait Lexer { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] ... [INFO] [stdout] 22 | fn get_position(&self) -> usize; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/lexer/pascal_lexer.rs:221:34 [INFO] [stdout] | [INFO] [stdout] 221 | ... e.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/lexer/pascal_lexer.rs:232:30 [INFO] [stdout] | [INFO] [stdout] 232 | ... e.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:53:50 [INFO] [stdout] | [INFO] [stdout] 53 | ... file_res.unwrap_err().description())); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:59:77 [INFO] [stdout] | [INFO] [stdout] 59 | Err(why) => Err(format!("Couldn't read {}: {}", path.display(), why.description())), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `token` is never read [INFO] [stdout] --> src/ast/number_node.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct NumberNode { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 15 | token: Token, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NumberNode` 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: field `token` is never read [INFO] [stdout] --> src/ast/binary_operator_node.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct BinaryOperatorNode { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 18 | token: Token, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinaryOperatorNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `token` is never read [INFO] [stdout] --> src/ast/unary_operator_node.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct UnaryOperatorNode { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | token: Token, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UnaryOperatorNode` 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 `token_begin` and `token_end` are never read [INFO] [stdout] --> src/ast/compound_stmt_node.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct CompoundStmtNode { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | token_begin: Token, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 18 | token_end: Token, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CompoundStmtNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `token` is never read [INFO] [stdout] --> src/ast/assignment_stmt_node.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct AssignmentStmtNode { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | token: Token, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AssignmentStmtNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `token` is never read [INFO] [stdout] --> src/ast/type_node.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct TypeNode { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 15 | token: Token, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 76 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.43s [INFO] running `Command { std: "docker" "inspect" "7d70751804155fa56102c89ac12a48ebcbc1307724ac1a2649eea1082170f062", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7d70751804155fa56102c89ac12a48ebcbc1307724ac1a2649eea1082170f062", kill_on_drop: false }` [INFO] [stdout] 7d70751804155fa56102c89ac12a48ebcbc1307724ac1a2649eea1082170f062