From be1e502cef3bb756c388c0b4f8d4bba73458e2b0 Mon Sep 17 00:00:00 2001 From: flip1995 Date: Wed, 7 Oct 2020 15:34:06 +0200 Subject: [PATCH] Add method to get the register_lints function from the compiler --- compiler/rustc_interface/src/interface.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compiler/rustc_interface/src/interface.rs b/compiler/rustc_interface/src/interface.rs index 73a51ad477b..11dd6ec32c0 100644 --- a/compiler/rustc_interface/src/interface.rs +++ b/compiler/rustc_interface/src/interface.rs @@ -56,6 +56,9 @@ impl Compiler { pub fn output_file(&self) -> &Option { &self.output_file } + pub fn register_lints(&self) -> &Option> { + &self.register_lints + } pub fn build_output_filenames( &self, sess: &Session,