diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-11-07 09:07:10 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-11-17 10:39:18 +1100 |
| commit | dededd2f8b1785f0393c376065be0bdd999475ac (patch) | |
| tree | 0d18d5a4cbcec0afabfddd4e3bf3959e57f69d5d /compiler/rustc_interface/src | |
| parent | a3b4961d5f4ddbb0e86d323ebaeccc391f04d8a7 (diff) | |
| download | rust-dededd2f8b1785f0393c376065be0bdd999475ac.tar.gz rust-dededd2f8b1785f0393c376065be0bdd999475ac.zip | |
Remove `Compiler::register_lints`.
Lint registration now happens early enough that we can run it from `Config`, before `Compiler` is created.
Diffstat (limited to 'compiler/rustc_interface/src')
| -rw-r--r-- | compiler/rustc_interface/src/interface.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/compiler/rustc_interface/src/interface.rs b/compiler/rustc_interface/src/interface.rs index 02a023885b7..d113e038966 100644 --- a/compiler/rustc_interface/src/interface.rs +++ b/compiler/rustc_interface/src/interface.rs @@ -40,7 +40,6 @@ pub type Result<T> = result::Result<T, ErrorGuaranteed>; pub struct Compiler { pub(crate) sess: Lrc<Session>, codegen_backend: Lrc<dyn CodegenBackend>, - pub(crate) register_lints: Option<Box<dyn Fn(&Session, &mut LintStore) + Send + Sync>>, pub(crate) override_queries: Option<fn(&Session, &mut Providers)>, } @@ -51,9 +50,6 @@ impl Compiler { pub fn codegen_backend(&self) -> &Lrc<dyn CodegenBackend> { &self.codegen_backend } - 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, @@ -498,7 +494,6 @@ pub fn run_compiler<R: Send>(config: Config, f: impl FnOnce(&Compiler) -> R + Se let compiler = Compiler { sess: Lrc::new(sess), codegen_backend: Lrc::from(codegen_backend), - register_lints: config.register_lints, override_queries: config.override_queries, }; |
