[INFO] cloning repository https://github.com/daemondragon/C-norme [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/daemondragon/C-norme" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdaemondragon%2FC-norme", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdaemondragon%2FC-norme'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 417fd7c6ff96741b8e8b0f0492be5d65222a438f [INFO] checking daemondragon/C-norme against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdaemondragon%2FC-norme" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/daemondragon/C-norme on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/daemondragon/C-norme [INFO] finished tweaking git repo https://github.com/daemondragon/C-norme [INFO] tweaked toml for git repo https://github.com/daemondragon/C-norme written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/daemondragon/C-norme already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5d72ae176dfee709f83d859a21c3f04594785f9765544ef394d929479f8943dd [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "5d72ae176dfee709f83d859a21c3f04594785f9765544ef394d929479f8943dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5d72ae176dfee709f83d859a21c3f04594785f9765544ef394d929479f8943dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d72ae176dfee709f83d859a21c3f04594785f9765544ef394d929479f8943dd", kill_on_drop: false }` [INFO] [stdout] 5d72ae176dfee709f83d859a21c3f04594785f9765544ef394d929479f8943dd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 640c46110c68be74b7482c85cd43f9673528bf54d4ecd4df92d49cad3b726fdb [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "640c46110c68be74b7482c85cd43f9673528bf54d4ecd4df92d49cad3b726fdb", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking norme v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:10:28 [INFO] [stdout] | [INFO] [stdout] 10 | let mut rules = Vec::>::new(); [INFO] [stdout] | ^^^^ help: use `dyn`: `dyn Rule` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:81:27 [INFO] [stdout] | [INFO] [stdout] 81 | fn verify(rules: &Vec>, filenames: &[String]) { [INFO] [stdout] | ^^^^ help: use `dyn`: `dyn Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:10:28 [INFO] [stdout] | [INFO] [stdout] 10 | let mut rules = Vec::>::new(); [INFO] [stdout] | ^^^^ help: use `dyn`: `dyn Rule` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:81:27 [INFO] [stdout] | [INFO] [stdout] 81 | fn verify(rules: &Vec>, filenames: &[String]) { [INFO] [stdout] | ^^^^ help: use `dyn`: `dyn Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/indentation.rs:116:49 [INFO] [stdout] | [INFO] [stdout] 116 | let current_indentation = line.len() - line.trim_left().len(); [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/indentation.rs:127:49 [INFO] [stdout] | [INFO] [stdout] 127 | let current_indentation = line.len() - line.trim_left().len(); [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/indentation.rs:129:37 [INFO] [stdout] | [INFO] [stdout] 129 | IndentationType::Basic if line.trim_left().starts_with('}') => (indentation_level - 1) * self.nb_spaces, [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/indentation.rs:139:73 [INFO] [stdout] | [INFO] [stdout] 139 | if ["if ", "else", "switch ", "while ", "for "].iter().any(|x| line.trim_left().starts_with(x)) { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/indentation.rs:141:21 [INFO] [stdout] | [INFO] [stdout] 141 | if !next_line.trim_left().starts_with('{') { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/indentation.rs:151:14 [INFO] [stdout] | [INFO] [stdout] 151 | if line.trim_left().starts_with('}') { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/indentation.rs:154:19 [INFO] [stdout] | [INFO] [stdout] 154 | else if line.trim_left().starts_with('{') { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/indentation.rs:157:54 [INFO] [stdout] | [INFO] [stdout] 157 | else if ["case", "default"].iter().any(|x| line.trim_left().starts_with(x)) { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/indentation.rs:162:14 [INFO] [stdout] | [INFO] [stdout] 162 | if line.trim_left().starts_with("break") { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/indentation.rs:165:20 [INFO] [stdout] | [INFO] [stdout] 165 | else if line.trim_left().starts_with("return") { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/indentation.rs:167:22 [INFO] [stdout] | [INFO] [stdout] 167 | if !next_line.trim_left().starts_with("break") { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/rules/indentation.rs:224:20 [INFO] [stdout] | [INFO] [stdout] 224 | if !left_part.trim_right().is_empty() && [INFO] [stdout] | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/rules/indentation.rs:225:17 [INFO] [stdout] | [INFO] [stdout] 225 | left_part.trim_right().len() != left_part.len() { [INFO] [stdout] | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/indentation.rs:271:40 [INFO] [stdout] | [INFO] [stdout] 271 | if actual_between != 0 && between.trim_left().len() + 1 != between.len() { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/rules/indentation.rs:274:17 [INFO] [stdout] | [INFO] [stdout] 274 | if between.trim_right().len() != between.len() { [INFO] [stdout] | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/indentation.rs:326:11 [INFO] [stdout] | [INFO] [stdout] 326 | line.trim_left().starts_with("//") || line.trim_left().starts_with("**")) { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/indentation.rs:326:49 [INFO] [stdout] | [INFO] [stdout] 326 | line.trim_left().starts_with("//") || line.trim_left().starts_with("**")) { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/rules/misc.rs:22:71 [INFO] [stdout] | [INFO] [stdout] 22 | (line.chars().filter(|c| !c.is_whitespace()).count() == 2 && line.trim_right().ends_with("\\"))) { [INFO] [stdout] | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/rules/misc.rs:26:72 [INFO] [stdout] | [INFO] [stdout] 26 | (line.chars().filter(|c| !c.is_whitespace()).count() == 2 && line.trim_right().ends_with("\\"))) { [INFO] [stdout] | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/misc.rs:72:14 [INFO] [stdout] | [INFO] [stdout] 72 | if !line.trim_left().starts_with("**") { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/misc.rs:166:38 [INFO] [stdout] | [INFO] [stdout] 166 | if line.contains("enum") && !line.trim_left().starts_with("//") && !line.trim_left().starts_with("**") { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/misc.rs:166:77 [INFO] [stdout] | [INFO] [stdout] 166 | if line.contains("enum") && !line.trim_left().starts_with("//") && !line.trim_left().starts_with("**") { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/misc.rs:195:12 [INFO] [stdout] | [INFO] [stdout] 195 | if line.trim_left().starts_with("static ") && (!line.contains("(") || line.contains("=")) && !line.contains("static const") { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/preprocessor.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | if line.trim_left().starts_with("#") && !line.starts_with("#") { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/preprocessor.rs:58:63 [INFO] [stdout] | [INFO] [stdout] 58 | let nb_whitespaces = line.len() - line_without_first_char.trim_left().len() - 1; [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/indentation.rs:116:49 [INFO] [stdout] | [INFO] [stdout] 116 | let current_indentation = line.len() - line.trim_left().len(); [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/rules/preprocessor.rs:130:13 [INFO] [stdout] | [INFO] [stdout] 130 | if line.trim_right().ends_with("\\") { [INFO] [stdout] | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/rules/preprocessor.rs:137:13 [INFO] [stdout] | [INFO] [stdout] 137 | if line.trim_right().ends_with("\\") { [INFO] [stdout] | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/indentation.rs:127:49 [INFO] [stdout] | [INFO] [stdout] 127 | let current_indentation = line.len() - line.trim_left().len(); [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/indentation.rs:129:37 [INFO] [stdout] | [INFO] [stdout] 129 | IndentationType::Basic if line.trim_left().starts_with('}') => (indentation_level - 1) * self.nb_spaces, [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/indentation.rs:139:73 [INFO] [stdout] | [INFO] [stdout] 139 | if ["if ", "else", "switch ", "while ", "for "].iter().any(|x| line.trim_left().starts_with(x)) { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/indentation.rs:141:21 [INFO] [stdout] | [INFO] [stdout] 141 | if !next_line.trim_left().starts_with('{') { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/indentation.rs:151:14 [INFO] [stdout] | [INFO] [stdout] 151 | if line.trim_left().starts_with('}') { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/indentation.rs:154:19 [INFO] [stdout] | [INFO] [stdout] 154 | else if line.trim_left().starts_with('{') { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/indentation.rs:157:54 [INFO] [stdout] | [INFO] [stdout] 157 | else if ["case", "default"].iter().any(|x| line.trim_left().starts_with(x)) { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/indentation.rs:162:14 [INFO] [stdout] | [INFO] [stdout] 162 | if line.trim_left().starts_with("break") { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/indentation.rs:165:20 [INFO] [stdout] | [INFO] [stdout] 165 | else if line.trim_left().starts_with("return") { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/indentation.rs:167:22 [INFO] [stdout] | [INFO] [stdout] 167 | if !next_line.trim_left().starts_with("break") { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/preprocessor.rs:289:18 [INFO] [stdout] | [INFO] [stdout] 289 | else if !line.trim_left().starts_with("//") [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/rules/indentation.rs:224:20 [INFO] [stdout] | [INFO] [stdout] 224 | if !left_part.trim_right().is_empty() && [INFO] [stdout] | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/rules/indentation.rs:225:17 [INFO] [stdout] | [INFO] [stdout] 225 | left_part.trim_right().len() != left_part.len() { [INFO] [stdout] | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/function.rs:31:61 [INFO] [stdout] | [INFO] [stdout] 31 | let mut dont_have_code = line.trim().is_empty() || line.trim_left().starts_with("//") || in_multi_line_comment; [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/function.rs:34:28 [INFO] [stdout] | [INFO] [stdout] 34 | dont_have_code = line.trim_left().starts_with("/*"); [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/rules/function.rs:39:28 [INFO] [stdout] | [INFO] [stdout] 39 | dont_have_code = line.trim_right().ends_with("*/"); [INFO] [stdout] | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/function.rs:160:36 [INFO] [stdout] | [INFO] [stdout] 160 | let mut dont_have_code = line.trim_left().starts_with("//") || in_multi_line_comment ; [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/function.rs:163:29 [INFO] [stdout] | [INFO] [stdout] 163 | dont_have_code = line.trim_left().starts_with("/*"); [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/rules/function.rs:168:29 [INFO] [stdout] | [INFO] [stdout] 168 | dont_have_code = line.trim_right().ends_with("*/"); [INFO] [stdout] | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/indentation.rs:271:40 [INFO] [stdout] | [INFO] [stdout] 271 | if actual_between != 0 && between.trim_left().len() + 1 != between.len() { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/function.rs:213:12 [INFO] [stdout] | [INFO] [stdout] 213 | if line.trim_left().starts_with("#") { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/function.rs:218:34 [INFO] [stdout] | [INFO] [stdout] 218 | if indentation == 0 && !line.trim_left().starts_with("//") && !line.trim_left().starts_with("**") { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/rules/indentation.rs:274:17 [INFO] [stdout] | [INFO] [stdout] 274 | if between.trim_right().len() != between.len() { [INFO] [stdout] | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/function.rs:218:73 [INFO] [stdout] | [INFO] [stdout] 218 | if indentation == 0 && !line.trim_left().starts_with("//") && !line.trim_left().starts_with("**") { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/rules/function.rs:231:21 [INFO] [stdout] | [INFO] [stdout] 231 | in_macro = line.trim_right().ends_with("\\"); [INFO] [stdout] | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/function.rs:303:11 [INFO] [stdout] | [INFO] [stdout] 303 | !line.trim_left().starts_with("//") & &!line.trim_left().starts_with("**") { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/function.rs:303:50 [INFO] [stdout] | [INFO] [stdout] 303 | !line.trim_left().starts_with("//") & &!line.trim_left().starts_with("**") { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/function.rs:352:50 [INFO] [stdout] | [INFO] [stdout] 352 | let current_indentation = line.len() - line.trim_left().len(); [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/indentation.rs:326:11 [INFO] [stdout] | [INFO] [stdout] 326 | line.trim_left().starts_with("//") || line.trim_left().starts_with("**")) { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/indentation.rs:326:49 [INFO] [stdout] | [INFO] [stdout] 326 | line.trim_left().starts_with("//") || line.trim_left().starts_with("**")) { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/function.rs:402:12 [INFO] [stdout] | [INFO] [stdout] 402 | if line.trim_left().starts_with("#") { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/rules/function.rs:412:21 [INFO] [stdout] | [INFO] [stdout] 412 | in_macro = line.trim_right().ends_with("\\"); [INFO] [stdout] | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/naming.rs:130:13 [INFO] [stdout] | [INFO] [stdout] 130 | if line.trim_left().starts_with("#") { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/rules/naming.rs:131:22 [INFO] [stdout] | [INFO] [stdout] 131 | in_macro = line.trim_right().ends_with("\\"); [INFO] [stdout] | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/naming.rs:135:14 [INFO] [stdout] | [INFO] [stdout] 135 | (!line.trim_left().starts_with("//") && !line.trim_left().starts_with("**")){ [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/naming.rs:135:53 [INFO] [stdout] | [INFO] [stdout] 135 | (!line.trim_left().starts_with("//") && !line.trim_left().starts_with("**")){ [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/rules/naming.rs:146:22 [INFO] [stdout] | [INFO] [stdout] 146 | in_macro = line.trim_right().ends_with("\\"); [INFO] [stdout] | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/control_structures.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | if line.trim_left().starts_with(element) && line.contains("(") && !line.contains(&(String::from(*element) + " (")) { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/control_structures.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | if line.trim_left().starts_with(element) && !line.contains("(") && !line.contains(&(String::from(*element) + ";")) { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/control_structures.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 84 | if line.trim_left().starts_with(element) { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/control_structures.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 123 | if line.trim_left().starts_with("switch (") { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/control_structures.rs:141:13 [INFO] [stdout] | [INFO] [stdout] 141 | if line.trim_left().starts_with("default") { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/control_structures.rs:175:12 [INFO] [stdout] | [INFO] [stdout] 175 | if line.trim_left().starts_with("switch (") { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/control_structures.rs:193:48 [INFO] [stdout] | [INFO] [stdout] 193 | if ["break", "return"].iter().any(|x| line.trim_left().starts_with(x)) { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/control_structures.rs:196:48 [INFO] [stdout] | [INFO] [stdout] 196 | if ["case", "default"].iter().any(|x| line.trim_left().starts_with(x)) { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/rules/misc.rs:22:71 [INFO] [stdout] | [INFO] [stdout] 22 | (line.chars().filter(|c| !c.is_whitespace()).count() == 2 && line.trim_right().ends_with("\\"))) { [INFO] [stdout] | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/rules/misc.rs:26:72 [INFO] [stdout] | [INFO] [stdout] 26 | (line.chars().filter(|c| !c.is_whitespace()).count() == 2 && line.trim_right().ends_with("\\"))) { [INFO] [stdout] | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/misc.rs:72:14 [INFO] [stdout] | [INFO] [stdout] 72 | if !line.trim_left().starts_with("**") { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/misc.rs:166:38 [INFO] [stdout] | [INFO] [stdout] 166 | if line.contains("enum") && !line.trim_left().starts_with("//") && !line.trim_left().starts_with("**") { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/misc.rs:166:77 [INFO] [stdout] | [INFO] [stdout] 166 | if line.contains("enum") && !line.trim_left().starts_with("//") && !line.trim_left().starts_with("**") { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/misc.rs:195:12 [INFO] [stdout] | [INFO] [stdout] 195 | if line.trim_left().starts_with("static ") && (!line.contains("(") || line.contains("=")) && !line.contains("static const") { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/preprocessor.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | if line.trim_left().starts_with("#") && !line.starts_with("#") { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/preprocessor.rs:58:63 [INFO] [stdout] | [INFO] [stdout] 58 | let nb_whitespaces = line.len() - line_without_first_char.trim_left().len() - 1; [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/rules/preprocessor.rs:130:13 [INFO] [stdout] | [INFO] [stdout] 130 | if line.trim_right().ends_with("\\") { [INFO] [stdout] | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/rules/preprocessor.rs:137:13 [INFO] [stdout] | [INFO] [stdout] 137 | if line.trim_right().ends_with("\\") { [INFO] [stdout] | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/preprocessor.rs:289:18 [INFO] [stdout] | [INFO] [stdout] 289 | else if !line.trim_left().starts_with("//") [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/function.rs:31:61 [INFO] [stdout] | [INFO] [stdout] 31 | let mut dont_have_code = line.trim().is_empty() || line.trim_left().starts_with("//") || in_multi_line_comment; [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/function.rs:34:28 [INFO] [stdout] | [INFO] [stdout] 34 | dont_have_code = line.trim_left().starts_with("/*"); [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/rules/function.rs:39:28 [INFO] [stdout] | [INFO] [stdout] 39 | dont_have_code = line.trim_right().ends_with("*/"); [INFO] [stdout] | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/function.rs:160:36 [INFO] [stdout] | [INFO] [stdout] 160 | let mut dont_have_code = line.trim_left().starts_with("//") || in_multi_line_comment ; [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/function.rs:163:29 [INFO] [stdout] | [INFO] [stdout] 163 | dont_have_code = line.trim_left().starts_with("/*"); [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/rules/function.rs:168:29 [INFO] [stdout] | [INFO] [stdout] 168 | dont_have_code = line.trim_right().ends_with("*/"); [INFO] [stdout] | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/function.rs:213:12 [INFO] [stdout] | [INFO] [stdout] 213 | if line.trim_left().starts_with("#") { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/function.rs:218:34 [INFO] [stdout] | [INFO] [stdout] 218 | if indentation == 0 && !line.trim_left().starts_with("//") && !line.trim_left().starts_with("**") { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/function.rs:218:73 [INFO] [stdout] | [INFO] [stdout] 218 | if indentation == 0 && !line.trim_left().starts_with("//") && !line.trim_left().starts_with("**") { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/rules/function.rs:231:21 [INFO] [stdout] | [INFO] [stdout] 231 | in_macro = line.trim_right().ends_with("\\"); [INFO] [stdout] | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/function.rs:303:11 [INFO] [stdout] | [INFO] [stdout] 303 | !line.trim_left().starts_with("//") & &!line.trim_left().starts_with("**") { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/function.rs:303:50 [INFO] [stdout] | [INFO] [stdout] 303 | !line.trim_left().starts_with("//") & &!line.trim_left().starts_with("**") { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/function.rs:352:50 [INFO] [stdout] | [INFO] [stdout] 352 | let current_indentation = line.len() - line.trim_left().len(); [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 58 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/function.rs:402:12 [INFO] [stdout] | [INFO] [stdout] 402 | if line.trim_left().starts_with("#") { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/rules/function.rs:412:21 [INFO] [stdout] | [INFO] [stdout] 412 | in_macro = line.trim_right().ends_with("\\"); [INFO] [stdout] | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/naming.rs:130:13 [INFO] [stdout] | [INFO] [stdout] 130 | if line.trim_left().starts_with("#") { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/rules/naming.rs:131:22 [INFO] [stdout] | [INFO] [stdout] 131 | in_macro = line.trim_right().ends_with("\\"); [INFO] [stdout] | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/naming.rs:135:14 [INFO] [stdout] | [INFO] [stdout] 135 | (!line.trim_left().starts_with("//") && !line.trim_left().starts_with("**")){ [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/naming.rs:135:53 [INFO] [stdout] | [INFO] [stdout] 135 | (!line.trim_left().starts_with("//") && !line.trim_left().starts_with("**")){ [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/rules/naming.rs:146:22 [INFO] [stdout] | [INFO] [stdout] 146 | in_macro = line.trim_right().ends_with("\\"); [INFO] [stdout] | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/control_structures.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | if line.trim_left().starts_with(element) && line.contains("(") && !line.contains(&(String::from(*element) + " (")) { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/control_structures.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | if line.trim_left().starts_with(element) && !line.contains("(") && !line.contains(&(String::from(*element) + ";")) { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/control_structures.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 84 | if line.trim_left().starts_with(element) { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/control_structures.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 123 | if line.trim_left().starts_with("switch (") { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/control_structures.rs:141:13 [INFO] [stdout] | [INFO] [stdout] 141 | if line.trim_left().starts_with("default") { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/control_structures.rs:175:12 [INFO] [stdout] | [INFO] [stdout] 175 | if line.trim_left().starts_with("switch (") { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/control_structures.rs:193:48 [INFO] [stdout] | [INFO] [stdout] 193 | if ["break", "return"].iter().any(|x| line.trim_left().starts_with(x)) { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/rules/control_structures.rs:196:48 [INFO] [stdout] | [INFO] [stdout] 196 | if ["case", "default"].iter().any(|x| line.trim_left().starts_with(x)) { [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 58 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.79s [INFO] running `Command { std: "docker" "inspect" "640c46110c68be74b7482c85cd43f9673528bf54d4ecd4df92d49cad3b726fdb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "640c46110c68be74b7482c85cd43f9673528bf54d4ecd4df92d49cad3b726fdb", kill_on_drop: false }` [INFO] [stdout] 640c46110c68be74b7482c85cd43f9673528bf54d4ecd4df92d49cad3b726fdb