[INFO] cloning repository https://github.com/WanderingPenwing/Pendragon [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/WanderingPenwing/Pendragon" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWanderingPenwing%2FPendragon", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWanderingPenwing%2FPendragon'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4e979ca7e2a8a78a3d821e67403884b9f6020055 [INFO] linting WanderingPenwing/Pendragon against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWanderingPenwing%2FPendragon" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/WanderingPenwing/Pendragon [INFO] finished tweaking git repo https://github.com/WanderingPenwing/Pendragon [INFO] tweaked toml for git repo https://github.com/WanderingPenwing/Pendragon written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/WanderingPenwing/Pendragon 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/WanderingPenwing/Pendragon 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] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 43f7b900f0478cf4bca62a9660f18ce47fe2ae1019a032ae4ae39880db1bbee5 [INFO] running `Command { std: "docker" "start" "-a" "43f7b900f0478cf4bca62a9660f18ce47fe2ae1019a032ae4ae39880db1bbee5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "43f7b900f0478cf4bca62a9660f18ce47fe2ae1019a032ae4ae39880db1bbee5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "43f7b900f0478cf4bca62a9660f18ce47fe2ae1019a032ae4ae39880db1bbee5", kill_on_drop: false }` [INFO] [stdout] 43f7b900f0478cf4bca62a9660f18ce47fe2ae1019a032ae4ae39880db1bbee5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] f2bf0f93dc7b3333ce54cdcfbeaa4be9785f8ff5c36e9e8bbb2a3c9e26d8878a [INFO] running `Command { std: "docker" "start" "-a" "f2bf0f93dc7b3333ce54cdcfbeaa4be9785f8ff5c36e9e8bbb2a3c9e26d8878a", kill_on_drop: false }` [INFO] [stderr] Checking pendragon v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: using `clone` on type `usize` which implements the `Copy` trait [INFO] [stdout] --> src/morgan/booleen.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | let current_index = instruction.var.entry(EXPRESSION_BOOLEEN.to_string()).and_modify(|e| *e += 1).or_insert(0).clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*instruction.var.entry(EXPRESSION_BOOLEEN.to_string()).and_modify(|e| *e += 1).or_insert(0)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] = note: `#[warn(clippy::clone_on_copy)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `usize` which implements the `Copy` trait [INFO] [stdout] --> src/morgan/booleen.rs:104:23 [INFO] [stdout] | [INFO] [stdout] 104 | let current_index = instruction.var.entry(COMPARAISON.to_string()).and_modify(|e| *e += 1).or_insert(0).clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*instruction.var.entry(COMPARAISON.to_string()).and_modify(|e| *e += 1).or_insert(0)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `usize` which implements the `Copy` trait [INFO] [stdout] --> src/morgan/nombre.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | let current_index = instruction.var.entry(EXPRESSION_NOMBRE.to_string()).and_modify(|e| *e += 1).or_insert(0).clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*instruction.var.entry(EXPRESSION_NOMBRE.to_string()).and_modify(|e| *e += 1).or_insert(0)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `usize` which implements the `Copy` trait [INFO] [stdout] --> src/morgan/texte.rs:10:22 [INFO] [stdout] | [INFO] [stdout] 10 | let current_index = instruction.var.entry(EXPRESSION_TEXTE.to_string()).and_modify(|e| *e += 1).or_insert(0).clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*instruction.var.entry(EXPRESSION_TEXTE.to_string()).and_modify(|e| *e += 1).or_insert(0)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `usize` which implements the `Copy` trait [INFO] [stdout] --> src/morgan/texte.rs:66:31 [INFO] [stdout] | [INFO] [stdout] 66 | let current_texte_index = instruction.var.entry(TEXTE_GLOBAL.to_string()).and_modify(|e| *e += 1).or_insert(0).clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*instruction.var.entry(TEXTE_GLOBAL.to_string()).and_modify(|e| *e += 1).or_insert(0)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `usize` which implements the `Copy` trait [INFO] [stdout] --> src/morgan/mod.rs:276:23 [INFO] [stdout] | [INFO] [stdout] 276 | let current_index = instruction.var.entry(BLOC.to_string()).and_modify(|e| *e += 1).or_insert(0).clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*instruction.var.entry(BLOC.to_string()).and_modify(|e| *e += 1).or_insert(0)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison to empty slice [INFO] [stdout] --> src/morgan/mod.rs:288:25 [INFO] [stdout] | [INFO] [stdout] 288 | let comma: &str = if &input == "" { [INFO] [stdout] | ^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `input.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#comparison_to_empty [INFO] [stdout] = note: `#[warn(clippy::comparison_to_empty)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison to empty slice [INFO] [stdout] --> src/morgan/mod.rs:312:26 [INFO] [stdout] | [INFO] [stdout] 312 | let comma: &str = if &output == "" { [INFO] [stdout] | ^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `output.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#comparison_to_empty [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `usize` which implements the `Copy` trait [INFO] [stdout] --> src/morgan/mod.rs:327:28 [INFO] [stdout] | [INFO] [stdout] 327 | let current_var_index = instruction.var.entry(variable.to_string()).and_modify(|e| *e += 1).or_insert(0).clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*instruction.var.entry(variable.to_string()).and_modify(|e| *e += 1).or_insert(0)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/main.rs:97:36 [INFO] [stdout] | [INFO] [stdout] 97 | let _ll_result = fs::remove_file(&format!("{}.ll", nom_fichier)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{}.ll", nom_fichier)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/main.rs:98:35 [INFO] [stdout] | [INFO] [stdout] 98 | let _s_result = fs::remove_file(&format!("{}.s", nom_fichier)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{}.s", nom_fichier)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/debug/test.rs:141:36 [INFO] [stdout] | [INFO] [stdout] 141 | let resultat = configuration.0 && !(configuration.1 || !configuration.2) [INFO] [stdout] | ____________________________________^ [INFO] [stdout] 142 | | || !configuration.3 && configuration.4; [INFO] [stdout] | |______________________________________________________________^ help: try: `!configuration.3 && configuration.4 || configuration.0 && !configuration.1 && configuration.2` [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/debug/test.rs:141:36 [INFO] [stdout] | [INFO] [stdout] 141 | let resultat = configuration.0 && !(configuration.1 || !configuration.2) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `configuration.0 && !configuration.1 && configuration.2` [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: this boolean expression can be simplified [INFO] [stdout] --> src/debug/test.rs:141:55 [INFO] [stdout] | [INFO] [stdout] 141 | let resultat = configuration.0 && !(configuration.1 || !configuration.2) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `!configuration.1 && configuration.2` [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: this boolean expression can be simplified [INFO] [stdout] --> src/debug/test.rs:198:13 [INFO] [stdout] | [INFO] [stdout] 198 | !(6 + a > 2 * b), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: try: `(6 + a <= 2 * b)` [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: this boolean expression can be simplified [INFO] [stdout] --> src/debug/test.rs:201:13 [INFO] [stdout] | [INFO] [stdout] 201 | !(6 + a <= 2 * b), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: try: `(6 + a > 2 * b)` [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: this boolean expression can be simplified [INFO] [stdout] --> src/debug/test.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 202 | !(a == 2), [INFO] [stdout] | ^^^^^^^^^ help: try: `(a != 2)` [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: this boolean expression can be simplified [INFO] [stdout] --> src/debug/test.rs:244:45 [INFO] [stdout] | [INFO] [stdout] 244 | let bonne_reponse = !((6 + a) > 2 * b) && (c / 2 < (d - 1) || !(e == 2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: try: `((6 + a) <= 2 * b)` [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: this boolean expression can be simplified [INFO] [stdout] --> src/debug/test.rs:244:87 [INFO] [stdout] | [INFO] [stdout] 244 | let bonne_reponse = !((6 + a) > 2 * b) && (c / 2 < (d - 1) || !(e == 2)); [INFO] [stdout] | ^^^^^^^^^ help: try: `(e != 2)` [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 `clone` on type `usize` which implements the `Copy` trait [INFO] [stdout] --> src/morgan/booleen.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | let current_index = instruction.var.entry(EXPRESSION_BOOLEEN.to_string()).and_modify(|e| *e += 1).or_insert(0).clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*instruction.var.entry(EXPRESSION_BOOLEEN.to_string()).and_modify(|e| *e += 1).or_insert(0)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] = note: `#[warn(clippy::clone_on_copy)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `usize` which implements the `Copy` trait [INFO] [stdout] --> src/morgan/booleen.rs:104:23 [INFO] [stdout] | [INFO] [stdout] 104 | let current_index = instruction.var.entry(COMPARAISON.to_string()).and_modify(|e| *e += 1).or_insert(0).clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*instruction.var.entry(COMPARAISON.to_string()).and_modify(|e| *e += 1).or_insert(0)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `usize` which implements the `Copy` trait [INFO] [stdout] --> src/morgan/nombre.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | let current_index = instruction.var.entry(EXPRESSION_NOMBRE.to_string()).and_modify(|e| *e += 1).or_insert(0).clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*instruction.var.entry(EXPRESSION_NOMBRE.to_string()).and_modify(|e| *e += 1).or_insert(0)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `usize` which implements the `Copy` trait [INFO] [stdout] --> src/morgan/texte.rs:10:22 [INFO] [stdout] | [INFO] [stdout] 10 | let current_index = instruction.var.entry(EXPRESSION_TEXTE.to_string()).and_modify(|e| *e += 1).or_insert(0).clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*instruction.var.entry(EXPRESSION_TEXTE.to_string()).and_modify(|e| *e += 1).or_insert(0)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `usize` which implements the `Copy` trait [INFO] [stdout] --> src/morgan/texte.rs:66:31 [INFO] [stdout] | [INFO] [stdout] 66 | let current_texte_index = instruction.var.entry(TEXTE_GLOBAL.to_string()).and_modify(|e| *e += 1).or_insert(0).clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*instruction.var.entry(TEXTE_GLOBAL.to_string()).and_modify(|e| *e += 1).or_insert(0)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `usize` which implements the `Copy` trait [INFO] [stdout] --> src/morgan/mod.rs:276:23 [INFO] [stdout] | [INFO] [stdout] 276 | let current_index = instruction.var.entry(BLOC.to_string()).and_modify(|e| *e += 1).or_insert(0).clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*instruction.var.entry(BLOC.to_string()).and_modify(|e| *e += 1).or_insert(0)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison to empty slice [INFO] [stdout] --> src/morgan/mod.rs:288:25 [INFO] [stdout] | [INFO] [stdout] 288 | let comma: &str = if &input == "" { [INFO] [stdout] | ^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `input.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#comparison_to_empty [INFO] [stdout] = note: `#[warn(clippy::comparison_to_empty)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison to empty slice [INFO] [stdout] --> src/morgan/mod.rs:312:26 [INFO] [stdout] | [INFO] [stdout] 312 | let comma: &str = if &output == "" { [INFO] [stdout] | ^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `output.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#comparison_to_empty [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `usize` which implements the `Copy` trait [INFO] [stdout] --> src/morgan/mod.rs:327:28 [INFO] [stdout] | [INFO] [stdout] 327 | let current_var_index = instruction.var.entry(variable.to_string()).and_modify(|e| *e += 1).or_insert(0).clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*instruction.var.entry(variable.to_string()).and_modify(|e| *e += 1).or_insert(0)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/main.rs:97:36 [INFO] [stdout] | [INFO] [stdout] 97 | let _ll_result = fs::remove_file(&format!("{}.ll", nom_fichier)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{}.ll", nom_fichier)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/main.rs:98:35 [INFO] [stdout] | [INFO] [stdout] 98 | let _s_result = fs::remove_file(&format!("{}.s", nom_fichier)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{}.s", nom_fichier)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/debug/test.rs:167:36 [INFO] [stdout] | [INFO] [stdout] 167 | let possible_expressions = vec![ [INFO] [stdout] | ____________________________________^ [INFO] [stdout] 168 | | pendragon.elements_booleen(&format!( [INFO] [stdout] 169 | | "non six plus {} est supérieur à deux fois {}", [INFO] [stdout] 170 | | sophie::nombre::nombre_comme_texte(a), [INFO] [stdout] ... | [INFO] [stdout] 195 | | )), [INFO] [stdout] 196 | | ]; [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] = note: `#[warn(clippy::useless_vec)]` on by default [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 167 ~ let possible_expressions = [pendragon.elements_booleen(&format!( [INFO] [stdout] 168 ~ "non six plus {} est supérieur à deux fois {}", [INFO] [stdout] 169 + sophie::nombre::nombre_comme_texte(a), [INFO] [stdout] 170 + sophie::nombre::nombre_comme_texte(b) [INFO] [stdout] 171 + )), [INFO] [stdout] 172 + pendragon.elements_booleen(&format!( [INFO] [stdout] 173 ~ "six plus {} est inférieur à deux fois {}", [INFO] [stdout] 174 + sophie::nombre::nombre_comme_texte(a), [INFO] [stdout] 175 + sophie::nombre::nombre_comme_texte(b) [INFO] [stdout] 176 + )), [INFO] [stdout] 177 + pendragon.elements_booleen(&format!( [INFO] [stdout] 178 ~ "six plus {} est supérieur ou égal à deux fois {}", [INFO] [stdout] 179 + sophie::nombre::nombre_comme_texte(a), [INFO] [stdout] 180 + sophie::nombre::nombre_comme_texte(b) [INFO] [stdout] 181 + )), [INFO] [stdout] 182 + pendragon.elements_booleen(&format!( [INFO] [stdout] 183 ~ "non six plus {} est inférieur ou égal à deux fois {}", [INFO] [stdout] 184 + sophie::nombre::nombre_comme_texte(a), [INFO] [stdout] 185 + sophie::nombre::nombre_comme_texte(b) [INFO] [stdout] 186 + )), [INFO] [stdout] 187 + pendragon.elements_booleen(&format!( [INFO] [stdout] 188 ~ "non \"deux\" est égal à \"{}\"", [INFO] [stdout] 189 + sophie::nombre::nombre_comme_texte(a) [INFO] [stdout] 190 + )), [INFO] [stdout] 191 + pendragon.elements_booleen(&format!( [INFO] [stdout] 192 ~ "\"trois\" est différent de \"{}\"", [INFO] [stdout] 193 + sophie::nombre::nombre_comme_texte(a) [INFO] [stdout] 194 ~ ))]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/debug/test.rs:197:30 [INFO] [stdout] | [INFO] [stdout] 197 | let bonne_reponses = vec![ [INFO] [stdout] | ______________________________^ [INFO] [stdout] 198 | | !(6 + a > 2 * b), [INFO] [stdout] 199 | | (6 + a < 2 * b), [INFO] [stdout] 200 | | (6 + a >= 2 * b), [INFO] [stdout] ... | [INFO] [stdout] 203 | | (a != 3), [INFO] [stdout] 204 | | ]; [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 197 ~ let bonne_reponses = [!(6 + a > 2 * b), [INFO] [stdout] 198 + (6 + a < 2 * b), [INFO] [stdout] 199 + (6 + a >= 2 * b), [INFO] [stdout] 200 + !(6 + a <= 2 * b), [INFO] [stdout] 201 + !(a == 2), [INFO] [stdout] 202 ~ (a != 3)]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.00s [INFO] running `Command { std: "docker" "inspect" "f2bf0f93dc7b3333ce54cdcfbeaa4be9785f8ff5c36e9e8bbb2a3c9e26d8878a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f2bf0f93dc7b3333ce54cdcfbeaa4be9785f8ff5c36e9e8bbb2a3c9e26d8878a", kill_on_drop: false }` [INFO] [stdout] f2bf0f93dc7b3333ce54cdcfbeaa4be9785f8ff5c36e9e8bbb2a3c9e26d8878a