diff options
| author | Oli Scherer <github333195615777966@oli-obk.de> | 2025-06-21 17:33:55 +0000 |
|---|---|---|
| committer | Oli Scherer <github333195615777966@oli-obk.de> | 2025-06-30 08:04:40 +0000 |
| commit | d37a04d09da8edb0d83ee5de30f2fa8db1758a85 (patch) | |
| tree | 76719e6946867fda5ab94be4222be78c9977cc72 /library/core/src/intrinsics | |
| parent | 672e0bec9edfb174c93edafcfe46a8fa3c05c931 (diff) | |
| download | rust-d37a04d09da8edb0d83ee5de30f2fa8db1758a85.tar.gz rust-d37a04d09da8edb0d83ee5de30f2fa8db1758a85.zip | |
Remove the nullary intrinsic const eval logic and treat them like other intrinsics
Diffstat (limited to 'library/core/src/intrinsics')
| -rw-r--r-- | library/core/src/intrinsics/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/core/src/intrinsics/mod.rs b/library/core/src/intrinsics/mod.rs index 47dd7c7aefd..4250de9fb2b 100644 --- a/library/core/src/intrinsics/mod.rs +++ b/library/core/src/intrinsics/mod.rs @@ -841,7 +841,7 @@ pub const unsafe fn transmute_unchecked<Src, Dst>(src: Src) -> Dst; /// /// Note that, unlike most intrinsics, this can only be called at compile-time /// as backends do not have an implementation for it. The only caller (its -/// stable counterpart), wraps this intrinsic call in a `const` block so that +/// stable counterpart) wraps this intrinsic call in a `const` block so that /// backends only see an evaluated constant. /// /// The stabilized version of this intrinsic is [`mem::needs_drop`](crate::mem::needs_drop). @@ -2657,7 +2657,7 @@ pub const fn align_of<T>() -> usize; /// /// Note that, unlike most intrinsics, this can only be called at compile-time /// as backends do not have an implementation for it. The only caller (its -/// stable counterpart), wraps this intrinsic call in a `const` block so that +/// stable counterpart) wraps this intrinsic call in a `const` block so that /// backends only see an evaluated constant. /// /// The to-be-stabilized version of this intrinsic is [`crate::mem::variant_count`]. @@ -2696,7 +2696,7 @@ pub const unsafe fn align_of_val<T: ?Sized>(ptr: *const T) -> usize; /// /// Note that, unlike most intrinsics, this can only be called at compile-time /// as backends do not have an implementation for it. The only caller (its -/// stable counterpart), wraps this intrinsic call in a `const` block so that +/// stable counterpart) wraps this intrinsic call in a `const` block so that /// backends only see an evaluated constant. /// /// The stabilized version of this intrinsic is [`core::any::type_name`]. @@ -2711,7 +2711,7 @@ pub const fn type_name<T: ?Sized>() -> &'static str; /// /// Note that, unlike most intrinsics, this can only be called at compile-time /// as backends do not have an implementation for it. The only caller (its -/// stable counterpart), wraps this intrinsic call in a `const` block so that +/// stable counterpart) wraps this intrinsic call in a `const` block so that /// backends only see an evaluated constant. /// /// The stabilized version of this intrinsic is [`core::any::TypeId::of`]. |
