Take a LocalDefId in hir::Visitor::visit_fn.
This commit is contained in:
parent
252741673b
commit
3175d03d3b
52 changed files with 235 additions and 211 deletions
|
@ -4,6 +4,7 @@ use rustc_ast as ast;
|
|||
use rustc_hir as hir;
|
||||
use rustc_session::lint::builtin::HardwiredLints;
|
||||
use rustc_session::lint::LintPass;
|
||||
use rustc_span::def_id::LocalDefId;
|
||||
use rustc_span::symbol::Ident;
|
||||
use rustc_span::Span;
|
||||
|
||||
|
@ -36,7 +37,7 @@ macro_rules! late_lint_methods {
|
|||
b: &'tcx hir::FnDecl<'tcx>,
|
||||
c: &'tcx hir::Body<'tcx>,
|
||||
d: Span,
|
||||
e: hir::HirId);
|
||||
e: LocalDefId);
|
||||
fn check_trait_item(a: &'tcx hir::TraitItem<'tcx>);
|
||||
fn check_impl_item(a: &'tcx hir::ImplItem<'tcx>);
|
||||
fn check_impl_item_post(a: &'tcx hir::ImplItem<'tcx>);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue