diff --git a/hir/src/lib.rs b/hir/src/lib.rs index 54252214..f6fcfd89 100644 --- a/hir/src/lib.rs +++ b/hir/src/lib.rs @@ -1,5 +1,5 @@ #![deny(warnings)] -mod parser; +pub mod parser; #[macro_use] extern crate lalrpop_util; diff --git a/hir/src/parser/mod.rs b/hir/src/parser/mod.rs index 3560d36e..38fd96f8 100644 --- a/hir/src/parser/mod.rs +++ b/hir/src/parser/mod.rs @@ -67,6 +67,7 @@ pub fn parse_str(source: &str) -> Result { /// Parses a [Module] from the given path. /// /// This is primarily intended for use in the import resolution phase. +#[allow(dead_code)] pub(crate) fn parse_module_from_file>( diagnostics: &DiagnosticsHandler, codemap: Arc, @@ -86,6 +87,7 @@ pub(crate) fn parse_module_from_file>( /// Parses a [Module] from a file already in the codemap /// /// This is primarily intended for use in the import resolution phase. +#[allow(dead_code)] pub(crate) fn parse_module( diagnostics: &DiagnosticsHandler, codemap: Arc,