[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 try#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdaemondragon%2FC-norme" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [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-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/daemondragon/C-norme on toolchain c659ee110de67e82444e4b6c8407c1a9af9c2cf6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/daemondragon/C-norme already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c2ee07611258dda583261139aebf2cda38cf4f6a9c730132f9bee4e7b5434105 [INFO] running `Command { std: "docker" "start" "-a" "c2ee07611258dda583261139aebf2cda38cf4f6a9c730132f9bee4e7b5434105", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c2ee07611258dda583261139aebf2cda38cf4f6a9c730132f9bee4e7b5434105", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c2ee07611258dda583261139aebf2cda38cf4f6a9c730132f9bee4e7b5434105", kill_on_drop: false }` [INFO] [stdout] c2ee07611258dda583261139aebf2cda38cf4f6a9c730132f9bee4e7b5434105 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2f18b2b37f8d37b5471b011cba71d596c70fdc30654f2f5161f6791e9a6c6b09 [INFO] running `Command { std: "docker" "start" "-a" "2f18b2b37f8d37b5471b011cba71d596c70fdc30654f2f5161f6791e9a6c6b09", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking norme v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition name: `tests` [INFO] [stdout] --> src/rules/function.rs:424:7 [INFO] [stdout] | [INFO] [stdout] 424 | #[cfg(tests)] [INFO] [stdout] | ^^^^^ help: there is a config with a similar name: `test` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(tests)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(tests)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` 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] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 81 | fn verify(rules: &Vec>, filenames: &[String]) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `tests` [INFO] [stdout] --> src/rules/function.rs:424:7 [INFO] [stdout] | [INFO] [stdout] 424 | #[cfg(tests)] [INFO] [stdout] | ^^^^^ help: there is a config with a similar name: `test` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(tests)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(tests)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 116 - let current_indentation = line.len() - line.trim_left().len(); [INFO] [stdout] 116 + let current_indentation = line.len() - line.trim_start().len(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 127 - let current_indentation = line.len() - line.trim_left().len(); [INFO] [stdout] 127 + let current_indentation = line.len() - line.trim_start().len(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 129 - IndentationType::Basic if line.trim_left().starts_with('}') => (indentation_level - 1) * self.nb_spaces, [INFO] [stdout] 129 + IndentationType::Basic if line.trim_start().starts_with('}') => (indentation_level - 1) * self.nb_spaces, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 139 - if ["if ", "else", "switch ", "while ", "for "].iter().any(|x| line.trim_left().starts_with(x)) { [INFO] [stdout] 139 + if ["if ", "else", "switch ", "while ", "for "].iter().any(|x| line.trim_start().starts_with(x)) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 141 - if !next_line.trim_left().starts_with('{') { [INFO] [stdout] 141 + if !next_line.trim_start().starts_with('{') { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 151 - if line.trim_left().starts_with('}') { [INFO] [stdout] 151 + if line.trim_start().starts_with('}') { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 154 - else if line.trim_left().starts_with('{') { [INFO] [stdout] 154 + else if line.trim_start().starts_with('{') { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 157 - else if ["case", "default"].iter().any(|x| line.trim_left().starts_with(x)) { [INFO] [stdout] 157 + else if ["case", "default"].iter().any(|x| line.trim_start().starts_with(x)) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 162 - if line.trim_left().starts_with("break") { [INFO] [stdout] 162 + if line.trim_start().starts_with("break") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 165 - else if line.trim_left().starts_with("return") { [INFO] [stdout] 165 + else if line.trim_start().starts_with("return") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 167 - if !next_line.trim_left().starts_with("break") { [INFO] [stdout] 167 + if !next_line.trim_start().starts_with("break") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 224 - if !left_part.trim_right().is_empty() && [INFO] [stdout] 224 + if !left_part.trim_end().is_empty() && [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 225 - left_part.trim_right().len() != left_part.len() { [INFO] [stdout] 225 + left_part.trim_end().len() != left_part.len() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 271 - if actual_between != 0 && between.trim_left().len() + 1 != between.len() { [INFO] [stdout] 271 + if actual_between != 0 && between.trim_start().len() + 1 != between.len() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 274 - if between.trim_right().len() != between.len() { [INFO] [stdout] 274 + if between.trim_end().len() != between.len() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 326 - line.trim_left().starts_with("//") || line.trim_left().starts_with("**")) { [INFO] [stdout] 326 + line.trim_start().starts_with("//") || line.trim_left().starts_with("**")) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 326 - line.trim_left().starts_with("//") || line.trim_left().starts_with("**")) { [INFO] [stdout] 326 + line.trim_left().starts_with("//") || line.trim_start().starts_with("**")) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 22 - (line.chars().filter(|c| !c.is_whitespace()).count() == 2 && line.trim_right().ends_with("\\"))) { [INFO] [stdout] 22 + (line.chars().filter(|c| !c.is_whitespace()).count() == 2 && line.trim_end().ends_with("\\"))) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 26 - (line.chars().filter(|c| !c.is_whitespace()).count() == 2 && line.trim_right().ends_with("\\"))) { [INFO] [stdout] 26 + (line.chars().filter(|c| !c.is_whitespace()).count() == 2 && line.trim_end().ends_with("\\"))) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 72 - if !line.trim_left().starts_with("**") { [INFO] [stdout] 72 + if !line.trim_start().starts_with("**") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 166 - if line.contains("enum") && !line.trim_left().starts_with("//") && !line.trim_left().starts_with("**") { [INFO] [stdout] 166 + if line.contains("enum") && !line.trim_start().starts_with("//") && !line.trim_left().starts_with("**") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 166 - if line.contains("enum") && !line.trim_left().starts_with("//") && !line.trim_left().starts_with("**") { [INFO] [stdout] 166 + if line.contains("enum") && !line.trim_left().starts_with("//") && !line.trim_start().starts_with("**") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 195 - if line.trim_left().starts_with("static ") && (!line.contains("(") || line.contains("=")) && !line.contains("static const") { [INFO] [stdout] 195 + if line.trim_start().starts_with("static ") && (!line.contains("(") || line.contains("=")) && !line.contains("static const") { [INFO] [stdout] | [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] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 81 | fn verify(rules: &Vec>, filenames: &[String]) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 19 - if line.trim_left().starts_with("#") && !line.starts_with("#") { [INFO] [stdout] 19 + if line.trim_start().starts_with("#") && !line.starts_with("#") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 58 - let nb_whitespaces = line.len() - line_without_first_char.trim_left().len() - 1; [INFO] [stdout] 58 + let nb_whitespaces = line.len() - line_without_first_char.trim_start().len() - 1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 130 - if line.trim_right().ends_with("\\") { [INFO] [stdout] 130 + if line.trim_end().ends_with("\\") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 137 - if line.trim_right().ends_with("\\") { [INFO] [stdout] 137 + if line.trim_end().ends_with("\\") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 289 - else if !line.trim_left().starts_with("//") [INFO] [stdout] 289 + else if !line.trim_start().starts_with("//") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [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] 31 + let mut dont_have_code = line.trim().is_empty() || line.trim_start().starts_with("//") || in_multi_line_comment; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 34 - dont_have_code = line.trim_left().starts_with("/*"); [INFO] [stdout] 34 + dont_have_code = line.trim_start().starts_with("/*"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 39 - dont_have_code = line.trim_right().ends_with("*/"); [INFO] [stdout] 39 + dont_have_code = line.trim_end().ends_with("*/"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 116 - let current_indentation = line.len() - line.trim_left().len(); [INFO] [stdout] 116 + let current_indentation = line.len() - line.trim_start().len(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 160 - let mut dont_have_code = line.trim_left().starts_with("//") || in_multi_line_comment ; [INFO] [stdout] 160 + let mut dont_have_code = line.trim_start().starts_with("//") || in_multi_line_comment ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 163 - dont_have_code = line.trim_left().starts_with("/*"); [INFO] [stdout] 163 + dont_have_code = line.trim_start().starts_with("/*"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 168 - dont_have_code = line.trim_right().ends_with("*/"); [INFO] [stdout] 168 + dont_have_code = line.trim_end().ends_with("*/"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 127 - let current_indentation = line.len() - line.trim_left().len(); [INFO] [stdout] 127 + let current_indentation = line.len() - line.trim_start().len(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 213 - if line.trim_left().starts_with("#") { [INFO] [stdout] 213 + if line.trim_start().starts_with("#") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 129 - IndentationType::Basic if line.trim_left().starts_with('}') => (indentation_level - 1) * self.nb_spaces, [INFO] [stdout] 129 + IndentationType::Basic if line.trim_start().starts_with('}') => (indentation_level - 1) * self.nb_spaces, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 218 - if indentation == 0 && !line.trim_left().starts_with("//") && !line.trim_left().starts_with("**") { [INFO] [stdout] 218 + if indentation == 0 && !line.trim_start().starts_with("//") && !line.trim_left().starts_with("**") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 218 - if indentation == 0 && !line.trim_left().starts_with("//") && !line.trim_left().starts_with("**") { [INFO] [stdout] 218 + if indentation == 0 && !line.trim_left().starts_with("//") && !line.trim_start().starts_with("**") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 231 - in_macro = line.trim_right().ends_with("\\"); [INFO] [stdout] 231 + in_macro = line.trim_end().ends_with("\\"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 139 - if ["if ", "else", "switch ", "while ", "for "].iter().any(|x| line.trim_left().starts_with(x)) { [INFO] [stdout] 139 + if ["if ", "else", "switch ", "while ", "for "].iter().any(|x| line.trim_start().starts_with(x)) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 141 - if !next_line.trim_left().starts_with('{') { [INFO] [stdout] 141 + if !next_line.trim_start().starts_with('{') { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 151 - if line.trim_left().starts_with('}') { [INFO] [stdout] 151 + if line.trim_start().starts_with('}') { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 154 - else if line.trim_left().starts_with('{') { [INFO] [stdout] 154 + else if line.trim_start().starts_with('{') { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 303 - !line.trim_left().starts_with("//") & &!line.trim_left().starts_with("**") { [INFO] [stdout] 303 + !line.trim_start().starts_with("//") & &!line.trim_left().starts_with("**") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 157 - else if ["case", "default"].iter().any(|x| line.trim_left().starts_with(x)) { [INFO] [stdout] 157 + else if ["case", "default"].iter().any(|x| line.trim_start().starts_with(x)) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 162 - if line.trim_left().starts_with("break") { [INFO] [stdout] 162 + if line.trim_start().starts_with("break") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 165 - else if line.trim_left().starts_with("return") { [INFO] [stdout] 165 + else if line.trim_start().starts_with("return") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 167 - if !next_line.trim_left().starts_with("break") { [INFO] [stdout] 167 + if !next_line.trim_start().starts_with("break") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 303 - !line.trim_left().starts_with("//") & &!line.trim_left().starts_with("**") { [INFO] [stdout] 303 + !line.trim_left().starts_with("//") & &!line.trim_start().starts_with("**") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 352 - let current_indentation = line.len() - line.trim_left().len(); [INFO] [stdout] 352 + let current_indentation = line.len() - line.trim_start().len(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 402 - if line.trim_left().starts_with("#") { [INFO] [stdout] 402 + if line.trim_start().starts_with("#") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 412 - in_macro = line.trim_right().ends_with("\\"); [INFO] [stdout] 412 + in_macro = line.trim_end().ends_with("\\"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 224 - if !left_part.trim_right().is_empty() && [INFO] [stdout] 224 + if !left_part.trim_end().is_empty() && [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 225 - left_part.trim_right().len() != left_part.len() { [INFO] [stdout] 225 + left_part.trim_end().len() != left_part.len() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 271 - if actual_between != 0 && between.trim_left().len() + 1 != between.len() { [INFO] [stdout] 271 + if actual_between != 0 && between.trim_start().len() + 1 != between.len() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 274 - if between.trim_right().len() != between.len() { [INFO] [stdout] 274 + if between.trim_end().len() != between.len() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 326 - line.trim_left().starts_with("//") || line.trim_left().starts_with("**")) { [INFO] [stdout] 326 + line.trim_start().starts_with("//") || line.trim_left().starts_with("**")) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 326 - line.trim_left().starts_with("//") || line.trim_left().starts_with("**")) { [INFO] [stdout] 326 + line.trim_left().starts_with("//") || line.trim_start().starts_with("**")) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 130 - if line.trim_left().starts_with("#") { [INFO] [stdout] 130 + if line.trim_start().starts_with("#") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 131 - in_macro = line.trim_right().ends_with("\\"); [INFO] [stdout] 131 + in_macro = line.trim_end().ends_with("\\"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 135 - (!line.trim_left().starts_with("//") && !line.trim_left().starts_with("**")){ [INFO] [stdout] 135 + (!line.trim_start().starts_with("//") && !line.trim_left().starts_with("**")){ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 135 - (!line.trim_left().starts_with("//") && !line.trim_left().starts_with("**")){ [INFO] [stdout] 135 + (!line.trim_left().starts_with("//") && !line.trim_start().starts_with("**")){ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 146 - in_macro = line.trim_right().ends_with("\\"); [INFO] [stdout] 146 + in_macro = line.trim_end().ends_with("\\"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 22 - if line.trim_left().starts_with(element) && line.contains("(") && !line.contains(&(String::from(*element) + " (")) { [INFO] [stdout] 22 + if line.trim_start().starts_with(element) && line.contains("(") && !line.contains(&(String::from(*element) + " (")) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 53 - if line.trim_left().starts_with(element) && !line.contains("(") && !line.contains(&(String::from(*element) + ";")) { [INFO] [stdout] 53 + if line.trim_start().starts_with(element) && !line.contains("(") && !line.contains(&(String::from(*element) + ";")) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 84 - if line.trim_left().starts_with(element) { [INFO] [stdout] 84 + if line.trim_start().starts_with(element) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 123 - if line.trim_left().starts_with("switch (") { [INFO] [stdout] 123 + if line.trim_start().starts_with("switch (") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 141 - if line.trim_left().starts_with("default") { [INFO] [stdout] 141 + if line.trim_start().starts_with("default") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 175 - if line.trim_left().starts_with("switch (") { [INFO] [stdout] 175 + if line.trim_start().starts_with("switch (") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 193 - if ["break", "return"].iter().any(|x| line.trim_left().starts_with(x)) { [INFO] [stdout] 193 + if ["break", "return"].iter().any(|x| line.trim_start().starts_with(x)) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 196 - if ["case", "default"].iter().any(|x| line.trim_left().starts_with(x)) { [INFO] [stdout] 196 + if ["case", "default"].iter().any(|x| line.trim_start().starts_with(x)) { [INFO] [stdout] | [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] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 10 | let mut rules = Vec::>::new(); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 22 - (line.chars().filter(|c| !c.is_whitespace()).count() == 2 && line.trim_right().ends_with("\\"))) { [INFO] [stdout] 22 + (line.chars().filter(|c| !c.is_whitespace()).count() == 2 && line.trim_end().ends_with("\\"))) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 26 - (line.chars().filter(|c| !c.is_whitespace()).count() == 2 && line.trim_right().ends_with("\\"))) { [INFO] [stdout] 26 + (line.chars().filter(|c| !c.is_whitespace()).count() == 2 && line.trim_end().ends_with("\\"))) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 72 - if !line.trim_left().starts_with("**") { [INFO] [stdout] 72 + if !line.trim_start().starts_with("**") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 166 - if line.contains("enum") && !line.trim_left().starts_with("//") && !line.trim_left().starts_with("**") { [INFO] [stdout] 166 + if line.contains("enum") && !line.trim_start().starts_with("//") && !line.trim_left().starts_with("**") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 166 - if line.contains("enum") && !line.trim_left().starts_with("//") && !line.trim_left().starts_with("**") { [INFO] [stdout] 166 + if line.contains("enum") && !line.trim_left().starts_with("//") && !line.trim_start().starts_with("**") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 195 - if line.trim_left().starts_with("static ") && (!line.contains("(") || line.contains("=")) && !line.contains("static const") { [INFO] [stdout] 195 + if line.trim_start().starts_with("static ") && (!line.contains("(") || line.contains("=")) && !line.contains("static const") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 19 - if line.trim_left().starts_with("#") && !line.starts_with("#") { [INFO] [stdout] 19 + if line.trim_start().starts_with("#") && !line.starts_with("#") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 58 - let nb_whitespaces = line.len() - line_without_first_char.trim_left().len() - 1; [INFO] [stdout] 58 + let nb_whitespaces = line.len() - line_without_first_char.trim_start().len() - 1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 130 - if line.trim_right().ends_with("\\") { [INFO] [stdout] 130 + if line.trim_end().ends_with("\\") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 137 - if line.trim_right().ends_with("\\") { [INFO] [stdout] 137 + if line.trim_end().ends_with("\\") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 289 - else if !line.trim_left().starts_with("//") [INFO] [stdout] 289 + else if !line.trim_start().starts_with("//") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [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] 31 + let mut dont_have_code = line.trim().is_empty() || line.trim_start().starts_with("//") || in_multi_line_comment; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 34 - dont_have_code = line.trim_left().starts_with("/*"); [INFO] [stdout] 34 + dont_have_code = line.trim_start().starts_with("/*"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 39 - dont_have_code = line.trim_right().ends_with("*/"); [INFO] [stdout] 39 + dont_have_code = line.trim_end().ends_with("*/"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 160 - let mut dont_have_code = line.trim_left().starts_with("//") || in_multi_line_comment ; [INFO] [stdout] 160 + let mut dont_have_code = line.trim_start().starts_with("//") || in_multi_line_comment ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 163 - dont_have_code = line.trim_left().starts_with("/*"); [INFO] [stdout] 163 + dont_have_code = line.trim_start().starts_with("/*"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 168 - dont_have_code = line.trim_right().ends_with("*/"); [INFO] [stdout] 168 + dont_have_code = line.trim_end().ends_with("*/"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 213 - if line.trim_left().starts_with("#") { [INFO] [stdout] 213 + if line.trim_start().starts_with("#") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 218 - if indentation == 0 && !line.trim_left().starts_with("//") && !line.trim_left().starts_with("**") { [INFO] [stdout] 218 + if indentation == 0 && !line.trim_start().starts_with("//") && !line.trim_left().starts_with("**") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 218 - if indentation == 0 && !line.trim_left().starts_with("//") && !line.trim_left().starts_with("**") { [INFO] [stdout] 218 + if indentation == 0 && !line.trim_left().starts_with("//") && !line.trim_start().starts_with("**") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 231 - in_macro = line.trim_right().ends_with("\\"); [INFO] [stdout] 231 + in_macro = line.trim_end().ends_with("\\"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 303 - !line.trim_left().starts_with("//") & &!line.trim_left().starts_with("**") { [INFO] [stdout] 303 + !line.trim_start().starts_with("//") & &!line.trim_left().starts_with("**") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 303 - !line.trim_left().starts_with("//") & &!line.trim_left().starts_with("**") { [INFO] [stdout] 303 + !line.trim_left().starts_with("//") & &!line.trim_start().starts_with("**") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 352 - let current_indentation = line.len() - line.trim_left().len(); [INFO] [stdout] 352 + let current_indentation = line.len() - line.trim_start().len(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 402 - if line.trim_left().starts_with("#") { [INFO] [stdout] 402 + if line.trim_start().starts_with("#") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 412 - in_macro = line.trim_right().ends_with("\\"); [INFO] [stdout] 412 + in_macro = line.trim_end().ends_with("\\"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 130 - if line.trim_left().starts_with("#") { [INFO] [stdout] 130 + if line.trim_start().starts_with("#") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 131 - in_macro = line.trim_right().ends_with("\\"); [INFO] [stdout] 131 + in_macro = line.trim_end().ends_with("\\"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 135 - (!line.trim_left().starts_with("//") && !line.trim_left().starts_with("**")){ [INFO] [stdout] 135 + (!line.trim_start().starts_with("//") && !line.trim_left().starts_with("**")){ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 135 - (!line.trim_left().starts_with("//") && !line.trim_left().starts_with("**")){ [INFO] [stdout] 135 + (!line.trim_left().starts_with("//") && !line.trim_start().starts_with("**")){ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 146 - in_macro = line.trim_right().ends_with("\\"); [INFO] [stdout] 146 + in_macro = line.trim_end().ends_with("\\"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 22 - if line.trim_left().starts_with(element) && line.contains("(") && !line.contains(&(String::from(*element) + " (")) { [INFO] [stdout] 22 + if line.trim_start().starts_with(element) && line.contains("(") && !line.contains(&(String::from(*element) + " (")) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 53 - if line.trim_left().starts_with(element) && !line.contains("(") && !line.contains(&(String::from(*element) + ";")) { [INFO] [stdout] 53 + if line.trim_start().starts_with(element) && !line.contains("(") && !line.contains(&(String::from(*element) + ";")) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 84 - if line.trim_left().starts_with(element) { [INFO] [stdout] 84 + if line.trim_start().starts_with(element) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 123 - if line.trim_left().starts_with("switch (") { [INFO] [stdout] 123 + if line.trim_start().starts_with("switch (") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 141 - if line.trim_left().starts_with("default") { [INFO] [stdout] 141 + if line.trim_start().starts_with("default") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 175 - if line.trim_left().starts_with("switch (") { [INFO] [stdout] 175 + if line.trim_start().starts_with("switch (") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 193 - if ["break", "return"].iter().any(|x| line.trim_left().starts_with(x)) { [INFO] [stdout] 193 + if ["break", "return"].iter().any(|x| line.trim_start().starts_with(x)) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 196 - if ["case", "default"].iter().any(|x| line.trim_left().starts_with(x)) { [INFO] [stdout] 196 + if ["case", "default"].iter().any(|x| line.trim_start().starts_with(x)) { [INFO] [stdout] | [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] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 10 | let mut rules = Vec::>::new(); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.46s [INFO] running `Command { std: "docker" "inspect" "2f18b2b37f8d37b5471b011cba71d596c70fdc30654f2f5161f6791e9a6c6b09", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2f18b2b37f8d37b5471b011cba71d596c70fdc30654f2f5161f6791e9a6c6b09", kill_on_drop: false }` [INFO] [stdout] 2f18b2b37f8d37b5471b011cba71d596c70fdc30654f2f5161f6791e9a6c6b09