Skip to content

Commit be1e502

Browse files
committed
Add method to get the register_lints function from the compiler
1 parent 238994f commit be1e502

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/rustc_interface/src/interface.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ impl Compiler {
5656
pub fn output_file(&self) -> &Option<PathBuf> {
5757
&self.output_file
5858
}
59+
pub fn register_lints(&self) -> &Option<Box<dyn Fn(&Session, &mut LintStore) + Send + Sync>> {
60+
&self.register_lints
61+
}
5962
pub fn build_output_filenames(
6063
&self,
6164
sess: &Session,

0 commit comments

Comments
 (0)