about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUrgau <urgau@numericable.fr>2025-02-03 23:59:43 +0100
committerUrgau <urgau@numericable.fr>2025-02-03 23:59:43 +0100
commitd47cb21188ad1356fa7305ab2b87a7108c86abcd (patch)
tree42fd962cfac2fba35467785a7432927cd4e52412
parentf753850659bdf5788332525f3fe395685929c682 (diff)
downloadrust-d47cb21188ad1356fa7305ab2b87a7108c86abcd.tar.gz
rust-d47cb21188ad1356fa7305ab2b87a7108c86abcd.zip
Add note about `FnPtr` 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 01af964a83e..c99feaca055 100644
--- a/library/core/src/marker.rs
+++ b/library/core/src/marker.rs
@@ -1070,6 +1070,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",