[INFO] cloning repository https://github.com/inda21plusplus/ollejer-compiler [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/inda21plusplus/ollejer-compiler" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finda21plusplus%2Follejer-compiler", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finda21plusplus%2Follejer-compiler'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 10a6f0d394902d350b64efd816a627a2d3ed02d7 [INFO] checking inda21plusplus/ollejer-compiler against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finda21plusplus%2Follejer-compiler" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/inda21plusplus/ollejer-compiler on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/inda21plusplus/ollejer-compiler [INFO] finished tweaking git repo https://github.com/inda21plusplus/ollejer-compiler [INFO] tweaked toml for git repo https://github.com/inda21plusplus/ollejer-compiler written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/inda21plusplus/ollejer-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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 708ac29ed7a0a534e52d62425efaaad01bc7c23d60d231b83db1de5149625ccd [INFO] running `Command { std: "docker" "start" "-a" "708ac29ed7a0a534e52d62425efaaad01bc7c23d60d231b83db1de5149625ccd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "708ac29ed7a0a534e52d62425efaaad01bc7c23d60d231b83db1de5149625ccd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "708ac29ed7a0a534e52d62425efaaad01bc7c23d60d231b83db1de5149625ccd", kill_on_drop: false }` [INFO] [stdout] 708ac29ed7a0a534e52d62425efaaad01bc7c23d60d231b83db1de5149625ccd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f5db2c6c61350d94a570c53c8ea5d52e078c6fe7dec0fab2c3181c5b2a99dd01 [INFO] running `Command { std: "docker" "start" "-a" "f5db2c6c61350d94a570c53c8ea5d52e078c6fe7dec0fab2c3181c5b2a99dd01", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling syn v1.0.81 [INFO] [stderr] Compiling unicode-segmentation v1.8.0 [INFO] [stderr] Checking strum v0.22.0 [INFO] [stderr] Checking examplez v0.1.0 (/opt/rustwide/workdir/examplez) [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-bigint v0.3.3 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Checking num-complex v0.3.1 [INFO] [stderr] Checking num v0.3.1 [INFO] [stderr] Compiling strum_macros v0.22.0 [INFO] [stderr] Checking main v0.1.0 (/opt/rustwide/workdir/main) [INFO] [stdout] warning: unused import: `std::cmp` [INFO] [stdout] --> main/src/errors.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::cmp; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `format` and `self` [INFO] [stdout] --> main/src/errors.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt::{self, format}; [INFO] [stdout] | ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::token::Token` [INFO] [stdout] --> main/src/finshell.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::token::Token; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> main/src/finshell.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | Ok(t) => (t), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 21 - Ok(t) => (t), [INFO] [stdout] 21 + Ok(t) => t, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lexer::Lexer` [INFO] [stdout] --> main/src/interpeter.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::lexer::Lexer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::parser::Parser` [INFO] [stdout] --> main/src/interpeter.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::parser::Parser; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::position::Position` [INFO] [stdout] --> main/src/interpeter.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::position::Position; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops` [INFO] [stdout] --> main/src/interpeter.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::ops; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `clone`, `collections`, and `fmt` [INFO] [stdout] --> main/src/interpeter.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | use std::{clone, collections, fmt}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cmp` [INFO] [stdout] --> main/src/number.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{cmp, fmt, ops}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DisallowedCharError` [INFO] [stdout] --> main/src/parser.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::errors::{DisallowedCharError, ErrorType, SyntaxError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lexer::Lexer` [INFO] [stdout] --> main/src/parser.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::lexer::Lexer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::position::Position` [INFO] [stdout] --> main/src/parser.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::position::Position; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RParen` and `String` [INFO] [stdout] --> main/src/parser.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | RParen, String, [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `strum::IntoEnumIterator` [INFO] [stdout] --> main/src/parser.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use strum::IntoEnumIterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `strum_macros::EnumIter` [INFO] [stdout] --> main/src/parser.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use strum_macros::EnumIter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DisallowedCharError` and `self` [INFO] [stdout] --> main/src/token.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::errors::{self, DisallowedCharError}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp` [INFO] [stdout] --> main/src/errors.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::cmp; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `format` and `self` [INFO] [stdout] --> main/src/errors.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt::{self, format}; [INFO] [stdout] | ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::token::Token` [INFO] [stdout] --> main/src/finshell.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::token::Token; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> main/src/finshell.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | Ok(t) => (t), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 21 - Ok(t) => (t), [INFO] [stdout] 21 + Ok(t) => t, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::position::Position` [INFO] [stdout] --> main/src/interpeter.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::position::Position; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops` [INFO] [stdout] --> main/src/interpeter.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::ops; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `clone`, `collections`, and `fmt` [INFO] [stdout] --> main/src/interpeter.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | use std::{clone, collections, fmt}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> main/src/lexer.rs:150:22 [INFO] [stdout] | [INFO] [stdout] 150 | Ok(t) => (t), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 150 - Ok(t) => (t), [INFO] [stdout] 150 + Ok(t) => t, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cmp` [INFO] [stdout] --> main/src/number.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{cmp, fmt, ops}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DisallowedCharError` [INFO] [stdout] --> main/src/parser.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::errors::{DisallowedCharError, ErrorType, SyntaxError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::position::Position` [INFO] [stdout] --> main/src/parser.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::position::Position; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RParen` and `String` [INFO] [stdout] --> main/src/parser.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | RParen, String, [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `strum::IntoEnumIterator` [INFO] [stdout] --> main/src/parser.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use strum::IntoEnumIterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `strum_macros::EnumIter` [INFO] [stdout] --> main/src/parser.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use strum_macros::EnumIter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DisallowedCharError` and `self` [INFO] [stdout] --> main/src/token.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::errors::{self, DisallowedCharError}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index_end` [INFO] [stdout] --> main/src/errors.rs:282:17 [INFO] [stdout] | [INFO] [stdout] 282 | let mut index_end = match text_end_slice.to_string().find('\n') { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_index_end` [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] --> main/src/errors.rs:246:9 [INFO] [stdout] | [INFO] [stdout] 246 | let mut index_end = match text_end_slice.to_string().find('\n') { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> main/src/errors.rs:282:13 [INFO] [stdout] | [INFO] [stdout] 282 | let mut index_end = match text_end_slice.to_string().find('\n') { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> main/src/finshell.rs:57:16 [INFO] [stdout] | [INFO] [stdout] 57 | Ok(out) => (/*println!("Ast: {}", out)*/), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> main/src/interpeter.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | node: Node, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index_end` [INFO] [stdout] --> main/src/errors.rs:282:17 [INFO] [stdout] | [INFO] [stdout] 282 | let mut index_end = match text_end_slice.to_string().find('\n') { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_index_end` [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] --> main/src/errors.rs:246:9 [INFO] [stdout] | [INFO] [stdout] 246 | let mut index_end = match text_end_slice.to_string().find('\n') { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> main/src/errors.rs:282:13 [INFO] [stdout] | [INFO] [stdout] 282 | let mut index_end = match text_end_slice.to_string().find('\n') { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> main/src/finshell.rs:57:16 [INFO] [stdout] | [INFO] [stdout] 57 | Ok(out) => (/*println!("Ast: {}", out)*/), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> main/src/number.rs:65:35 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn set_context(&mut self, context: Context) {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> main/src/interpeter.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | node: Node, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text_value` [INFO] [stdout] --> main/src/interpeter.rs:281:13 [INFO] [stdout] | [INFO] [stdout] 281 | let text_value = 2; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_text_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `tokens` is never read [INFO] [stdout] --> main/src/interpeter.rs:283:17 [INFO] [stdout] | [INFO] [stdout] 283 | let mut tokens: Vec = vec![]; [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: `number` [INFO] [stdout] --> main/src/interpeter.rs:302:17 [INFO] [stdout] | [INFO] [stdout] 302 | let number = match result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> main/src/context.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Context { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 15 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> main/src/number.rs:65:35 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn set_context(&mut self, context: Context) {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `DivisionByZeroError` is never constructed [INFO] [stdout] --> main/src/errors.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum ErrorType { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 11 | DivisionByZeroError(DivisionByZeroError), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ErrorType` 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 function `new` is never used [INFO] [stdout] --> main/src/errors.rs:204:12 [INFO] [stdout] | [INFO] [stdout] 203 | impl DivisionByZeroError { [INFO] [stdout] | ------------------------ associated function in this implementation [INFO] [stdout] 204 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `check_if_same_numbertype` is never used [INFO] [stdout] --> main/src/interpeter.rs:213:8 [INFO] [stdout] | [INFO] [stdout] 18 | impl Interpeter { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 213 | fn check_if_same_numbertype(&self, first: NumberType, other: NumberType) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_pos` and `set_context` are never used [INFO] [stdout] --> main/src/number.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl Number { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn set_pos(&mut self, pos_start: Option, pos_end: Option) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn set_context(&mut self, context: Context) {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_ast` is never used [INFO] [stdout] --> main/src/parser.rs:221:4 [INFO] [stdout] | [INFO] [stdout] 221 | fn print_ast(root: Node) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `remove` is never used [INFO] [stdout] --> main/src/symbols.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl SymbolMap { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn remove(&mut self, key: String) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `String` and `Invalid` are never constructed [INFO] [stdout] --> main/src/token.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum TokenType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 16 | String(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 17 | Invalid, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenType` 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: enum `Keyword` is never used [INFO] [stdout] --> main/src/token.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | pub enum Keyword { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_no_pos` is never used [INFO] [stdout] --> main/src/token.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 57 | impl Token { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn new_no_pos(type_: TokenType) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> main/src/finshell.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | io::stdout().flush(); [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] 51 | let _ = io::stdout().flush(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> main/src/finshell.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | io::stdout().flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 66 | let _ = io::stdout().flush(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 35 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> main/src/context.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Context { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 15 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `DivisionByZeroError` is never constructed [INFO] [stdout] --> main/src/errors.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum ErrorType { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 11 | DivisionByZeroError(DivisionByZeroError), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ErrorType` 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 function `new` is never used [INFO] [stdout] --> main/src/errors.rs:204:12 [INFO] [stdout] | [INFO] [stdout] 203 | impl DivisionByZeroError { [INFO] [stdout] | ------------------------ associated function in this implementation [INFO] [stdout] 204 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `check_if_same_numbertype` is never used [INFO] [stdout] --> main/src/interpeter.rs:213:8 [INFO] [stdout] | [INFO] [stdout] 18 | impl Interpeter { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 213 | fn check_if_same_numbertype(&self, first: NumberType, other: NumberType) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_pos` and `set_context` are never used [INFO] [stdout] --> main/src/number.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl Number { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn set_pos(&mut self, pos_start: Option, pos_end: Option) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn set_context(&mut self, context: Context) {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `remove` is never used [INFO] [stdout] --> main/src/symbols.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl SymbolMap { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn remove(&mut self, key: String) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `String` and `Invalid` are never constructed [INFO] [stdout] --> main/src/token.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum TokenType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 16 | String(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 17 | Invalid, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenType` 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: enum `Keyword` is never used [INFO] [stdout] --> main/src/token.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | pub enum Keyword { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> main/src/finshell.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | io::stdout().flush(); [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] 51 | let _ = io::stdout().flush(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> main/src/finshell.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | io::stdout().flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 66 | let _ = io::stdout().flush(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 34 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.44s [INFO] running `Command { std: "docker" "inspect" "f5db2c6c61350d94a570c53c8ea5d52e078c6fe7dec0fab2c3181c5b2a99dd01", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f5db2c6c61350d94a570c53c8ea5d52e078c6fe7dec0fab2c3181c5b2a99dd01", kill_on_drop: false }` [INFO] [stdout] f5db2c6c61350d94a570c53c8ea5d52e078c6fe7dec0fab2c3181c5b2a99dd01 [INFO] checking inda21plusplus/ollejer-compiler against try#f9935d29d867449445ee008640ccca1bf1ae0889+rustflags=-Dtail_expr_drop_order for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finda21plusplus%2Follejer-compiler" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/inda21plusplus/ollejer-compiler on toolchain f9935d29d867449445ee008640ccca1bf1ae0889 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/inda21plusplus/ollejer-compiler [INFO] finished tweaking git repo https://github.com/inda21plusplus/ollejer-compiler [INFO] tweaked toml for git repo https://github.com/inda21plusplus/ollejer-compiler written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/inda21plusplus/ollejer-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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ea17c583b7e1020535108e4d13bf875390eaf48b3e047f9b1cc248cf719d1507 [INFO] running `Command { std: "docker" "start" "-a" "ea17c583b7e1020535108e4d13bf875390eaf48b3e047f9b1cc248cf719d1507", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ea17c583b7e1020535108e4d13bf875390eaf48b3e047f9b1cc248cf719d1507", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ea17c583b7e1020535108e4d13bf875390eaf48b3e047f9b1cc248cf719d1507", kill_on_drop: false }` [INFO] [stdout] ea17c583b7e1020535108e4d13bf875390eaf48b3e047f9b1cc248cf719d1507 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b46cbe99c19ee94c0b9d03cd1923b034aeeed2c206fd89dd3bb416ae8d1857cc [INFO] running `Command { std: "docker" "start" "-a" "b46cbe99c19ee94c0b9d03cd1923b034aeeed2c206fd89dd3bb416ae8d1857cc", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling syn v1.0.81 [INFO] [stderr] Compiling unicode-segmentation v1.8.0 [INFO] [stderr] Checking strum v0.22.0 [INFO] [stderr] Checking examplez v0.1.0 (/opt/rustwide/workdir/examplez) [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-bigint v0.3.3 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Checking num-complex v0.3.1 [INFO] [stderr] Checking num v0.3.1 [INFO] [stderr] Compiling strum_macros v0.22.0 [INFO] [stderr] Checking main v0.1.0 (/opt/rustwide/workdir/main) [INFO] [stdout] warning: unused import: `std::cmp` [INFO] [stdout] --> main/src/errors.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::cmp; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `format` and `self` [INFO] [stdout] --> main/src/errors.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt::{self, format}; [INFO] [stdout] | ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::token::Token` [INFO] [stdout] --> main/src/finshell.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::token::Token; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> main/src/finshell.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | Ok(t) => (t), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 21 - Ok(t) => (t), [INFO] [stdout] 21 + Ok(t) => t, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lexer::Lexer` [INFO] [stdout] --> main/src/interpeter.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::lexer::Lexer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::parser::Parser` [INFO] [stdout] --> main/src/interpeter.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::parser::Parser; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::position::Position` [INFO] [stdout] --> main/src/interpeter.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::position::Position; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops` [INFO] [stdout] --> main/src/interpeter.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::ops; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `clone`, `collections`, and `fmt` [INFO] [stdout] --> main/src/interpeter.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | use std::{clone, collections, fmt}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cmp` [INFO] [stdout] --> main/src/number.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{cmp, fmt, ops}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DisallowedCharError` [INFO] [stdout] --> main/src/parser.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::errors::{DisallowedCharError, ErrorType, SyntaxError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lexer::Lexer` [INFO] [stdout] --> main/src/parser.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::lexer::Lexer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::position::Position` [INFO] [stdout] --> main/src/parser.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::position::Position; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RParen` and `String` [INFO] [stdout] --> main/src/parser.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | RParen, String, [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `strum::IntoEnumIterator` [INFO] [stdout] --> main/src/parser.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use strum::IntoEnumIterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `strum_macros::EnumIter` [INFO] [stdout] --> main/src/parser.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use strum_macros::EnumIter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DisallowedCharError` and `self` [INFO] [stdout] --> main/src/token.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::errors::{self, DisallowedCharError}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp` [INFO] [stdout] --> main/src/errors.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::cmp; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `format` and `self` [INFO] [stdout] --> main/src/errors.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt::{self, format}; [INFO] [stdout] | ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::token::Token` [INFO] [stdout] --> main/src/finshell.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::token::Token; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> main/src/finshell.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | Ok(t) => (t), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 21 - Ok(t) => (t), [INFO] [stdout] 21 + Ok(t) => t, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::position::Position` [INFO] [stdout] --> main/src/interpeter.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::position::Position; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops` [INFO] [stdout] --> main/src/interpeter.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::ops; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `clone`, `collections`, and `fmt` [INFO] [stdout] --> main/src/interpeter.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | use std::{clone, collections, fmt}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> main/src/lexer.rs:150:22 [INFO] [stdout] | [INFO] [stdout] 150 | Ok(t) => (t), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 150 - Ok(t) => (t), [INFO] [stdout] 150 + Ok(t) => t, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cmp` [INFO] [stdout] --> main/src/number.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{cmp, fmt, ops}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DisallowedCharError` [INFO] [stdout] --> main/src/parser.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::errors::{DisallowedCharError, ErrorType, SyntaxError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::position::Position` [INFO] [stdout] --> main/src/parser.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::position::Position; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RParen` and `String` [INFO] [stdout] --> main/src/parser.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | RParen, String, [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `strum::IntoEnumIterator` [INFO] [stdout] --> main/src/parser.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use strum::IntoEnumIterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `strum_macros::EnumIter` [INFO] [stdout] --> main/src/parser.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use strum_macros::EnumIter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DisallowedCharError` and `self` [INFO] [stdout] --> main/src/token.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::errors::{self, DisallowedCharError}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index_end` [INFO] [stdout] --> main/src/errors.rs:282:17 [INFO] [stdout] | [INFO] [stdout] 282 | let mut index_end = match text_end_slice.to_string().find('\n') { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_index_end` [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] --> main/src/errors.rs:246:9 [INFO] [stdout] | [INFO] [stdout] 246 | let mut index_end = match text_end_slice.to_string().find('\n') { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> main/src/errors.rs:282:13 [INFO] [stdout] | [INFO] [stdout] 282 | let mut index_end = match text_end_slice.to_string().find('\n') { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> main/src/finshell.rs:57:16 [INFO] [stdout] | [INFO] [stdout] 57 | Ok(out) => (/*println!("Ast: {}", out)*/), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> main/src/interpeter.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | node: Node, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index_end` [INFO] [stdout] --> main/src/errors.rs:282:17 [INFO] [stdout] | [INFO] [stdout] 282 | let mut index_end = match text_end_slice.to_string().find('\n') { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_index_end` [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] --> main/src/errors.rs:246:9 [INFO] [stdout] | [INFO] [stdout] 246 | let mut index_end = match text_end_slice.to_string().find('\n') { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> main/src/errors.rs:282:13 [INFO] [stdout] | [INFO] [stdout] 282 | let mut index_end = match text_end_slice.to_string().find('\n') { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> main/src/finshell.rs:57:16 [INFO] [stdout] | [INFO] [stdout] 57 | Ok(out) => (/*println!("Ast: {}", out)*/), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> main/src/interpeter.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | node: Node, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> main/src/number.rs:65:35 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn set_context(&mut self, context: Context) {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text_value` [INFO] [stdout] --> main/src/interpeter.rs:281:13 [INFO] [stdout] | [INFO] [stdout] 281 | let text_value = 2; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_text_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `tokens` is never read [INFO] [stdout] --> main/src/interpeter.rs:283:17 [INFO] [stdout] | [INFO] [stdout] 283 | let mut tokens: Vec = vec![]; [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: `number` [INFO] [stdout] --> main/src/interpeter.rs:302:17 [INFO] [stdout] | [INFO] [stdout] 302 | let number = match result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> main/src/number.rs:65:35 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn set_context(&mut self, context: Context) {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> main/src/context.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Context { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 15 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `DivisionByZeroError` is never constructed [INFO] [stdout] --> main/src/errors.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum ErrorType { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 11 | DivisionByZeroError(DivisionByZeroError), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ErrorType` 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 function `new` is never used [INFO] [stdout] --> main/src/errors.rs:204:12 [INFO] [stdout] | [INFO] [stdout] 203 | impl DivisionByZeroError { [INFO] [stdout] | ------------------------ associated function in this implementation [INFO] [stdout] 204 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `check_if_same_numbertype` is never used [INFO] [stdout] --> main/src/interpeter.rs:213:8 [INFO] [stdout] | [INFO] [stdout] 18 | impl Interpeter { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 213 | fn check_if_same_numbertype(&self, first: NumberType, other: NumberType) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_pos` and `set_context` are never used [INFO] [stdout] --> main/src/number.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl Number { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn set_pos(&mut self, pos_start: Option, pos_end: Option) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn set_context(&mut self, context: Context) {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_ast` is never used [INFO] [stdout] --> main/src/parser.rs:221:4 [INFO] [stdout] | [INFO] [stdout] 221 | fn print_ast(root: Node) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `remove` is never used [INFO] [stdout] --> main/src/symbols.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl SymbolMap { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn remove(&mut self, key: String) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `String` and `Invalid` are never constructed [INFO] [stdout] --> main/src/token.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum TokenType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 16 | String(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 17 | Invalid, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenType` 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: enum `Keyword` is never used [INFO] [stdout] --> main/src/token.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | pub enum Keyword { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_no_pos` is never used [INFO] [stdout] --> main/src/token.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 57 | impl Token { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn new_no_pos(type_: TokenType) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> main/src/finshell.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | io::stdout().flush(); [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] 51 | let _ = io::stdout().flush(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> main/src/finshell.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | io::stdout().flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 66 | let _ = io::stdout().flush(); [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] --> main/src/interpeter.rs:24:15 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn visit(&self, node: Node, context: Context) -> Result { [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] 24 | match node.clone() { [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] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> main/src/interpeter.rs:215:13 [INFO] [stdout] | [INFO] [stdout] 213 | fn check_if_same_numbertype(&self, first: NumberType, other: NumberType) -> bool { [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] 214 | matches!( [INFO] [stdout] 215 | (first, other), [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] --> main/src/number.rs:36:22 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn new_no_pos(value: T) -> Self { [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 36 | context: None, [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] --> main/src/number.rs:71:26 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn add(&self, other: Number) -> Self [INFO] [stdout] | ---------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 71 | Self::new_no_pos(self.value.clone() + other.value) [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] --> main/src/number.rs:78:26 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn sub(&self, other: Number) -> Self [INFO] [stdout] | ---------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 78 | Self::new_no_pos(self.value.clone() - other.value) [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] --> main/src/number.rs:85:26 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn mult(&self, other: Number) -> Self [INFO] [stdout] | ---------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 85 | Self::new_no_pos(self.value.clone() * other.value) [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] --> main/src/number.rs:101:12 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn pow(&self, other: Number) -> Result [INFO] [stdout] | ------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 100 | let val = pow::(self.value.clone(), other.value as usize); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 101 | Ok(Self::new_no_pos(val)) [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] --> main/src/number.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn div(&self, other: Number) -> Result [INFO] [stdout] | ---------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 116 | Ok(Self::new_no_pos(self.value.clone() / other.value)) [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 8 previous errors; 35 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> main/src/context.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Context { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 15 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `DivisionByZeroError` is never constructed [INFO] [stdout] --> main/src/errors.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum ErrorType { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 11 | DivisionByZeroError(DivisionByZeroError), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ErrorType` 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 function `new` is never used [INFO] [stdout] --> main/src/errors.rs:204:12 [INFO] [stdout] | [INFO] [stdout] 203 | impl DivisionByZeroError { [INFO] [stdout] | ------------------------ associated function in this implementation [INFO] [stdout] 204 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `check_if_same_numbertype` is never used [INFO] [stdout] --> main/src/interpeter.rs:213:8 [INFO] [stdout] | [INFO] [stdout] 18 | impl Interpeter { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 213 | fn check_if_same_numbertype(&self, first: NumberType, other: NumberType) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_pos` and `set_context` are never used [INFO] [stdout] --> main/src/number.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl Number { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn set_pos(&mut self, pos_start: Option, pos_end: Option) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn set_context(&mut self, context: Context) {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `remove` is never used [INFO] [stdout] --> main/src/symbols.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl SymbolMap { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn remove(&mut self, key: String) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `String` and `Invalid` are never constructed [INFO] [stdout] --> main/src/token.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum TokenType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 16 | String(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 17 | Invalid, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenType` 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: enum `Keyword` is never used [INFO] [stdout] --> main/src/token.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | pub enum Keyword { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `main` (bin "main") due to 9 previous errors; 35 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> main/src/finshell.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | io::stdout().flush(); [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] 51 | let _ = io::stdout().flush(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> main/src/finshell.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | io::stdout().flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 66 | let _ = io::stdout().flush(); [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] --> main/src/interpeter.rs:24:15 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn visit(&self, node: Node, context: Context) -> Result { [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] 24 | match node.clone() { [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] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> main/src/interpeter.rs:215:13 [INFO] [stdout] | [INFO] [stdout] 213 | fn check_if_same_numbertype(&self, first: NumberType, other: NumberType) -> bool { [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] 214 | matches!( [INFO] [stdout] 215 | (first, other), [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] --> main/src/number.rs:36:22 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn new_no_pos(value: T) -> Self { [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 36 | context: None, [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] --> main/src/number.rs:71:26 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn add(&self, other: Number) -> Self [INFO] [stdout] | ---------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 71 | Self::new_no_pos(self.value.clone() + other.value) [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] --> main/src/number.rs:78:26 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn sub(&self, other: Number) -> Self [INFO] [stdout] | ---------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 78 | Self::new_no_pos(self.value.clone() - other.value) [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] --> main/src/number.rs:85:26 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn mult(&self, other: Number) -> Self [INFO] [stdout] | ---------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 85 | Self::new_no_pos(self.value.clone() * other.value) [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] --> main/src/number.rs:101:12 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn pow(&self, other: Number) -> Result [INFO] [stdout] | ------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 100 | let val = pow::(self.value.clone(), other.value as usize); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 101 | Ok(Self::new_no_pos(val)) [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] --> main/src/number.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn div(&self, other: Number) -> Result [INFO] [stdout] | ---------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 116 | Ok(Self::new_no_pos(self.value.clone() / other.value)) [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 8 previous errors; 34 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `main` (bin "main" test) due to 9 previous errors; 34 warnings emitted [INFO] running `Command { std: "docker" "inspect" "b46cbe99c19ee94c0b9d03cd1923b034aeeed2c206fd89dd3bb416ae8d1857cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b46cbe99c19ee94c0b9d03cd1923b034aeeed2c206fd89dd3bb416ae8d1857cc", kill_on_drop: false }` [INFO] [stdout] b46cbe99c19ee94c0b9d03cd1923b034aeeed2c206fd89dd3bb416ae8d1857cc