[INFO] cloning repository https://github.com/YitzhakAndrade/rust-hello-world [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/YitzhakAndrade/rust-hello-world" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYitzhakAndrade%2Frust-hello-world", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYitzhakAndrade%2Frust-hello-world'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3a4815559927fa4a9c3d6003f84af5e6e4d3eccd [INFO] linting YitzhakAndrade/rust-hello-world against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYitzhakAndrade%2Frust-hello-world" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/YitzhakAndrade/rust-hello-world [INFO] finished tweaking git repo https://github.com/YitzhakAndrade/rust-hello-world [INFO] tweaked toml for git repo https://github.com/YitzhakAndrade/rust-hello-world written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/YitzhakAndrade/rust-hello-world on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/YitzhakAndrade/rust-hello-world 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" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cb5eb3f9a30e508a48d4857518aa87df546da01c7e859a2a576ee45d12a5d21c [INFO] running `Command { std: "docker" "start" "-a" "cb5eb3f9a30e508a48d4857518aa87df546da01c7e859a2a576ee45d12a5d21c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cb5eb3f9a30e508a48d4857518aa87df546da01c7e859a2a576ee45d12a5d21c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cb5eb3f9a30e508a48d4857518aa87df546da01c7e859a2a576ee45d12a5d21c", kill_on_drop: false }` [INFO] [stdout] cb5eb3f9a30e508a48d4857518aa87df546da01c7e859a2a576ee45d12a5d21c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3f2d3eeda1a5c086981f78eaf0cadc625acce274a589b36c7ef97bc1589cf7ab [INFO] running `Command { std: "docker" "start" "-a" "3f2d3eeda1a5c086981f78eaf0cadc625acce274a589b36c7ef97bc1589cf7ab", kill_on_drop: false }` [INFO] [stderr] warning: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024` [INFO] [stderr] Checking roadshow v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `grita` is never used [INFO] [stdout] --> src/main.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn grita(string: String) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exercicio_loop` is never used [INFO] [stdout] --> src/main.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn exercicio_loop() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `canta` is never used [INFO] [stdout] --> src/main.rs:74:4 [INFO] [stdout] | [INFO] [stdout] 74 | fn canta(n: i32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exercicio_if` is never used [INFO] [stdout] --> src/main.rs:89:4 [INFO] [stdout] | [INFO] [stdout] 89 | fn exercicio_if() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `par` is never used [INFO] [stdout] --> src/main.rs:118:4 [INFO] [stdout] | [INFO] [stdout] 118 | fn par(n: i32) -> &'static str { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `impar` is never used [INFO] [stdout] --> src/main.rs:126:4 [INFO] [stdout] | [INFO] [stdout] 126 | fn impar(n: i32) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/main.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | fn grita_ref(string: &String) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] = note: `#[warn(clippy::ptr_arg)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 9 - fn grita_ref(string: &String) { [INFO] [stdout] 9 + fn grita_ref(string: &str) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | if !(n % 3 == 0) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: try: `(n % 3 != 0)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | if !(n % 10 == 0) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `(n % 10 != 0)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `print!()` with a format string that ends in a single newline [INFO] [stdout] --> src/main.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | print!(" indiozinhos\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#print_with_newline [INFO] [stdout] = note: `#[warn(clippy::print_with_newline)]` on by default [INFO] [stdout] help: use `println!` instead [INFO] [stdout] | [INFO] [stdout] 81 - print!(" indiozinhos\n"); [INFO] [stdout] 81 + println!(" indiozinhos"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `grita` is never used [INFO] [stdout] --> src/main.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn grita(string: String) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exercicio_loop` is never used [INFO] [stdout] --> src/main.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn exercicio_loop() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `canta` is never used [INFO] [stdout] --> src/main.rs:74:4 [INFO] [stdout] | [INFO] [stdout] 74 | fn canta(n: i32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exercicio_if` is never used [INFO] [stdout] --> src/main.rs:89:4 [INFO] [stdout] | [INFO] [stdout] 89 | fn exercicio_if() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `par` is never used [INFO] [stdout] --> src/main.rs:118:4 [INFO] [stdout] | [INFO] [stdout] 118 | fn par(n: i32) -> &'static str { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `impar` is never used [INFO] [stdout] --> src/main.rs:126:4 [INFO] [stdout] | [INFO] [stdout] 126 | fn impar(n: i32) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/main.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | fn grita_ref(string: &String) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] = note: `#[warn(clippy::ptr_arg)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 9 - fn grita_ref(string: &String) { [INFO] [stdout] 9 + fn grita_ref(string: &str) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | if !(n % 3 == 0) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: try: `(n % 3 != 0)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | if !(n % 10 == 0) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `(n % 10 != 0)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `print!()` with a format string that ends in a single newline [INFO] [stdout] --> src/main.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | print!(" indiozinhos\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#print_with_newline [INFO] [stdout] = note: `#[warn(clippy::print_with_newline)]` on by default [INFO] [stdout] help: use `println!` instead [INFO] [stdout] | [INFO] [stdout] 81 - print!(" indiozinhos\n"); [INFO] [stdout] 81 + println!(" indiozinhos"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.14s [INFO] running `Command { std: "docker" "inspect" "3f2d3eeda1a5c086981f78eaf0cadc625acce274a589b36c7ef97bc1589cf7ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3f2d3eeda1a5c086981f78eaf0cadc625acce274a589b36c7ef97bc1589cf7ab", kill_on_drop: false }` [INFO] [stdout] 3f2d3eeda1a5c086981f78eaf0cadc625acce274a589b36c7ef97bc1589cf7ab