rust/compiler/rustc_const_eval/src
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
..
const_eval Refactor: VariantIdx::from_u32(0) -> FIRST_VARIANT 2023-03-25 18:58:25 -07:00
interpret Add a builtin FnPtr trait 2023-03-27 12:16:54 +00:00
transform Move const trait bounds checks to MIR constck 2023-03-28 08:39:55 +00:00
util Allow checking whether a type allows being uninitialized 2023-03-02 18:33:48 +00:00
errors.rs errors: generate typed identifiers in each crate 2023-02-22 09:15:53 +00:00
lib.rs Simplify message paths 2023-03-11 22:51:57 +01:00