rust/library/core/src/ptr
bors bf57e8ada6 Auto merge of #108080 - oli-obk:FnPtr-trait, r=lcnr
Add a builtin `FnPtr` trait that is implemented for all function pointers

r? `@ghost`

Rebased version of https://github.com/rust-lang/rust/pull/99531 (plus adjustments mentioned in the PR).

If perf is happy with this version, I would like to land it, even if the diagnostics fix in 9df8e1befb5031a5bf9d8dfe25170620642d3c59 only works for `FnPtr` specifically, and does not generally improve blanket impls.
2023-03-28 12:50:01 +00:00
..
alignment.rs Match unmatched backticks in library/ 2023-03-03 03:03:29 +01:00
const_ptr.rs Fix docs for ptr method with_metadata_of() 2023-03-10 02:14:09 +00:00
metadata.rs Update bootstrap cfg 2022-12-28 09:18:43 -05:00
mod.rs Use the FnPtr trait to avoid implementing common traits via macros 2023-03-27 12:19:52 +00:00
mut_ptr.rs Fix docs for ptr method with_metadata_of() 2023-03-10 02:14:09 +00:00
non_null.rs Rollup merge of #97506 - JohnTitor:stabilize-nonnull-slice-from-raw-parts, r=m-ou-se,the8472 2023-03-27 08:46:50 +02:00
unique.rs Implement core::ptr::Unique on top of NonNull 2022-04-14 19:35:40 +02:00