From d47cb21188ad1356fa7305ab2b87a7108c86abcd Mon Sep 17 00:00:00 2001 From: Urgau Date: Mon, 3 Feb 2025 23:59:43 +0100 Subject: [PATCH] Add note about `FnPtr` being exposed as public bound --- library/core/src/marker.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/core/src/marker.rs b/library/core/src/marker.rs index 01af964a83e26..c99feaca055a4 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",