Add method to get the register_lints function from the compiler
This commit is contained in:
parent
238994f3b1
commit
be1e502cef
@ -56,6 +56,9 @@ impl Compiler {
|
|||||||
pub fn output_file(&self) -> &Option<PathBuf> {
|
pub fn output_file(&self) -> &Option<PathBuf> {
|
||||||
&self.output_file
|
&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(
|
pub fn build_output_filenames(
|
||||||
&self,
|
&self,
|
||||||
sess: &Session,
|
sess: &Session,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user