Rollup merge of #142528 - fee1-dead-contrib:push-rlxklunqkwmv, r=RalfJung

clarify `rustc_do_not_const_check` comment

~~Given that we have used this attribute for other reasons before it seems appropriate to make this a "usually".~~

Add function name as a pointer

cc ```@rust-lang/wg-const-eval```
This commit is contained in:
Jakub Beránek 2025-06-16 14:31:13 +02:00 committed by GitHub
commit cc6711b9f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -486,7 +486,7 @@ pub const INERT_ATTRIBUTES: &[BuiltinAttribute] = &[
rustc_legacy_const_generics, Normal, template!(List: "N"), ErrorFollowing,
INTERNAL_UNSTABLE
),
// Do not const-check this function's body. It will always get replaced during CTFE.
// Do not const-check this function's body. It will always get replaced during CTFE via `hook_special_const_fn`.
rustc_attr!(
rustc_do_not_const_check, Normal, template!(Word), WarnFollowing, INTERNAL_UNSTABLE
),