[INFO] cloning repository https://github.com/qig123/clox-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/qig123/clox-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqig123%2Fclox-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqig123%2Fclox-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2bc2d3175b5d01ecd338ad15485f126dba4791ac [INFO] checking qig123/clox-rust against master#8f08b3a32478b8d0507732800ecb548a76e0fd0c for pr-144157 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqig123%2Fclox-rust" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/qig123/clox-rust [INFO] finished tweaking git repo https://github.com/qig123/clox-rust [INFO] tweaked toml for git repo https://github.com/qig123/clox-rust written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/qig123/clox-rust on toolchain 8f08b3a32478b8d0507732800ecb548a76e0fd0c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8f08b3a32478b8d0507732800ecb548a76e0fd0c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/qig123/clox-rust 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" "+8f08b3a32478b8d0507732800ecb548a76e0fd0c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+8f08b3a32478b8d0507732800ecb548a76e0fd0c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f517556010937425b0d8a19a634076ee9386c718804573cb71e8c70f689f9c87 [INFO] running `Command { std: "docker" "start" "-a" "f517556010937425b0d8a19a634076ee9386c718804573cb71e8c70f689f9c87", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f517556010937425b0d8a19a634076ee9386c718804573cb71e8c70f689f9c87", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f517556010937425b0d8a19a634076ee9386c718804573cb71e8c70f689f9c87", kill_on_drop: false }` [INFO] [stdout] f517556010937425b0d8a19a634076ee9386c718804573cb71e8c70f689f9c87 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+8f08b3a32478b8d0507732800ecb548a76e0fd0c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 558fb1b23ed385b63bbd2b0e250aeaddab1392587fdb8427fd2d63d5a3b370d0 [INFO] running `Command { std: "docker" "start" "-a" "558fb1b23ed385b63bbd2b0e250aeaddab1392587fdb8427fd2d63d5a3b370d0", kill_on_drop: false }` [INFO] [stderr] Checking clox-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Chunk`, `OpCode`, `compiler::Compiler`, `value::Value`, and `vm::Vm` [INFO] [stdout] --> src/main.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | chunk::{Chunk, OpCode}, [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] 5 | compiler::Compiler, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 9 | value::Value, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 10 | vm::Vm, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Chunk`, `OpCode`, `compiler::Compiler`, `value::Value`, and `vm::Vm` [INFO] [stdout] --> src/main.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | chunk::{Chunk, OpCode}, [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] 5 | compiler::Compiler, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 9 | value::Value, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 10 | vm::Vm, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Chunk` is never constructed [INFO] [stdout] --> src/chunk.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Chunk { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OpCode` is never used [INFO] [stdout] --> src/chunk.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum OpCode { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `write`, and `add_constant` are never used [INFO] [stdout] --> src/chunk.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Chunk { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 18 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn write(&mut self, byte: OpCode, line: usize) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn add_constant(&mut self, value: Value) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Compiler` is never constructed [INFO] [stdout] --> src/compiler.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Compiler; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `compile`, and `compile_expression` are never used [INFO] [stdout] --> src/compiler.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Compiler { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn compile(&self, expr: &Expr) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | fn compile_expression(&self, expr: &Expr, chunk: &mut Chunk) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `panic_mode` is never read [INFO] [stdout] --> src/parser.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Parser<'a> { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 9 | panic_mode: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Value` is never used [INFO] [stdout] --> src/value.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Value { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_number` is never used [INFO] [stdout] --> src/value.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Value { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 10 | pub fn from_number(n: f64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vm` is never constructed [INFO] [stdout] --> src/vm.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Vm { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `STACK_MAX` is never used [INFO] [stdout] --> src/vm.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const STACK_MAX: usize = 256; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `InterpretResult` is never used [INFO] [stdout] --> src/vm.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum InterpretResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/vm.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl Vm { [INFO] [stdout] | ------- associated items in this implementation [INFO] [stdout] 27 | pub fn new(chunk: Chunk) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn interpret(&mut self) -> InterpretResult { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn run(&mut self) -> InterpretResult { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | fn push(&mut self, value: Value) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | fn pop(&mut self) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | fn binary_op(&mut self, op: F) -> Result<(), ()> [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | fn runtime_error(&mut self, message: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:101:24 [INFO] [stdout] | [INFO] [stdout] 101 | fn scan_source(source: &str) -> (Vec, bool) { [INFO] [stdout] | ^^^^ ----- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 101 | fn scan_source(source: &str) -> (Vec>, bool) { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Chunk` is never constructed [INFO] [stdout] --> src/chunk.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Chunk { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OpCode` is never used [INFO] [stdout] --> src/chunk.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum OpCode { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `write`, and `add_constant` are never used [INFO] [stdout] --> src/chunk.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Chunk { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 18 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn write(&mut self, byte: OpCode, line: usize) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn add_constant(&mut self, value: Value) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Compiler` is never constructed [INFO] [stdout] --> src/compiler.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Compiler; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `compile`, and `compile_expression` are never used [INFO] [stdout] --> src/compiler.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Compiler { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn compile(&self, expr: &Expr) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | fn compile_expression(&self, expr: &Expr, chunk: &mut Chunk) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `panic_mode` is never read [INFO] [stdout] --> src/parser.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Parser<'a> { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 9 | panic_mode: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Value` is never used [INFO] [stdout] --> src/value.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Value { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_number` is never used [INFO] [stdout] --> src/value.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Value { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 10 | pub fn from_number(n: f64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vm` is never constructed [INFO] [stdout] --> src/vm.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Vm { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `STACK_MAX` is never used [INFO] [stdout] --> src/vm.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const STACK_MAX: usize = 256; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `InterpretResult` is never used [INFO] [stdout] --> src/vm.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum InterpretResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/vm.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl Vm { [INFO] [stdout] | ------- associated items in this implementation [INFO] [stdout] 27 | pub fn new(chunk: Chunk) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn interpret(&mut self) -> InterpretResult { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn run(&mut self) -> InterpretResult { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | fn push(&mut self, value: Value) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | fn pop(&mut self) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | fn binary_op(&mut self, op: F) -> Result<(), ()> [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | fn runtime_error(&mut self, message: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:101:24 [INFO] [stdout] | [INFO] [stdout] 101 | fn scan_source(source: &str) -> (Vec, bool) { [INFO] [stdout] | ^^^^ ----- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 101 | fn scan_source(source: &str) -> (Vec>, bool) { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.28s [INFO] running `Command { std: "docker" "inspect" "558fb1b23ed385b63bbd2b0e250aeaddab1392587fdb8427fd2d63d5a3b370d0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "558fb1b23ed385b63bbd2b0e250aeaddab1392587fdb8427fd2d63d5a3b370d0", kill_on_drop: false }` [INFO] [stdout] 558fb1b23ed385b63bbd2b0e250aeaddab1392587fdb8427fd2d63d5a3b370d0