Open
Description
This is a tracking issue for the unstable rustc flag -Zrandomize-layout
. (rust-lang/compiler-team#457)
About tracking issues
Tracking issues are used to record the overall progress of implementation. They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions. A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature. Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Steps
- Implementation
- Adjust documentation (see instructions on rustc-dev-guide)
- Stabilization PR (see instructions on rustc-dev-guide)
Unresolved Questions
Implementation history
- Feature request: Add
-Zrandomize-layout
flag to better detect code that rely on unspecified behavior related to memory layout #77316 - MCP: Add the
-Z randomize-layout
flag compiler-team#457 - Added -Z randomize-layout flag #87868
- Add user seed to
-Z randomize-layout
#91932 - Added randomized field padding to
-Z randomize-layout
#97861 - enable -Zrandomize-layout in debug CI builds #101339
-Zrandomize-layout
harder.Foo<T> != Foo<U>
#133088
Metadata
Metadata
Assignees
Labels
Unstable option: Randomize the layout of types.Area: Command-line interface (CLI) to the compilerArea: Memory layout of typesCategory: An issue tracking the progress of sth. like the implementation of an RFCStatus: The implementation is incomplete.Status: Needs documentation.Status: It's hard to tell what's been done and what hasn't! Someone should do some investigation.Relevant to the compiler team, which will review and decide on the PR/issue.