Add method to get the register_lints function from the compiler
This commit is contained in:
parent
238994f3b1
commit
be1e502cef
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user