[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 master#99e3aef02079e9c10583638520cd0c134dc3a01d for pr-85530 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjedamzik%2Fsimple-interpreter-in-rust" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jedamzik/simple-interpreter-in-rust on toolchain 99e3aef02079e9c10583638520cd0c134dc3a01d [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "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-7/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" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "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-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 18bd37391401e01f7f08b9095d71e4a9ee3f787adb6bc3113c12021183e7c9a0 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "18bd37391401e01f7f08b9095d71e4a9ee3f787adb6bc3113c12021183e7c9a0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "18bd37391401e01f7f08b9095d71e4a9ee3f787adb6bc3113c12021183e7c9a0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "18bd37391401e01f7f08b9095d71e4a9ee3f787adb6bc3113c12021183e7c9a0", kill_on_drop: false }` [INFO] [stdout] 18bd37391401e01f7f08b9095d71e4a9ee3f787adb6bc3113c12021183e7c9a0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0ea9d7f2c8b7980bd59d4a5450832258e5cf05da119622d2255b3e9e78a61162 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "0ea9d7f2c8b7980bd59d4a5450832258e5cf05da119622d2255b3e9e78a61162", 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_panic)]` on by default [INFO] [stdout] = note: this is no longer accepted in Rust 2021 [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 is no longer accepted in Rust 2021 [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 is no longer accepted in Rust 2021 [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 2.77s [INFO] running `Command { std: "docker" "inspect" "0ea9d7f2c8b7980bd59d4a5450832258e5cf05da119622d2255b3e9e78a61162", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0ea9d7f2c8b7980bd59d4a5450832258e5cf05da119622d2255b3e9e78a61162", kill_on_drop: false }` [INFO] [stdout] 0ea9d7f2c8b7980bd59d4a5450832258e5cf05da119622d2255b3e9e78a61162 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c0644a19723632bc65ddfb54a6f2478acbe56b4ec27562a37937eb9abb61da4c [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "c0644a19723632bc65ddfb54a6f2478acbe56b4ec27562a37937eb9abb61da4c", 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_panic)]` on by default [INFO] [stdout] = note: this is no longer accepted in Rust 2021 [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 is no longer accepted in Rust 2021 [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 is no longer accepted in Rust 2021 [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.26s [INFO] running `Command { std: "docker" "inspect" "c0644a19723632bc65ddfb54a6f2478acbe56b4ec27562a37937eb9abb61da4c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c0644a19723632bc65ddfb54a6f2478acbe56b4ec27562a37937eb9abb61da4c", kill_on_drop: false }` [INFO] [stdout] c0644a19723632bc65ddfb54a6f2478acbe56b4ec27562a37937eb9abb61da4c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "test" "--frozen", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] bbe69f9cb8e02d537b71eebf86a0d414438c0b432b1633287b318e61ad2084cb [INFO] running `Command { std: "docker" "start" "-a" "bbe69f9cb8e02d537b71eebf86a0d414438c0b432b1633287b318e61ad2084cb", 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_panic)]` on by default [INFO] [stderr] = note: this is no longer accepted in Rust 2021 [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 is no longer accepted in Rust 2021 [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 is no longer accepted in Rust 2021 [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: 3 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/ast_interpreter-31d6ea0497a046f4) [INFO] [stdout] [INFO] [stdout] running 29 tests [INFO] [stdout] test interpreter::division_gets_precedence_before_addition ... ok [INFO] [stdout] test interpreter::multiplication_gets_precedence_before_subtraction ... ok [INFO] [stdout] test interpreter::parenthesized_expressions_get_precedence_on_right_hand_of_operator ... ok [INFO] [stdout] test lexer::is_integer_returns_correctly ... 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 interpreter::multiplication_gets_precedence_before_addition ... ok [INFO] [stdout] test lexer::tokenize_returns_a_vector_of_tokens ... ok [INFO] [stdout] test lexer::lex_returns_a_vector_of_tokens ... ok [INFO] [stdout] test lexer::parse_digits_handles_two_digit_integers ... ok [INFO] [stdout] test lexer::tokenize_word_returns_right_paren ... 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_add_operator ... ok [INFO] [stdout] test interpreter::parenthesized_expressions_get_precedence_on_left_hand_of_operator ... ok [INFO] [stdout] test lexer::tokenize_word_returns_sub_operator ... ok [INFO] [stdout] test lexer::tokenize_word_returns_div_operator ... ok [INFO] [stdout] test interpreter::division_gets_precedence_before_subtraction ... ok [INFO] [stdout] test lexer::tokenize_word_returns_left_paren ... ok [INFO] [stdout] test lexer::tokenize_word_returns_mul_operator ... ok [INFO] [stdout] test parser::factor_consumes_the_token ... 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 parser::factor_returns_number_token_as_node ... ok [INFO] [stdout] test parser::factor_skips_whitespace_tokens ... ok [INFO] [stdout] test lexer::tokenize_word_returns_whitespace ... ok [INFO] [stdout] test parser::eat_returns_error_if_the_passed_token_is_not_the_current_token ... ok [INFO] [stdout] test parser::factor_throws_syntax_error_on_operator ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 29 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.09s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "bbe69f9cb8e02d537b71eebf86a0d414438c0b432b1633287b318e61ad2084cb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bbe69f9cb8e02d537b71eebf86a0d414438c0b432b1633287b318e61ad2084cb", kill_on_drop: false }` [INFO] [stdout] bbe69f9cb8e02d537b71eebf86a0d414438c0b432b1633287b318e61ad2084cb