Skip to content
/ rust Public
forked from rust-lang/rust

Commit

Permalink
Rollup merge of rust-lang#135212 - Urgau:unreach_pub-upd-descr, r=pet…
Browse files Browse the repository at this point in the history
…rochenkov

Remove outdated information in the `unreachable_pub` lint description

As far as I understand the `unreachable_pub` lint hasn't had false-positives since it started using "effective visibilities". Let's remove that warning from the lint description.

r? ``@petrochenkov``
  • Loading branch information
jhpratt authored Jan 9, 2025
2 parents 65d7296 + 56cba09 commit 1fe894a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions compiler/rustc_lint/src/builtin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1271,9 +1271,8 @@ declare_lint! {
/// `pub(crate)` visibility is recommended to be used instead. This more clearly expresses the
/// intent that the item is only visible within its own crate.
///
/// This lint is "allow" by default because it will trigger for a large
/// amount of existing Rust code, and has some false-positives. Eventually it
/// is desired for this to become warn-by-default.
/// This lint is "allow" by default because it will trigger for a large amount of existing Rust code.
/// Eventually it is desired for this to become warn-by-default.
///
/// [`unnameable_types`]: #unnameable-types
pub UNREACHABLE_PUB,
Expand Down

0 comments on commit 1fe894a

Please sign in to comment.