Closed
Description
This is a tracking issue for the RFC "Add align_offset
intrinsic and [T]::align_to
function " (rust-lang/rfcs#2043). align_to
is stable, so this tracks just align_offset
now.
Steps:
- Implement the RFC (align_offset: Add align_offset intrinsic #43903; align_to: Implement [T]::align_to #50319)
- Adjust documentation (see instructions on forge)
- Stabilization PR (see instructions on forge):
align_to
: stabilize slice_align_to #53754
Unresolved questions:
- "produce a lint in case
sizeof<T>() % sizeof<U>() != 0
and in case the expansion is not part of a monomorphisation, since in that casealign_to
is statically known to never be effective
Metadata
Metadata
Assignees
Labels
Blocker: Approved by a merged RFC but not yet implemented.Category: An issue tracking the progress of sth. like the implementation of an RFCRelevant to the library API team, which will review and decide on the PR/issue.This issue / PR is in PFCP or FCP with a disposition to merge it.The final comment period is finished for this PR / Issue.