[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] checking rustspeak/calculatrice_final against try#7df376b035b3d12ff0386ad8b45b76dbe020257b for pr-142712 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frustspeak%2Fcalculatrice_final" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-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-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/rustspeak/calculatrice_final on toolchain 7df376b035b3d12ff0386ad8b45b76dbe020257b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7df376b035b3d12ff0386ad8b45b76dbe020257b" "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" "+7df376b035b3d12ff0386ad8b45b76dbe020257b" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded eval v0.4.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+7df376b035b3d12ff0386ad8b45b76dbe020257b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d2e0ac2c622494878a7e5530ee175a76aa708fd244868ab0a118da741fdd74d6 [INFO] running `Command { std: "docker" "start" "-a" "d2e0ac2c622494878a7e5530ee175a76aa708fd244868ab0a118da741fdd74d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d2e0ac2c622494878a7e5530ee175a76aa708fd244868ab0a118da741fdd74d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d2e0ac2c622494878a7e5530ee175a76aa708fd244868ab0a118da741fdd74d6", kill_on_drop: false }` [INFO] [stdout] d2e0ac2c622494878a7e5530ee175a76aa708fd244868ab0a118da741fdd74d6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+7df376b035b3d12ff0386ad8b45b76dbe020257b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a9bc86d43ce1af021c2f66935cf3bacf6f9e992801904fe16bf0fe2402910f8c [INFO] running `Command { std: "docker" "start" "-a" "a9bc86d43ce1af021c2f66935cf3bacf6f9e992801904fe16bf0fe2402910f8c", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.203 [INFO] [stderr] Compiling serde_json v1.0.117 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking regex-syntax v0.8.4 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Checking eval v0.4.3 [INFO] [stderr] Checking regex v1.10.5 [INFO] [stderr] Checking 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: 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] 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 `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 `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] 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] 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 { [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] warning: unused variable: `expression` [INFO] [stdout] --> src/main.rs:180:25 [INFO] [stdout] | [INFO] [stdout] 180 | fn calculate_expression(expression: &str) -> Result { [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] [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] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `calculatrice_final` (bin "calculatrice_final" test) due to 3 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "a9bc86d43ce1af021c2f66935cf3bacf6f9e992801904fe16bf0fe2402910f8c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a9bc86d43ce1af021c2f66935cf3bacf6f9e992801904fe16bf0fe2402910f8c", kill_on_drop: false }` [INFO] [stdout] a9bc86d43ce1af021c2f66935cf3bacf6f9e992801904fe16bf0fe2402910f8c