Add method to get the register_lints function from the compiler

This commit is contained in:
flip1995
2020-10-07 15:34:06 +02:00
committed by flip1995
parent 238994f3b1
commit be1e502cef
@@ -56,6 +56,9 @@ impl Compiler {
pub fn output_file(&self) -> &Option<PathBuf> {
&self.output_file
}
pub fn register_lints(&self) -> &Option<Box<dyn Fn(&Session, &mut LintStore) + Send + Sync>> {
&self.register_lints
}
pub fn build_output_filenames(
&self,
sess: &Session,