Skip to content

Commit

Permalink
Rollup merge of #91972 - RalfJung:pref-align-of, r=Mark-Simulacrum
Browse files Browse the repository at this point in the history
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.)
  • Loading branch information
matthiaskrgr authored Dec 16, 2021
2 parents e1d1a28 + 58fd2ff commit 311c2d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/core/src/intrinsics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,8 @@ extern "rust-intrinsic" {
/// The preferred alignment of a type.
///
/// This intrinsic does not have a stable counterpart.
#[rustc_const_unstable(feature = "const_pref_align_of", issue = "none")]
/// It's "tracking issue" is [#91971](https://github.com/rust-lang/rust/issues/91971).
#[rustc_const_unstable(feature = "const_pref_align_of", issue = "91971")]
pub fn pref_align_of<T>() -> usize;

/// The size of the referenced value in bytes.
Expand Down

0 comments on commit 311c2d9

Please sign in to comment.