[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 nightly-2024-02-05 for check-cfg
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdaemondragon%2FC-norme" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/daemondragon/C-norme on toolchain nightly-2024-02-05
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly-2024-02-05" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", 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-5-tc1/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: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly-2024-02-05" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2024-02-05" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 96c342245536efe8c06dd114a309fdc4a40634e72478a1f1a356f75c7d89aace
[INFO] running `Command { std: "docker" "start" "-a" "96c342245536efe8c06dd114a309fdc4a40634e72478a1f1a356f75c7d89aace", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "96c342245536efe8c06dd114a309fdc4a40634e72478a1f1a356f75c7d89aace", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "96c342245536efe8c06dd114a309fdc4a40634e72478a1f1a356f75c7d89aace", kill_on_drop: false }`
[INFO] [stdout] 96c342245536efe8c06dd114a309fdc4a40634e72478a1f1a356f75c7d89aace
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2024-02-05" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 63c4d71cceed08844abcb2f1cbf7d3490058b9a48ad601e0f8c51813194ff7dd
[INFO] running `Command { std: "docker" "start" "-a" "63c4d71cceed08844abcb2f1cbf7d3490058b9a48ad601e0f8c51813194ff7dd", kill_on_drop: false }`
[INFO] [stderr]     Checking norme v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/main.rs:81:27
[INFO] [stdout]    |
[INFO] [stdout] 81 | fn verify(rules: &Vec<Box<Rule>>, 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 <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]    = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 81 | fn verify(rules: &Vec<Box<dyn Rule>>, filenames: &[String]) {
[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<Box<Rule>>, 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 <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]    = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 81 | fn verify(rules: &Vec<Box<dyn Rule>>, filenames: &[String]) {
[INFO] [stdout]    |                           +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().len();
[INFO] [stdout]     |                                                             ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().len();
[INFO] [stdout]     |                                                             ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with('}') => (indentation_level - 1) * self.nb_spaces,
[INFO] [stdout]     |                                                    ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with(x)) {
[INFO] [stdout]     |                                                                                     ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with('{') {
[INFO] [stdout]     |                                       ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with('}') {
[INFO] [stdout]     |                             ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with('{') {
[INFO] [stdout]     |                                  ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with(x)) {
[INFO] [stdout]     |                                                                     ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("break") {
[INFO] [stdout]     |                             ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("return") {
[INFO] [stdout]     |                                   ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("break") {
[INFO] [stdout]     |                                           ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_end().is_empty() &&
[INFO] [stdout]     |                                   ~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_end().len() != left_part.len() {
[INFO] [stdout]     |                                   ~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().len() + 1 != between.len() {
[INFO] [stdout]     |                                                       ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_end().len() != between.len() {
[INFO] [stdout]     |                                ~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("//") || line.trim_left().starts_with("**")) {
[INFO] [stdout]     |                          ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("**")) {
[INFO] [stdout]     |                                                                ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_end().ends_with("\\"))) {
[INFO] [stdout]    |                                                                                   ~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_end().ends_with("\\"))) {
[INFO] [stdout]    |                                                                                       ~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("**") {
[INFO] [stdout]    |                          ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("//") && !line.trim_left().starts_with("**") {
[INFO] [stdout]     |                                               ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("**") {
[INFO] [stdout]     |                                                                                      ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_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::<impl 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_start().len();
[INFO] [stdout]     |                                                             ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("#") && !line.starts_with("#") {
[INFO] [stdout]    |                     ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().len();
[INFO] [stdout]     |                                                             ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with('}') => (indentation_level - 1) * self.nb_spaces,
[INFO] [stdout]     |                                                    ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().len() - 1;
[INFO] [stdout]    |                                                                           ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with(x)) {
[INFO] [stdout]     |                                                                                     ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with('{') {
[INFO] [stdout]     |                                       ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with('}') {
[INFO] [stdout]     |                             ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with('{') {
[INFO] [stdout]     |                                  ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with(x)) {
[INFO] [stdout]     |                                                                     ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("break") {
[INFO] [stdout]     |                             ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("return") {
[INFO] [stdout]     |                                   ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("break") {
[INFO] [stdout]     |                                           ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_end().ends_with("\\") {
[INFO] [stdout]     |                         ~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_end().ends_with("\\") {
[INFO] [stdout]     |                         ~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_end().is_empty() &&
[INFO] [stdout]     |                                   ~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_end().len() != left_part.len() {
[INFO] [stdout]     |                                   ~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().len() + 1 != between.len() {
[INFO] [stdout]     |                                                       ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_end().len() != between.len() {
[INFO] [stdout]     |                                ~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("//") || line.trim_left().starts_with("**")) {
[INFO] [stdout]     |                          ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("**")) {
[INFO] [stdout]     |                                                                ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("//")
[INFO] [stdout]     |                           ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("//") || in_multi_line_comment; 
[INFO] [stdout]    |                                                                         ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("/*");
[INFO] [stdout]    |                                           ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_end().ends_with("*/");
[INFO] [stdout]    |                                           ~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("//") || in_multi_line_comment ; 
[INFO] [stdout]     |                                                   ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("/*");
[INFO] [stdout]     |                                               ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_end().ends_with("*/");
[INFO] [stdout]     |                                               ~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("#") {
[INFO] [stdout]     |                     ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("//") && !line.trim_left().starts_with("**") {
[INFO] [stdout]     |                                              ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("**") {
[INFO] [stdout]     |                                                                                     ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_end().ends_with("\\");
[INFO] [stdout]     |                                 ~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("//") & &!line.trim_left().starts_with("**") {
[INFO] [stdout]     |                       ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("**") {
[INFO] [stdout]     |                                                              ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_end().ends_with("\\"))) {
[INFO] [stdout]    |                                                                                   ~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().len();
[INFO] [stdout]     |                                                                 ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_end().ends_with("\\"))) {
[INFO] [stdout]    |                                                                                       ~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("#") {
[INFO] [stdout]     |                     ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_end().ends_with("\\");
[INFO] [stdout]     |                                 ~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("**") {
[INFO] [stdout]    |                          ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("//") && !line.trim_left().starts_with("**") {
[INFO] [stdout]     |                                               ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("**") {
[INFO] [stdout]     |                                                                                      ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_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::<impl 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_start().starts_with("#") {
[INFO] [stdout]     |                         ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_end().ends_with("\\");
[INFO] [stdout]     |                                     ~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("//") && !line.trim_left().starts_with("**")){
[INFO] [stdout]     |                                ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("**")){
[INFO] [stdout]     |                                                                       ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_end().ends_with("\\");
[INFO] [stdout]     |                                     ~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_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::<impl 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_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::<impl 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_start().starts_with(element) {
[INFO] [stdout]    |                         ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("switch (") {
[INFO] [stdout]     |                     ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("default") {
[INFO] [stdout]     |                         ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("#") && !line.starts_with("#") {
[INFO] [stdout]    |                     ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("switch (") {
[INFO] [stdout]     |                     ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with(x)) {
[INFO] [stdout]     |                                                            ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().len() - 1;
[INFO] [stdout]    |                                                                           ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_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::<Box<Rule>>::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 <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 10 |     let mut rules = Vec::<Box<dyn Rule>>::new();
[INFO] [stdout]    |                               +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_end().ends_with("\\") {
[INFO] [stdout]     |                         ~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_end().ends_with("\\") {
[INFO] [stdout]     |                         ~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("//")
[INFO] [stdout]     |                           ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("//") || in_multi_line_comment; 
[INFO] [stdout]    |                                                                         ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("/*");
[INFO] [stdout]    |                                           ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_end().ends_with("*/");
[INFO] [stdout]    |                                           ~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("//") || in_multi_line_comment ; 
[INFO] [stdout]     |                                                   ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("/*");
[INFO] [stdout]     |                                               ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_end().ends_with("*/");
[INFO] [stdout]     |                                               ~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("#") {
[INFO] [stdout]     |                     ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("//") && !line.trim_left().starts_with("**") {
[INFO] [stdout]     |                                              ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("**") {
[INFO] [stdout]     |                                                                                     ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_end().ends_with("\\");
[INFO] [stdout]     |                                 ~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("//") & &!line.trim_left().starts_with("**") {
[INFO] [stdout]     |                       ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("**") {
[INFO] [stdout]     |                                                              ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().len();
[INFO] [stdout]     |                                                                 ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("#") {
[INFO] [stdout]     |                     ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_end().ends_with("\\");
[INFO] [stdout]     |                                 ~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("#") {
[INFO] [stdout]     |                         ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_end().ends_with("\\");
[INFO] [stdout]     |                                     ~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("//") && !line.trim_left().starts_with("**")){
[INFO] [stdout]     |                                ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("**")){
[INFO] [stdout]     |                                                                       ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_end().ends_with("\\");
[INFO] [stdout]     |                                     ~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_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::<impl 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_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::<impl 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_start().starts_with(element) {
[INFO] [stdout]    |                         ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("switch (") {
[INFO] [stdout]     |                     ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("default") {
[INFO] [stdout]     |                         ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with("switch (") {
[INFO] [stdout]     |                     ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_start().starts_with(x)) {
[INFO] [stdout]     |                                                            ~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl 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_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::<Box<Rule>>::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 <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 10 |     let mut rules = Vec::<Box<dyn Rule>>::new();
[INFO] [stdout]    |                               +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 58 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 58 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 0.21s
[INFO] running `Command { std: "docker" "inspect" "63c4d71cceed08844abcb2f1cbf7d3490058b9a48ad601e0f8c51813194ff7dd", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "63c4d71cceed08844abcb2f1cbf7d3490058b9a48ad601e0f8c51813194ff7dd", kill_on_drop: false }`
[INFO] [stdout] 63c4d71cceed08844abcb2f1cbf7d3490058b9a48ad601e0f8c51813194ff7dd
