@@ -76,8 +76,8 @@ impl<'tcx, T: LateLintPass<'tcx>> LateContextAndPass<'tcx, T> {
7676 self . context . param_env = old_param_env;
7777 }
7878
79- fn process_mod ( & mut self , m : & ' tcx hir:: Mod < ' tcx > , s : Span , n : hir:: HirId ) {
80- lint_callback ! ( self , check_mod, m, s , n) ;
79+ fn process_mod ( & mut self , m : & ' tcx hir:: Mod < ' tcx > , n : hir:: HirId ) {
80+ lint_callback ! ( self , check_mod, m, n) ;
8181 hir_visit:: walk_mod ( self , m, n) ;
8282 }
8383}
@@ -220,9 +220,9 @@ impl<'tcx, T: LateLintPass<'tcx>> hir_visit::Visitor<'tcx> for LateContextAndPas
220220 hir_visit:: walk_inf ( self , inf) ;
221221 }
222222
223- fn visit_mod ( & mut self , m : & ' tcx hir:: Mod < ' tcx > , s : Span , n : hir:: HirId ) {
223+ fn visit_mod ( & mut self , m : & ' tcx hir:: Mod < ' tcx > , _ : Span , n : hir:: HirId ) {
224224 if !self . context . only_module {
225- self . process_mod ( m, s , n) ;
225+ self . process_mod ( m, n) ;
226226 }
227227 }
228228
@@ -358,8 +358,8 @@ fn late_lint_mod_pass<'tcx, T: LateLintPass<'tcx>>(
358358
359359 let mut cx = LateContextAndPass { context, pass } ;
360360
361- let ( module, span , hir_id) = tcx. hir ( ) . get_module ( module_def_id) ;
362- cx. process_mod ( module, span , hir_id) ;
361+ let ( module, _span , hir_id) = tcx. hir ( ) . get_module ( module_def_id) ;
362+ cx. process_mod ( module, hir_id) ;
363363
364364 // Visit the crate attributes
365365 if hir_id == hir:: CRATE_HIR_ID {
0 commit comments