[INFO] cloning repository https://github.com/binoyjayan/interpreter-lox [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/binoyjayan/interpreter-lox" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbinoyjayan%2Finterpreter-lox", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbinoyjayan%2Finterpreter-lox'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d04792307eb49b7d02474e81c8dfb9070a558231 [INFO] testing binoyjayan/interpreter-lox against try#17092ad00ed8fe1e7f81a7e38238ff70779034b1 for pr-140985 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbinoyjayan%2Finterpreter-lox" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/binoyjayan/interpreter-lox on toolchain 17092ad00ed8fe1e7f81a7e38238ff70779034b1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+17092ad00ed8fe1e7f81a7e38238ff70779034b1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/binoyjayan/interpreter-lox [INFO] finished tweaking git repo https://github.com/binoyjayan/interpreter-lox [INFO] tweaked toml for git repo https://github.com/binoyjayan/interpreter-lox written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/binoyjayan/interpreter-lox 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" "+17092ad00ed8fe1e7f81a7e38238ff70779034b1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded fd-lock v3.0.2 [INFO] [stderr] Downloaded rustyline v9.1.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+17092ad00ed8fe1e7f81a7e38238ff70779034b1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cf0249c294234a26a874cd5fe3f5af2e40d85b04d62ae8a2d8bebd1343c1b113 [INFO] running `Command { std: "docker" "start" "-a" "cf0249c294234a26a874cd5fe3f5af2e40d85b04d62ae8a2d8bebd1343c1b113", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cf0249c294234a26a874cd5fe3f5af2e40d85b04d62ae8a2d8bebd1343c1b113", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cf0249c294234a26a874cd5fe3f5af2e40d85b04d62ae8a2d8bebd1343c1b113", kill_on_drop: false }` [INFO] [stdout] cf0249c294234a26a874cd5fe3f5af2e40d85b04d62ae8a2d8bebd1343c1b113 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+17092ad00ed8fe1e7f81a7e38238ff70779034b1" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6f9c3a4d8eb215856540d8210eddfc0c7bac6b0be3326bb1cfd465585dcde7c9 [INFO] running `Command { std: "docker" "start" "-a" "6f9c3a4d8eb215856540d8210eddfc0c7bac6b0be3326bb1cfd465585dcde7c9", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.112 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling smallvec v1.7.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling anyhow v1.0.52 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling endian-type v0.1.2 [INFO] [stderr] Compiling unicode-width v0.1.9 [INFO] [stderr] Compiling unicode-segmentation v1.8.0 [INFO] [stderr] Compiling utf8parse v0.2.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling nibble_vec v0.1.0 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling radix_trie v0.2.1 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling fd-lock v3.0.2 [INFO] [stderr] Compiling nix v0.23.1 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Compiling rustyline v9.1.1 [INFO] [stderr] Compiling interpreter-lox v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::interpreter::Interpreter` [INFO] [stdout] --> src/value.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::interpreter::Interpreter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LoxCallable` [INFO] [stdout] --> src/value.rs:12:23 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::function::{LoxCallable, NativeFunction, LoxFunction}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::environment::Environment` [INFO] [stdout] --> src/function.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::environment::Environment; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Error` [INFO] [stdout] --> src/ast_printer.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use anyhow::Error; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `had_error` is never used [INFO] [stdout] --> src/main.rs:94:4 [INFO] [stdout] | [INFO] [stdout] 94 | fn had_error() -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `arity` is never used [INFO] [stdout] --> src/function.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait LoxCallable { [INFO] [stdout] | ----------- method in this trait [INFO] [stdout] 12 | fn arity(&self, interpreter: &Interpreter) -> usize; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print` is never used [INFO] [stdout] --> src/ast_printer.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl AstPrinter { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 13 | pub fn print(&mut self, expression: Expression) -> result::Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.84s [INFO] running `Command { std: "docker" "inspect" "6f9c3a4d8eb215856540d8210eddfc0c7bac6b0be3326bb1cfd465585dcde7c9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6f9c3a4d8eb215856540d8210eddfc0c7bac6b0be3326bb1cfd465585dcde7c9", kill_on_drop: false }` [INFO] [stdout] 6f9c3a4d8eb215856540d8210eddfc0c7bac6b0be3326bb1cfd465585dcde7c9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+17092ad00ed8fe1e7f81a7e38238ff70779034b1" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 139f778edfdde7ed464972ec4053ba88c720c52d5268a85fe61f174ea5ad70db [INFO] running `Command { std: "docker" "start" "-a" "139f778edfdde7ed464972ec4053ba88c720c52d5268a85fe61f174ea5ad70db", kill_on_drop: false }` [INFO] [stderr] Compiling interpreter-lox v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::interpreter::Interpreter` [INFO] [stdout] --> src/value.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::interpreter::Interpreter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LoxCallable` [INFO] [stdout] --> src/value.rs:12:23 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::function::{LoxCallable, NativeFunction, LoxFunction}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::environment::Environment` [INFO] [stdout] --> src/function.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::environment::Environment; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Error` [INFO] [stdout] --> src/ast_printer.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use anyhow::Error; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/ast_printer.rs:57:23 [INFO] [stdout] | [INFO] [stdout] 57 | fn ast_test1() -> Result<()> { [INFO] [stdout] | ^^^^^^ -- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 57 | fn ast_test1() -> Result<(), E> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/ast_printer.rs:70:23 [INFO] [stdout] | [INFO] [stdout] 70 | fn ast_test2() -> Result<()> { [INFO] [stdout] | ^^^^^^ -- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 70 | fn ast_test2() -> Result<(), E> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `value::Value: Termination` is not satisfied [INFO] [stdout] --> src/interpreter.rs:383:23 [INFO] [stdout] | [INFO] [stdout] 382 | #[test] [INFO] [stdout] | ------- in this procedural macro expansion [INFO] [stdout] 383 | fn ast_test1() -> result::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Termination` is not implemented for `value::Value` [INFO] [stdout] | [INFO] [stdout] = note: required for `Result` to implement `Termination` [INFO] [stdout] note: required by a bound in `assert_test_result` [INFO] [stdout] --> /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/test/src/lib.rs:250:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/interpreter.rs:391:12 [INFO] [stdout] | [INFO] [stdout] 391 | Ok(()) [INFO] [stdout] | -- ^^ expected `Value`, found `()` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `()` due to the type of the argument passed [INFO] [stdout] --> src/interpreter.rs:391:9 [INFO] [stdout] | [INFO] [stdout] 391 | Ok(()) [INFO] [stdout] | ^^^--^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Ok` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/result.rs:552:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `value::Value: Termination` is not satisfied [INFO] [stdout] --> src/interpreter.rs:395:23 [INFO] [stdout] | [INFO] [stdout] 394 | #[test] [INFO] [stdout] | ------- in this procedural macro expansion [INFO] [stdout] 395 | fn ast_test2() -> result::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Termination` is not implemented for `value::Value` [INFO] [stdout] | [INFO] [stdout] = note: required for `Result` to implement `Termination` [INFO] [stdout] note: required by a bound in `assert_test_result` [INFO] [stdout] --> /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/test/src/lib.rs:250:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/interpreter.rs:403:12 [INFO] [stdout] | [INFO] [stdout] 403 | Ok(()) [INFO] [stdout] | -- ^^ expected `Value`, found `()` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `()` due to the type of the argument passed [INFO] [stdout] --> src/interpreter.rs:403:9 [INFO] [stdout] | [INFO] [stdout] 403 | Ok(()) [INFO] [stdout] | ^^^--^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Ok` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/result.rs:552:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] [INFO] [stderr] error: could not compile `interpreter-lox` (bin "interpreter-lox" test) due to 6 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "139f778edfdde7ed464972ec4053ba88c720c52d5268a85fe61f174ea5ad70db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "139f778edfdde7ed464972ec4053ba88c720c52d5268a85fe61f174ea5ad70db", kill_on_drop: false }` [INFO] [stdout] 139f778edfdde7ed464972ec4053ba88c720c52d5268a85fe61f174ea5ad70db