[INFO] cloning repository https://github.com/jedamzik/simple-interpreter-in-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jedamzik/simple-interpreter-in-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjedamzik%2Fsimple-interpreter-in-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjedamzik%2Fsimple-interpreter-in-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1d65f22eb48269ad446dcbcba5c13f6046e768f5 [INFO] testing jedamzik/simple-interpreter-in-rust against 1.55.0 for beta-1.56-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjedamzik%2Fsimple-interpreter-in-rust" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jedamzik/simple-interpreter-in-rust on toolchain 1.55.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.55.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jedamzik/simple-interpreter-in-rust [INFO] finished tweaking git repo https://github.com/jedamzik/simple-interpreter-in-rust [INFO] tweaked toml for git repo https://github.com/jedamzik/simple-interpreter-in-rust written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/jedamzik/simple-interpreter-in-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.55.0" "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-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 998026ad35a1f6e389328f505b3f8a59534ddb1dfee7d55faa0a33addf034014 [INFO] running `Command { std: "docker" "start" "-a" "998026ad35a1f6e389328f505b3f8a59534ddb1dfee7d55faa0a33addf034014", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "998026ad35a1f6e389328f505b3f8a59534ddb1dfee7d55faa0a33addf034014", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "998026ad35a1f6e389328f505b3f8a59534ddb1dfee7d55faa0a33addf034014", kill_on_drop: false }` [INFO] [stdout] 998026ad35a1f6e389328f505b3f8a59534ddb1dfee7d55faa0a33addf034014 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ff1bc31c80126330ffae886e96e11f5d78ae40fa715ec0130351d7f27c812e61 [INFO] running `Command { std: "docker" "start" "-a" "ff1bc31c80126330ffae886e96e11f5d78ae40fa715ec0130351d7f27c812e61", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-segmentation v0.1.2 [INFO] [stderr] Compiling strcursor v0.2.5 [INFO] [stderr] Compiling ast-interpreter v0.2.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/parser/mod.rs:54:25 [INFO] [stdout] | [INFO] [stdout] 54 | _ => panic!(format!("Syntax Error: expected Integer or \"(\", found {}", token)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 54 | _ => panic!("Syntax Error: expected Integer or \"(\", found {}", token) [INFO] [stdout] | -- -- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/interpreter/mod.rs:16:33 [INFO] [stdout] | [INFO] [stdout] 16 | _ => panic!(format!("AST Traversal Error: expected Operator, found {}.", node.token)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 16 | _ => panic!("AST Traversal Error: expected Operator, found {}.", node.token) [INFO] [stdout] | -- -- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/interpreter/mod.rs:24:33 [INFO] [stdout] | [INFO] [stdout] 24 | _ => panic!(format!("AST Traversal Error: expected Number, found {}", node)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 24 | _ => panic!("AST Traversal Error: expected Number, found {}", node) [INFO] [stdout] | -- -- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3.13s [INFO] running `Command { std: "docker" "inspect" "ff1bc31c80126330ffae886e96e11f5d78ae40fa715ec0130351d7f27c812e61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ff1bc31c80126330ffae886e96e11f5d78ae40fa715ec0130351d7f27c812e61", kill_on_drop: false }` [INFO] [stdout] ff1bc31c80126330ffae886e96e11f5d78ae40fa715ec0130351d7f27c812e61 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f90535c3f39aeda1487582e479e4e37390d7e8072c34776133a22e0b03dc28a4 [INFO] running `Command { std: "docker" "start" "-a" "f90535c3f39aeda1487582e479e4e37390d7e8072c34776133a22e0b03dc28a4", kill_on_drop: false }` [INFO] [stderr] Compiling ast-interpreter v0.2.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/parser/mod.rs:54:25 [INFO] [stdout] | [INFO] [stdout] 54 | _ => panic!(format!("Syntax Error: expected Integer or \"(\", found {}", token)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 54 | _ => panic!("Syntax Error: expected Integer or \"(\", found {}", token) [INFO] [stdout] | -- -- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/interpreter/mod.rs:16:33 [INFO] [stdout] | [INFO] [stdout] 16 | _ => panic!(format!("AST Traversal Error: expected Operator, found {}.", node.token)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 16 | _ => panic!("AST Traversal Error: expected Operator, found {}.", node.token) [INFO] [stdout] | -- -- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/interpreter/mod.rs:24:33 [INFO] [stdout] | [INFO] [stdout] 24 | _ => panic!(format!("AST Traversal Error: expected Number, found {}", node)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 24 | _ => panic!("AST Traversal Error: expected Number, found {}", node) [INFO] [stdout] | -- -- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.09s [INFO] running `Command { std: "docker" "inspect" "f90535c3f39aeda1487582e479e4e37390d7e8072c34776133a22e0b03dc28a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f90535c3f39aeda1487582e479e4e37390d7e8072c34776133a22e0b03dc28a4", kill_on_drop: false }` [INFO] [stdout] f90535c3f39aeda1487582e479e4e37390d7e8072c34776133a22e0b03dc28a4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] de1bea675ea0277636d5368389df679f6661fdd7e564b4279ef4e0b917cbdd69 [INFO] running `Command { std: "docker" "start" "-a" "de1bea675ea0277636d5368389df679f6661fdd7e564b4279ef4e0b917cbdd69", kill_on_drop: false }` [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/parser/mod.rs:54:25 [INFO] [stderr] | [INFO] [stderr] 54 | _ => panic!(format!("Syntax Error: expected Integer or \"(\", found {}", token)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 54 | _ => panic!("Syntax Error: expected Integer or \"(\", found {}", token) [INFO] [stderr] | -- -- [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/interpreter/mod.rs:16:33 [INFO] [stderr] | [INFO] [stderr] 16 | _ => panic!(format!("AST Traversal Error: expected Operator, found {}.", node.token)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 16 | _ => panic!("AST Traversal Error: expected Operator, found {}.", node.token) [INFO] [stderr] | -- -- [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/interpreter/mod.rs:24:33 [INFO] [stderr] | [INFO] [stderr] 24 | _ => panic!(format!("AST Traversal Error: expected Number, found {}", node)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 24 | _ => panic!("AST Traversal Error: expected Number, found {}", node) [INFO] [stderr] | -- -- [INFO] [stderr] [INFO] [stderr] warning: `ast-interpreter` (bin "ast-interpreter" test) generated 3 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.01s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/ast_interpreter-e4c1fffaf4de6c92) [INFO] [stdout] [INFO] [stdout] running 29 tests [INFO] [stdout] test lexer::is_integer_returns_correctly ... ok [INFO] [stdout] test interpreter::parenthesized_expressions_get_precedence_on_right_hand_of_operator ... ok [INFO] [stdout] test lexer::lex_returns_a_vector_of_tokens ... ok [INFO] [stdout] test interpreter::multiplication_gets_precedence_before_subtraction ... ok [INFO] [stdout] test interpreter::parenthesized_expressions_get_precedence_on_left_hand_of_operator ... ok [INFO] [stdout] test interpreter::multiplication_gets_precedence_before_addition ... ok [INFO] [stdout] test interpreter::division_gets_precedence_before_addition ... ok [INFO] [stdout] test interpreter::division_gets_precedence_before_subtraction ... ok [INFO] [stdout] test lexer::parse_digits_handles_one_digit_integers ... ok [INFO] [stdout] test lexer::parse_digits_handles_three_digit_integers ... ok [INFO] [stdout] test lexer::parse_digits_handles_two_digit_integers ... ok [INFO] [stdout] test lexer::tokenize_returns_a_vector_of_tokens ... ok [INFO] [stdout] test lexer::tokenize_word_returns_div_operator ... ok [INFO] [stdout] test lexer::tokenize_word_returns_add_operator ... ok [INFO] [stdout] test parser::factor_skips_whitespace_tokens ... ok [INFO] [stdout] test parser::factor_returns_number_token_as_node ... ok [INFO] [stdout] test lexer::tokenize_word_returns_right_paren ... ok [INFO] [stdout] test lexer::tokenize_word_returns_mul_operator ... ok [INFO] [stdout] test parser::eat_advances_current_token_index ... ok [INFO] [stdout] test parser::eat_returns_current_token_if_passed_token_matches ... ok [INFO] [stdout] test lexer::tokenize_word_returns_integer_number ... ok [INFO] [stdout] test lexer::tokenize_word_returns_left_paren ... ok [INFO] [stdout] test parser::next_token_increment_is_clamped_to_length_of_token_vector ... ok [INFO] [stdout] test parser::next_token_increments_current_token_index ... ok [INFO] [stdout] test lexer::tokenize_word_returns_sub_operator ... ok [INFO] [stdout] test parser::factor_consumes_the_token ... ok [INFO] [stdout] test lexer::tokenize_word_returns_whitespace ... ok [INFO] [stdout] test parser::factor_throws_syntax_error_on_operator - should panic ... ok [INFO] [stdout] test parser::eat_returns_error_if_the_passed_token_is_not_the_current_token - should panic ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 29 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "de1bea675ea0277636d5368389df679f6661fdd7e564b4279ef4e0b917cbdd69", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "de1bea675ea0277636d5368389df679f6661fdd7e564b4279ef4e0b917cbdd69", kill_on_drop: false }` [INFO] [stdout] de1bea675ea0277636d5368389df679f6661fdd7e564b4279ef4e0b917cbdd69