rustc_hir: Relax lifetime requirements on Visitor::visit_path
This commit is contained in:
parent
9c0bc3028a
commit
6cd4dd3091
16 changed files with 19 additions and 19 deletions
|
@ -117,7 +117,7 @@ impl<'tcx> LateLintPass<'tcx> for TyTyKind {
|
|||
fn check_path(
|
||||
&mut self,
|
||||
cx: &LateContext<'tcx>,
|
||||
path: &'tcx rustc_hir::Path<'tcx>,
|
||||
path: &rustc_hir::Path<'tcx>,
|
||||
_: rustc_hir::HirId,
|
||||
) {
|
||||
if let Some(segment) = path.segments.iter().nth_back(1)
|
||||
|
|
|
@ -292,7 +292,7 @@ impl<'tcx, T: LateLintPass<'tcx>> hir_visit::Visitor<'tcx> for LateContextAndPas
|
|||
hir_visit::walk_lifetime(self, lt);
|
||||
}
|
||||
|
||||
fn visit_path(&mut self, p: &'tcx hir::Path<'tcx>, id: hir::HirId) {
|
||||
fn visit_path(&mut self, p: &hir::Path<'tcx>, id: hir::HirId) {
|
||||
lint_callback!(self, check_path, p, id);
|
||||
hir_visit::walk_path(self, p);
|
||||
}
|
||||
|
|
|
@ -44,7 +44,7 @@ macro_rules! late_lint_methods {
|
|||
fn check_struct_def(a: &$hir hir::VariantData<$hir>);
|
||||
fn check_field_def(a: &$hir hir::FieldDef<$hir>);
|
||||
fn check_variant(a: &$hir hir::Variant<$hir>);
|
||||
fn check_path(a: &$hir hir::Path<$hir>, b: hir::HirId);
|
||||
fn check_path(a: &hir::Path<$hir>, b: hir::HirId);
|
||||
fn check_attribute(a: &$hir ast::Attribute);
|
||||
|
||||
/// Called when entering a syntax node that can have lint attributes such
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue