-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Open
Labels
-Zrandomize-layoutUnstable option: Randomize the layout of types.Unstable option: Randomize the layout of types.A-CLIArea: Command-line interface (CLI) to the compilerArea: Command-line interface (CLI) to the compilerA-layoutArea: Memory layout of typesArea: Memory layout of typesC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCS-tracking-impl-incompleteStatus: The implementation is incomplete.Status: The implementation is incomplete.S-tracking-needs-documentationStatus: Needs documentation.Status: Needs documentation.S-tracking-needs-summaryStatus: It's hard to tell what's been done and what hasn't! Someone should do some investigation.Status: It's hard to tell what's been done and what hasn't! Someone should do some investigation.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
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- Enable a weaker form of -Zrandomize-layout when using debug-assertions #139719
lukas-code, saethlin, elichai and tillulen
Metadata
Metadata
Assignees
Labels
-Zrandomize-layoutUnstable option: Randomize the layout of types.Unstable option: Randomize the layout of types.A-CLIArea: Command-line interface (CLI) to the compilerArea: Command-line interface (CLI) to the compilerA-layoutArea: Memory layout of typesArea: Memory layout of typesC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCS-tracking-impl-incompleteStatus: The implementation is incomplete.Status: The implementation is incomplete.S-tracking-needs-documentationStatus: Needs documentation.Status: Needs documentation.S-tracking-needs-summaryStatus: It's hard to tell what's been done and what hasn't! Someone should do some investigation.Status: It's hard to tell what's been done and what hasn't! Someone should do some investigation.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.