[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] testing daemondragon/C-norme against master#8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e for pr-74409 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdaemondragon%2FC-norme" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/daemondragon/C-norme on toolchain 8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "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-7/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" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3f4d5f80f337b6f6e80e054c3ad5bb2c031794020b7c291af5d435063d2624f8 [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" "3f4d5f80f337b6f6e80e054c3ad5bb2c031794020b7c291af5d435063d2624f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3f4d5f80f337b6f6e80e054c3ad5bb2c031794020b7c291af5d435063d2624f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3f4d5f80f337b6f6e80e054c3ad5bb2c031794020b7c291af5d435063d2624f8", kill_on_drop: false }` [INFO] [stdout] 3f4d5f80f337b6f6e80e054c3ad5bb2c031794020b7c291af5d435063d2624f8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 551fb8f03d4afa55b141e0e0847c0dc750a313442b4eb25ac10ace41d7b58ed0 [INFO] running `Command { std: "docker" "start" "-a" "551fb8f03d4afa55b141e0e0847c0dc750a313442b4eb25ac10ace41d7b58ed0", kill_on_drop: false }` [INFO] [stderr] Compiling 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: use of deprecated item '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 item: `trim_start` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `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.75s [INFO] running `Command { std: "docker" "inspect" "551fb8f03d4afa55b141e0e0847c0dc750a313442b4eb25ac10ace41d7b58ed0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "551fb8f03d4afa55b141e0e0847c0dc750a313442b4eb25ac10ace41d7b58ed0", kill_on_drop: false }` [INFO] [stdout] 551fb8f03d4afa55b141e0e0847c0dc750a313442b4eb25ac10ace41d7b58ed0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 325a05229bbabd289799293f4640448128a8f0e969aa378db683204d885cfe5b [INFO] running `Command { std: "docker" "start" "-a" "325a05229bbabd289799293f4640448128a8f0e969aa378db683204d885cfe5b", kill_on_drop: false }` [INFO] [stderr] Compiling 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: use of deprecated item '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 item: `trim_start` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item '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 item: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 58 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.00s [INFO] running `Command { std: "docker" "inspect" "325a05229bbabd289799293f4640448128a8f0e969aa378db683204d885cfe5b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "325a05229bbabd289799293f4640448128a8f0e969aa378db683204d885cfe5b", kill_on_drop: false }` [INFO] [stdout] 325a05229bbabd289799293f4640448128a8f0e969aa378db683204d885cfe5b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] c86078e18430f0ff355d6eb7029b82d012e0565d4adad12dcca3f408aaa649d2 [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" "c86078e18430f0ff355d6eb7029b82d012e0565d4adad12dcca3f408aaa649d2", kill_on_drop: false }` [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/main.rs:10:28 [INFO] [stderr] | [INFO] [stderr] 10 | let mut rules = Vec::>::new(); [INFO] [stderr] | ^^^^ help: use `dyn`: `dyn Rule` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/main.rs:81:27 [INFO] [stderr] | [INFO] [stderr] 81 | fn verify(rules: &Vec>, filenames: &[String]) { [INFO] [stderr] | ^^^^ help: use `dyn`: `dyn Rule` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/indentation.rs:116:49 [INFO] [stderr] | [INFO] [stderr] 116 | let current_indentation = line.len() - line.trim_left().len(); [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/indentation.rs:127:49 [INFO] [stderr] | [INFO] [stderr] 127 | let current_indentation = line.len() - line.trim_left().len(); [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/indentation.rs:129:37 [INFO] [stderr] | [INFO] [stderr] 129 | IndentationType::Basic if line.trim_left().starts_with('}') => (indentation_level - 1) * self.nb_spaces, [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/indentation.rs:139:73 [INFO] [stderr] | [INFO] [stderr] 139 | if ["if ", "else", "switch ", "while ", "for "].iter().any(|x| line.trim_left().starts_with(x)) { [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/indentation.rs:141:21 [INFO] [stderr] | [INFO] [stderr] 141 | if !next_line.trim_left().starts_with('{') { [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/indentation.rs:151:14 [INFO] [stderr] | [INFO] [stderr] 151 | if line.trim_left().starts_with('}') { [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/indentation.rs:154:19 [INFO] [stderr] | [INFO] [stderr] 154 | else if line.trim_left().starts_with('{') { [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/indentation.rs:157:54 [INFO] [stderr] | [INFO] [stderr] 157 | else if ["case", "default"].iter().any(|x| line.trim_left().starts_with(x)) { [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/indentation.rs:162:14 [INFO] [stderr] | [INFO] [stderr] 162 | if line.trim_left().starts_with("break") { [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/indentation.rs:165:20 [INFO] [stderr] | [INFO] [stderr] 165 | else if line.trim_left().starts_with("return") { [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/indentation.rs:167:22 [INFO] [stderr] | [INFO] [stderr] 167 | if !next_line.trim_left().starts_with("break") { [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_right': superseded by `trim_end` [INFO] [stderr] --> src/rules/indentation.rs:224:20 [INFO] [stderr] | [INFO] [stderr] 224 | if !left_part.trim_right().is_empty() && [INFO] [stderr] | ^^^^^^^^^^ help: replace the use of the deprecated item: `trim_end` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_right': superseded by `trim_end` [INFO] [stderr] --> src/rules/indentation.rs:225:17 [INFO] [stderr] | [INFO] [stderr] 225 | left_part.trim_right().len() != left_part.len() { [INFO] [stderr] | ^^^^^^^^^^ help: replace the use of the deprecated item: `trim_end` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/indentation.rs:271:40 [INFO] [stderr] | [INFO] [stderr] 271 | if actual_between != 0 && between.trim_left().len() + 1 != between.len() { [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_right': superseded by `trim_end` [INFO] [stderr] --> src/rules/indentation.rs:274:17 [INFO] [stderr] | [INFO] [stderr] 274 | if between.trim_right().len() != between.len() { [INFO] [stderr] | ^^^^^^^^^^ help: replace the use of the deprecated item: `trim_end` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/indentation.rs:326:11 [INFO] [stderr] | [INFO] [stderr] 326 | line.trim_left().starts_with("//") || line.trim_left().starts_with("**")) { [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/indentation.rs:326:49 [INFO] [stderr] | [INFO] [stderr] 326 | line.trim_left().starts_with("//") || line.trim_left().starts_with("**")) { [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_right': superseded by `trim_end` [INFO] [stderr] --> src/rules/misc.rs:22:71 [INFO] [stderr] | [INFO] [stderr] 22 | (line.chars().filter(|c| !c.is_whitespace()).count() == 2 && line.trim_right().ends_with("\\"))) { [INFO] [stderr] | ^^^^^^^^^^ help: replace the use of the deprecated item: `trim_end` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_right': superseded by `trim_end` [INFO] [stderr] --> src/rules/misc.rs:26:72 [INFO] [stderr] | [INFO] [stderr] 26 | (line.chars().filter(|c| !c.is_whitespace()).count() == 2 && line.trim_right().ends_with("\\"))) { [INFO] [stderr] | ^^^^^^^^^^ help: replace the use of the deprecated item: `trim_end` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/misc.rs:72:14 [INFO] [stderr] | [INFO] [stderr] 72 | if !line.trim_left().starts_with("**") { [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/misc.rs:166:38 [INFO] [stderr] | [INFO] [stderr] 166 | if line.contains("enum") && !line.trim_left().starts_with("//") && !line.trim_left().starts_with("**") { [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/misc.rs:166:77 [INFO] [stderr] | [INFO] [stderr] 166 | if line.contains("enum") && !line.trim_left().starts_with("//") && !line.trim_left().starts_with("**") { [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/misc.rs:195:12 [INFO] [stderr] | [INFO] [stderr] 195 | if line.trim_left().starts_with("static ") && (!line.contains("(") || line.contains("=")) && !line.contains("static const") { [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/preprocessor.rs:19:12 [INFO] [stderr] | [INFO] [stderr] 19 | if line.trim_left().starts_with("#") && !line.starts_with("#") { [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/preprocessor.rs:58:63 [INFO] [stderr] | [INFO] [stderr] 58 | let nb_whitespaces = line.len() - line_without_first_char.trim_left().len() - 1; [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_right': superseded by `trim_end` [INFO] [stderr] --> src/rules/preprocessor.rs:130:13 [INFO] [stderr] | [INFO] [stderr] 130 | if line.trim_right().ends_with("\\") { [INFO] [stderr] | ^^^^^^^^^^ help: replace the use of the deprecated item: `trim_end` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_right': superseded by `trim_end` [INFO] [stderr] --> src/rules/preprocessor.rs:137:13 [INFO] [stderr] | [INFO] [stderr] 137 | if line.trim_right().ends_with("\\") { [INFO] [stderr] | ^^^^^^^^^^ help: replace the use of the deprecated item: `trim_end` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/preprocessor.rs:289:18 [INFO] [stderr] | [INFO] [stderr] 289 | else if !line.trim_left().starts_with("//") [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/function.rs:31:61 [INFO] [stderr] | [INFO] [stderr] 31 | let mut dont_have_code = line.trim().is_empty() || line.trim_left().starts_with("//") || in_multi_line_comment; [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/function.rs:34:28 [INFO] [stderr] | [INFO] [stderr] 34 | dont_have_code = line.trim_left().starts_with("/*"); [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_right': superseded by `trim_end` [INFO] [stderr] --> src/rules/function.rs:39:28 [INFO] [stderr] | [INFO] [stderr] 39 | dont_have_code = line.trim_right().ends_with("*/"); [INFO] [stderr] | ^^^^^^^^^^ help: replace the use of the deprecated item: `trim_end` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/function.rs:160:36 [INFO] [stderr] | [INFO] [stderr] 160 | let mut dont_have_code = line.trim_left().starts_with("//") || in_multi_line_comment ; [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/function.rs:163:29 [INFO] [stderr] | [INFO] [stderr] 163 | dont_have_code = line.trim_left().starts_with("/*"); [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_right': superseded by `trim_end` [INFO] [stderr] --> src/rules/function.rs:168:29 [INFO] [stderr] | [INFO] [stderr] 168 | dont_have_code = line.trim_right().ends_with("*/"); [INFO] [stderr] | ^^^^^^^^^^ help: replace the use of the deprecated item: `trim_end` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/function.rs:213:12 [INFO] [stderr] | [INFO] [stderr] 213 | if line.trim_left().starts_with("#") { [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/function.rs:218:34 [INFO] [stderr] | [INFO] [stderr] 218 | if indentation == 0 && !line.trim_left().starts_with("//") && !line.trim_left().starts_with("**") { [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/function.rs:218:73 [INFO] [stderr] | [INFO] [stderr] 218 | if indentation == 0 && !line.trim_left().starts_with("//") && !line.trim_left().starts_with("**") { [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_right': superseded by `trim_end` [INFO] [stderr] --> src/rules/function.rs:231:21 [INFO] [stderr] | [INFO] [stderr] 231 | in_macro = line.trim_right().ends_with("\\"); [INFO] [stderr] | ^^^^^^^^^^ help: replace the use of the deprecated item: `trim_end` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/function.rs:303:11 [INFO] [stderr] | [INFO] [stderr] 303 | !line.trim_left().starts_with("//") & &!line.trim_left().starts_with("**") { [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/function.rs:303:50 [INFO] [stderr] | [INFO] [stderr] 303 | !line.trim_left().starts_with("//") & &!line.trim_left().starts_with("**") { [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/function.rs:352:50 [INFO] [stderr] | [INFO] [stderr] 352 | let current_indentation = line.len() - line.trim_left().len(); [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/function.rs:402:12 [INFO] [stderr] | [INFO] [stderr] 402 | if line.trim_left().starts_with("#") { [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_right': superseded by `trim_end` [INFO] [stderr] --> src/rules/function.rs:412:21 [INFO] [stderr] | [INFO] [stderr] 412 | in_macro = line.trim_right().ends_with("\\"); [INFO] [stderr] | ^^^^^^^^^^ help: replace the use of the deprecated item: `trim_end` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/naming.rs:130:13 [INFO] [stderr] | [INFO] [stderr] 130 | if line.trim_left().starts_with("#") { [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_right': superseded by `trim_end` [INFO] [stderr] --> src/rules/naming.rs:131:22 [INFO] [stderr] | [INFO] [stderr] 131 | in_macro = line.trim_right().ends_with("\\"); [INFO] [stderr] | ^^^^^^^^^^ help: replace the use of the deprecated item: `trim_end` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/naming.rs:135:14 [INFO] [stderr] | [INFO] [stderr] 135 | (!line.trim_left().starts_with("//") && !line.trim_left().starts_with("**")){ [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/naming.rs:135:53 [INFO] [stderr] | [INFO] [stderr] 135 | (!line.trim_left().starts_with("//") && !line.trim_left().starts_with("**")){ [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_right': superseded by `trim_end` [INFO] [stderr] --> src/rules/naming.rs:146:22 [INFO] [stderr] | [INFO] [stderr] 146 | in_macro = line.trim_right().ends_with("\\"); [INFO] [stderr] | ^^^^^^^^^^ help: replace the use of the deprecated item: `trim_end` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/control_structures.rs:22:13 [INFO] [stderr] | [INFO] [stderr] 22 | if line.trim_left().starts_with(element) && line.contains("(") && !line.contains(&(String::from(*element) + " (")) { [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/control_structures.rs:53:13 [INFO] [stderr] | [INFO] [stderr] 53 | if line.trim_left().starts_with(element) && !line.contains("(") && !line.contains(&(String::from(*element) + ";")) { [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/control_structures.rs:84:13 [INFO] [stderr] | [INFO] [stderr] 84 | if line.trim_left().starts_with(element) { [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/control_structures.rs:123:12 [INFO] [stderr] | [INFO] [stderr] 123 | if line.trim_left().starts_with("switch (") { [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/control_structures.rs:141:13 [INFO] [stderr] | [INFO] [stderr] 141 | if line.trim_left().starts_with("default") { [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/control_structures.rs:175:12 [INFO] [stderr] | [INFO] [stderr] 175 | if line.trim_left().starts_with("switch (") { [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/control_structures.rs:193:48 [INFO] [stderr] | [INFO] [stderr] 193 | if ["break", "return"].iter().any(|x| line.trim_left().starts_with(x)) { [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_left': superseded by `trim_start` [INFO] [stderr] --> src/rules/control_structures.rs:196:48 [INFO] [stderr] | [INFO] [stderr] 196 | if ["case", "default"].iter().any(|x| line.trim_left().starts_with(x)) { [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated item: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: 58 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/norme-910655e4b1c5cc34 [INFO] [stdout] [INFO] [stdout] running 28 tests [INFO] [stdout] test rules::control_structures::tests::special_control_structures_indentation ... ok [INFO] [stdout] test rules::control_structures::tests::switch_default_case ... ok [INFO] [stdout] test rules::control_structures::tests::switch_end ... ok [INFO] [stdout] test rules::misc::tests::goto ... ok [INFO] [stdout] test rules::indentation::tests::trailing_whitespace ... ok [INFO] [stdout] test rules::misc::tests::enum_rule ... ok [INFO] [stdout] test rules::indentation::tests::structure_fields_indentation ... ok [INFO] [stdout] test rules::misc::tests::multi_lines_comment ... ok [INFO] [stdout] test rules::indentation::tests::comma ... ok [INFO] [stdout] test rules::control_structures::tests::control_structures_indentation ... ok [INFO] [stdout] test rules::indentation::tests::semicolon ... ok [INFO] [stdout] test rules::misc::tests::own_line_brace ... ok [INFO] [stdout] test rules::indentation::tests::indentation_level ... ok [INFO] [stdout] test rules::indentation::tests::line_size ... ok [INFO] [stdout] test rules::control_structures::tests::switch_enum ... ok [INFO] [stdout] test rules::preprocessor::tests::multi_lines_macro ... ok [INFO] [stdout] test rules::preprocessor::tests::include_order ... ok [INFO] [stdout] test rules::naming::tests::global ... ok [INFO] [stdout] test rules::preprocessor::tests::preprocessor_comment ... ok [INFO] [stdout] test rules::preprocessor::tests::macro_name ... ok [INFO] [stdout] test rules::misc::tests::static_variable ... ok [INFO] [stdout] test rules::preprocessor::tests::header_guard ... ok [INFO] [stdout] test rules::naming::tests::typedef ... ok [INFO] [stdout] test rules::preprocessor::tests::include_preprocessor ... ok [INFO] [stdout] test rules::preprocessor::tests::macro_arguments ... ok [INFO] [stdout] test rules::indentation::tests::space_indentation ... ok [INFO] [stdout] test rules::preprocessor::tests::preprocessor_on_first_column ... ok [INFO] [stdout] test rules::preprocessor::tests::preprocessor_indentation ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 28 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "c86078e18430f0ff355d6eb7029b82d012e0565d4adad12dcca3f408aaa649d2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c86078e18430f0ff355d6eb7029b82d012e0565d4adad12dcca3f408aaa649d2", kill_on_drop: false }` [INFO] [stdout] c86078e18430f0ff355d6eb7029b82d012e0565d4adad12dcca3f408aaa649d2