about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJacob Pratt <jacob@jhpratt.dev>2025-02-04 05:38:06 -0500
committerGitHub <noreply@github.com>2025-02-04 05:38:06 -0500
commitaf178aa806a2cbd581641e9d090f549372c802bc (patch)
tree19897ea355e6bbacf068dc0ced8006f88b5e9061
parent5178a3630e2a93cace40da112fde6c1695023bb6 (diff)
parentd47cb21188ad1356fa7305ab2b87a7108c86abcd (diff)
downloadrust-af178aa806a2cbd581641e9d090f549372c802bc.tar.gz
rust-af178aa806a2cbd581641e9d090f549372c802bc.zip
Rollup merge of #136518 - Urgau:fn_ptr-public-bound, r=Noratrieb
Add note about `FnPtr` trait being exposed as public bound
-rw-r--r--library/core/src/marker.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/library/core/src/marker.rs b/library/core/src/marker.rs
index 18ada14d101..1a8ef20dd7b 100644
--- a/library/core/src/marker.rs
+++ b/library/core/src/marker.rs
@@ -1077,6 +1077,9 @@ marker_impls! {
 }
 
 /// A common trait implemented by all function pointers.
+//
+// Note that while the trait is internal and unstable it is nevertheless
+// exposed as a public bound of the stable `core::ptr::fn_addr_eq` function.
 #[unstable(
     feature = "fn_ptr_trait",
     issue = "none",