about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2025-01-09 09:05:05 +0100
committerGitHub <noreply@github.com>2025-01-09 09:05:05 +0100
commita9614a5768a55941a9e12ce03a3bf2a764ef830d (patch)
treea67caeb1e919f102be147e31ec0bd782d796ffb8
parent65d7296fc9868af121adb5e07358a3815a80a7a1 (diff)
parent56cba09d1ea05056694cf1b57e9337cb16d1d9d7 (diff)
downloadrust-a9614a5768a55941a9e12ce03a3bf2a764ef830d.tar.gz
rust-a9614a5768a55941a9e12ce03a3bf2a764ef830d.zip
Rollup merge of #135212 - Urgau:unreach_pub-upd-descr, r=petrochenkov
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`
-rw-r--r--compiler/rustc_lint/src/builtin.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/rustc_lint/src/builtin.rs b/compiler/rustc_lint/src/builtin.rs
index e74fb9d92e9..ba4b786aca2 100644
--- a/compiler/rustc_lint/src/builtin.rs
+++ b/compiler/rustc_lint/src/builtin.rs
@@ -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,