Add warn(unreachable_pub) to rustc_lint.

This commit is contained in:
Nicholas Nethercote
2024-08-27 15:24:11 +10:00
parent 6c84c55c9f
commit f10284162f
11 changed files with 269 additions and 268 deletions

View File

@@ -47,7 +47,7 @@ macro_rules! lint_callback { ($cx:expr, $f:ident, $($args:expr),*) => ({
/// Implements the AST traversal for late lint passes. `T` provides the
/// `check_*` methods.
pub struct LateContextAndPass<'tcx, T: LateLintPass<'tcx>> {
struct LateContextAndPass<'tcx, T: LateLintPass<'tcx>> {
context: LateContext<'tcx>,
pass: T,
}