[INFO] updating cached repository https://github.com/nilq/hugorm [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] [stderr] From https://github.com/nilq/hugorm [INFO] [stderr] 00d48e5..bc4485f master -> master [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] bc4485fa962c33630406a37a49dbe1ece3ead7d7 [INFO] checking nilq/hugorm against try#96b3c169cd2d8959926fa240f10342f1659f8ae3 for pr-71896 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnilq%2Fhugorm" "/workspace/builds/worker-3/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/nilq/hugorm on toolchain 96b3c169cd2d8959926fa240f10342f1659f8ae3 [INFO] running `"/workspace/cargo-home/bin/cargo" "+96b3c169cd2d8959926fa240f10342f1659f8ae3" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/nilq/hugorm [INFO] finished tweaking git repo https://github.com/nilq/hugorm [INFO] tweaked toml for git repo https://github.com/nilq/hugorm written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/nilq/hugorm already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+96b3c169cd2d8959926fa240f10342f1659f8ae3" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+96b3c169cd2d8959926fa240f10342f1659f8ae3" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 82eeb28e21f184d80b4d495f0c5770fdba5ddf41ad356113e4bece6fb6b7f646 [INFO] running `"docker" "start" "-a" "82eeb28e21f184d80b4d495f0c5770fdba5ddf41ad356113e4bece6fb6b7f646"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling libc v0.2.66 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling nix v0.14.1 [INFO] [stderr] Compiling serde v1.0.106 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Checking either v1.5.3 [INFO] [stderr] Compiling memchr v2.3.2 [INFO] [stderr] Checking fnv v1.0.6 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking unicode-width v0.1.7 [INFO] [stderr] Checking utf8parse v0.1.1 [INFO] [stderr] Checking unicode-segmentation v1.6.0 [INFO] [stderr] Compiling hashbrown v0.7.1 [INFO] [stderr] Checking unreachable v0.1.1 [INFO] [stderr] Checking itertools v0.8.2 [INFO] [stderr] Checking nanbox v0.2.0 [INFO] [stderr] Checking thread-id v3.3.0 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking dirs-sys v0.3.4 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking thread_local v0.3.3 [INFO] [stderr] Checking colored v1.9.2 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Checking dirs v2.0.2 [INFO] [stderr] Checking state v0.4.1 [INFO] [stderr] Compiling const-random-macro v0.1.8 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking const-random v0.1.8 [INFO] [stderr] Checking ahash v0.3.2 [INFO] [stderr] Checking tinyset v0.4.2 [INFO] [stderr] Checking broom v0.3.0 [INFO] [stderr] Checking rustyline v6.0.0 [INFO] [stderr] Checking internment v0.3.12 [INFO] [stderr] Checking hugorm v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: unused `#[macro_use]` import [INFO] [stderr] --> src/main.rs:4:1 [INFO] [stderr] | [INFO] [stderr] 4 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/hugorm/lexer/lexer.rs:9:22 [INFO] [stderr] | [INFO] [stderr] 9 | matchers: Vec>>, [INFO] [stderr] | ^^^^^^^^^^^ help: use `dyn`: `dyn Matcher<'l>` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/hugorm/lexer/tokenizer.rs:92:49 [INFO] [stderr] | [INFO] [stderr] 92 | pub fn try_match_token(&mut self, matcher: &Matcher<'t>) -> Result, ()> { [INFO] [stderr] | ^^^^^^^^^^^ help: use `dyn`: `dyn Matcher<'t>` [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::rc::Rc` [INFO] [stderr] --> src/hugorm/visitor/symtab.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use std::rc::Rc; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::HashMap` [INFO] [stderr] --> src/hugorm/visitor/visitor.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::collections::HashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Display`, `Formatter`, `Write`, `self` [INFO] [stderr] --> src/hugorm/visitor/visitor.rs:2:16 [INFO] [stderr] | [INFO] [stderr] 2 | use std::fmt::{self, Display, Formatter, Write}; [INFO] [stderr] | ^^^^ ^^^^^^^ ^^^^^^^^^ ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::rc::Rc` [INFO] [stderr] --> src/hugorm/visitor/visitor.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use std::rc::Rc; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::fs::File` [INFO] [stderr] --> src/hugorm/visitor/visitor.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use std::fs::File; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::io::prelude::*` [INFO] [stderr] --> src/hugorm/visitor/visitor.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use std::io::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::path::Path` [INFO] [stderr] --> src/hugorm/visitor/visitor.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use std::path::Path; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::mem` [INFO] [stderr] --> src/hugorm/visitor/visitor.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | use std::mem; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `self::ExpressionNode::*` [INFO] [stderr] --> src/hugorm/visitor/visitor.rs:383:13 [INFO] [stderr] | [INFO] [stderr] 383 | use self::ExpressionNode::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `self::ExpressionNode::*` [INFO] [stderr] --> src/hugorm/visitor/visitor.rs:416:13 [INFO] [stderr] | [INFO] [stderr] 416 | use self::ExpressionNode::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `#[macro_use]` import [INFO] [stderr] --> src/main.rs:4:1 [INFO] [stderr] | [INFO] [stderr] 4 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/hugorm/lexer/lexer.rs:9:22 [INFO] [stderr] | [INFO] [stderr] 9 | matchers: Vec>>, [INFO] [stderr] | ^^^^^^^^^^^ help: use `dyn`: `dyn Matcher<'l>` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/hugorm/lexer/tokenizer.rs:92:49 [INFO] [stderr] | [INFO] [stderr] 92 | pub fn try_match_token(&mut self, matcher: &Matcher<'t>) -> Result, ()> { [INFO] [stderr] | ^^^^^^^^^^^ help: use `dyn`: `dyn Matcher<'t>` [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::rc::Rc` [INFO] [stderr] --> src/hugorm/visitor/symtab.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use std::rc::Rc; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::HashMap` [INFO] [stderr] --> src/hugorm/visitor/visitor.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::collections::HashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Display`, `Formatter`, `Write`, `self` [INFO] [stderr] --> src/hugorm/visitor/visitor.rs:2:16 [INFO] [stderr] | [INFO] [stderr] 2 | use std::fmt::{self, Display, Formatter, Write}; [INFO] [stderr] | ^^^^ ^^^^^^^ ^^^^^^^^^ ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::rc::Rc` [INFO] [stderr] --> src/hugorm/visitor/visitor.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use std::rc::Rc; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::fs::File` [INFO] [stderr] --> src/hugorm/visitor/visitor.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use std::fs::File; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::io::prelude::*` [INFO] [stderr] --> src/hugorm/visitor/visitor.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use std::io::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::path::Path` [INFO] [stderr] --> src/hugorm/visitor/visitor.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use std::path::Path; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::mem` [INFO] [stderr] --> src/hugorm/visitor/visitor.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | use std::mem; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `self::ExpressionNode::*` [INFO] [stderr] --> src/hugorm/visitor/visitor.rs:383:13 [INFO] [stderr] | [INFO] [stderr] 383 | use self::ExpressionNode::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `self::ExpressionNode::*` [INFO] [stderr] --> src/hugorm/visitor/visitor.rs:416:13 [INFO] [stderr] | [INFO] [stderr] 416 | use self::ExpressionNode::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/hugorm/visitor/visitor.rs:163:13 [INFO] [stderr] | [INFO] [stderr] 163 | _ => { [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `item` [INFO] [stderr] --> src/hugorm/lexer/tokenizer.rs:41:21 [INFO] [stderr] | [INFO] [stderr] 41 | if let Some(item) = self.items.get(self.index + 1) { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `caller` [INFO] [stderr] --> src/hugorm/visitor/visitor.rs:374:18 [INFO] [stderr] | [INFO] [stderr] 374 | Call(ref caller, ref args) => Type::from(TypeNode::Any), [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_caller` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `args` [INFO] [stderr] --> src/hugorm/visitor/visitor.rs:374:30 [INFO] [stderr] | [INFO] [stderr] 374 | Call(ref caller, ref args) => Type::from(TypeNode::Any), [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pos` [INFO] [stderr] --> src/hugorm/visitor/visitor.rs:415:50 [INFO] [stderr] | [INFO] [stderr] 415 | fn visit_ass(&mut self, ass: &StatementNode, pos: &Pos) -> Result<(), ()> { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/hugorm/visitor/visitor.rs:163:13 [INFO] [stderr] | [INFO] [stderr] 163 | _ => { [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `item` [INFO] [stderr] --> src/hugorm/lexer/tokenizer.rs:41:21 [INFO] [stderr] | [INFO] [stderr] 41 | if let Some(item) = self.items.get(self.index + 1) { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `caller` [INFO] [stderr] --> src/hugorm/visitor/visitor.rs:374:18 [INFO] [stderr] | [INFO] [stderr] 374 | Call(ref caller, ref args) => Type::from(TypeNode::Any), [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_caller` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `args` [INFO] [stderr] --> src/hugorm/visitor/visitor.rs:374:30 [INFO] [stderr] | [INFO] [stderr] 374 | Call(ref caller, ref args) => Type::from(TypeNode::Any), [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pos` [INFO] [stderr] --> src/hugorm/visitor/visitor.rs:415:50 [INFO] [stderr] | [INFO] [stderr] 415 | fn visit_ass(&mut self, ass: &StatementNode, pos: &Pos) -> Result<(), ()> { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Note` [INFO] [stderr] --> src/hugorm/error.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | Note(T), [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/hugorm/source.rs:24:5 [INFO] [stderr] | [INFO] [stderr] 24 | pub fn new(path: String) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_lexeme` [INFO] [stderr] --> src/hugorm/lexer/token.rs:45:5 [INFO] [stderr] | [INFO] [stderr] 45 | pub fn get_lexeme(&self) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `expect_type` [INFO] [stderr] --> src/hugorm/parser/parser.rs:696:5 [INFO] [stderr] | [INFO] [stderr] 696 | fn expect_type(&self, token_type: TokenType) -> Result<(), ()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `expect_lexeme` [INFO] [stderr] --> src/hugorm/parser/parser.rs:711:5 [INFO] [stderr] | [INFO] [stderr] 711 | fn expect_lexeme(&self, lexeme: &str) -> Result<(), ()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `from` [INFO] [stderr] --> src/hugorm/visitor/symtab.rs:20:5 [INFO] [stderr] | [INFO] [stderr] 20 | pub fn from(table: HashMap) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `debug` [INFO] [stderr] --> src/hugorm/visitor/symtab.rs:38:5 [INFO] [stderr] | [INFO] [stderr] 38 | pub fn debug(&self) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `from` [INFO] [stderr] --> src/hugorm/visitor/symtab.rs:68:5 [INFO] [stderr] | [INFO] [stderr] 68 | pub fn from(table: HashMap) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `assign_str` [INFO] [stderr] --> src/hugorm/visitor/symtab.rs:82:5 [INFO] [stderr] | [INFO] [stderr] 82 | pub fn assign_str(&mut self, name: &str, t: Type) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `fetch_str` [INFO] [stderr] --> src/hugorm/visitor/symtab.rs:106:5 [INFO] [stderr] | [INFO] [stderr] 106 | pub fn fetch_str(&self, name: &str) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `current_frame` [INFO] [stderr] --> src/hugorm/visitor/symtab.rs:114:5 [INFO] [stderr] | [INFO] [stderr] 114 | pub fn current_frame(&self) -> &Frame { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `put_frame` [INFO] [stderr] --> src/hugorm/visitor/symtab.rs:122:5 [INFO] [stderr] | [INFO] [stderr] 122 | pub fn put_frame(&mut self, frame: Frame) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `pop_cache` [INFO] [stderr] --> src/hugorm/visitor/symtab.rs:135:5 [INFO] [stderr] | [INFO] [stderr] 135 | pub fn pop_cache(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_foreign_module` [INFO] [stderr] --> src/hugorm/visitor/symtab.rs:155:5 [INFO] [stderr] | [INFO] [stderr] 155 | pub fn get_foreign_module(&self, id: &String) -> Option<&HashMap> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `import` [INFO] [stderr] --> src/hugorm/visitor/symtab.rs:159:5 [INFO] [stderr] | [INFO] [stderr] 159 | pub fn import(&mut self, id: String, origin: HashMap) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Char` [INFO] [stderr] --> src/hugorm/visitor/visitor.rs:23:5 [INFO] [stderr] | [INFO] [stderr] 23 | Char, [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Undeclared` [INFO] [stderr] --> src/hugorm/visitor/visitor.rs:30:5 [INFO] [stderr] | [INFO] [stderr] 30 | Undeclared, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Immutable` [INFO] [stderr] --> src/hugorm/visitor/visitor.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 31 | Immutable, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Loop` [INFO] [stderr] --> src/hugorm/visitor/visitor.rs:62:5 [INFO] [stderr] | [INFO] [stderr] 62 | Loop, [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Nothing` [INFO] [stderr] --> src/hugorm/visitor/visitor.rs:64:5 [INFO] [stderr] | [INFO] [stderr] 64 | Nothing, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `from` [INFO] [stderr] --> src/hugorm/visitor/visitor.rs:88:5 [INFO] [stderr] | [INFO] [stderr] 88 | pub fn from(source: &'a Source, ast: &'a Vec, symtab: SymTab) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `assign_str` [INFO] [stderr] --> src/hugorm/visitor/visitor.rs:434:5 [INFO] [stderr] | [INFO] [stderr] 434 | fn assign_str(&mut self, name: &str, t: Type) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `std::result::Result` that must be used [INFO] [stderr] --> src/hugorm/parser/parser.rs:208:9 [INFO] [stderr] | [INFO] [stderr] 208 | self.new_line(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: 41 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Note` [INFO] [stderr] --> src/hugorm/error.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | Note(T), [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/hugorm/source.rs:24:5 [INFO] [stderr] | [INFO] [stderr] 24 | pub fn new(path: String) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_lexeme` [INFO] [stderr] --> src/hugorm/lexer/token.rs:45:5 [INFO] [stderr] | [INFO] [stderr] 45 | pub fn get_lexeme(&self) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `expect_type` [INFO] [stderr] --> src/hugorm/parser/parser.rs:696:5 [INFO] [stderr] | [INFO] [stderr] 696 | fn expect_type(&self, token_type: TokenType) -> Result<(), ()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `expect_lexeme` [INFO] [stderr] --> src/hugorm/parser/parser.rs:711:5 [INFO] [stderr] | [INFO] [stderr] 711 | fn expect_lexeme(&self, lexeme: &str) -> Result<(), ()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `from` [INFO] [stderr] --> src/hugorm/visitor/symtab.rs:20:5 [INFO] [stderr] | [INFO] [stderr] 20 | pub fn from(table: HashMap) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `debug` [INFO] [stderr] --> src/hugorm/visitor/symtab.rs:38:5 [INFO] [stderr] | [INFO] [stderr] 38 | pub fn debug(&self) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `from` [INFO] [stderr] --> src/hugorm/visitor/symtab.rs:68:5 [INFO] [stderr] | [INFO] [stderr] 68 | pub fn from(table: HashMap) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `assign_str` [INFO] [stderr] --> src/hugorm/visitor/symtab.rs:82:5 [INFO] [stderr] | [INFO] [stderr] 82 | pub fn assign_str(&mut self, name: &str, t: Type) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `fetch_str` [INFO] [stderr] --> src/hugorm/visitor/symtab.rs:106:5 [INFO] [stderr] | [INFO] [stderr] 106 | pub fn fetch_str(&self, name: &str) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `current_frame` [INFO] [stderr] --> src/hugorm/visitor/symtab.rs:114:5 [INFO] [stderr] | [INFO] [stderr] 114 | pub fn current_frame(&self) -> &Frame { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `put_frame` [INFO] [stderr] --> src/hugorm/visitor/symtab.rs:122:5 [INFO] [stderr] | [INFO] [stderr] 122 | pub fn put_frame(&mut self, frame: Frame) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `pop_cache` [INFO] [stderr] --> src/hugorm/visitor/symtab.rs:135:5 [INFO] [stderr] | [INFO] [stderr] 135 | pub fn pop_cache(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_foreign_module` [INFO] [stderr] --> src/hugorm/visitor/symtab.rs:155:5 [INFO] [stderr] | [INFO] [stderr] 155 | pub fn get_foreign_module(&self, id: &String) -> Option<&HashMap> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `import` [INFO] [stderr] --> src/hugorm/visitor/symtab.rs:159:5 [INFO] [stderr] | [INFO] [stderr] 159 | pub fn import(&mut self, id: String, origin: HashMap) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Char` [INFO] [stderr] --> src/hugorm/visitor/visitor.rs:23:5 [INFO] [stderr] | [INFO] [stderr] 23 | Char, [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Undeclared` [INFO] [stderr] --> src/hugorm/visitor/visitor.rs:30:5 [INFO] [stderr] | [INFO] [stderr] 30 | Undeclared, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Immutable` [INFO] [stderr] --> src/hugorm/visitor/visitor.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 31 | Immutable, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Loop` [INFO] [stderr] --> src/hugorm/visitor/visitor.rs:62:5 [INFO] [stderr] | [INFO] [stderr] 62 | Loop, [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Nothing` [INFO] [stderr] --> src/hugorm/visitor/visitor.rs:64:5 [INFO] [stderr] | [INFO] [stderr] 64 | Nothing, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `from` [INFO] [stderr] --> src/hugorm/visitor/visitor.rs:88:5 [INFO] [stderr] | [INFO] [stderr] 88 | pub fn from(source: &'a Source, ast: &'a Vec, symtab: SymTab) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `assign_str` [INFO] [stderr] --> src/hugorm/visitor/visitor.rs:434:5 [INFO] [stderr] | [INFO] [stderr] 434 | fn assign_str(&mut self, name: &str, t: Type) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `std::result::Result` that must be used [INFO] [stderr] --> src/hugorm/parser/parser.rs:208:9 [INFO] [stderr] | [INFO] [stderr] 208 | self.new_line(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: 41 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 25.79s [INFO] running `"docker" "inspect" "82eeb28e21f184d80b4d495f0c5770fdba5ddf41ad356113e4bece6fb6b7f646"` [INFO] running `"docker" "rm" "-f" "82eeb28e21f184d80b4d495f0c5770fdba5ddf41ad356113e4bece6fb6b7f646"` [INFO] [stdout] 82eeb28e21f184d80b4d495f0c5770fdba5ddf41ad356113e4bece6fb6b7f646