Add warn(unreachable_pub) to rustc_lint_defs.

This commit is contained in:
Nicholas Nethercote 2024-08-27 15:25:49 +10:00
parent f10284162f
commit e7f1922abd

View File

@ -1,3 +1,7 @@
// tidy-alphabetical-start
#![warn(unreachable_pub)]
// tidy-alphabetical-end
use rustc_ast::node_id::NodeId;
use rustc_ast::{AttrId, Attribute};
use rustc_data_structures::fx::{FxIndexMap, FxIndexSet};