Files
rust/compiler/rustc_mir_transform
Jacob Pratt 30bd758abc Rollup merge of #156176 - carbotaniuman:fn-ptr-trait-impl, r=jackh726
Initial implementation of `FnPtr` trait

This commit is an initial implementation of the `FnPtr` trait as described in the `fn_static` tracking issue, which consists of moving the internally unstable `core::marker::FnPtr` to `core::ops::FnPtr`, as well as changing the API. Because `NonNull` is used in the new `as_ptr` signature, it was also turned into a proper lang item.

Part of `fn_static`: https://github.com/rust-lang/rust/issues/148768
2026-08-18 22:10:45 -04:00
..
2026-06-24 23:18:10 +01:00