[INFO] cloning repository https://github.com/justinas/mylang [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/justinas/mylang" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjustinas%2Fmylang", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjustinas%2Fmylang'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 86e92c585be15717e552d909c35e8be0b6938d04 [INFO] building justinas/mylang against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjustinas%2Fmylang" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/justinas/mylang on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/justinas/mylang [INFO] finished tweaking git repo https://github.com/justinas/mylang [INFO] tweaked toml for git repo https://github.com/justinas/mylang written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/justinas/mylang 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1a51d08342bad7115821eca8d1dde8871f3fa5207e44e439c0cfea990eeb1a05 [INFO] running `Command { std: "docker" "start" "-a" "1a51d08342bad7115821eca8d1dde8871f3fa5207e44e439c0cfea990eeb1a05", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1a51d08342bad7115821eca8d1dde8871f3fa5207e44e439c0cfea990eeb1a05", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1a51d08342bad7115821eca8d1dde8871f3fa5207e44e439c0cfea990eeb1a05", kill_on_drop: false }` [INFO] [stdout] 1a51d08342bad7115821eca8d1dde8871f3fa5207e44e439c0cfea990eeb1a05 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c593cfe4cdabc9421aeeb98cefeba2b03b14ac631e0b03a563d8f25ba51d9c7c [INFO] running `Command { std: "docker" "start" "-a" "c593cfe4cdabc9421aeeb98cefeba2b03b14ac631e0b03a563d8f25ba51d9c7c", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling byteorder v1.0.0 [INFO] [stderr] Compiling mylang v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Entry` [INFO] [stdout] --> src/codegen/mod.rs:2:34 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::hash_map::{Entry, HashMap}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/codegen/mod.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | try!(writer.write(&buf)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/codegen/gen.rs:13:19 [INFO] [stdout] | [INFO] [stdout] 13 | fn gen(&self, &mut Context) -> Result, Error>; [INFO] [stdout] | ^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &mut Context` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] = note: `#[warn(anonymous_parameters)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Atom`, `Block`, `Conditional`, `Expr`, `FnItem`, `IfStmt`, `Operation`, `Stmt`, `Type`, `WhileStmt`, and `self` [INFO] [stdout] --> src/codegen/test.rs:1:28 [INFO] [stdout] | [INFO] [stdout] 1 | use super::super::parser::{self, Atom, Block, Conditional, Expr, FnItem, IfStmt, Operation, Stmt, [INFO] [stdout] | ^^^^ ^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^ ^^^^^^ ^^^^^^ ^^^^^^^^^ ^^^^ [INFO] [stdout] 2 | Type, WhileStmt}; [INFO] [stdout] | ^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Context`, `Gen`, `Program`, `Symbol`, and `Typed` [INFO] [stdout] --> src/codegen/test.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use super::{Context, Gen, Program, Symbol, Typed}; [INFO] [stdout] | ^^^^^^^ ^^^ ^^^^^^^ ^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::Error` [INFO] [stdout] --> src/codegen/test.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use super::Error; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::Instruction` [INFO] [stdout] --> src/codegen/test.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use super::Instruction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::Instruction::*` [INFO] [stdout] --> src/codegen/test.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use super::Instruction::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::Marker` [INFO] [stdout] --> src/codegen/test.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use super::Marker; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::parse_program` [INFO] [stdout] --> src/codegen/test.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use super::parse_program; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `empty_fn` [INFO] [stdout] --> src/codegen/test.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | macro_rules! empty_fn { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Lines` [INFO] [stdout] --> src/lexer/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Lines; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lexer/mod.rs:162:9 [INFO] [stdout] | [INFO] [stdout] 162 | try!(r.read_to_string(&mut contents)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexer/mod.rs:194:32 [INFO] [stdout] | [INFO] [stdout] 194 | ... '0'...'9' => self.lex_const(true), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexer/mod.rs:300:20 [INFO] [stdout] | [INFO] [stdout] 300 | '0'...'9' => self.lex_const(false), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexer/mod.rs:301:20 [INFO] [stdout] | [INFO] [stdout] 301 | 'A'...'Z' | 'a'...'z' => self.lex_ident(), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexer/mod.rs:301:32 [INFO] [stdout] | [INFO] [stdout] 301 | 'A'...'Z' | 'a'...'z' => self.lex_ident(), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexer/mod.rs:338:20 [INFO] [stdout] | [INFO] [stdout] 338 | '0'...'9' => val.push(self.chars.next().unwrap()), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexer/mod.rs:339:20 [INFO] [stdout] | [INFO] [stdout] 339 | 'A'...'Z' | 'a'...'z' => return Err(ErrorVariant::UnknownCharacter), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexer/mod.rs:339:32 [INFO] [stdout] | [INFO] [stdout] 339 | 'A'...'Z' | 'a'...'z' => return Err(ErrorVariant::UnknownCharacter), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexer/mod.rs:354:20 [INFO] [stdout] | [INFO] [stdout] 354 | 'A'...'Z' | 'a'...'z' | '0'...'9' => ident.push(self.chars.next().unwrap()), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexer/mod.rs:354:32 [INFO] [stdout] | [INFO] [stdout] 354 | 'A'...'Z' | 'a'...'z' | '0'...'9' => ident.push(self.chars.next().unwrap()), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexer/mod.rs:354:44 [INFO] [stdout] | [INFO] [stdout] 354 | 'A'...'Z' | 'a'...'z' | '0'...'9' => ident.push(self.chars.next().unwrap()), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/lexer/test.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/parser/mod.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | try!(write!(f, r#"Function {:?} ( "#, self.name)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/parser/mod.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | try!(write!(f, r"{:?} {:?} ", param.typ, param.name)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Keyword` and `TokenAt` [INFO] [stdout] --> src/parser/expr.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{Delimiter, Keyword, Operator, Token, TokenAt}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/parser/test.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `parse_atom`, `parse_comparison`, `parse_logexpr`, `parse_product`, and `parse_sum` [INFO] [stdout] --> src/parser/test.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use super::expr::{parse_atom, parse_comparison, parse_logexpr, parse_product, parse_sum}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::Instruction` [INFO] [stdout] --> src/vm/test.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::Instruction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::Instruction::*` [INFO] [stdout] --> src/vm/test.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use super::Instruction::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::Machine` [INFO] [stdout] --> src/vm/test.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use super::Machine; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::super::codegen::Program` [INFO] [stdout] --> src/vm/test.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use super::super::codegen::Program; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::STACK_SIZE` [INFO] [stdout] --> src/vm/test.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use super::STACK_SIZE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/main.rs:44:14 [INFO] [stdout] | [INFO] [stdout] 44 | Err((t, e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let mut machine = vm::Machine::new(&bytes); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/codegen/mod.rs:33:23 [INFO] [stdout] | [INFO] [stdout] 33 | funcs.sort_by(|a, b| if a.name == "main" { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/codegen/gen.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | for a in args.iter() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/codegen/gen.rs:254:19 [INFO] [stdout] | [INFO] [stdout] 254 | fn typ(&self, ctx: &mut Context) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/lexer/mod.rs:278:31 [INFO] [stdout] | [INFO] [stdout] 278 | Some(&c) => Err(ErrorVariant::Expected('&')), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/lexer/mod.rs:290:31 [INFO] [stdout] | [INFO] [stdout] 290 | Some(&c) => Err(ErrorVariant::Expected('|')), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/lexer/mod.rs:309:17 [INFO] [stdout] | [INFO] [stdout] 309 | c => return Err((tokens, self.error(ErrorVariant::UnknownCharacter))), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `remain` [INFO] [stdout] --> src/parser/mod.rs:106:20 [INFO] [stdout] | [INFO] [stdout] 106 | (None, remain) => return Err(()), [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_remain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `push_symbol` are never used [INFO] [stdout] --> src/codegen/mod.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 87 | impl<'a> Context<'a> { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 88 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | fn push_symbol(&mut self, symbol: Symbol) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | write!(stderr(), "Usage: ./mylang [filename]"); [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] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | write!(stderr(), "Error while opening {}: {}", filename, e); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | write!(stderr(), "Lexer I/O error: {:?}", e); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | write!(stderr(), "{}", e); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | write!(stderr(), "Syntax error."); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | write!(stderr(), "{:?}", e); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/mod.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | write!(f, ")\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/mod.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | write!(f, "{:#?}\n", self.block); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser/expr.rs:53:41 [INFO] [stdout] | [INFO] [stdout] 53 | Some(&Token::Op(ref o)) => o.clone(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Operator` does not implement `Clone`, so calling `clone` on `&Operator` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 53 - Some(&Token::Op(ref o)) => o.clone(), [INFO] [stdout] 53 + Some(&Token::Op(ref o)) => o, [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `Operator`, implement `Clone` for it [INFO] [stdout] --> src/lexer/mod.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 + #[derive(Clone)] [INFO] [stdout] 69 | pub enum Operator { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser/expr.rs:82:41 [INFO] [stdout] | [INFO] [stdout] 82 | Some(&Token::Op(ref o)) => o.clone(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Operator` does not implement `Clone`, so calling `clone` on `&Operator` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 82 - Some(&Token::Op(ref o)) => o.clone(), [INFO] [stdout] 82 + Some(&Token::Op(ref o)) => o, [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `Operator`, implement `Clone` for it [INFO] [stdout] --> src/lexer/mod.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 + #[derive(Clone)] [INFO] [stdout] 69 | pub enum Operator { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.05s [INFO] running `Command { std: "docker" "inspect" "c593cfe4cdabc9421aeeb98cefeba2b03b14ac631e0b03a563d8f25ba51d9c7c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c593cfe4cdabc9421aeeb98cefeba2b03b14ac631e0b03a563d8f25ba51d9c7c", kill_on_drop: false }` [INFO] [stdout] c593cfe4cdabc9421aeeb98cefeba2b03b14ac631e0b03a563d8f25ba51d9c7c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] afeb18fa91cf48e0ad868be8208c8f544133fd6d4c2bae838c4cf5bf0542349b [INFO] running `Command { std: "docker" "start" "-a" "afeb18fa91cf48e0ad868be8208c8f544133fd6d4c2bae838c4cf5bf0542349b", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling mylang v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Entry` [INFO] [stdout] --> src/codegen/mod.rs:2:34 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::hash_map::{Entry, HashMap}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/codegen/mod.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | try!(writer.write(&buf)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/codegen/gen.rs:13:19 [INFO] [stdout] | [INFO] [stdout] 13 | fn gen(&self, &mut Context) -> Result, Error>; [INFO] [stdout] | ^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &mut Context` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] = note: `#[warn(anonymous_parameters)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Operation` [INFO] [stdout] --> src/codegen/gen.rs:326:51 [INFO] [stdout] | [INFO] [stdout] 326 | use super::super::super::parser::{Atom, Expr, Operation, Type}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Lines` [INFO] [stdout] --> src/lexer/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Lines; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lexer/mod.rs:162:9 [INFO] [stdout] | [INFO] [stdout] 162 | try!(r.read_to_string(&mut contents)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexer/mod.rs:194:32 [INFO] [stdout] | [INFO] [stdout] 194 | ... '0'...'9' => self.lex_const(true), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexer/mod.rs:300:20 [INFO] [stdout] | [INFO] [stdout] 300 | '0'...'9' => self.lex_const(false), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexer/mod.rs:301:20 [INFO] [stdout] | [INFO] [stdout] 301 | 'A'...'Z' | 'a'...'z' => self.lex_ident(), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexer/mod.rs:301:32 [INFO] [stdout] | [INFO] [stdout] 301 | 'A'...'Z' | 'a'...'z' => self.lex_ident(), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexer/mod.rs:338:20 [INFO] [stdout] | [INFO] [stdout] 338 | '0'...'9' => val.push(self.chars.next().unwrap()), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexer/mod.rs:339:20 [INFO] [stdout] | [INFO] [stdout] 339 | 'A'...'Z' | 'a'...'z' => return Err(ErrorVariant::UnknownCharacter), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexer/mod.rs:339:32 [INFO] [stdout] | [INFO] [stdout] 339 | 'A'...'Z' | 'a'...'z' => return Err(ErrorVariant::UnknownCharacter), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexer/mod.rs:354:20 [INFO] [stdout] | [INFO] [stdout] 354 | 'A'...'Z' | 'a'...'z' | '0'...'9' => ident.push(self.chars.next().unwrap()), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexer/mod.rs:354:32 [INFO] [stdout] | [INFO] [stdout] 354 | 'A'...'Z' | 'a'...'z' | '0'...'9' => ident.push(self.chars.next().unwrap()), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexer/mod.rs:354:44 [INFO] [stdout] | [INFO] [stdout] 354 | 'A'...'Z' | 'a'...'z' | '0'...'9' => ident.push(self.chars.next().unwrap()), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/parser/mod.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | try!(write!(f, r#"Function {:?} ( "#, self.name)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/parser/mod.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | try!(write!(f, r"{:?} {:?} ", param.typ, param.name)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Keyword` and `TokenAt` [INFO] [stdout] --> src/parser/expr.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{Delimiter, Keyword, Operator, Token, TokenAt}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/main.rs:44:14 [INFO] [stdout] | [INFO] [stdout] 44 | Err((t, e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let mut machine = vm::Machine::new(&bytes); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/codegen/mod.rs:33:23 [INFO] [stdout] | [INFO] [stdout] 33 | funcs.sort_by(|a, b| if a.name == "main" { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/codegen/gen.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | for a in args.iter() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/codegen/gen.rs:254:19 [INFO] [stdout] | [INFO] [stdout] 254 | fn typ(&self, ctx: &mut Context) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/lexer/mod.rs:278:31 [INFO] [stdout] | [INFO] [stdout] 278 | Some(&c) => Err(ErrorVariant::Expected('&')), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/lexer/mod.rs:290:31 [INFO] [stdout] | [INFO] [stdout] 290 | Some(&c) => Err(ErrorVariant::Expected('|')), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/lexer/mod.rs:309:17 [INFO] [stdout] | [INFO] [stdout] 309 | c => return Err((tokens, self.error(ErrorVariant::UnknownCharacter))), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `remain` [INFO] [stdout] --> src/parser/mod.rs:106:20 [INFO] [stdout] | [INFO] [stdout] 106 | (None, remain) => return Err(()), [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_remain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `push_symbol` is never used [INFO] [stdout] --> src/codegen/mod.rs:136:8 [INFO] [stdout] | [INFO] [stdout] 87 | impl<'a> Context<'a> { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 136 | fn push_symbol(&mut self, symbol: Symbol) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | write!(stderr(), "Usage: ./mylang [filename]"); [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] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | write!(stderr(), "Error while opening {}: {}", filename, e); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | write!(stderr(), "Lexer I/O error: {:?}", e); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | write!(stderr(), "{}", e); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | write!(stderr(), "Syntax error."); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | write!(stderr(), "{:?}", e); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/mod.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | write!(f, ")\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/mod.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | write!(f, "{:#?}\n", self.block); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser/expr.rs:53:41 [INFO] [stdout] | [INFO] [stdout] 53 | Some(&Token::Op(ref o)) => o.clone(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `lexer::Operator` does not implement `Clone`, so calling `clone` on `&lexer::Operator` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 53 - Some(&Token::Op(ref o)) => o.clone(), [INFO] [stdout] 53 + Some(&Token::Op(ref o)) => o, [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `lexer::Operator`, implement `Clone` for it [INFO] [stdout] --> src/lexer/mod.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 + #[derive(Clone)] [INFO] [stdout] 69 | pub enum Operator { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser/expr.rs:82:41 [INFO] [stdout] | [INFO] [stdout] 82 | Some(&Token::Op(ref o)) => o.clone(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `lexer::Operator` does not implement `Clone`, so calling `clone` on `&lexer::Operator` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 82 - Some(&Token::Op(ref o)) => o.clone(), [INFO] [stdout] 82 + Some(&Token::Op(ref o)) => o, [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `lexer::Operator`, implement `Clone` for it [INFO] [stdout] --> src/lexer/mod.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 + #[derive(Clone)] [INFO] [stdout] 69 | pub enum Operator { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.45s [INFO] running `Command { std: "docker" "inspect" "afeb18fa91cf48e0ad868be8208c8f544133fd6d4c2bae838c4cf5bf0542349b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "afeb18fa91cf48e0ad868be8208c8f544133fd6d4c2bae838c4cf5bf0542349b", kill_on_drop: false }` [INFO] [stdout] afeb18fa91cf48e0ad868be8208c8f544133fd6d4c2bae838c4cf5bf0542349b