diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2022-02-13 10:54:07 +0100 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2022-04-23 09:57:00 +0200 |
| commit | a6e3124d2c68908450dca5214cb2f513d02c222c (patch) | |
| tree | 2520c66ad7747eb4b38962c79139628784a61268 /compiler/rustc_lint/src | |
| parent | 2827007d32eea22940d6467f0fab8fe0677eeeb3 (diff) | |
| download | rust-a6e3124d2c68908450dca5214cb2f513d02c222c.tar.gz rust-a6e3124d2c68908450dca5214cb2f513d02c222c.zip | |
Drop vis in ImplItem.
Diffstat (limited to 'compiler/rustc_lint/src')
| -rw-r--r-- | compiler/rustc_lint/src/builtin.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/builtin.rs b/compiler/rustc_lint/src/builtin.rs index f8488930af2..cde7062e16e 100644 --- a/compiler/rustc_lint/src/builtin.rs +++ b/compiler/rustc_lint/src/builtin.rs @@ -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); } } } |
