[INFO] cloning repository https://github.com/linkwithabhay/Learn-Rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/linkwithabhay/Learn-Rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flinkwithabhay%2FLearn-Rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flinkwithabhay%2FLearn-Rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1c97d02ba2eeccf03954c369d16a553caf02e44c [INFO] linting linkwithabhay/Learn-Rust against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flinkwithabhay%2FLearn-Rust" "/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/linkwithabhay/Learn-Rust [INFO] finished tweaking git repo https://github.com/linkwithabhay/Learn-Rust [INFO] tweaked toml for git repo https://github.com/linkwithabhay/Learn-Rust written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/linkwithabhay/Learn-Rust 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/linkwithabhay/Learn-Rust 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] 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] f4487224d27e52c9b2bb4daf6085e4cb7f7c0116ff93a772b7a48b305d0b2a8e [INFO] running `Command { std: "docker" "start" "-a" "f4487224d27e52c9b2bb4daf6085e4cb7f7c0116ff93a772b7a48b305d0b2a8e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f4487224d27e52c9b2bb4daf6085e4cb7f7c0116ff93a772b7a48b305d0b2a8e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f4487224d27e52c9b2bb4daf6085e4cb7f7c0116ff93a772b7a48b305d0b2a8e", kill_on_drop: false }` [INFO] [stdout] f4487224d27e52c9b2bb4daf6085e4cb7f7c0116ff93a772b7a48b305d0b2a8e [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] 7e6fb8a665ce1872e50f91c950fbda52ef1865c870cae1182d0eebf506807f5c [INFO] running `Command { std: "docker" "start" "-a" "7e6fb8a665ce1872e50f91c950fbda52ef1865c870cae1182d0eebf506807f5c", kill_on_drop: false }` [INFO] [stderr] Checking learn-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: empty line after doc comment [INFO] [stdout] --> src/operators/arithmetic_operators.rs:34:1 [INFO] [stdout] | [INFO] [stdout] 34 | / /// Write a code that initializes two variables, `a` and `b`, with the values `5.2` and `2.6` (respectively). [INFO] [stdout] 35 | | [INFO] [stdout] | |_^ [INFO] [stdout] 36 | /// After that, initialize another variable `c` that will hold the result of `a / b`. [INFO] [stdout] 37 | pub fn learn() { [INFO] [stdout] | ------------ the comment documents this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_doc_comments)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] help: if the comment should document the parent module use an inner doc comment [INFO] [stdout] | [INFO] [stdout] 1 ~ //! # Arithmetic Operators [INFO] [stdout] 2 ~ //! [INFO] [stdout] 3 ~ //! Operators are used to perform operations on values. [INFO] [stdout] 4 ~ //! [INFO] [stdout] 5 ~ //! First we will discuss the most basic arithmetic operators, they may be familiar from math classes. [INFO] [stdout] 6 ~ //! [INFO] [stdout] 7 ~ //! | Operator | Operation | Example | [INFO] [stdout] 8 ~ //! |----------|----------------|-----------| [INFO] [stdout] 9 ~ //! | + | Addition | 3 + 2 = 5 | [INFO] [stdout] 10 ~ //! | - | Subtraction | 3 - 2 = 1 | [INFO] [stdout] 11 ~ //! | * | Multiplication | 3 * 2 = 6 | [INFO] [stdout] 12 ~ //! | / | Division | 4 / 2 = 2 | [INFO] [stdout] 13 ~ //! [INFO] [stdout] 14 ~ //! Let's see usage example, [INFO] [stdout] 15 ~ //! ```rust [INFO] [stdout] 16 ~ //! let a: i32 = 3; [INFO] [stdout] 17 ~ //! let b: i32 = 5; [INFO] [stdout] 18 ~ //! let c: i32 = a + b [INFO] [stdout] 19 ~ //! // c holds 8 [INFO] [stdout] 20 ~ //! ``` [INFO] [stdout] 21 ~ //! [INFO] [stdout] 22 ~ //! When working with decimal numbers in Rust, we use the `f64` data type, which can store [INFO] [stdout] 23 ~ //! numbers with decimal points. The same arithmetic operators (+, -, *, /) work with `f64` [INFO] [stdout] 24 ~ //! just like they do with integers: [INFO] [stdout] 25 ~ //! ```rust [INFO] [stdout] 26 ~ //! let x: f64 = 3.3; [INFO] [stdout] 27 ~ //! let y: f64 = 4.1; [INFO] [stdout] 28 ~ //! let z: f64 = x + y; [INFO] [stdout] 29 ~ //! // z holds 7.4 [INFO] [stdout] 30 ~ //! ``` [INFO] [stdout] 31 ~ //! [INFO] [stdout] 32 ~ //! ## Challenge [INFO] [stdout] 33 ~ //! [INFO] [stdout] 34 ~ //! Write a code that initializes two variables, `a` and `b`, with the values `5.2` and `2.6` (respectively). [INFO] [stdout] | [INFO] [stdout] help: if the documentation should include the empty line include it in the comment [INFO] [stdout] | [INFO] [stdout] 35 | /// [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/decision_making/if_else_expressions.rs:69:15 [INFO] [stdout] | [INFO] [stdout] 69 | } else if wind >= 8 && wind <= 31 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(8..=31).contains(&wind)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] = note: `#[warn(clippy::manual_range_contains)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/decision_making/if_else_expressions.rs:71:15 [INFO] [stdout] | [INFO] [stdout] 71 | } else if wind >= 32 && wind <= 63 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(32..=63).contains(&wind)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/decision_making/if_expressions.rs:42:18 [INFO] [stdout] | [INFO] [stdout] 42 | if a >= b && !(b < 10) { [INFO] [stdout] | ^^^^^^^^^ help: try: `(b >= 10)` [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 OR pattern can be rewritten using a range [INFO] [stdout] --> src/decision_making/match_statement.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | 3 | 4 | 5 => "Spring", [INFO] [stdout] | ^^^^^^^^^ help: try: `3..=5` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_patterns [INFO] [stdout] = note: `#[warn(clippy::manual_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this OR pattern can be rewritten using a range [INFO] [stdout] --> src/decision_making/match_statement.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | 6 | 7 | 8 => "Summer", [INFO] [stdout] | ^^^^^^^^^ help: try: `6..=8` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_patterns [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this OR pattern can be rewritten using a range [INFO] [stdout] --> src/decision_making/match_statement.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | 9 | 10 | 11 => "Autumn", [INFO] [stdout] | ^^^^^^^^^^^ help: try: `9..=11` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_patterns [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/loops/infinite_loop.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | /// If it is, break out of the loop. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] = note: `#[warn(clippy::doc_lazy_continuation)]` on by default [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 46 | /// If it is, break out of the loop. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/operators/logical_operators_2.rs:47:20 [INFO] [stdout] | [INFO] [stdout] 47 | let b3: bool = !((b1 + b2) > (b1 * b2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `((b1 + b2) <= (b1 * b2))` [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: needless `fn main` in doctest [INFO] [stdout] --> src/variable_bindings/scope.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | /// fn main() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main [INFO] [stdout] = note: `#[warn(clippy::needless_doctest_main)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needless `fn main` in doctest [INFO] [stdout] --> src/variable_bindings/scope.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | /// fn main() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needless `fn main` in doctest [INFO] [stdout] --> src/variable_bindings/shadowing.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | /// fn main() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after doc comment [INFO] [stdout] --> src/operators/arithmetic_operators.rs:34:1 [INFO] [stdout] | [INFO] [stdout] 34 | / /// Write a code that initializes two variables, `a` and `b`, with the values `5.2` and `2.6` (respectively). [INFO] [stdout] 35 | | [INFO] [stdout] | |_^ [INFO] [stdout] 36 | /// After that, initialize another variable `c` that will hold the result of `a / b`. [INFO] [stdout] 37 | pub fn learn() { [INFO] [stdout] | ------------ the comment documents this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_doc_comments)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] help: if the comment should document the parent module use an inner doc comment [INFO] [stdout] | [INFO] [stdout] 1 ~ //! # Arithmetic Operators [INFO] [stdout] 2 ~ //! [INFO] [stdout] 3 ~ //! Operators are used to perform operations on values. [INFO] [stdout] 4 ~ //! [INFO] [stdout] 5 ~ //! First we will discuss the most basic arithmetic operators, they may be familiar from math classes. [INFO] [stdout] 6 ~ //! [INFO] [stdout] 7 ~ //! | Operator | Operation | Example | [INFO] [stdout] 8 ~ //! |----------|----------------|-----------| [INFO] [stdout] 9 ~ //! | + | Addition | 3 + 2 = 5 | [INFO] [stdout] 10 ~ //! | - | Subtraction | 3 - 2 = 1 | [INFO] [stdout] 11 ~ //! | * | Multiplication | 3 * 2 = 6 | [INFO] [stdout] 12 ~ //! | / | Division | 4 / 2 = 2 | [INFO] [stdout] 13 ~ //! [INFO] [stdout] 14 ~ //! Let's see usage example, [INFO] [stdout] 15 ~ //! ```rust [INFO] [stdout] 16 ~ //! let a: i32 = 3; [INFO] [stdout] 17 ~ //! let b: i32 = 5; [INFO] [stdout] 18 ~ //! let c: i32 = a + b [INFO] [stdout] 19 ~ //! // c holds 8 [INFO] [stdout] 20 ~ //! ``` [INFO] [stdout] 21 ~ //! [INFO] [stdout] 22 ~ //! When working with decimal numbers in Rust, we use the `f64` data type, which can store [INFO] [stdout] 23 ~ //! numbers with decimal points. The same arithmetic operators (+, -, *, /) work with `f64` [INFO] [stdout] 24 ~ //! just like they do with integers: [INFO] [stdout] 25 ~ //! ```rust [INFO] [stdout] 26 ~ //! let x: f64 = 3.3; [INFO] [stdout] 27 ~ //! let y: f64 = 4.1; [INFO] [stdout] 28 ~ //! let z: f64 = x + y; [INFO] [stdout] 29 ~ //! // z holds 7.4 [INFO] [stdout] 30 ~ //! ``` [INFO] [stdout] 31 ~ //! [INFO] [stdout] 32 ~ //! ## Challenge [INFO] [stdout] 33 ~ //! [INFO] [stdout] 34 ~ //! Write a code that initializes two variables, `a` and `b`, with the values `5.2` and `2.6` (respectively). [INFO] [stdout] | [INFO] [stdout] help: if the documentation should include the empty line include it in the comment [INFO] [stdout] | [INFO] [stdout] 35 | /// [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/decision_making/if_else_expressions.rs:69:15 [INFO] [stdout] | [INFO] [stdout] 69 | } else if wind >= 8 && wind <= 31 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(8..=31).contains(&wind)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] = note: `#[warn(clippy::manual_range_contains)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/decision_making/if_else_expressions.rs:71:15 [INFO] [stdout] | [INFO] [stdout] 71 | } else if wind >= 32 && wind <= 63 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(32..=63).contains(&wind)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/decision_making/if_expressions.rs:42:18 [INFO] [stdout] | [INFO] [stdout] 42 | if a >= b && !(b < 10) { [INFO] [stdout] | ^^^^^^^^^ help: try: `(b >= 10)` [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 OR pattern can be rewritten using a range [INFO] [stdout] --> src/decision_making/match_statement.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | 3 | 4 | 5 => "Spring", [INFO] [stdout] | ^^^^^^^^^ help: try: `3..=5` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_patterns [INFO] [stdout] = note: `#[warn(clippy::manual_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this OR pattern can be rewritten using a range [INFO] [stdout] --> src/decision_making/match_statement.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | 6 | 7 | 8 => "Summer", [INFO] [stdout] | ^^^^^^^^^ help: try: `6..=8` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_patterns [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this OR pattern can be rewritten using a range [INFO] [stdout] --> src/decision_making/match_statement.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | 9 | 10 | 11 => "Autumn", [INFO] [stdout] | ^^^^^^^^^^^ help: try: `9..=11` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_patterns [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/loops/infinite_loop.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | /// If it is, break out of the loop. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] = note: `#[warn(clippy::doc_lazy_continuation)]` on by default [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 46 | /// If it is, break out of the loop. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/operators/logical_operators_2.rs:47:20 [INFO] [stdout] | [INFO] [stdout] 47 | let b3: bool = !((b1 + b2) > (b1 * b2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `((b1 + b2) <= (b1 * b2))` [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: needless `fn main` in doctest [INFO] [stdout] --> src/variable_bindings/scope.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | /// fn main() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main [INFO] [stdout] = note: `#[warn(clippy::needless_doctest_main)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needless `fn main` in doctest [INFO] [stdout] --> src/variable_bindings/scope.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | /// fn main() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needless `fn main` in doctest [INFO] [stdout] --> src/variable_bindings/shadowing.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | /// fn main() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.34s [INFO] running `Command { std: "docker" "inspect" "7e6fb8a665ce1872e50f91c950fbda52ef1865c870cae1182d0eebf506807f5c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7e6fb8a665ce1872e50f91c950fbda52ef1865c870cae1182d0eebf506807f5c", kill_on_drop: false }` [INFO] [stdout] 7e6fb8a665ce1872e50f91c950fbda52ef1865c870cae1182d0eebf506807f5c