Add const_eval_select intrinsic

This commit is contained in:
Deadbeef 2021-10-12 05:06:37 +00:00
parent 0c87288f92
commit 5387b6542f
No known key found for this signature in database
GPG key ID: 027DF9338862ADDD
20 changed files with 334 additions and 38 deletions

View file

@ -467,6 +467,8 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
rustc_attr!(rustc_promotable, Normal, template!(Word), IMPL_DETAIL),
rustc_attr!(rustc_legacy_const_generics, Normal, template!(List: "N"), INTERNAL_UNSTABLE),
// Do not const-check this function's body. It will always get replaced during CTFE.
rustc_attr!(rustc_do_not_const_check, Normal, template!(Word), INTERNAL_UNSTABLE),
// ==========================================================================
// Internal attributes, Layout related: