Skip to content

Commit a96c5bc

Browse files
authored
Rollup merge of #91972 - RalfJung:pref-align-of, r=Mark-Simulacrum
link to pref_align_of tracking issue If we are not going to remove this intrinsic (#90877), I think we should at least have a place to centralize discussion around it, so here we go. Intrinsics don't have their own separate features and usually we instead use the public method for tracking it, but this one does not have such a method... so the tracking issue is just a regular link. (And then we sue it for the const part as well.)
2 parents 5a4c1c7 + 58fd2ff commit a96c5bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/core/src/intrinsics.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,8 @@ extern "rust-intrinsic" {
811811
/// The preferred alignment of a type.
812812
///
813813
/// This intrinsic does not have a stable counterpart.
814-
#[rustc_const_unstable(feature = "const_pref_align_of", issue = "none")]
814+
/// It's "tracking issue" is [#91971](https://github.com/rust-lang/rust/issues/91971).
815+
#[rustc_const_unstable(feature = "const_pref_align_of", issue = "91971")]
815816
pub fn pref_align_of<T>() -> usize;
816817

817818
/// The size of the referenced value in bytes.

0 commit comments

Comments
 (0)