[INFO] cloning repository https://github.com/GabrielRosalesAzurdia/cherry-lenguaje [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/GabrielRosalesAzurdia/cherry-lenguaje" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGabrielRosalesAzurdia%2Fcherry-lenguaje", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGabrielRosalesAzurdia%2Fcherry-lenguaje'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2d81df525ebb21a74eb1ca2084f6253fc951c421 [INFO] checking GabrielRosalesAzurdia/cherry-lenguaje against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGabrielRosalesAzurdia%2Fcherry-lenguaje" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/GabrielRosalesAzurdia/cherry-lenguaje on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/GabrielRosalesAzurdia/cherry-lenguaje [INFO] finished tweaking git repo https://github.com/GabrielRosalesAzurdia/cherry-lenguaje [INFO] tweaked toml for git repo https://github.com/GabrielRosalesAzurdia/cherry-lenguaje written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/GabrielRosalesAzurdia/cherry-lenguaje already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 98d4298099e692a4487b2094f3bccb442cf9b5d6e252fe5ca4f3472c4b918f87 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "98d4298099e692a4487b2094f3bccb442cf9b5d6e252fe5ca4f3472c4b918f87", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "98d4298099e692a4487b2094f3bccb442cf9b5d6e252fe5ca4f3472c4b918f87", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "98d4298099e692a4487b2094f3bccb442cf9b5d6e252fe5ca4f3472c4b918f87", kill_on_drop: false }` [INFO] [stdout] 98d4298099e692a4487b2094f3bccb442cf9b5d6e252fe5ca4f3472c4b918f87 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b7c08877ab5e79e1b67b95e18cbc8e8fd61ed14b77d61e43109dadaab8a782ba [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "b7c08877ab5e79e1b67b95e18cbc8e8fd61ed14b77d61e43109dadaab8a782ba", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Checking cherry v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/parser/mod.rs (2 fixes) [INFO] [stderr] Fixed src/parser/parser.rs (2 fixes) [INFO] [stderr] Fixed src/ab_st_tr/mod.rs (2 fixes) [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/parser/mod.rs:1098:7 [INFO] [stdout] | [INFO] [stdout] 1098 | };; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `let_statement` should have an upper camel case name [INFO] [stdout] --> src/ab_st_tr/ast.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 95 | pub struct let_statement { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LetStatement` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ab_st_tr::ast::Statement` [INFO] [stdout] --> src/parser/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::ab_st_tr::ast::Statement; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ab_st_tr::ast::Expression` [INFO] [stdout] --> src/parser/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::ab_st_tr::ast::Expression; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `EI` [INFO] [stdout] --> src/parser/mod.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct EI { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/parser/mod.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `PrefixTest` [INFO] [stdout] --> src/parser/mod.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | struct PrefixTest{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/parser/mod.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `LetTest` [INFO] [stdout] --> src/parser/mod.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct LetTest { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/parser/mod.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `ReturnTest` [INFO] [stdout] --> src/parser/mod.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | struct ReturnTest { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/parser/mod.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `PrefixTest2` [INFO] [stdout] --> src/parser/mod.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | struct PrefixTest2 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/parser/mod.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `InfixTest` [INFO] [stdout] --> src/parser/mod.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | struct InfixTest{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/parser/mod.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `InfixTest2` [INFO] [stdout] --> src/parser/mod.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | struct InfixTest2 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/parser/mod.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `OperationPresedence` [INFO] [stdout] --> src/parser/mod.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | struct OperationPresedence{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/parser/mod.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `BooleanTest` [INFO] [stdout] --> src/parser/mod.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | struct BooleanTest { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/parser/mod.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `input` [INFO] [stdout] --> src/parser/mod.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | input : String , [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/parser/mod.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `expect_params` [INFO] [stdout] --> src/parser/mod.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | expect_params : Vec [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `input` [INFO] [stdout] --> src/parser/mod.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 84 | input : String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/parser/mod.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `expected_ident` [INFO] [stdout] --> src/parser/mod.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 85 | expected_ident : String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `expected_args` [INFO] [stdout] --> src/parser/mod.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | expected_args : Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_let_statement_internal` [INFO] [stdout] --> src/parser/mod.rs:1089:4 [INFO] [stdout] | [INFO] [stdout] 1089 | fn test_let_statement_internal(s : &Box, name:String ) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `check_parser_errors` [INFO] [stdout] --> src/parser/mod.rs:1114:4 [INFO] [stdout] | [INFO] [stdout] 1114 | fn check_parser_errors(p: &parser::Parser){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `prefixParseFns` should have a snake case name [INFO] [stdout] --> src/parser/parser.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | prefixParseFns : HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `prefix_parse_fns` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `infixParseFns` should have a snake case name [INFO] [stdout] --> src/parser/parser.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | infixParseFns : HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `infix_parse_fns` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `register_Infix` should have a snake case name [INFO] [stdout] --> src/parser/parser.rs:450:12 [INFO] [stdout] | [INFO] [stdout] 450 | pub fn register_Infix(&mut self, t:TokenType, f:FUNCIONES){ [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `register_infix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Statements` should have a snake case name [INFO] [stdout] --> src/ab_st_tr/ast.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | pub Statements : Vec>, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `statements` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/parser/mod.rs:109:17 [INFO] [stdout] | [INFO] [stdout] 109 | let l = types::new(i.input.to_string()); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/parser/mod.rs:144:13 [INFO] [stdout] | [INFO] [stdout] 144 | let l = types::new(input.to_string()); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/parser/mod.rs:207:17 [INFO] [stdout] | [INFO] [stdout] 207 | let l = types::new(i.input.to_string()); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/parser/mod.rs:244:13 [INFO] [stdout] | [INFO] [stdout] 244 | let l = types::new(input.to_string()); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/parser/mod.rs:309:13 [INFO] [stdout] | [INFO] [stdout] 309 | let l = types::new(input.to_string()); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/parser/mod.rs:383:13 [INFO] [stdout] | [INFO] [stdout] 383 | let l = types::new(input.to_string()); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/parser/mod.rs:449:17 [INFO] [stdout] | [INFO] [stdout] 449 | let l = types::new(i.input.to_string()); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/parser/mod.rs:618:17 [INFO] [stdout] | [INFO] [stdout] 618 | let l = types::new(i.input.to_string()); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/parser/mod.rs:652:17 [INFO] [stdout] | [INFO] [stdout] 652 | let l = types::new(i.input.to_string()); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/parser/mod.rs:691:17 [INFO] [stdout] | [INFO] [stdout] 691 | let l = types::new(i.input.to_string()); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/parser/mod.rs:750:17 [INFO] [stdout] | [INFO] [stdout] 750 | let l = types::new(i.input.to_string()); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/parser/mod.rs:784:17 [INFO] [stdout] | [INFO] [stdout] 784 | let l = types::new(i.input.to_string()); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/parser/mod.rs:839:13 [INFO] [stdout] | [INFO] [stdout] 839 | let l = types::new(input); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/parser/mod.rs:874:13 [INFO] [stdout] | [INFO] [stdout] 874 | let l = types::new(input); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/parser/mod.rs:922:17 [INFO] [stdout] | [INFO] [stdout] 922 | let l = types::new(i.input.to_string()); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/parser/mod.rs:937:17 [INFO] [stdout] | [INFO] [stdout] 937 | let l = types::new(i.input.to_string()); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/parser/mod.rs:952:17 [INFO] [stdout] | [INFO] [stdout] 952 | let l = types::new(i.input.to_string()); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/parser/mod.rs:1013:17 [INFO] [stdout] | [INFO] [stdout] 1013 | let l = types::new(i.input.to_string()); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/parser/mod.rs:1026:17 [INFO] [stdout] | [INFO] [stdout] 1026 | let l = types::new(i.input.to_string()); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/parser/mod.rs:1039:17 [INFO] [stdout] | [INFO] [stdout] 1039 | let l = types::new(i.input.to_string()); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/ab_st_tr/mod.rs:12:29 [INFO] [stdout] | [INFO] [stdout] 12 | token : types::TokenType{ type_token:types::Token::LET, literal:"let".to_string()}, [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/ab_st_tr/mod.rs:12:58 [INFO] [stdout] | [INFO] [stdout] 12 | token : types::TokenType{ type_token:types::Token::LET, literal:"let".to_string()}, [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/ab_st_tr/mod.rs:14:32 [INFO] [stdout] | [INFO] [stdout] 14 | token: types::TokenType{ type_token:types::Token::IDENT, literal:"myVar".to_string()}, [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/ab_st_tr/mod.rs:14:61 [INFO] [stdout] | [INFO] [stdout] 14 | token: types::TokenType{ type_token:types::Token::IDENT, literal:"myVar".to_string()}, [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/ab_st_tr/mod.rs:18:32 [INFO] [stdout] | [INFO] [stdout] 18 | token: types::TokenType{ type_token:types::Token::IDENT, literal:"anotherVar".to_string()}, [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/ab_st_tr/mod.rs:18:61 [INFO] [stdout] | [INFO] [stdout] 18 | token: types::TokenType{ type_token:types::Token::IDENT, literal:"anotherVar".to_string()}, [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/parser/mod.rs:1098:7 [INFO] [stdout] | [INFO] [stdout] 1098 | };; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `let_statement` should have an upper camel case name [INFO] [stdout] --> src/ab_st_tr/ast.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 95 | pub struct let_statement { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LetStatement` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `a_string` found for struct `Program` in the current scope [INFO] [stdout] --> src/ab_st_tr/mod.rs:26:16 [INFO] [stdout] | [INFO] [stdout] 26 | if program.a_string() != "let myVar = anotherVar;" { [INFO] [stdout] | ^^^^^^^^ method not found in `Program` [INFO] [stdout] | [INFO] [stdout] ::: src/ab_st_tr/ast.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | fn a_string(&self) -> String; [INFO] [stdout] | -------- the method is available for `Program` here [INFO] [stdout] ... [INFO] [stdout] 36 | pub struct Program { [INFO] [stdout] | ------------------ method `a_string` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use crate::ab_st_tr::ast::Node;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `a_string` found for struct `Program` in the current scope [INFO] [stdout] --> src/ab_st_tr/mod.rs:27:32 [INFO] [stdout] | [INFO] [stdout] 27 | println!("{}", program.a_string() ); [INFO] [stdout] | ^^^^^^^^ method not found in `Program` [INFO] [stdout] | [INFO] [stdout] ::: src/ab_st_tr/ast.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | fn a_string(&self) -> String; [INFO] [stdout] | -------- the method is available for `Program` here [INFO] [stdout] ... [INFO] [stdout] 36 | pub struct Program { [INFO] [stdout] | ------------------ method `a_string` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use crate::ab_st_tr::ast::Node;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ab_st_tr::ast::Statement` [INFO] [stdout] --> src/parser/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::ab_st_tr::ast::Statement; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ab_st_tr::ast::Expression` [INFO] [stdout] --> src/parser/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::ab_st_tr::ast::Expression; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 28 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `cherry` due to 29 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: type `let_statement` should have an upper camel case name [INFO] [stdout] --> src/ab_st_tr/ast.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 95 | pub struct let_statement { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LetStatement` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/parser/mod.rs:1098:7 [INFO] [stdout] | [INFO] [stdout] 1098 | };; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ab_st_tr::ast::Statement` [INFO] [stdout] --> src/parser/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::ab_st_tr::ast::Statement; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ab_st_tr::ast::Expression` [INFO] [stdout] --> src/parser/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::ab_st_tr::ast::Expression; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `EI` [INFO] [stdout] --> src/parser/mod.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct EI { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/parser/mod.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `PrefixTest` [INFO] [stdout] --> src/parser/mod.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | struct PrefixTest{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/parser/mod.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `LetTest` [INFO] [stdout] --> src/parser/mod.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct LetTest { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/parser/mod.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `ReturnTest` [INFO] [stdout] --> src/parser/mod.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | struct ReturnTest { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/parser/mod.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `PrefixTest2` [INFO] [stdout] --> src/parser/mod.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | struct PrefixTest2 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/parser/mod.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `InfixTest` [INFO] [stdout] --> src/parser/mod.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | struct InfixTest{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/parser/mod.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `InfixTest2` [INFO] [stdout] --> src/parser/mod.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | struct InfixTest2 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/parser/mod.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `OperationPresedence` [INFO] [stdout] --> src/parser/mod.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | struct OperationPresedence{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/parser/mod.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `BooleanTest` [INFO] [stdout] --> src/parser/mod.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | struct BooleanTest { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/parser/mod.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `input` [INFO] [stdout] --> src/parser/mod.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | input : String , [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/parser/mod.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `expect_params` [INFO] [stdout] --> src/parser/mod.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | expect_params : Vec [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `input` [INFO] [stdout] --> src/parser/mod.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 84 | input : String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/parser/mod.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `expected_ident` [INFO] [stdout] --> src/parser/mod.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 85 | expected_ident : String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `expected_args` [INFO] [stdout] --> src/parser/mod.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | expected_args : Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_let_statement_internal` [INFO] [stdout] --> src/parser/mod.rs:1089:4 [INFO] [stdout] | [INFO] [stdout] 1089 | fn test_let_statement_internal(s : &Box, name:String ) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `check_parser_errors` [INFO] [stdout] --> src/parser/mod.rs:1114:4 [INFO] [stdout] | [INFO] [stdout] 1114 | fn check_parser_errors(p: &parser::Parser){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Statements` should have a snake case name [INFO] [stdout] --> src/ab_st_tr/ast.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | pub Statements : Vec>, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `statements` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `prefixParseFns` should have a snake case name [INFO] [stdout] --> src/parser/parser.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | prefixParseFns : HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `prefix_parse_fns` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `infixParseFns` should have a snake case name [INFO] [stdout] --> src/parser/parser.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | infixParseFns : HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `infix_parse_fns` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `register_Infix` should have a snake case name [INFO] [stdout] --> src/parser/parser.rs:450:12 [INFO] [stdout] | [INFO] [stdout] 450 | pub fn register_Infix(&mut self, t:TokenType, f:FUNCIONES){ [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `register_infix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/ab_st_tr/mod.rs:12:29 [INFO] [stdout] | [INFO] [stdout] 12 | token : types::TokenType{ type_token:types::Token::LET, literal:"let".to_string()}, [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/ab_st_tr/mod.rs:12:58 [INFO] [stdout] | [INFO] [stdout] 12 | token : types::TokenType{ type_token:types::Token::LET, literal:"let".to_string()}, [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/ab_st_tr/mod.rs:14:32 [INFO] [stdout] | [INFO] [stdout] 14 | token: types::TokenType{ type_token:types::Token::IDENT, literal:"myVar".to_string()}, [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/ab_st_tr/mod.rs:14:61 [INFO] [stdout] | [INFO] [stdout] 14 | token: types::TokenType{ type_token:types::Token::IDENT, literal:"myVar".to_string()}, [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/ab_st_tr/mod.rs:18:32 [INFO] [stdout] | [INFO] [stdout] 18 | token: types::TokenType{ type_token:types::Token::IDENT, literal:"anotherVar".to_string()}, [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/ab_st_tr/mod.rs:18:61 [INFO] [stdout] | [INFO] [stdout] 18 | token: types::TokenType{ type_token:types::Token::IDENT, literal:"anotherVar".to_string()}, [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/parser/mod.rs:109:17 [INFO] [stdout] | [INFO] [stdout] 109 | let l = types::new(i.input.to_string()); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/parser/mod.rs:144:13 [INFO] [stdout] | [INFO] [stdout] 144 | let l = types::new(input.to_string()); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/parser/mod.rs:207:17 [INFO] [stdout] | [INFO] [stdout] 207 | let l = types::new(i.input.to_string()); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/parser/mod.rs:244:13 [INFO] [stdout] | [INFO] [stdout] 244 | let l = types::new(input.to_string()); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/parser/mod.rs:309:13 [INFO] [stdout] | [INFO] [stdout] 309 | let l = types::new(input.to_string()); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/parser/mod.rs:383:13 [INFO] [stdout] | [INFO] [stdout] 383 | let l = types::new(input.to_string()); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/parser/mod.rs:449:17 [INFO] [stdout] | [INFO] [stdout] 449 | let l = types::new(i.input.to_string()); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/parser/mod.rs:618:17 [INFO] [stdout] | [INFO] [stdout] 618 | let l = types::new(i.input.to_string()); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/parser/mod.rs:652:17 [INFO] [stdout] | [INFO] [stdout] 652 | let l = types::new(i.input.to_string()); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/parser/mod.rs:691:17 [INFO] [stdout] | [INFO] [stdout] 691 | let l = types::new(i.input.to_string()); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/parser/mod.rs:750:17 [INFO] [stdout] | [INFO] [stdout] 750 | let l = types::new(i.input.to_string()); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/parser/mod.rs:784:17 [INFO] [stdout] | [INFO] [stdout] 784 | let l = types::new(i.input.to_string()); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/parser/mod.rs:839:13 [INFO] [stdout] | [INFO] [stdout] 839 | let l = types::new(input); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/parser/mod.rs:874:13 [INFO] [stdout] | [INFO] [stdout] 874 | let l = types::new(input); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/parser/mod.rs:922:17 [INFO] [stdout] | [INFO] [stdout] 922 | let l = types::new(i.input.to_string()); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/parser/mod.rs:937:17 [INFO] [stdout] | [INFO] [stdout] 937 | let l = types::new(i.input.to_string()); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/parser/mod.rs:952:17 [INFO] [stdout] | [INFO] [stdout] 952 | let l = types::new(i.input.to_string()); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/parser/mod.rs:1013:17 [INFO] [stdout] | [INFO] [stdout] 1013 | let l = types::new(i.input.to_string()); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/parser/mod.rs:1026:17 [INFO] [stdout] | [INFO] [stdout] 1026 | let l = types::new(i.input.to_string()); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `types` [INFO] [stdout] --> src/parser/mod.rs:1039:17 [INFO] [stdout] | [INFO] [stdout] 1039 | let l = types::new(i.input.to_string()); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `let_statement` should have an upper camel case name [INFO] [stdout] --> src/ab_st_tr/ast.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 95 | pub struct let_statement { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LetStatement` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/parser/mod.rs:1098:7 [INFO] [stdout] | [INFO] [stdout] 1098 | };; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `a_string` found for struct `Program` in the current scope [INFO] [stdout] --> src/ab_st_tr/mod.rs:26:16 [INFO] [stdout] | [INFO] [stdout] 26 | if program.a_string() != "let myVar = anotherVar;" { [INFO] [stdout] | ^^^^^^^^ method not found in `Program` [INFO] [stdout] | [INFO] [stdout] ::: src/ab_st_tr/ast.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | fn a_string(&self) -> String; [INFO] [stdout] | -------- the method is available for `Program` here [INFO] [stdout] ... [INFO] [stdout] 36 | pub struct Program { [INFO] [stdout] | ------------------ method `a_string` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use crate::ab_st_tr::ast::Node;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `a_string` found for struct `Program` in the current scope [INFO] [stdout] --> src/ab_st_tr/mod.rs:27:32 [INFO] [stdout] | [INFO] [stdout] 27 | println!("{}", program.a_string() ); [INFO] [stdout] | ^^^^^^^^ method not found in `Program` [INFO] [stdout] | [INFO] [stdout] ::: src/ab_st_tr/ast.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | fn a_string(&self) -> String; [INFO] [stdout] | -------- the method is available for `Program` here [INFO] [stdout] ... [INFO] [stdout] 36 | pub struct Program { [INFO] [stdout] | ------------------ method `a_string` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use crate::ab_st_tr::ast::Node;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ab_st_tr::ast::Statement` [INFO] [stdout] --> src/parser/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::ab_st_tr::ast::Statement; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ab_st_tr::ast::Expression` [INFO] [stdout] --> src/parser/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::ab_st_tr::ast::Expression; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 28 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "b7c08877ab5e79e1b67b95e18cbc8e8fd61ed14b77d61e43109dadaab8a782ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b7c08877ab5e79e1b67b95e18cbc8e8fd61ed14b77d61e43109dadaab8a782ba", kill_on_drop: false }` [INFO] [stdout] b7c08877ab5e79e1b67b95e18cbc8e8fd61ed14b77d61e43109dadaab8a782ba