Drop vis in ImplItem.
This commit is contained in:
parent
2827007d32
commit
a6e3124d2c
7 changed files with 16 additions and 36 deletions
|
@ -1439,7 +1439,7 @@ impl<'tcx> LateLintPass<'tcx> for UnreachablePub {
|
|||
|
||||
fn check_impl_item(&mut self, cx: &LateContext<'_>, impl_item: &hir::ImplItem<'_>) {
|
||||
if cx.tcx.visibility(impl_item.def_id).is_public() {
|
||||
self.perform_lint(cx, "item", impl_item.def_id, impl_item.vis.span, false);
|
||||
self.perform_lint(cx, "item", impl_item.def_id, impl_item.vis_span, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue