-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prototype: Add unstable -Z reference-niches
option
#113166
Merged
Merged
Commits on Jul 21, 2023
-
Configuration menu - View commit details
-
Copy full SHA for cb8b1d1 - Browse repository at this point
Copy the full SHA cb8b1d1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 30ae640 - Browse repository at this point
Copy the full SHA 30ae640View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8b847ef - Browse repository at this point
Copy the full SHA 8b847efView commit details -
restrict the valid range of references if
-Z reference-niches
is setNote that this doesn't actually work at all, as many places in rustc assume that references only have the null niche.
Configuration menu - View commit details
-
Copy full SHA for 3c05276 - Browse repository at this point
Copy the full SHA 3c05276View commit details -
Configuration menu - View commit details
-
Copy full SHA for 76c49ae - Browse repository at this point
Copy the full SHA 76c49aeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4fb039e - Browse repository at this point
Copy the full SHA 4fb039eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 403f34b - Browse repository at this point
Copy the full SHA 403f34bView commit details -
Configuration menu - View commit details
-
Copy full SHA for c30fbb9 - Browse repository at this point
Copy the full SHA c30fbb9View commit details -
Track ABI info. in
NaiveLayout
, and use it forPointerLike
checksTHis significantly complicates `NaiveLayout` logic, but is necessary to ensure that bounds like `NonNull<T>: PointerLike` hold in generic contexts. Also implement exact layout computation for structs.
Configuration menu - View commit details
-
Copy full SHA for feb20f2 - Browse repository at this point
Copy the full SHA feb20f2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e28729 - Browse repository at this point
Copy the full SHA 8e28729View commit details -
Configuration menu - View commit details
-
Copy full SHA for bf2f8ff - Browse repository at this point
Copy the full SHA bf2f8ffView commit details -
Configuration menu - View commit details
-
Copy full SHA for 39cfe70 - Browse repository at this point
Copy the full SHA 39cfe70View commit details -
Track (partial) niche information in
NaiveLayout
Still more complexity, but this allows computing exact `NaiveLayout`s for null-optimized enums, and thus allows calls like `transmute::<Option<&T>, &U>()` to work in generic contexts.
Configuration menu - View commit details
-
Copy full SHA for 7f10908 - Browse repository at this point
Copy the full SHA 7f10908View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.