[INFO] cloning repository https://github.com/JuniorBecari10/Math-Interpreter-Rust-Old
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/JuniorBecari10/Math-Interpreter-Rust-Old" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJuniorBecari10%2FMath-Interpreter-Rust-Old", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJuniorBecari10%2FMath-Interpreter-Rust-Old'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] a63b04ec1c10397b845c4ede286aa49352bdb1e6
[INFO] checking JuniorBecari10/Math-Interpreter-Rust-Old against try#3f7e3b175fda7edbf81081bcd9b91b73f2f7993f for pr-156157-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJuniorBecari10%2FMath-Interpreter-Rust-Old" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/JuniorBecari10/Math-Interpreter-Rust-Old
[INFO] finished tweaking git repo https://github.com/JuniorBecari10/Math-Interpreter-Rust-Old
[INFO] tweaked toml for git repo https://github.com/JuniorBecari10/Math-Interpreter-Rust-Old written to /workspace/builds/worker-0-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/JuniorBecari10/Math-Interpreter-Rust-Old on toolchain 3f7e3b175fda7edbf81081bcd9b91b73f2f7993f
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3f7e3b175fda7edbf81081bcd9b91b73f2f7993f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/JuniorBecari10/Math-Interpreter-Rust-Old 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" "+3f7e3b175fda7edbf81081bcd9b91b73f2f7993f" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+3f7e3b175fda7edbf81081bcd9b91b73f2f7993f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 635ddd5d84a54de6d03ae094953721666bd63c3ec93dc902b2970df7bfcea437
[INFO] running `Command { std: "docker" "start" "-a" "635ddd5d84a54de6d03ae094953721666bd63c3ec93dc902b2970df7bfcea437", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "635ddd5d84a54de6d03ae094953721666bd63c3ec93dc902b2970df7bfcea437", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "635ddd5d84a54de6d03ae094953721666bd63c3ec93dc902b2970df7bfcea437", kill_on_drop: false }`
[INFO] [stdout] 635ddd5d84a54de6d03ae094953721666bd63c3ec93dc902b2970df7bfcea437
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+3f7e3b175fda7edbf81081bcd9b91b73f2f7993f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 633bf627e6d35b09d1739f60601d1875d747d12e1555d5463ebc1b70b4e49597
[INFO] running `Command { std: "docker" "start" "-a" "633bf627e6d35b09d1739f60601d1875d747d12e1555d5463ebc1b70b4e49597", kill_on_drop: false }`
[INFO] [stderr]     Checking lexer v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0369]: binary operation `==` cannot be applied to type `TokenKind`
[INFO] [stdout]   --> src/lexer.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | #[derive(Debug, PartialEq, Eq)]
[INFO] [stdout]    |                 --------- in this derive macro expansion
[INFO] [stdout] ...
[INFO] [stdout] 18 |     pub kind: TokenKind
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] note: an implementation of `PartialEq` might be missing for `TokenKind`
[INFO] [stdout]   --> src/lexer.rs:2:1
[INFO] [stdout]    |
[INFO] [stdout]  2 | pub enum TokenKind {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^ must implement `PartialEq`
[INFO] [stdout] help: consider annotating `TokenKind` with `#[derive(PartialEq)]`
[INFO] [stdout]    |
[INFO] [stdout]  2 + #[derive(PartialEq)]
[INFO] [stdout]  3 | pub enum TokenKind {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the trait bound `TokenKind: Eq` is not satisfied
[INFO] [stdout]   --> src/lexer.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | #[derive(Debug, PartialEq, Eq)]
[INFO] [stdout]    |                            -- in this derive macro expansion
[INFO] [stdout] ...
[INFO] [stdout] 18 |     pub kind: TokenKind
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^ the trait `Eq` is not implemented for `TokenKind`
[INFO] [stdout]    |
[INFO] [stdout] note: required by a bound in `std::cmp::AssertParamIsEq`
[INFO] [stdout]   --> /rustc/3f7e3b175fda7edbf81081bcd9b91b73f2f7993f/library/core/src/cmp.rs:379:0
[INFO] [stdout] help: consider annotating `TokenKind` with `#[derive(Eq)]`
[INFO] [stdout]    |
[INFO] [stdout]  2 + #[derive(Eq)]
[INFO] [stdout]  3 | pub enum TokenKind {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0596]: cannot borrow `l` as mutable, as it is not declared as mutable
[INFO] [stdout]   --> src/main.rs:12:9
[INFO] [stdout]    |
[INFO] [stdout] 12 |     let l = lexer::Lexer::new(s.clone());
[INFO] [stdout]    |         ^ not mutable
[INFO] [stdout] 13 |     let tokens = Vec::new();
[INFO] [stdout] 14 |     let token = l.next_token();
[INFO] [stdout]    |                 - cannot borrow as mutable
[INFO] [stdout] ...
[INFO] [stdout] 18 |         token = l.next_token();
[INFO] [stdout]    |                 - cannot borrow as mutable
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing this to be mutable
[INFO] [stdout]    |
[INFO] [stdout] 12 |     let mut l = lexer::Lexer::new(s.clone());
[INFO] [stdout]    |         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `lexer` (bin "lexer") due to 5 previous errors
[INFO] [stdout] error[E0596]: cannot borrow `tokens` as mutable, as it is not declared as mutable
[INFO] [stdout]   --> src/main.rs:17:9
[INFO] [stdout]    |
[INFO] [stdout] 17 |         tokens.push(token);
[INFO] [stdout]    |         ^^^^^^ cannot borrow as mutable
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing this to be mutable
[INFO] [stdout]    |
[INFO] [stdout] 13 |     let mut tokens = Vec::new();
[INFO] [stdout]    |         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0384]: cannot assign twice to immutable variable `token`
[INFO] [stdout]   --> src/main.rs:18:9
[INFO] [stdout]    |
[INFO] [stdout] 14 |     let token = l.next_token();
[INFO] [stdout]    |         ----- first assignment to `token`
[INFO] [stdout] ...
[INFO] [stdout] 18 |         token = l.next_token();
[INFO] [stdout]    |         ^^^^^ cannot assign twice to immutable variable
[INFO] [stdout]    |
[INFO] [stdout] help: consider making this binding mutable
[INFO] [stdout]    |
[INFO] [stdout] 14 |     let mut token = l.next_token();
[INFO] [stdout]    |         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `lexer` (bin "lexer" test) due to 5 previous errors
[INFO] [stdout] Some errors have detailed explanations: E0277, E0369, E0384, E0596.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stdout] error[E0369]: binary operation `==` cannot be applied to type `TokenKind`
[INFO] [stdout]   --> src/lexer.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | #[derive(Debug, PartialEq, Eq)]
[INFO] [stdout]    |                 --------- in this derive macro expansion
[INFO] [stdout] ...
[INFO] [stdout] 18 |     pub kind: TokenKind
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] note: an implementation of `PartialEq` might be missing for `TokenKind`
[INFO] [stdout]   --> src/lexer.rs:2:1
[INFO] [stdout]    |
[INFO] [stdout]  2 | pub enum TokenKind {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^ must implement `PartialEq`
[INFO] [stdout] help: consider annotating `TokenKind` with `#[derive(PartialEq)]`
[INFO] [stdout]    |
[INFO] [stdout]  2 + #[derive(PartialEq)]
[INFO] [stdout]  3 | pub enum TokenKind {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the trait bound `TokenKind: Eq` is not satisfied
[INFO] [stdout]   --> src/lexer.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | #[derive(Debug, PartialEq, Eq)]
[INFO] [stdout]    |                            -- in this derive macro expansion
[INFO] [stdout] ...
[INFO] [stdout] 18 |     pub kind: TokenKind
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^ the trait `Eq` is not implemented for `TokenKind`
[INFO] [stdout]    |
[INFO] [stdout] note: required by a bound in `std::cmp::AssertParamIsEq`
[INFO] [stdout]   --> /rustc/3f7e3b175fda7edbf81081bcd9b91b73f2f7993f/library/core/src/cmp.rs:379:0
[INFO] [stdout] help: consider annotating `TokenKind` with `#[derive(Eq)]`
[INFO] [stdout]    |
[INFO] [stdout]  2 + #[derive(Eq)]
[INFO] [stdout]  3 | pub enum TokenKind {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0596]: cannot borrow `l` as mutable, as it is not declared as mutable
[INFO] [stdout]   --> src/main.rs:12:9
[INFO] [stdout]    |
[INFO] [stdout] 12 |     let l = lexer::Lexer::new(s.clone());
[INFO] [stdout]    |         ^ not mutable
[INFO] [stdout] 13 |     let tokens = Vec::new();
[INFO] [stdout] 14 |     let token = l.next_token();
[INFO] [stdout]    |                 - cannot borrow as mutable
[INFO] [stdout] ...
[INFO] [stdout] 18 |         token = l.next_token();
[INFO] [stdout]    |                 - cannot borrow as mutable
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing this to be mutable
[INFO] [stdout]    |
[INFO] [stdout] 12 |     let mut l = lexer::Lexer::new(s.clone());
[INFO] [stdout]    |         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0596]: cannot borrow `tokens` as mutable, as it is not declared as mutable
[INFO] [stdout]   --> src/main.rs:17:9
[INFO] [stdout]    |
[INFO] [stdout] 17 |         tokens.push(token);
[INFO] [stdout]    |         ^^^^^^ cannot borrow as mutable
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing this to be mutable
[INFO] [stdout]    |
[INFO] [stdout] 13 |     let mut tokens = Vec::new();
[INFO] [stdout]    |         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0384]: cannot assign twice to immutable variable `token`
[INFO] [stdout]   --> src/main.rs:18:9
[INFO] [stdout]    |
[INFO] [stdout] 14 |     let token = l.next_token();
[INFO] [stdout]    |         ----- first assignment to `token`
[INFO] [stdout] ...
[INFO] [stdout] 18 |         token = l.next_token();
[INFO] [stdout]    |         ^^^^^ cannot assign twice to immutable variable
[INFO] [stdout]    |
[INFO] [stdout] help: consider making this binding mutable
[INFO] [stdout]    |
[INFO] [stdout] 14 |     let mut token = l.next_token();
[INFO] [stdout]    |         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0369, E0384, E0596.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "633bf627e6d35b09d1739f60601d1875d747d12e1555d5463ebc1b70b4e49597", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "633bf627e6d35b09d1739f60601d1875d747d12e1555d5463ebc1b70b4e49597", kill_on_drop: false }`
[INFO] [stdout] 633bf627e6d35b09d1739f60601d1875d747d12e1555d5463ebc1b70b4e49597
