Skip to content

Commit

Permalink
Eliminate dead code warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jjcnn committed Oct 24, 2023
1 parent 977f13d commit 865746f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hir/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![deny(warnings)]
mod parser;
pub mod parser;

#[macro_use]
extern crate lalrpop_util;
Expand Down
2 changes: 2 additions & 0 deletions hir/src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ pub fn parse_str(source: &str) -> Result<ast::Module, ParseError> {
/// 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<P: AsRef<Path>>(
diagnostics: &DiagnosticsHandler,
codemap: Arc<CodeMap>,
Expand All @@ -86,6 +87,7 @@ pub(crate) fn parse_module_from_file<P: AsRef<Path>>(
/// 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<CodeMap>,
Expand Down

0 comments on commit 865746f

Please sign in to comment.