[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] checking binoyjayan/interpreter-lox against 846e51f66b1e7b49ba9e3988c58ccfe5817ce0a9 for pr-164812 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbinoyjayan%2Finterpreter-lox" "/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/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-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/binoyjayan/interpreter-lox on toolchain 846e51f66b1e7b49ba9e3988c58ccfe5817ce0a9 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+846e51f66b1e7b49ba9e3988c58ccfe5817ce0a9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+846e51f66b1e7b49ba9e3988c58ccfe5817ce0a9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded smallvec v1.7.0 [INFO] [stderr] Downloaded utf8parse v0.2.0 [INFO] [stderr] Downloaded unicode-segmentation v1.8.0 [INFO] [stderr] Downloaded clipboard-win v4.2.2 [INFO] [stderr] Downloaded rustyline v9.1.1 [INFO] [stderr] Downloaded fd-lock v3.0.2 [INFO] [stderr] Downloaded str-buf v1.0.5 [INFO] [stderr] Downloaded error-code v2.3.0 [INFO] [stderr] Downloaded redox_users v0.4.0 [INFO] [stderr] Downloaded endian-type v0.1.2 [INFO] [stderr] Downloaded anyhow v1.0.52 [INFO] [stderr] Downloaded radix_trie v0.2.1 [INFO] [stderr] Downloaded nix v0.23.1 [INFO] [stderr] Downloaded windows_i686_gnu v0.28.0 [INFO] [stderr] Downloaded libc v0.2.112 [INFO] [stderr] Downloaded windows_aarch64_msvc v0.28.0 [INFO] [stderr] Downloaded windows_x86_64_msvc v0.28.0 [INFO] [stderr] Downloaded windows_x86_64_gnu v0.28.0 [INFO] [stderr] Downloaded windows_i686_msvc v0.28.0 [INFO] [stderr] Downloaded windows-sys v0.28.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:c0af3998e971868164375a7dfb646c9933ddd1a3bdb00fa2041266763dc1eeab" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 15a49c05d470ad9384502fb8a3b87d031e9f4b3dabd125bc6dc48381f39baa2d [INFO] running `Command { std: "docker" "start" "15a49c05d470ad9384502fb8a3b87d031e9f4b3dabd125bc6dc48381f39baa2d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "15a49c05d470ad9384502fb8a3b87d031e9f4b3dabd125bc6dc48381f39baa2d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "15a49c05d470ad9384502fb8a3b87d031e9f4b3dabd125bc6dc48381f39baa2d" "/opt/rustwide/cargo-home/bin/cargo" "+846e51f66b1e7b49ba9e3988c58ccfe5817ce0a9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "15a49c05d470ad9384502fb8a3b87d031e9f4b3dabd125bc6dc48381f39baa2d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "15a49c05d470ad9384502fb8a3b87d031e9f4b3dabd125bc6dc48381f39baa2d" "/opt/rustwide/cargo-home/bin/cargo" "+846e51f66b1e7b49ba9e3988c58ccfe5817ce0a9" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.112 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking smallvec v1.7.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Checking endian-type v0.1.2 [INFO] [stderr] Compiling anyhow v1.0.52 [INFO] [stderr] Checking utf8parse v0.2.0 [INFO] [stderr] Checking unicode-width v0.1.9 [INFO] [stderr] Checking unicode-segmentation v1.8.0 [INFO] [stderr] Checking nibble_vec v0.1.0 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Checking radix_trie v0.2.1 [INFO] [stderr] Checking dirs-sys-next v0.1.2 [INFO] [stderr] Checking nix v0.23.1 [INFO] [stderr] Checking fd-lock v3.0.2 [INFO] [stderr] Checking dirs-next v2.0.0 [INFO] [stderr] Checking rustyline v9.1.1 [INFO] [stderr] Checking 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)]` (part of `#[warn(unused)]`) 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: use of deprecated constant `std::f64::EPSILON`: replaced by the `EPSILON` associated constant on `f64` [INFO] [stdout] --> src/interpreter.rs:75:79 [INFO] [stdout] | [INFO] [stdout] 75 | (Value::Number(a), Value::Number(b)) => (a - b).abs() < std::f64::EPSILON, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [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)]` (part of `#[warn(unused)]`) 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: use of deprecated constant `std::f64::EPSILON`: replaced by the `EPSILON` associated constant on `f64` [INFO] [stdout] --> src/interpreter.rs:75:79 [INFO] [stdout] | [INFO] [stdout] 75 | (Value::Number(a), Value::Number(b)) => (a - b).abs() < std::f64::EPSILON, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [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 attribute macro expansion [INFO] [stdout] 383 | fn ast_test1() -> result::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `Termination` is not implemented for `value::Value` [INFO] [stdout] --> src/value.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum 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/846e51f66b1e7b49ba9e3988c58ccfe5817ce0a9/library/test/src/lib.rs:259:0 [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)]` (part of `#[warn(unused)]`) 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: struct `AstPrinter` is never constructed [INFO] [stdout] --> src/ast_printer.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct AstPrinter { } [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] [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/846e51f66b1e7b49ba9e3988c58ccfe5817ce0a9/library/core/src/result.rs:562:4 [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 attribute macro expansion [INFO] [stdout] 395 | fn ast_test2() -> result::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `Termination` is not implemented for `value::Value` [INFO] [stdout] --> src/value.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum 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/846e51f66b1e7b49ba9e3988c58ccfe5817ce0a9/library/test/src/lib.rs:259:0 [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/846e51f66b1e7b49ba9e3988c58ccfe5817ce0a9/library/core/src/result.rs:562:4 [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; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "15a49c05d470ad9384502fb8a3b87d031e9f4b3dabd125bc6dc48381f39baa2d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "15a49c05d470ad9384502fb8a3b87d031e9f4b3dabd125bc6dc48381f39baa2d", kill_on_drop: false }` [INFO] [stdout] 15a49c05d470ad9384502fb8a3b87d031e9f4b3dabd125bc6dc48381f39baa2d