[INFO] cloning repository https://github.com/ahabhgk/clox-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ahabhgk/clox-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fahabhgk%2Fclox-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fahabhgk%2Fclox-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8c9d7cd2d5557c75e0f75a510daa758eb2fdafd3 [INFO] testing ahabhgk/clox-rs against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fahabhgk%2Fclox-rs" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ahabhgk/clox-rs on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ahabhgk/clox-rs [INFO] finished tweaking git repo https://github.com/ahabhgk/clox-rs [INFO] tweaked toml for git repo https://github.com/ahabhgk/clox-rs written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/ahabhgk/clox-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "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-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4b0b7d70ed9202bc1f199bfc7f34db32b43c6f1e5497ce64eb870dcbae57b348 [INFO] running `Command { std: "docker" "start" "-a" "4b0b7d70ed9202bc1f199bfc7f34db32b43c6f1e5497ce64eb870dcbae57b348", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4b0b7d70ed9202bc1f199bfc7f34db32b43c6f1e5497ce64eb870dcbae57b348", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4b0b7d70ed9202bc1f199bfc7f34db32b43c6f1e5497ce64eb870dcbae57b348", kill_on_drop: false }` [INFO] [stdout] 4b0b7d70ed9202bc1f199bfc7f34db32b43c6f1e5497ce64eb870dcbae57b348 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2192337cd081cb57295dfe411213354bc3bd1366c4fb093a2651607862985a2d [INFO] running `Command { std: "docker" "start" "-a" "2192337cd081cb57295dfe411213354bc3bd1366c4fb093a2651607862985a2d", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling clox-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Function` [INFO] [stdout] --> src/chunk.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | value::{Closure, Function, Value}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Function` [INFO] [stdout] --> src/parser.rs:8:20 [INFO] [stdout] | [INFO] [stdout] 8 | value::{Closure, Function, FunctionKind, Value}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/value.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, fmt, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Function` [INFO] [stdout] --> src/vm.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | value::{Closure, Function, Upvalue, Value}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Source` [INFO] [stdout] --> src/source.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Source<'s> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/source.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn new(source: &'s str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `advance` [INFO] [stdout] --> src/source.rs:16:6 [INFO] [stdout] | [INFO] [stdout] 16 | fn advance(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `current` [INFO] [stdout] --> src/source.rs:21:6 [INFO] [stdout] | [INFO] [stdout] 21 | fn current(&self) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek` [INFO] [stdout] --> src/source.rs:26:6 [INFO] [stdout] | [INFO] [stdout] 26 | fn peek(&self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek_next` [INFO] [stdout] --> src/source.rs:30:6 [INFO] [stdout] | [INFO] [stdout] 30 | fn peek_next(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/source.rs:34:6 [INFO] [stdout] | [INFO] [stdout] 34 | fn get(&self, index: usize) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `slice` [INFO] [stdout] --> src/source.rs:38:6 [INFO] [stdout] | [INFO] [stdout] 38 | fn slice(&self, start: usize, end: usize) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `test` [INFO] [stdout] --> src/source.rs:43:6 [INFO] [stdout] | [INFO] [stdout] 43 | fn test(&mut self, expected: char) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/scope.rs:120:10 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn get(&self, name: &str) -> Option<&Local> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2.01s [INFO] running `Command { std: "docker" "inspect" "2192337cd081cb57295dfe411213354bc3bd1366c4fb093a2651607862985a2d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2192337cd081cb57295dfe411213354bc3bd1366c4fb093a2651607862985a2d", kill_on_drop: false }` [INFO] [stdout] 2192337cd081cb57295dfe411213354bc3bd1366c4fb093a2651607862985a2d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 58c5cd59003d3548d819fb472660483792f60a78db9bcc83b91acbebba431ffd [INFO] running `Command { std: "docker" "start" "-a" "58c5cd59003d3548d819fb472660483792f60a78db9bcc83b91acbebba431ffd", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling dissimilar v1.0.3 [INFO] [stdout] warning: unused import: `Function` [INFO] [stdout] --> src/chunk.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | value::{Closure, Function, Value}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Function` [INFO] [stdout] --> src/parser.rs:8:20 [INFO] [stdout] | [INFO] [stdout] 8 | value::{Closure, Function, FunctionKind, Value}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/value.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, fmt, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Function` [INFO] [stdout] --> src/vm.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | value::{Closure, Function, Upvalue, Value}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Source` [INFO] [stdout] --> src/source.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Source<'s> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/source.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn new(source: &'s str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `advance` [INFO] [stdout] --> src/source.rs:16:6 [INFO] [stdout] | [INFO] [stdout] 16 | fn advance(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `current` [INFO] [stdout] --> src/source.rs:21:6 [INFO] [stdout] | [INFO] [stdout] 21 | fn current(&self) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek` [INFO] [stdout] --> src/source.rs:26:6 [INFO] [stdout] | [INFO] [stdout] 26 | fn peek(&self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek_next` [INFO] [stdout] --> src/source.rs:30:6 [INFO] [stdout] | [INFO] [stdout] 30 | fn peek_next(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/source.rs:34:6 [INFO] [stdout] | [INFO] [stdout] 34 | fn get(&self, index: usize) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `slice` [INFO] [stdout] --> src/source.rs:38:6 [INFO] [stdout] | [INFO] [stdout] 38 | fn slice(&self, start: usize, end: usize) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `test` [INFO] [stdout] --> src/source.rs:43:6 [INFO] [stdout] | [INFO] [stdout] 43 | fn test(&mut self, expected: char) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/scope.rs:120:10 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn get(&self, name: &str) -> Option<&Local> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling expect-test v1.2.2 [INFO] [stderr] Compiling clox-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Function` [INFO] [stdout] --> src/chunk.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | value::{Closure, Function, Value}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Function` [INFO] [stdout] --> src/parser.rs:8:20 [INFO] [stdout] | [INFO] [stdout] 8 | value::{Closure, Function, FunctionKind, Value}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stdout] --> src/value.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, fmt, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Function` [INFO] [stdout] --> src/vm.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | value::{Closure, Function, Upvalue, Value}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Source` [INFO] [stdout] --> src/source.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Source<'s> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/source.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn new(source: &'s str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `advance` [INFO] [stdout] --> src/source.rs:16:6 [INFO] [stdout] | [INFO] [stdout] 16 | fn advance(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `current` [INFO] [stdout] --> src/source.rs:21:6 [INFO] [stdout] | [INFO] [stdout] 21 | fn current(&self) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek` [INFO] [stdout] --> src/source.rs:26:6 [INFO] [stdout] | [INFO] [stdout] 26 | fn peek(&self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek_next` [INFO] [stdout] --> src/source.rs:30:6 [INFO] [stdout] | [INFO] [stdout] 30 | fn peek_next(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/source.rs:34:6 [INFO] [stdout] | [INFO] [stdout] 34 | fn get(&self, index: usize) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `slice` [INFO] [stdout] --> src/source.rs:38:6 [INFO] [stdout] | [INFO] [stdout] 38 | fn slice(&self, start: usize, end: usize) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `test` [INFO] [stdout] --> src/source.rs:43:6 [INFO] [stdout] | [INFO] [stdout] 43 | fn test(&mut self, expected: char) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/scope.rs:120:10 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn get(&self, name: &str) -> Option<&Local> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.35s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/clox_rs-e4f330e69cc74215) [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/clox_rs-88185ecff38264b5) [INFO] [stderr] Executable tests/mod.rs (/opt/rustwide/target/debug/deps/mod-dbf9c72aca936c13) [INFO] running `Command { std: "docker" "inspect" "58c5cd59003d3548d819fb472660483792f60a78db9bcc83b91acbebba431ffd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "58c5cd59003d3548d819fb472660483792f60a78db9bcc83b91acbebba431ffd", kill_on_drop: false }` [INFO] [stdout] 58c5cd59003d3548d819fb472660483792f60a78db9bcc83b91acbebba431ffd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 168a07a14a84414cdffa22852aad6aea4cdf184c39e4ae60405beb0c7de8150e [INFO] running `Command { std: "docker" "start" "-a" "168a07a14a84414cdffa22852aad6aea4cdf184c39e4ae60405beb0c7de8150e", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: unused import: `Function` [INFO] [stderr] --> src/chunk.rs:5:20 [INFO] [stderr] | [INFO] [stderr] 5 | value::{Closure, Function, Value}, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `Function` [INFO] [stderr] --> src/parser.rs:8:20 [INFO] [stderr] | [INFO] [stderr] 8 | value::{Closure, Function, FunctionKind, Value}, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `cell::RefCell`, `rc::Rc` [INFO] [stderr] --> src/value.rs:1:11 [INFO] [stderr] | [INFO] [stderr] 1 | use std::{cell::RefCell, fmt, rc::Rc}; [INFO] [stderr] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Function` [INFO] [stderr] --> src/vm.rs:6:20 [INFO] [stderr] | [INFO] [stderr] 6 | value::{Closure, Function, Upvalue, Value}, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Source` [INFO] [stderr] --> src/source.rs:3:12 [INFO] [stderr] | [INFO] [stderr] 3 | pub struct Source<'s> { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/source.rs:9:10 [INFO] [stderr] | [INFO] [stderr] 9 | pub fn new(source: &'s str) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `advance` [INFO] [stderr] --> src/source.rs:16:6 [INFO] [stderr] | [INFO] [stderr] 16 | fn advance(&mut self) -> Option { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `current` [INFO] [stderr] --> src/source.rs:21:6 [INFO] [stderr] | [INFO] [stderr] 21 | fn current(&self) -> Option { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `peek` [INFO] [stderr] --> src/source.rs:26:6 [INFO] [stderr] | [INFO] [stderr] 26 | fn peek(&self) -> Option { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `peek_next` [INFO] [stderr] --> src/source.rs:30:6 [INFO] [stderr] | [INFO] [stderr] 30 | fn peek_next(&self) -> Option { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get` [INFO] [stderr] --> src/source.rs:34:6 [INFO] [stderr] | [INFO] [stderr] 34 | fn get(&self, index: usize) -> Option { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `slice` [INFO] [stderr] --> src/source.rs:38:6 [INFO] [stderr] | [INFO] [stderr] 38 | fn slice(&self, start: usize, end: usize) -> &str { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `test` [INFO] [stderr] --> src/source.rs:43:6 [INFO] [stderr] | [INFO] [stderr] 43 | fn test(&mut self, expected: char) -> bool { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get` [INFO] [stderr] --> src/scope.rs:120:10 [INFO] [stderr] | [INFO] [stderr] 120 | pub fn get(&self, name: &str) -> Option<&Local> { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: `clox-rs` (lib) generated 14 warnings [INFO] [stderr] warning: `clox-rs` (lib test) generated 14 warnings (14 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/clox_rs-e4f330e69cc74215) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/clox_rs-88185ecff38264b5) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running tests/mod.rs (/opt/rustwide/target/debug/deps/mod-dbf9c72aca936c13) [INFO] [stdout] [INFO] [stdout] running 18 tests [INFO] [stdout] test chapter_17 ... ok [INFO] [stdout] test chapter_18 ... ok [INFO] [stdout] test chapter_19 ... ok [INFO] [stdout] test chapter_21_global_init ... ok [INFO] [stdout] test chapter_22_local_uninit ... ok [INFO] [stdout] test chapter_21_print_statement ... ok [INFO] [stdout] test chapter_21_global_uninit ... ok [INFO] [stdout] test chapter_21 ... ok [INFO] [stdout] test chapter_22_local ... ok [INFO] [stdout] test chapter_23_and_or ... ok [INFO] [stdout] test chapter_23_if_else ... ok [INFO] [stdout] test chapter_23_while ... ok [INFO] [stdout] test chapter_23_for ... ok [INFO] [stdout] test chapter_24_parameters ... FAILED [INFO] [stdout] test chapter_24_call_frames ... FAILED [INFO] [stdout] test chapter_25_upvalue_object ... FAILED [INFO] [stdout] test chapter_25_debug_op_closure ... ok [INFO] [stdout] test chapter_22 ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- chapter_24_parameters stdout ---- [INFO] [stdout] [src/vm.rs:311] &closure = [INFO] [stdout] [src/vm.rs:311] &closure.upvalues = [] [INFO] [stdout] 22 [INFO] [stdout] [src/chunk.rs:271] &codes = Enumerate { [INFO] [stdout] iter: Iter( [INFO] [stdout] [ [INFO] [stdout] 8, [INFO] [stdout] 0, [INFO] [stdout] 0, [INFO] [stdout] 2, [INFO] [stdout] 7, [INFO] [stdout] 3, [INFO] [stdout] 0, [INFO] [stdout] 4, [INFO] [stdout] 0, [INFO] [stdout] 5, [INFO] [stdout] 0, [INFO] [stdout] 6, [INFO] [stdout] 25, [INFO] [stdout] 3, [INFO] [stdout] 15, [INFO] [stdout] 21, [INFO] [stdout] 1, [INFO] [stdout] 27, [INFO] [stdout] ], [INFO] [stdout] ), [INFO] [stdout] count: 2, [INFO] [stdout] } [INFO] [stdout] [src/chunk.rs:271] &closure = [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expect test failed [INFO] [stdout] --> tests/mod.rs:749:3 [INFO] [stdout] [INFO] [stdout] You can update all `expect![[]]` tests by running: [INFO] [stdout] [INFO] [stdout] env UPDATE_EXPECT=1 cargo test [INFO] [stdout] [INFO] [stdout] To update a single test, place the cursor on `expect` token and use `run` feature of rust-analyzer. [INFO] [stdout] [INFO] [stdout] Expect: [INFO] [stdout] ---- [INFO] [stdout] == == [INFO] [stdout] 0000 GetLocal 1 [INFO] [stdout] 0002 GetLocal 2 [INFO] [stdout] 0004 Add [INFO] [stdout] 0005 GetLocal 3 [INFO] [stdout] 0007 Add [INFO] [stdout] 0008 Return [INFO] [stdout] 0009 Nil [INFO] [stdout] 0010 Return [INFO] [stdout] ==