[INFO] cloning repository https://github.com/elracional/Lexer-Analyzer-Rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/elracional/Lexer-Analyzer-Rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Felracional%2FLexer-Analyzer-Rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Felracional%2FLexer-Analyzer-Rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a8248a100319b750da217cb64c50cbf43cc35f67 [INFO] checking elracional/Lexer-Analyzer-Rust against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Felracional%2FLexer-Analyzer-Rust" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/elracional/Lexer-Analyzer-Rust on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/elracional/Lexer-Analyzer-Rust [INFO] finished tweaking git repo https://github.com/elracional/Lexer-Analyzer-Rust [INFO] tweaked toml for git repo https://github.com/elracional/Lexer-Analyzer-Rust written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/elracional/Lexer-Analyzer-Rust 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d75b09b4f9de68895203100eb851bc609932e0dc3b3d47c8e8f9e56d7262ac90 [INFO] running `Command { std: "docker" "start" "-a" "d75b09b4f9de68895203100eb851bc609932e0dc3b3d47c8e8f9e56d7262ac90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d75b09b4f9de68895203100eb851bc609932e0dc3b3d47c8e8f9e56d7262ac90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d75b09b4f9de68895203100eb851bc609932e0dc3b3d47c8e8f9e56d7262ac90", kill_on_drop: false }` [INFO] [stdout] d75b09b4f9de68895203100eb851bc609932e0dc3b3d47c8e8f9e56d7262ac90 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c19143056ecd9a683c9234f5ef07a240180717cf2b583f3f8320095de772c77a [INFO] running `Command { std: "docker" "start" "-a" "c19143056ecd9a683c9234f5ef07a240180717cf2b583f3f8320095de772c77a", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.2.0 [INFO] [stderr] Compiling regex v1.1.6 [INFO] [stderr] Checking ucd-util v0.1.3 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking utf8-ranges v1.0.2 [INFO] [stderr] Checking regex-syntax v0.6.6 [INFO] [stderr] Checking aho-corasick v0.7.3 [INFO] [stderr] Checking AnalizadorLexico v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:24:6 [INFO] [stdout] | [INFO] [stdout] 24 | if(esPalabraReservada(word.to_string())) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 24 - if(esPalabraReservada(word.to_string())) { [INFO] [stdout] 24 + if esPalabraReservada(word.to_string()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:28:11 [INFO] [stdout] | [INFO] [stdout] 28 | else if(esNumero(word.to_string())) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 28 - else if(esNumero(word.to_string())) { [INFO] [stdout] 28 + else if esNumero(word.to_string()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:32:11 [INFO] [stdout] | [INFO] [stdout] 32 | else if(esOperador(word.to_string())) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 32 - else if(esOperador(word.to_string())) { [INFO] [stdout] 32 + else if esOperador(word.to_string()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:36:11 [INFO] [stdout] | [INFO] [stdout] 36 | else if(esIdentificador(word.to_string())) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 36 - else if(esIdentificador(word.to_string())) { [INFO] [stdout] 36 + else if esIdentificador(word.to_string()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:40:11 [INFO] [stdout] | [INFO] [stdout] 40 | else if(esSimbolo(word.to_string())) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 40 - else if(esSimbolo(word.to_string())) { [INFO] [stdout] 40 + else if esSimbolo(word.to_string()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:64:52 [INFO] [stdout] | [INFO] [stdout] 64 | let re = Regex::new(r"^(\d+|\d*\.\d+)$").unwrap();; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:65:4 [INFO] [stdout] | [INFO] [stdout] 65 | if(re.is_match(&token)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 65 - if(re.is_match(&token)){ [INFO] [stdout] 65 + if re.is_match(&token) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:24:6 [INFO] [stdout] | [INFO] [stdout] 24 | if(esPalabraReservada(word.to_string())) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 24 - if(esPalabraReservada(word.to_string())) { [INFO] [stdout] 24 + if esPalabraReservada(word.to_string()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:28:11 [INFO] [stdout] | [INFO] [stdout] 28 | else if(esNumero(word.to_string())) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 28 - else if(esNumero(word.to_string())) { [INFO] [stdout] 28 + else if esNumero(word.to_string()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:72:48 [INFO] [stdout] | [INFO] [stdout] 72 | let re = Regex::new(r"[*|/|+|-|=]$").unwrap();; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | if(re.is_match(&token)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 73 - if(re.is_match(&token)){ [INFO] [stdout] 73 + if re.is_match(&token) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:32:11 [INFO] [stdout] | [INFO] [stdout] 32 | else if(esOperador(word.to_string())) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 32 - else if(esOperador(word.to_string())) { [INFO] [stdout] 32 + else if esOperador(word.to_string()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:36:11 [INFO] [stdout] | [INFO] [stdout] 36 | else if(esIdentificador(word.to_string())) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 36 - else if(esIdentificador(word.to_string())) { [INFO] [stdout] 36 + else if esIdentificador(word.to_string()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:80:53 [INFO] [stdout] | [INFO] [stdout] 80 | let re = Regex::new(r"^[A-Za-z]*[%$&#]$").unwrap();; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:40:11 [INFO] [stdout] | [INFO] [stdout] 40 | else if(esSimbolo(word.to_string())) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 40 - else if(esSimbolo(word.to_string())) { [INFO] [stdout] 40 + else if esSimbolo(word.to_string()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:64:52 [INFO] [stdout] | [INFO] [stdout] 64 | let re = Regex::new(r"^(\d+|\d*\.\d+)$").unwrap();; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:81:4 [INFO] [stdout] | [INFO] [stdout] 81 | if(re.is_match(&token)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 81 - if(re.is_match(&token)){ [INFO] [stdout] 81 + if re.is_match(&token) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:88:54 [INFO] [stdout] | [INFO] [stdout] 88 | let re = Regex::new(r"[/|\|(|)|?|;|{|}]$").unwrap();; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:65:4 [INFO] [stdout] | [INFO] [stdout] 65 | if(re.is_match(&token)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 65 - if(re.is_match(&token)){ [INFO] [stdout] 65 + if re.is_match(&token) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:72:48 [INFO] [stdout] | [INFO] [stdout] 72 | let re = Regex::new(r"[*|/|+|-|=]$").unwrap();; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | if(re.is_match(&token)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 73 - if(re.is_match(&token)){ [INFO] [stdout] 73 + if re.is_match(&token) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:80:53 [INFO] [stdout] | [INFO] [stdout] 80 | let re = Regex::new(r"^[A-Za-z]*[%$&#]$").unwrap();; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:89:4 [INFO] [stdout] | [INFO] [stdout] 89 | if(re.is_match(&token)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 89 - if(re.is_match(&token)){ [INFO] [stdout] 89 + if re.is_match(&token) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:81:4 [INFO] [stdout] | [INFO] [stdout] 81 | if(re.is_match(&token)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 81 - if(re.is_match(&token)){ [INFO] [stdout] 81 + if re.is_match(&token) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:88:54 [INFO] [stdout] | [INFO] [stdout] 88 | let re = Regex::new(r"[/|\|(|)|?|;|{|}]$").unwrap();; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | if(reservada.to_lowercase() == token.to_lowercase()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 101 - if(reservada.to_lowercase() == token.to_lowercase()){ [INFO] [stdout] 101 + if reservada.to_lowercase() == token.to_lowercase() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:89:4 [INFO] [stdout] | [INFO] [stdout] 89 | if(re.is_match(&token)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 89 - if(re.is_match(&token)){ [INFO] [stdout] 89 + if re.is_match(&token) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | if(reservada.to_lowercase() == token.to_lowercase()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 101 - if(reservada.to_lowercase() == token.to_lowercase()){ [INFO] [stdout] 101 + if reservada.to_lowercase() == token.to_lowercase() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/main.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | for (index, line) in reader.lines().enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/main.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | for (index, line) in reader.lines().enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `esNumero` should have a snake case name [INFO] [stdout] --> src/main.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn esNumero(token: String) -> bool { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `es_numero` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `esOperador` should have a snake case name [INFO] [stdout] --> src/main.rs:71:4 [INFO] [stdout] | [INFO] [stdout] 71 | fn esOperador(token: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `es_operador` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `esIdentificador` should have a snake case name [INFO] [stdout] --> src/main.rs:79:4 [INFO] [stdout] | [INFO] [stdout] 79 | fn esIdentificador(token: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `es_identificador` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `esSimbolo` should have a snake case name [INFO] [stdout] --> src/main.rs:87:4 [INFO] [stdout] | [INFO] [stdout] 87 | fn esSimbolo(token: String) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `es_simbolo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `esPalabraReservada` should have a snake case name [INFO] [stdout] --> src/main.rs:95:4 [INFO] [stdout] | [INFO] [stdout] 95 | fn esPalabraReservada(token: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `es_palabra_reservada` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `palabrasReservadas` should have a snake case name [INFO] [stdout] --> src/main.rs:97:6 [INFO] [stdout] | [INFO] [stdout] 97 | let palabrasReservadas = ["PRINT","LET","LIST","RUN","INPUT","GOTO","IF", [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `palabras_reservadas` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `esNumero` should have a snake case name [INFO] [stdout] --> src/main.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn esNumero(token: String) -> bool { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `es_numero` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `esOperador` should have a snake case name [INFO] [stdout] --> src/main.rs:71:4 [INFO] [stdout] | [INFO] [stdout] 71 | fn esOperador(token: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `es_operador` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `esIdentificador` should have a snake case name [INFO] [stdout] --> src/main.rs:79:4 [INFO] [stdout] | [INFO] [stdout] 79 | fn esIdentificador(token: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `es_identificador` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `esSimbolo` should have a snake case name [INFO] [stdout] --> src/main.rs:87:4 [INFO] [stdout] | [INFO] [stdout] 87 | fn esSimbolo(token: String) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `es_simbolo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `esPalabraReservada` should have a snake case name [INFO] [stdout] --> src/main.rs:95:4 [INFO] [stdout] | [INFO] [stdout] 95 | fn esPalabraReservada(token: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `es_palabra_reservada` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `palabrasReservadas` should have a snake case name [INFO] [stdout] --> src/main.rs:97:6 [INFO] [stdout] | [INFO] [stdout] 97 | let palabrasReservadas = ["PRINT","LET","LIST","RUN","INPUT","GOTO","IF", [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `palabras_reservadas` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.22s [INFO] running `Command { std: "docker" "inspect" "c19143056ecd9a683c9234f5ef07a240180717cf2b583f3f8320095de772c77a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c19143056ecd9a683c9234f5ef07a240180717cf2b583f3f8320095de772c77a", kill_on_drop: false }` [INFO] [stdout] c19143056ecd9a683c9234f5ef07a240180717cf2b583f3f8320095de772c77a [INFO] checking elracional/Lexer-Analyzer-Rust against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Felracional%2FLexer-Analyzer-Rust" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/elracional/Lexer-Analyzer-Rust on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/elracional/Lexer-Analyzer-Rust [INFO] finished tweaking git repo https://github.com/elracional/Lexer-Analyzer-Rust [INFO] tweaked toml for git repo https://github.com/elracional/Lexer-Analyzer-Rust written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/elracional/Lexer-Analyzer-Rust 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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8d278d700f9da5706c97b95da6da0a76661ca8cafc43b8973efd60a44a6da3ab [INFO] running `Command { std: "docker" "start" "-a" "8d278d700f9da5706c97b95da6da0a76661ca8cafc43b8973efd60a44a6da3ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8d278d700f9da5706c97b95da6da0a76661ca8cafc43b8973efd60a44a6da3ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8d278d700f9da5706c97b95da6da0a76661ca8cafc43b8973efd60a44a6da3ab", kill_on_drop: false }` [INFO] [stdout] 8d278d700f9da5706c97b95da6da0a76661ca8cafc43b8973efd60a44a6da3ab [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 756c037657c3fb26da8f2ee13aa64923a7767eed6dd37bab6d87d6ad23715c81 [INFO] running `Command { std: "docker" "start" "-a" "756c037657c3fb26da8f2ee13aa64923a7767eed6dd37bab6d87d6ad23715c81", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.2.0 [INFO] [stderr] Checking ucd-util v0.1.3 [INFO] [stderr] Compiling regex v1.1.6 [INFO] [stderr] Checking utf8-ranges v1.0.2 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking regex-syntax v0.6.6 [INFO] [stderr] Checking aho-corasick v0.7.3 [INFO] [stderr] Checking AnalizadorLexico v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:24:6 [INFO] [stdout] | [INFO] [stdout] 24 | if(esPalabraReservada(word.to_string())) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 24 - if(esPalabraReservada(word.to_string())) { [INFO] [stdout] 24 + if esPalabraReservada(word.to_string()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:24:6 [INFO] [stdout] | [INFO] [stdout] 24 | if(esPalabraReservada(word.to_string())) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 24 - if(esPalabraReservada(word.to_string())) { [INFO] [stdout] 24 + if esPalabraReservada(word.to_string()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:28:11 [INFO] [stdout] | [INFO] [stdout] 28 | else if(esNumero(word.to_string())) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 28 - else if(esNumero(word.to_string())) { [INFO] [stdout] 28 + else if esNumero(word.to_string()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:28:11 [INFO] [stdout] | [INFO] [stdout] 28 | else if(esNumero(word.to_string())) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 28 - else if(esNumero(word.to_string())) { [INFO] [stdout] 28 + else if esNumero(word.to_string()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:32:11 [INFO] [stdout] | [INFO] [stdout] 32 | else if(esOperador(word.to_string())) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 32 - else if(esOperador(word.to_string())) { [INFO] [stdout] 32 + else if esOperador(word.to_string()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:32:11 [INFO] [stdout] | [INFO] [stdout] 32 | else if(esOperador(word.to_string())) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 32 - else if(esOperador(word.to_string())) { [INFO] [stdout] 32 + else if esOperador(word.to_string()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:36:11 [INFO] [stdout] | [INFO] [stdout] 36 | else if(esIdentificador(word.to_string())) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 36 - else if(esIdentificador(word.to_string())) { [INFO] [stdout] 36 + else if esIdentificador(word.to_string()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:40:11 [INFO] [stdout] | [INFO] [stdout] 40 | else if(esSimbolo(word.to_string())) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 40 - else if(esSimbolo(word.to_string())) { [INFO] [stdout] 40 + else if esSimbolo(word.to_string()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:64:52 [INFO] [stdout] | [INFO] [stdout] 64 | let re = Regex::new(r"^(\d+|\d*\.\d+)$").unwrap();; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:65:4 [INFO] [stdout] | [INFO] [stdout] 65 | if(re.is_match(&token)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 65 - if(re.is_match(&token)){ [INFO] [stdout] 65 + if re.is_match(&token) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:72:48 [INFO] [stdout] | [INFO] [stdout] 72 | let re = Regex::new(r"[*|/|+|-|=]$").unwrap();; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | if(re.is_match(&token)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 73 - if(re.is_match(&token)){ [INFO] [stdout] 73 + if re.is_match(&token) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:80:53 [INFO] [stdout] | [INFO] [stdout] 80 | let re = Regex::new(r"^[A-Za-z]*[%$&#]$").unwrap();; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:81:4 [INFO] [stdout] | [INFO] [stdout] 81 | if(re.is_match(&token)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 81 - if(re.is_match(&token)){ [INFO] [stdout] 81 + if re.is_match(&token) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:88:54 [INFO] [stdout] | [INFO] [stdout] 88 | let re = Regex::new(r"[/|\|(|)|?|;|{|}]$").unwrap();; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:89:4 [INFO] [stdout] | [INFO] [stdout] 89 | if(re.is_match(&token)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 89 - if(re.is_match(&token)){ [INFO] [stdout] 89 + if re.is_match(&token) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | if(reservada.to_lowercase() == token.to_lowercase()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 101 - if(reservada.to_lowercase() == token.to_lowercase()){ [INFO] [stdout] 101 + if reservada.to_lowercase() == token.to_lowercase() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/main.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | for (index, line) in reader.lines().enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `esNumero` should have a snake case name [INFO] [stdout] --> src/main.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn esNumero(token: String) -> bool { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `es_numero` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `esOperador` should have a snake case name [INFO] [stdout] --> src/main.rs:71:4 [INFO] [stdout] | [INFO] [stdout] 71 | fn esOperador(token: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `es_operador` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:36:11 [INFO] [stdout] | [INFO] [stdout] 36 | else if(esIdentificador(word.to_string())) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 36 - else if(esIdentificador(word.to_string())) { [INFO] [stdout] 36 + else if esIdentificador(word.to_string()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `esIdentificador` should have a snake case name [INFO] [stdout] --> src/main.rs:79:4 [INFO] [stdout] | [INFO] [stdout] 79 | fn esIdentificador(token: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `es_identificador` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:40:11 [INFO] [stdout] | [INFO] [stdout] 40 | else if(esSimbolo(word.to_string())) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 40 - else if(esSimbolo(word.to_string())) { [INFO] [stdout] 40 + else if esSimbolo(word.to_string()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:64:52 [INFO] [stdout] | [INFO] [stdout] 64 | let re = Regex::new(r"^(\d+|\d*\.\d+)$").unwrap();; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:65:4 [INFO] [stdout] | [INFO] [stdout] 65 | if(re.is_match(&token)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 65 - if(re.is_match(&token)){ [INFO] [stdout] 65 + if re.is_match(&token) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:72:48 [INFO] [stdout] | [INFO] [stdout] 72 | let re = Regex::new(r"[*|/|+|-|=]$").unwrap();; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `esSimbolo` should have a snake case name [INFO] [stdout] --> src/main.rs:87:4 [INFO] [stdout] | [INFO] [stdout] 87 | fn esSimbolo(token: String) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `es_simbolo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | if(re.is_match(&token)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 73 - if(re.is_match(&token)){ [INFO] [stdout] 73 + if re.is_match(&token) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:80:53 [INFO] [stdout] | [INFO] [stdout] 80 | let re = Regex::new(r"^[A-Za-z]*[%$&#]$").unwrap();; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `esPalabraReservada` should have a snake case name [INFO] [stdout] --> src/main.rs:95:4 [INFO] [stdout] | [INFO] [stdout] 95 | fn esPalabraReservada(token: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `es_palabra_reservada` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:81:4 [INFO] [stdout] | [INFO] [stdout] 81 | if(re.is_match(&token)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 81 - if(re.is_match(&token)){ [INFO] [stdout] 81 + if re.is_match(&token) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:88:54 [INFO] [stdout] | [INFO] [stdout] 88 | let re = Regex::new(r"[/|\|(|)|?|;|{|}]$").unwrap();; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:89:4 [INFO] [stdout] | [INFO] [stdout] 89 | if(re.is_match(&token)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 89 - if(re.is_match(&token)){ [INFO] [stdout] 89 + if re.is_match(&token) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | if(reservada.to_lowercase() == token.to_lowercase()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 101 - if(reservada.to_lowercase() == token.to_lowercase()){ [INFO] [stdout] 101 + if reservada.to_lowercase() == token.to_lowercase() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `palabrasReservadas` should have a snake case name [INFO] [stdout] --> src/main.rs:97:6 [INFO] [stdout] | [INFO] [stdout] 97 | let palabrasReservadas = ["PRINT","LET","LIST","RUN","INPUT","GOTO","IF", [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `palabras_reservadas` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/main.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | for (index, line) in reader.lines().enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `esNumero` should have a snake case name [INFO] [stdout] --> src/main.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn esNumero(token: String) -> bool { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `es_numero` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `esOperador` should have a snake case name [INFO] [stdout] --> src/main.rs:71:4 [INFO] [stdout] | [INFO] [stdout] 71 | fn esOperador(token: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `es_operador` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `esIdentificador` should have a snake case name [INFO] [stdout] --> src/main.rs:79:4 [INFO] [stdout] | [INFO] [stdout] 79 | fn esIdentificador(token: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `es_identificador` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `esSimbolo` should have a snake case name [INFO] [stdout] --> src/main.rs:87:4 [INFO] [stdout] | [INFO] [stdout] 87 | fn esSimbolo(token: String) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `es_simbolo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `esPalabraReservada` should have a snake case name [INFO] [stdout] --> src/main.rs:95:4 [INFO] [stdout] | [INFO] [stdout] 95 | fn esPalabraReservada(token: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `es_palabra_reservada` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `palabrasReservadas` should have a snake case name [INFO] [stdout] --> src/main.rs:97:6 [INFO] [stdout] | [INFO] [stdout] 97 | let palabrasReservadas = ["PRINT","LET","LIST","RUN","INPUT","GOTO","IF", [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `palabras_reservadas` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.87s [INFO] running `Command { std: "docker" "inspect" "756c037657c3fb26da8f2ee13aa64923a7767eed6dd37bab6d87d6ad23715c81", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "756c037657c3fb26da8f2ee13aa64923a7767eed6dd37bab6d87d6ad23715c81", kill_on_drop: false }` [INFO] [stdout] 756c037657c3fb26da8f2ee13aa64923a7767eed6dd37bab6d87d6ad23715c81