@@ -76,8 +76,8 @@ impl<'tcx, T: LateLintPass<'tcx>> LateContextAndPass<'tcx, T> {
76
76
self . context . param_env = old_param_env;
77
77
}
78
78
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) ;
81
81
hir_visit:: walk_mod ( self , m, n) ;
82
82
}
83
83
}
@@ -220,9 +220,9 @@ impl<'tcx, T: LateLintPass<'tcx>> hir_visit::Visitor<'tcx> for LateContextAndPas
220
220
hir_visit:: walk_inf ( self , inf) ;
221
221
}
222
222
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 ) {
224
224
if !self . context . only_module {
225
- self . process_mod ( m, s , n) ;
225
+ self . process_mod ( m, n) ;
226
226
}
227
227
}
228
228
@@ -358,8 +358,8 @@ fn late_lint_mod_pass<'tcx, T: LateLintPass<'tcx>>(
358
358
359
359
let mut cx = LateContextAndPass { context, pass } ;
360
360
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) ;
363
363
364
364
// Visit the crate attributes
365
365
if hir_id == hir:: CRATE_HIR_ID {
0 commit comments