Skip to content

Commit 8ce925a

Browse files
authored
Rollup merge of rust-lang#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 rust-lang#65193.
2 parents 838ed89 + 402a8af commit 8ce925a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/librustc_driver/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,6 @@ pub fn abort_on_err<T>(result: Result<T, ErrorReported>, sess: &Session) -> T {
106106
pub trait Callbacks {
107107
/// Called before creating the compiler instance
108108
fn config(&mut self, _config: &mut interface::Config) {}
109-
/// Called early during compilation to allow other drivers to easily register lints.
110-
fn extra_lints(&mut self, _ls: &mut lint::LintStore) {}
111109
/// Called after parsing. Return value instructs the compiler whether to
112110
/// continue the compilation afterwards (defaults to `Compilation::Continue`)
113111
fn after_parsing(&mut self, _compiler: &interface::Compiler) -> Compilation {

0 commit comments

Comments
 (0)