[INFO] cloning repository https://github.com/hanmindev/blastfurnace-v2 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/hanmindev/blastfurnace-v2" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhanmindev%2Fblastfurnace-v2", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhanmindev%2Fblastfurnace-v2'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cab714ca652f74c7d1dba8d3c4bf8aebe8fcc12e [INFO] checking hanmindev/blastfurnace-v2 against try#51de2e90f91fdec6cf64ff542a4e15b9c177a797 for pr-147294 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhanmindev%2Fblastfurnace-v2" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/hanmindev/blastfurnace-v2 [INFO] finished tweaking git repo https://github.com/hanmindev/blastfurnace-v2 [INFO] tweaked toml for git repo https://github.com/hanmindev/blastfurnace-v2 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/hanmindev/blastfurnace-v2 on toolchain 51de2e90f91fdec6cf64ff542a4e15b9c177a797 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+51de2e90f91fdec6cf64ff542a4e15b9c177a797" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/hanmindev/blastfurnace-v2 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" "+51de2e90f91fdec6cf64ff542a4e15b9c177a797" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking hanmindev/blastfurnace-v2 against try#51de2e90f91fdec6cf64ff542a4e15b9c177a797 for pr-147294 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhanmindev%2Fblastfurnace-v2" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/hanmindev/blastfurnace-v2 [INFO] finished tweaking git repo https://github.com/hanmindev/blastfurnace-v2 [INFO] tweaked toml for git repo https://github.com/hanmindev/blastfurnace-v2 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/hanmindev/blastfurnace-v2 on toolchain 51de2e90f91fdec6cf64ff542a4e15b9c177a797 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+51de2e90f91fdec6cf64ff542a4e15b9c177a797" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/hanmindev/blastfurnace-v2 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" "+51de2e90f91fdec6cf64ff542a4e15b9c177a797" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+51de2e90f91fdec6cf64ff542a4e15b9c177a797" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a16d90a519f16cc1d2bf260c4037015dbdb3f55f34d854f0728b9970e602ec59 [INFO] running `Command { std: "docker" "start" "-a" "a16d90a519f16cc1d2bf260c4037015dbdb3f55f34d854f0728b9970e602ec59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a16d90a519f16cc1d2bf260c4037015dbdb3f55f34d854f0728b9970e602ec59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a16d90a519f16cc1d2bf260c4037015dbdb3f55f34d854f0728b9970e602ec59", kill_on_drop: false }` [INFO] [stdout] a16d90a519f16cc1d2bf260c4037015dbdb3f55f34d854f0728b9970e602ec59 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+51de2e90f91fdec6cf64ff542a4e15b9c177a797" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2c8e7557f003ad471f1e2554095e17a452a76b5d7ad3af6fc4011ec6ea57a5d5 [INFO] running `Command { std: "docker" "start" "-a" "2c8e7557f003ad471f1e2554095e17a452a76b5d7ad3af6fc4011ec6ea57a5d5", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.203 [INFO] [stderr] Compiling camino v1.1.7 [INFO] [stderr] Compiling syn v2.0.68 [INFO] [stderr] Compiling serde_derive v1.0.203 [INFO] [stderr] Checking serde_json v1.0.120 [INFO] [stderr] Checking blastfurnace-v2 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/modules.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/modules.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `global_definition_table` [INFO] [stdout] --> src/middle.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | global_definition_table: &GlobalDefinitionTable, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_global_definition_table` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ModuleBuildError` is more private than the item `ModuleBuilder::<'p, T>::add_fs_package` [INFO] [stdout] --> src/modules.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | / pub fn add_fs_package( [INFO] [stdout] 36 | | &mut self, [INFO] [stdout] 37 | | package_name: &str, [INFO] [stdout] 38 | | path: &Utf8PathBuf, [INFO] [stdout] 39 | | is_root_package: bool, [INFO] [stdout] 40 | | ) -> ModuleBuildResult<()> { [INFO] [stdout] | |______________________________^ method `ModuleBuilder::<'p, T>::add_fs_package` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ModuleBuildError` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/modules.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | enum ModuleBuildError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ModuleBuildError` is more private than the item `ModuleBuilder::<'p, T>::load_module_bodies` [INFO] [stdout] --> src/modules.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn load_module_bodies(&mut self) -> ModuleBuildResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `ModuleBuilder::<'p, T>::load_module_bodies` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ModuleBuildError` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/modules.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | enum ModuleBuildError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `FileSystemError` is never used [INFO] [stdout] --> src/file_system.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum FileSystemError { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `FileSystemResult` is never used [INFO] [stdout] --> src/file_system.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | pub type FileSystemResult = Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `FileSystem` is never used [INFO] [stdout] --> src/file_system.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | pub trait FileSystem { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Content` is never used [INFO] [stdout] --> src/file_system/concrete/mock_fs.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | type Content = String; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StringWriter` is never constructed [INFO] [stdout] --> src/file_system/concrete/mock_fs.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct StringWriter { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StringReader` is never constructed [INFO] [stdout] --> src/file_system/concrete/mock_fs.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct StringReader { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Files` is never used [INFO] [stdout] --> src/file_system/concrete/mock_fs.rs:46:6 [INFO] [stdout] | [INFO] [stdout] 46 | type Files = Arc>>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MockFileSystem` is never constructed [INFO] [stdout] --> src/file_system/concrete/mock_fs.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct MockFileSystem { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `insert_file`, and `insert_dir` are never used [INFO] [stdout] --> src/file_system/concrete/mock_fs.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 53 | impl MockFileSystem { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 54 | pub fn new() -> MockFileSystem { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn insert_file(&mut self, path: Utf8PathBuf, content: &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn insert_dir(&mut self, path: Utf8PathBuf) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SystemFs` is never constructed [INFO] [stdout] --> src/file_system/concrete/system_fs.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct SystemFs; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/file_system/concrete/system_fs.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl SystemFs { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 9 | fn new() -> FileSystemResult { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_file` is never used [INFO] [stdout] --> src/front.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn parse_file( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_ast` is never used [INFO] [stdout] --> src/front/ast_creator.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn create_ast(file_root_package_name: &str, src: &str) -> Module { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_tokens` is never used [INFO] [stdout] --> src/front/ast_creator/lexer.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn get_tokens(src: &str) -> Result, Vec> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Lexer` is never constructed [INFO] [stdout] --> src/front/ast_creator/lexer.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | struct Lexer<'src> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `eat`, `peek`, `get_token`, `skip_ignoreable`, and `parse_token` are never used [INFO] [stdout] --> src/front/ast_creator/lexer.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 42 | impl<'src> Lexer<'src> { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 43 | pub fn new(src: &'src str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | fn eat(&mut self) -> char { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | fn peek(&mut self, offset: usize) -> char { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn get_token(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | fn skip_ignoreable(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | fn parse_token(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_tokens` is never used [INFO] [stdout] --> src/front/ast_creator/parser.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn parse_tokens(package_name: &str, tokens: Vec) -> ParseResult { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ParseError` is never used [INFO] [stdout] --> src/front/ast_creator/parser.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum ParseError { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ParseResult` is never used [INFO] [stdout] --> src/front/ast_creator/parser.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | pub type ParseResult = Result; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Parser` is never constructed [INFO] [stdout] --> src/front/ast_creator/parser.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct Parser { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/front/ast_creator/parser.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Parser { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 30 | pub fn new(tokens: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | fn get_token(&self) -> &Token { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | fn eat_any(&mut self) -> &TokenKind { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | fn eat(&mut self, type_: &TokenKind) -> ParseResult<&TokenKind> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | fn peek(&self, offset: usize) -> &TokenKind { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | fn parse_top_level(&mut self, package_name: &str) -> ParseResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | fn parse_intermediate_level(&mut self, package_name: &str) -> ParseResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | fn parse_reference_name(&mut self, head: &str) -> ParseResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | fn parse_type(&mut self) -> ParseResult { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 223 | fn parse_fn_definition(&mut self, package_name: &str) -> ParseResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 281 | fn parse_struct_definition(&mut self) -> ParseResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 326 | fn parse_var_definition_helper(&mut self) -> ParseResult<(VarReference, Type)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 344 | fn parse_var_definition(&mut self) -> ParseResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 353 | fn parse_static_var_definition(&mut self) -> ParseResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 363 | fn parse_use(&mut self, package_name: &str) -> ParseResult> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TokenKind` is never used [INFO] [stdout] --> src/front/ast_creator/token_types.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum TokenKind { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TokenError` is never used [INFO] [stdout] --> src/front/ast_creator/token_types.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | pub enum TokenError { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Span` is never constructed [INFO] [stdout] --> src/front/ast_creator/token_types.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct Span { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Token` is never constructed [INFO] [stdout] --> src/front/ast_creator/token_types.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct Token { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Reference` is never constructed [INFO] [stdout] --> src/front/ast_types.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Reference { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/front/ast_types.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Reference { [INFO] [stdout] | -------------------------------- associated function in this implementation [INFO] [stdout] 17 | pub fn new(raw: T) -> Reference { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `PackageName` is never used [INFO] [stdout] --> src/front/ast_types.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 36 | pub type PackageName = String; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ItemPath` is never used [INFO] [stdout] --> src/front/ast_types.rs:37:10 [INFO] [stdout] | [INFO] [stdout] 37 | pub type ItemPath = Vec; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FullItemPath` is never constructed [INFO] [stdout] --> src/front/ast_types.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct FullItemPath { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/front/ast_types.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 45 | impl FullItemPath { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 46 | pub fn new(package_name: PackageName, item_path: ItemPath) -> FullItemPath { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `RawNameRoot` is never used [INFO] [stdout] --> src/front/ast_types.rs:54:10 [INFO] [stdout] | [INFO] [stdout] 54 | pub type RawNameRoot = String; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `RawNameTailNode` is never used [INFO] [stdout] --> src/front/ast_types.rs:55:10 [INFO] [stdout] | [INFO] [stdout] 55 | pub type RawNameTailNode = String; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `RawName` is never used [INFO] [stdout] --> src/front/ast_types.rs:56:10 [INFO] [stdout] | [INFO] [stdout] 56 | pub type RawName = (RawNameRoot, Option>); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ItemName` is never used [INFO] [stdout] --> src/front/ast_types.rs:57:10 [INFO] [stdout] | [INFO] [stdout] 57 | pub type ItemName = String; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ResolvedName` is never constructed [INFO] [stdout] --> src/front/ast_types.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct ResolvedName { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/front/ast_types.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 64 | impl ResolvedName { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 65 | pub fn new(module_id: ModuleId, item_name: ItemName) -> ResolvedName { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VarDummy` is never constructed [INFO] [stdout] --> src/front/ast_types.rs:99:12 [INFO] [stdout] | [INFO] [stdout] 99 | pub struct VarDummy; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TypeDummy` is never constructed [INFO] [stdout] --> src/front/ast_types.rs:101:12 [INFO] [stdout] | [INFO] [stdout] 101 | pub struct TypeDummy; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FunctionDummy` is never constructed [INFO] [stdout] --> src/front/ast_types.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 103 | pub struct FunctionDummy; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `VarReference` is never used [INFO] [stdout] --> src/front/ast_types.rs:105:10 [INFO] [stdout] | [INFO] [stdout] 105 | pub type VarReference = Reference; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `TypeReference` is never used [INFO] [stdout] --> src/front/ast_types.rs:106:10 [INFO] [stdout] | [INFO] [stdout] 106 | pub type TypeReference = Reference; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `FunctionReference` is never used [INFO] [stdout] --> src/front/ast_types.rs:107:10 [INFO] [stdout] | [INFO] [stdout] 107 | pub type FunctionReference = Reference; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Type` is never used [INFO] [stdout] --> src/front/ast_types.rs:110:10 [INFO] [stdout] | [INFO] [stdout] 110 | pub enum Type { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StaticVarDef` is never constructed [INFO] [stdout] --> src/front/ast_types.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 120 | pub struct StaticVarDef { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VarDef` is never constructed [INFO] [stdout] --> src/front/ast_types.rs:126:12 [INFO] [stdout] | [INFO] [stdout] 126 | pub struct VarDef { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StructDef` is never constructed [INFO] [stdout] --> src/front/ast_types.rs:132:12 [INFO] [stdout] | [INFO] [stdout] 132 | pub struct StructDef { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FnDef` is never constructed [INFO] [stdout] --> src/front/ast_types.rs:138:12 [INFO] [stdout] | [INFO] [stdout] 138 | pub struct FnDef { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Definition` is never used [INFO] [stdout] --> src/front/ast_types.rs:146:10 [INFO] [stdout] | [INFO] [stdout] 146 | pub enum Definition { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Statement` is never used [INFO] [stdout] --> src/front/ast_types.rs:154:10 [INFO] [stdout] | [INFO] [stdout] 154 | pub enum Statement { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Module` is never constructed [INFO] [stdout] --> src/front/ast_types.rs:162:12 [INFO] [stdout] | [INFO] [stdout] 162 | pub struct Module { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DefinitionTable` is never constructed [INFO] [stdout] --> src/front/definition_table.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct DefinitionTable { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/front/definition_table.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl DefinitionTable { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 14 | pub fn new() -> DefinitionTable { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `collect_definitions` is never used [INFO] [stdout] --> src/front/passes/collect_definitions.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn collect_definitions(module: &mut Module) -> DefinitionTable { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `collect_dependencies` is never used [INFO] [stdout] --> src/front/passes/collect_dependencies.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn collect_dependencies(module_id: ModuleId, module: &mut Module) -> ModuleDependencies { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DependencyError` is never used [INFO] [stdout] --> src/front/passes/collect_dependencies/visitor.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum DependencyError { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ResolveResult` is never used [INFO] [stdout] --> src/front/passes/collect_dependencies/visitor.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub type ResolveResult = GenericVisitApplyResult; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DependencyVisitor` is never constructed [INFO] [stdout] --> src/front/passes/collect_dependencies/visitor.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct DependencyVisitor<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/front/passes/collect_dependencies/visitor.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl DependencyVisitor<'_> { [INFO] [stdout] | -------------------------- associated function in this implementation [INFO] [stdout] 17 | pub fn new(module_id: ModuleId, dependencies: &mut ModuleDependencies) -> DependencyVisitor { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `NameResolutionError` is never used [INFO] [stdout] --> src/front/passes/name_resolution.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum NameResolutionError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `NameResolutionResult` is never used [INFO] [stdout] --> src/front/passes/name_resolution.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 18 | type NameResolutionResult = Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `resolve_names` is never used [INFO] [stdout] --> src/front/passes/name_resolution.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn resolve_names( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `stitch_path` is never used [INFO] [stdout] --> src/front/passes/name_resolution/scope_table.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn stitch_path( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ScopeTableLayer` is never constructed [INFO] [stdout] --> src/front/passes/name_resolution/scope_table.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | struct ScopeTableLayer { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ScopeTable` is never constructed [INFO] [stdout] --> src/front/passes/name_resolution/scope_table.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct ScopeTable { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `scope_enter`, `scope_exit`, `scope_bind`, and `scope_lookup` are never used [INFO] [stdout] --> src/front/passes/name_resolution/scope_table.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 45 | impl ScopeTable { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 46 | pub fn new(module_path: FullItemPath) -> ScopeTable { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn scope_enter(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn scope_exit(&mut self) -> NameResolutionResult<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn scope_bind( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | pub fn scope_lookup( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ResolveResult` is never used [INFO] [stdout] --> src/front/passes/name_resolution/visitor.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub type ResolveResult = GenericVisitApplyResult; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ASTNodeEnum` is never used [INFO] [stdout] --> src/front/passes/visitor.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum ASTNodeEnum<'a> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `GenericVisitApplyResult` is never used [INFO] [stdout] --> src/front/passes/visitor.rs:29:10 [INFO] [stdout] | [INFO] [stdout] 29 | pub type GenericVisitApplyResult = Result<(bool, Option), V>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Visitor` is never used [INFO] [stdout] --> src/front/passes/visitor.rs:31:11 [INFO] [stdout] | [INFO] [stdout] 31 | pub trait Visitor { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Visitable` is never used [INFO] [stdout] --> src/front/passes/visitor.rs:42:11 [INFO] [stdout] | [INFO] [stdout] 42 | pub trait Visitable, K, V> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_ir` is never used [INFO] [stdout] --> src/middle.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn generate_ir( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GlobalDefinitionTable` is never constructed [INFO] [stdout] --> src/middle/global_definition_table.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct GlobalDefinitionTable<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_definition_table`, `get_static_var_definition`, `get_var_definition`, `get_struct_definition`, and `get_fn_definition` are never used [INFO] [stdout] --> src/middle/global_definition_table.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl<'a> GlobalDefinitionTable<'a> { [INFO] [stdout] | ---------------------------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new() -> GlobalDefinitionTable<'a> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn add_definition_table( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn get_static_var_definition(&self, name: &ResolvedName) -> Option<&'a StaticVarDef> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn get_var_definition(&self, name: &ResolvedName) -> Option<&'a StaticVarDef> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn get_struct_definition(&self, name: &ResolvedName) -> Option<&'a StaticVarDef> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn get_fn_definition(&self, name: &ResolvedName) -> Option<&'a StaticVarDef> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IRInstruction` is never used [INFO] [stdout] --> src/middle/types.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum IRInstruction { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IRFunction` is never constructed [INFO] [stdout] --> src/middle/types.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct IRFunction { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IRModule` is never constructed [INFO] [stdout] --> src/middle/types.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct IRModule { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ModuleBuildError` is never used [INFO] [stdout] --> src/modules.rs:14:6 [INFO] [stdout] | [INFO] [stdout] 14 | enum ModuleBuildError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ModuleBuildResult` is never used [INFO] [stdout] --> src/modules.rs:20:6 [INFO] [stdout] | [INFO] [stdout] 20 | type ModuleBuildResult = Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ModuleBuilder` is never constructed [INFO] [stdout] --> src/modules.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct ModuleBuilder<'p, T: FileSystem> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_fs_package`, `load_module_bodies`, `save_cache`, `load_cache`, and `get_module_graph` are never used [INFO] [stdout] --> src/modules.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl<'p, T: FileSystem> ModuleBuilder<'p, T> { [INFO] [stdout] | -------------------------------------------- associated items in this implementation [INFO] [stdout] 28 | pub fn new(file_system: &'p mut T, cache: Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn add_fs_package( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn load_module_bodies(&mut self) -> ModuleBuildResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn save_cache(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | pub fn load_cache(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn get_module_graph(&self) -> &ModuleGraph { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_rel_path` is never used [INFO] [stdout] --> src/modules.rs:129:4 [INFO] [stdout] | [INFO] [stdout] 129 | fn create_rel_path(file_path: &Utf8PathBuf, package_path: &Utf8PathBuf) -> Utf8PathBuf { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ModuleId` is never used [INFO] [stdout] --> src/modules.rs:134:10 [INFO] [stdout] | [INFO] [stdout] 134 | pub type ModuleId = String; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `module_id_from_local` is never used [INFO] [stdout] --> src/modules.rs:136:8 [INFO] [stdout] | [INFO] [stdout] 136 | pub fn module_id_from_local(package_name: &str, file_path: &Vec) -> ModuleId { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ModuleDependencies` is never used [INFO] [stdout] --> src/modules.rs:142:10 [INFO] [stdout] | [INFO] [stdout] 142 | pub type ModuleDependencies = HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BuildCacheLayer` is never constructed [INFO] [stdout] --> src/modules/cache.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct BuildCacheLayer<'p, T: FileSystem> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `load_cache`, `save_cache`, and `take_module` are never used [INFO] [stdout] --> src/modules/cache.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl BuildCacheLayer<'_, T> { [INFO] [stdout] | ------------------------------------------ associated items in this implementation [INFO] [stdout] 16 | pub fn new(file_system: &mut T, cache_location: Option) -> BuildCacheLayer { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn load_cache(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn save_cache(&mut self, cache: &HashMap) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn take_module( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ModuleNode` is never constructed [INFO] [stdout] --> src/modules/types.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct ModuleNode { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ModuleCachableData` is never constructed [INFO] [stdout] --> src/modules/types.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct ModuleCachableData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/modules/types.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 26 | impl ModuleNode { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 27 | fn new(package_name: &str, rel_path: Utf8PathBuf) -> ModuleNode { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ModuleGraph` is never constructed [INFO] [stdout] --> src/modules/types.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct ModuleGraph { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `create_node` are never used [INFO] [stdout] --> src/modules/types.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl ModuleGraph { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 45 | pub fn new() -> ModuleGraph { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn create_node(&mut self, id: ModuleId, package_name: &str, rel_path: &Utf8PathBuf) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `utf8path_buf_to_vec` is never used [INFO] [stdout] --> src/modules/utf8buf_utils.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn utf8path_buf_to_vec(utf8path_buf: &Utf8PathBuf) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/front/passes/collect_dependencies/visitor.rs:17:51 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(module_id: ModuleId, dependencies: &mut ModuleDependencies) -> DependencyVisitor { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(module_id: ModuleId, dependencies: &mut ModuleDependencies) -> DependencyVisitor<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/modules/cache.rs:16:29 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn new(file_system: &mut T, cache_location: Option) -> BuildCacheLayer { [INFO] [stdout] | ^^^^^^ the lifetime is elided here ^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 16 | pub fn new(file_system: &mut T, cache_location: Option) -> BuildCacheLayer<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `global_definition_table` [INFO] [stdout] --> src/middle.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | global_definition_table: &GlobalDefinitionTable, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_global_definition_table` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ModuleBuildError` is more private than the item `ModuleBuilder::<'p, T>::add_fs_package` [INFO] [stdout] --> src/modules.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | / pub fn add_fs_package( [INFO] [stdout] 36 | | &mut self, [INFO] [stdout] 37 | | package_name: &str, [INFO] [stdout] 38 | | path: &Utf8PathBuf, [INFO] [stdout] 39 | | is_root_package: bool, [INFO] [stdout] 40 | | ) -> ModuleBuildResult<()> { [INFO] [stdout] | |______________________________^ method `ModuleBuilder::<'p, T>::add_fs_package` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ModuleBuildError` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/modules.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | enum ModuleBuildError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ModuleBuildError` is more private than the item `ModuleBuilder::<'p, T>::load_module_bodies` [INFO] [stdout] --> src/modules.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn load_module_bodies(&mut self) -> ModuleBuildResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `ModuleBuilder::<'p, T>::load_module_bodies` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `ModuleBuildError` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/modules.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | enum ModuleBuildError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `DirectoryNotFound` is never constructed [INFO] [stdout] --> src/file_system.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum FileSystemError { [INFO] [stdout] | --------------- variant in this enum [INFO] [stdout] 8 | FileNotFound, [INFO] [stdout] 9 | DirectoryNotFound, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FileSystemError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SystemFs` is never constructed [INFO] [stdout] --> src/file_system/concrete/system_fs.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct SystemFs; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/file_system/concrete/system_fs.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl SystemFs { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 9 | fn new() -> FileSystemResult { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Unknown` is never constructed [INFO] [stdout] --> src/front/ast_creator/parser.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum ParseError { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 17 | Unexpected(Token, String), [INFO] [stdout] 18 | Unknown, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `LNull` and `LInt` are never constructed [INFO] [stdout] --> src/front/ast_creator/token_types.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum TokenKind { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 10 | LNull, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 11 | LInt(i32), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/front/ast_creator/token_types.rs:40:18 [INFO] [stdout] | [INFO] [stdout] 40 | InvalidToken(String), [INFO] [stdout] | ------------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `TokenError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 40 - InvalidToken(String), [INFO] [stdout] 40 + InvalidToken(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `MultipleDecimals` and `Unknown` are never constructed [INFO] [stdout] --> src/front/ast_creator/token_types.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub enum TokenError { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 40 | InvalidToken(String), [INFO] [stdout] 41 | MultipleDecimals, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 42 | Unknown, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Unknown` is never constructed [INFO] [stdout] --> src/front/passes/collect_dependencies/visitor.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum DependencyError { [INFO] [stdout] | --------------- variant in this enum [INFO] [stdout] 6 | Unknown, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DependencyError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UndefinedVariable` is never constructed [INFO] [stdout] --> src/front/passes/name_resolution.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum NameResolutionError { [INFO] [stdout] | ------------------- variant in this enum [INFO] [stdout] 12 | UndefinedVariable(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NameResolutionError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/front/passes/visitor.rs:18:16 [INFO] [stdout] | [INFO] [stdout] 18 | Definition(&'a mut Definition), [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 18 - Definition(&'a mut Definition), [INFO] [stdout] 18 + Definition(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/front/passes/visitor.rs:26:15 [INFO] [stdout] | [INFO] [stdout] 26 | Statement(&'a mut Statement), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 26 - Statement(&'a mut Statement), [INFO] [stdout] 26 + Statement(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_ir` is never used [INFO] [stdout] --> src/middle.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn generate_ir( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GlobalDefinitionTable` is never constructed [INFO] [stdout] --> src/middle/global_definition_table.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct GlobalDefinitionTable<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_definition_table`, `get_static_var_definition`, `get_var_definition`, `get_struct_definition`, and `get_fn_definition` are never used [INFO] [stdout] --> src/middle/global_definition_table.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl<'a> GlobalDefinitionTable<'a> { [INFO] [stdout] | ---------------------------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new() -> GlobalDefinitionTable<'a> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn add_definition_table( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn get_static_var_definition(&self, name: &ResolvedName) -> Option<&'a StaticVarDef> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn get_var_definition(&self, name: &ResolvedName) -> Option<&'a StaticVarDef> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn get_struct_definition(&self, name: &ResolvedName) -> Option<&'a StaticVarDef> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn get_fn_definition(&self, name: &ResolvedName) -> Option<&'a StaticVarDef> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IRInstruction` is never used [INFO] [stdout] --> src/middle/types.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum IRInstruction { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IRFunction` is never constructed [INFO] [stdout] --> src/middle/types.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct IRFunction { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IRModule` is never constructed [INFO] [stdout] --> src/middle/types.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct IRModule { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `children` is never read [INFO] [stdout] --> src/modules/types.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct ModuleNode { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | pub children: HashSet, // child modules [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/front/passes/collect_dependencies/visitor.rs:17:51 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(module_id: ModuleId, dependencies: &mut ModuleDependencies) -> DependencyVisitor { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(module_id: ModuleId, dependencies: &mut ModuleDependencies) -> DependencyVisitor<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/modules/cache.rs:16:29 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn new(file_system: &mut T, cache_location: Option) -> BuildCacheLayer { [INFO] [stdout] | ^^^^^^ the lifetime is elided here ^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 16 | pub fn new(file_system: &mut T, cache_location: Option) -> BuildCacheLayer<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.00s [INFO] running `Command { std: "docker" "inspect" "2c8e7557f003ad471f1e2554095e17a452a76b5d7ad3af6fc4011ec6ea57a5d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2c8e7557f003ad471f1e2554095e17a452a76b5d7ad3af6fc4011ec6ea57a5d5", kill_on_drop: false }` [INFO] [stdout] 2c8e7557f003ad471f1e2554095e17a452a76b5d7ad3af6fc4011ec6ea57a5d5