[INFO] cloning repository https://github.com/rustspeak/calculatrice_final
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rustspeak/calculatrice_final" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frustspeak%2Fcalculatrice_final", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frustspeak%2Fcalculatrice_final'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] d9ba3c56e86a2c9caca6f06c593c8a6b9889ccb7
[INFO] testing rustspeak/calculatrice_final against master#733b47ea4b1b86216f14ef56e49440c33933f230+rustflags=-Copt-level=3 for pr-138759
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frustspeak%2Fcalculatrice_final" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/rustspeak/calculatrice_final
[INFO] finished tweaking git repo https://github.com/rustspeak/calculatrice_final
[INFO] tweaked toml for git repo https://github.com/rustspeak/calculatrice_final written to /workspace/builds/worker-7-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/rustspeak/calculatrice_final on toolchain 733b47ea4b1b86216f14ef56e49440c33933f230
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/rustspeak/calculatrice_final 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" "+733b47ea4b1b86216f14ef56e49440c33933f230" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded serde_derive v1.0.203
[INFO] [stderr]   Downloaded serde v1.0.203
[INFO] [stderr]   Downloaded syn v2.0.67
[INFO] [stderr]   Downloaded eval v0.4.3
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] e53c3bcc139a046444fec1c3e4bad1561809a286129dc7268f13e77965ee6d6f
[INFO] running `Command { std: "docker" "start" "-a" "e53c3bcc139a046444fec1c3e4bad1561809a286129dc7268f13e77965ee6d6f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "e53c3bcc139a046444fec1c3e4bad1561809a286129dc7268f13e77965ee6d6f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e53c3bcc139a046444fec1c3e4bad1561809a286129dc7268f13e77965ee6d6f", kill_on_drop: false }`
[INFO] [stdout] e53c3bcc139a046444fec1c3e4bad1561809a286129dc7268f13e77965ee6d6f
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Copt-level=3" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] f6b18b827cc00f43cb63b4dfe69e2f8ecc3d09ef3e983e21f9a731bf1ecc020a
[INFO] running `Command { std: "docker" "start" "-a" "f6b18b827cc00f43cb63b4dfe69e2f8ecc3d09ef3e983e21f9a731bf1ecc020a", kill_on_drop: false }`
[INFO] [stderr]    Compiling serde v1.0.203
[INFO] [stderr]    Compiling serde_json v1.0.117
[INFO] [stderr]    Compiling quick-error v1.2.3
[INFO] [stderr]    Compiling aho-corasick v1.1.3
[INFO] [stderr]    Compiling regex-automata v0.4.7
[INFO] [stderr]    Compiling regex v1.10.5
[INFO] [stderr]    Compiling eval v0.4.3
[INFO] [stderr]    Compiling calculatrice_final v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error: no rules expected `"-"`
[INFO] [stdout]   --> src/main.rs:72:26
[INFO] [stdout]    |
[INFO] [stdout] 72 |     matches!(token, "+", "-", "*", "/")
[INFO] [stdout]    |                          ^^^ no rules expected this token in macro call
[INFO] [stdout]    |
[INFO] [stdout]    = note: while trying to match sequence end
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `mathparse`
[INFO] [stdout]  --> src/main.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use mathparse::eval;
[INFO] [stdout]   |     ^^^^^^^^^ use of unresolved module or unlinked crate `mathparse`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `mathparse`, use `cargo add mathparse` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `multiplication` should have an upper camel case name
[INFO] [stdout]   --> src/main.rs:94:5
[INFO] [stdout]    |
[INFO] [stdout] 94 |     multiplication,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Multiplication`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_camel_case_types)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `division` should have an upper camel case name
[INFO] [stdout]   --> src/main.rs:95:5
[INFO] [stdout]    |
[INFO] [stdout] 95 |     division,
[INFO] [stdout]    |     ^^^^^^^^ help: convert the identifier to upper camel case: `Division`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `addition` should have an upper camel case name
[INFO] [stdout]   --> src/main.rs:96:5
[INFO] [stdout]    |
[INFO] [stdout] 96 |     addition,
[INFO] [stdout]    |     ^^^^^^^^ help: convert the identifier to upper camel case: `Addition`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `soustraction` should have an upper camel case name
[INFO] [stdout]   --> src/main.rs:97:5
[INFO] [stdout]    |
[INFO] [stdout] 97 |     soustraction,
[INFO] [stdout]    |     ^^^^^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Soustraction`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: borrow of moved value: `token`
[INFO] [stdout]   --> src/main.rs:38:27
[INFO] [stdout]    |
[INFO] [stdout] 37 |         let token = m[0].to_string();
[INFO] [stdout]    |             ----- move occurs because `token` has type `String`, which does not implement the `Copy` trait
[INFO] [stdout] 38 |         (token, is_number(&token))
[INFO] [stdout]    |          -----            ^^^^^^ value borrowed here after move
[INFO] [stdout]    |          |
[INFO] [stdout]    |          value moved here
[INFO] [stdout]    |
[INFO] [stdout]    = note: borrow occurs due to deref coercion to `str`
[INFO] [stdout] help: consider cloning the value if the performance cost is acceptable
[INFO] [stdout]    |
[INFO] [stdout] 38 |         (token.clone(), is_number(&token))
[INFO] [stdout]    |               ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `expression`
[INFO] [stdout]    --> src/main.rs:180:25
[INFO] [stdout]     |
[INFO] [stdout] 180 | fn calculate_expression(expression: &str) -> Result<f64, String> {
[INFO] [stdout]     |                         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expression`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0382, E0432.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0382`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `calculatrice_final` (bin "calculatrice_final") due to 3 previous errors; 5 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "f6b18b827cc00f43cb63b4dfe69e2f8ecc3d09ef3e983e21f9a731bf1ecc020a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f6b18b827cc00f43cb63b4dfe69e2f8ecc3d09ef3e983e21f9a731bf1ecc020a", kill_on_drop: false }`
[INFO] [stdout] f6b18b827cc00f43cb63b4dfe69e2f8ecc3d09ef3e983e21f9a731bf1ecc020a
