about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-10-27 16:46:55 +0100
committerGitHub <noreply@github.com>2019-10-27 16:46:55 +0100
commit0982060a69e7a3faaa705d0e64bf651872b2f640 (patch)
tree1cae0a5f5a448cb0f1546fac95ca4c518b311224
parent5406f7ad49a08095724db5f3f3c4a92a760ce01b (diff)
parent402a8af1d59a573ebd40cd953a779013969ec313 (diff)
downloadrust-0982060a69e7a3faaa705d0e64bf651872b2f640.tar.gz
rust-0982060a69e7a3faaa705d0e64bf651872b2f640.zip
Rollup merge of #65834 - Mark-Simulacrum:driver-clean, r=nikomatsakis
Remove lint callback from driver

This is leftover from a restructuring of lint registration for drivers; it should now happen via the register_lints field on Config rather than this function.

This is not used by anyone to my knowledge (including the compiler itself); it was introduced in an abandoned refactor in #65193.
-rw-r--r--src/librustc_driver/lib.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/librustc_driver/lib.rs b/src/librustc_driver/lib.rs
index 15adf7e4add..6e8bc11162f 100644
--- a/src/librustc_driver/lib.rs
+++ b/src/librustc_driver/lib.rs
@@ -106,8 +106,6 @@ pub fn abort_on_err<T>(result: Result<T, ErrorReported>, sess: &Session) -> T {
 pub trait Callbacks {
     /// Called before creating the compiler instance
     fn config(&mut self, _config: &mut interface::Config) {}
-    /// Called early during compilation to allow other drivers to easily register lints.
-    fn extra_lints(&mut self, _ls: &mut lint::LintStore) {}
     /// Called after parsing. Return value instructs the compiler whether to
     /// continue the compilation afterwards (defaults to `Compilation::Continue`)
     fn after_parsing(&mut self, _compiler: &interface::Compiler) -> Compilation {