[INFO] cloning repository https://github.com/dovakin0007/Lox_clone [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dovakin0007/Lox_clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdovakin0007%2FLox_clone", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdovakin0007%2FLox_clone'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8d56acaf198ff94eb2249146024250dc2d7ac4d0 [INFO] testing dovakin0007/Lox_clone against master#ebf0cf75d368c035f4c7e7246d203bd469ee4a51 for pr-137940 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdovakin0007%2FLox_clone" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dovakin0007/Lox_clone on toolchain ebf0cf75d368c035f4c7e7246d203bd469ee4a51 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ebf0cf75d368c035f4c7e7246d203bd469ee4a51" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/dovakin0007/Lox_clone [INFO] finished tweaking git repo https://github.com/dovakin0007/Lox_clone [INFO] tweaked toml for git repo https://github.com/dovakin0007/Lox_clone written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/dovakin0007/Lox_clone 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" "+ebf0cf75d368c035f4c7e7246d203bd469ee4a51" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+ebf0cf75d368c035f4c7e7246d203bd469ee4a51" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 423e81eef719e7ca61146341896fd71466f6cbf5079fd6b4216dea5852e5b8d3 [INFO] running `Command { std: "docker" "start" "-a" "423e81eef719e7ca61146341896fd71466f6cbf5079fd6b4216dea5852e5b8d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "423e81eef719e7ca61146341896fd71466f6cbf5079fd6b4216dea5852e5b8d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "423e81eef719e7ca61146341896fd71466f6cbf5079fd6b4216dea5852e5b8d3", kill_on_drop: false }` [INFO] [stdout] 423e81eef719e7ca61146341896fd71466f6cbf5079fd6b4216dea5852e5b8d3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+ebf0cf75d368c035f4c7e7246d203bd469ee4a51" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e36344315b9daa0948620ffc90ee72bd05b5357def84bb4b9e984d900150ef7b [INFO] running `Command { std: "docker" "start" "-a" "e36344315b9daa0948620ffc90ee72bd05b5357def84bb4b9e984d900150ef7b", kill_on_drop: false }` [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling Lox v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `TokenType` and `Token` [INFO] [stdout] --> src/astprinter.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::token::{Token, TokenType}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> src/astprinter.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/astprinter.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f64::consts::E` [INFO] [stdout] --> src/environment.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::f64::consts::E; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> src/error.rs:2:34 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::{Debug, Formatter, write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/function.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> src/interpreter.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 11 | use std::fmt::{write, Debug, Display, Formatter, Result as FmtResult}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::interpreter::Types` [INFO] [stdout] --> src/parser.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::interpreter::Types; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `False` and `Return` [INFO] [stdout] --> src/parser.rs:6:31 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::token::TokenType::{False, LeftParen, Return, RightParen, SemiColon, True}; [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/parser.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::ErrorKind::Other` [INFO] [stdout] --> src/parser.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::io::ErrorKind::Other; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Expr` [INFO] [stdout] --> src/main.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::ast::{Expr, Stmt}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `paren` [INFO] [stdout] --> src/astprinter.rs:47:17 [INFO] [stdout] | [INFO] [stdout] 47 | ref paren, [INFO] [stdout] | ^^^^^^^^^- [INFO] [stdout] | | [INFO] [stdout] | help: try removing the field [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/astprinter.rs:89:27 [INFO] [stdout] | [INFO] [stdout] 89 | .map(|x| self.visit_statement(s)) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/interpreter.rs:40:29 [INFO] [stdout] | [INFO] [stdout] 40 | body: Box::new(|args: &Vec| { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmts` [INFO] [stdout] --> src/interpreter.rs:122:41 [INFO] [stdout] | [INFO] [stdout] 122 | &Stmt::Class(ref token, ref stmts) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stmts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Token` [INFO] [stdout] --> src/interpreter.rs:148:31 [INFO] [stdout] | [INFO] [stdout] 148 | &Stmt::Return(ref Token, ref expr) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/resolver.rs:113:17 [INFO] [stdout] | [INFO] [stdout] 113 | ref op, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `op: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `paren` [INFO] [stdout] --> src/resolver.rs:122:17 [INFO] [stdout] | [INFO] [stdout] 122 | ref paren, [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `paren: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/resolver.rs:135:30 [INFO] [stdout] | [INFO] [stdout] 135 | &Expr::Literal { ref token } => Ok(()), [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `token: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/resolver.rs:138:17 [INFO] [stdout] | [INFO] [stdout] 138 | ref op, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `op: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/resolver.rs:145:28 [INFO] [stdout] | [INFO] [stdout] 145 | &Expr::Unary { ref op, ref expr } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `op: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/resolver.rs:176:41 [INFO] [stdout] | [INFO] [stdout] 176 | &Stmt::Class(ref token, ref stmt) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/astprinter.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl AstPrinter { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 14 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `token` is never read [INFO] [stdout] --> src/error.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 25 | RunTime{ [INFO] [stdout] | ------- field in this variant [INFO] [stdout] 26 | token: Token, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `is_initializer` is never read [INFO] [stdout] --> src/function.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct UserFunction { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 47 | pub is_initializer: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | interpreter.interpret(statements); [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] 98 | let _ = interpreter.interpret(statements); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Expr` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:129:29 [INFO] [stdout] | [INFO] [stdout] 129 | &Stmt::Expr(ref Expr) => { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `expr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Token` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:148:31 [INFO] [stdout] | [INFO] [stdout] 148 | &Stmt::Return(ref Token, ref expr) => { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Expr` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:158:31 [INFO] [stdout] | [INFO] [stdout] 158 | &Stmt::IfStmt(ref Expr, ref then, ref else_option) => { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Expr` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:169:25 [INFO] [stdout] | [INFO] [stdout] 169 | Stmt::Print(Expr) => { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Token` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:175:34 [INFO] [stdout] | [INFO] [stdout] 175 | Stmt::VarDeclaration(Token, Expr) => match Expr { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Expr` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:175:41 [INFO] [stdout] | [INFO] [stdout] 175 | Stmt::VarDeclaration(Token, Expr) => match Expr { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Expr` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:192:29 [INFO] [stdout] | [INFO] [stdout] 192 | Stmt::While(ref Expr, ref Stmt) => { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Stmt` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:192:39 [INFO] [stdout] | [INFO] [stdout] 192 | Stmt::While(ref Expr, ref Stmt) => { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case (notice the capitalization): `stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/interpreter.rs:378:17 [INFO] [stdout] | [INFO] [stdout] 378 | self.environment.get(name); [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] 378 | let _ = self.environment.get(name); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-m64" "/tmp/rustcs3GkK3/symbols.o" "<10 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/{liblog-a3845e017a80cb8a.rlib}.rlib" "/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,libcfg_if-*,liblibc-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustcs3GkK3/raw-dylibs" "-B/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,-znostart-stop-gc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/deps/Lox-6db4fb1176f35da6" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: collect2: fatal error: ld terminated with signal 7 [Bus error], core dumped [INFO] [stdout] compilation terminated. [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `Lox` (bin "Lox") due to 1 previous error; 37 warnings emitted [INFO] running `Command { std: "docker" "inspect" "e36344315b9daa0948620ffc90ee72bd05b5357def84bb4b9e984d900150ef7b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e36344315b9daa0948620ffc90ee72bd05b5357def84bb4b9e984d900150ef7b", kill_on_drop: false }` [INFO] [stdout] e36344315b9daa0948620ffc90ee72bd05b5357def84bb4b9e984d900150ef7b