Skip to content

Commit e088f73

Browse files
committed
Remove the nullary intrinsic const eval logic and treat them like other intrinsics
1 parent 572cb75 commit e088f73

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/src/intrinsics/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ pub const unsafe fn transmute_unchecked<Src, Dst>(src: Src) -> Dst;
841841
///
842842
/// Note that, unlike most intrinsics, this can only be called at compile-time
843843
/// as backends do not have an implementation for it. The only caller (its
844-
/// stable counterpart), wraps this intrinsic call in a `const` block so that
844+
/// stable counterpart) wraps this intrinsic call in a `const` block so that
845845
/// backends only see an evaluated constant.
846846
///
847847
/// 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;
26572657
///
26582658
/// Note that, unlike most intrinsics, this can only be called at compile-time
26592659
/// as backends do not have an implementation for it. The only caller (its
2660-
/// stable counterpart), wraps this intrinsic call in a `const` block so that
2660+
/// stable counterpart) wraps this intrinsic call in a `const` block so that
26612661
/// backends only see an evaluated constant.
26622662
///
26632663
/// 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;
26962696
///
26972697
/// Note that, unlike most intrinsics, this can only be called at compile-time
26982698
/// as backends do not have an implementation for it. The only caller (its
2699-
/// stable counterpart), wraps this intrinsic call in a `const` block so that
2699+
/// stable counterpart) wraps this intrinsic call in a `const` block so that
27002700
/// backends only see an evaluated constant.
27012701
///
27022702
/// The stabilized version of this intrinsic is [`core::any::type_name`].
@@ -2711,7 +2711,7 @@ pub const fn type_name<T: ?Sized>() -> &'static str;
27112711
///
27122712
/// Note that, unlike most intrinsics, this can only be called at compile-time
27132713
/// as backends do not have an implementation for it. The only caller (its
2714-
/// stable counterpart), wraps this intrinsic call in a `const` block so that
2714+
/// stable counterpart) wraps this intrinsic call in a `const` block so that
27152715
/// backends only see an evaluated constant.
27162716
///
27172717
/// The stabilized version of this intrinsic is [`core::any::TypeId::of`].

0 commit comments

Comments
 (0)