[INFO] cloning repository https://github.com/MuhammadHamzaFarooq/RustPrimeNumberLibrary [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MuhammadHamzaFarooq/RustPrimeNumberLibrary" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMuhammadHamzaFarooq%2FRustPrimeNumberLibrary", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMuhammadHamzaFarooq%2FRustPrimeNumberLibrary'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c2f8dd939cb4afce2532edb1feb388f548969c4a [INFO] checking MuhammadHamzaFarooq/RustPrimeNumberLibrary/c2f8dd939cb4afce2532edb1feb388f548969c4a against master#bbefc9837f4157cc09ed60e6d7b21e345d582dd9 for pr-114571-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMuhammadHamzaFarooq%2FRustPrimeNumberLibrary" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MuhammadHamzaFarooq/RustPrimeNumberLibrary on toolchain bbefc9837f4157cc09ed60e6d7b21e345d582dd9 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bbefc9837f4157cc09ed60e6d7b21e345d582dd9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/MuhammadHamzaFarooq/RustPrimeNumberLibrary [INFO] finished tweaking git repo https://github.com/MuhammadHamzaFarooq/RustPrimeNumberLibrary [INFO] tweaked toml for git repo https://github.com/MuhammadHamzaFarooq/RustPrimeNumberLibrary written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/MuhammadHamzaFarooq/RustPrimeNumberLibrary 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" "+bbefc9837f4157cc09ed60e6d7b21e345d582dd9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+bbefc9837f4157cc09ed60e6d7b21e345d582dd9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 20186a532a18f30c842ede968cc77fd91e76e41a54ef7c28f5e08ca78ba2a550 [INFO] running `Command { std: "docker" "start" "-a" "20186a532a18f30c842ede968cc77fd91e76e41a54ef7c28f5e08ca78ba2a550", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "20186a532a18f30c842ede968cc77fd91e76e41a54ef7c28f5e08ca78ba2a550", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "20186a532a18f30c842ede968cc77fd91e76e41a54ef7c28f5e08ca78ba2a550", kill_on_drop: false }` [INFO] [stdout] 20186a532a18f30c842ede968cc77fd91e76e41a54ef7c28f5e08ca78ba2a550 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+bbefc9837f4157cc09ed60e6d7b21e345d582dd9" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3cc3ffbbc60b093204768150244b92e9bd7ac118c9df74c78e559b823176734f [INFO] running `Command { std: "docker" "start" "-a" "3cc3ffbbc60b093204768150244b92e9bd7ac118c9df74c78e559b823176734f", kill_on_drop: false }` [INFO] [stderr] Checking RustPrimeNumberLibrary v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | if(j< num){ // check j is less user input value [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 12 - if(j< num){ // check j is less user input value [INFO] [stdout] 12 + if j< num { // check j is less user input value [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | if(result==0){ //checks reminder is equal to zero [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 15 - if(result==0){ //checks reminder is equal to zero [INFO] [stdout] 15 + if result==0 { //checks reminder is equal to zero [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | if(j< num){ // check j is less user input value [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 12 - if(j< num){ // check j is less user input value [INFO] [stdout] 12 + if j< num { // check j is less user input value [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | if(result==0){ //checks reminder is equal to zero [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 15 - if(result==0){ //checks reminder is equal to zero [INFO] [stdout] 15 + if result==0 { //checks reminder is equal to zero [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `RustPrimeNumberLibrary` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `rust_prime_number_library` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Prime_Number_Checker` should have a snake case name [INFO] [stdout] --> src/lib.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub mod Prime_Number_Checker{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `prime_number_checker` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `IS_prime_OR_notPrime` should have a snake case name [INFO] [stdout] --> src/lib.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn IS_prime_OR_notPrime(num : u32){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `is_prime_or_not_prime` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `RustPrimeNumberLibrary` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `rust_prime_number_library` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Prime_Number_Checker` should have a snake case name [INFO] [stdout] --> src/lib.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub mod Prime_Number_Checker{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `prime_number_checker` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `IS_prime_OR_notPrime` should have a snake case name [INFO] [stdout] --> src/lib.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn IS_prime_OR_notPrime(num : u32){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `is_prime_or_not_prime` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `RustPrimeNumberLibrary` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `rust_prime_number_library` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `RustPrimeNumberLibrary` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `rust_prime_number_library` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.07s [INFO] running `Command { std: "docker" "inspect" "3cc3ffbbc60b093204768150244b92e9bd7ac118c9df74c78e559b823176734f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3cc3ffbbc60b093204768150244b92e9bd7ac118c9df74c78e559b823176734f", kill_on_drop: false }` [INFO] [stdout] 3cc3ffbbc60b093204768150244b92e9bd7ac118c9df74c78e559b823176734f