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
No known key found for this signature in database
GPG Key ID: 1CA0DF2AF59D68A5

View File

@ -56,6 +56,9 @@ pub fn output_dir(&self) -> &Option<PathBuf> {
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,