-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Change untagged_unions to not allow union fields with drop #62330
Commits on Oct 11, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 0a08841 - Browse repository at this point
Copy the full SHA 0a08841View commit details -
Configuration menu - View commit details
-
Copy full SHA for 84ca0a1 - Browse repository at this point
Copy the full SHA 84ca0a1View commit details -
Change untagged_unions to not allow union fields with drop
Union fields may now never have a type with attached destructor. This for example allows unions to use arbitrary field types only by wrapping them in ManuallyDrop. The stable rule remains, that union fields must be Copy. We use the new rule for the `untagged_union` feature. See RFC 2514. Note for ui tests: We can't test move out through Box's deref-move since we can't have a Box in a union anymore.
Configuration menu - View commit details
-
Copy full SHA for 2f0c821 - Browse repository at this point
Copy the full SHA 2f0c821View commit details -
Remove unions_with_drop_fields lint
Cases where it would trigger are now hard errors.
Configuration menu - View commit details
-
Copy full SHA for fe13bbd - Browse repository at this point
Copy the full SHA fe13bbdView commit details -
Configuration menu - View commit details
-
Copy full SHA for e247a40 - Browse repository at this point
Copy the full SHA e247a40View commit details -
Update src/librustc_typeck/check/mod.rs
Co-Authored-By: Mazdak Farrokhzad <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 05a644e - Browse repository at this point
Copy the full SHA 05a644eView commit details -
Update src/librustc_typeck/check/mod.rs
Co-Authored-By: Mazdak Farrokhzad <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8c5ae86 - Browse repository at this point
Copy the full SHA 8c5ae86View commit details -
Update src/librustc_typeck/error_codes.rs
Co-Authored-By: Mazdak Farrokhzad <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0301eaf - Browse repository at this point
Copy the full SHA 0301eafView commit details -
Update src/test/run-pass/union/union-nodrop.rs
Co-Authored-By: Mazdak Farrokhzad <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for bf25a9c - Browse repository at this point
Copy the full SHA bf25a9cView commit details -
Configuration menu - View commit details
-
Copy full SHA for fc512d2 - Browse repository at this point
Copy the full SHA fc512d2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 616cf52 - Browse repository at this point
Copy the full SHA 616cf52View commit details -
Configuration menu - View commit details
-
Copy full SHA for 50ec10e - Browse repository at this point
Copy the full SHA 50ec10eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9c1ad0f - Browse repository at this point
Copy the full SHA 9c1ad0fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2fc257c - Browse repository at this point
Copy the full SHA 2fc257cView commit details -
Configuration menu - View commit details
-
Copy full SHA for fb23a5c - Browse repository at this point
Copy the full SHA fb23a5cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7e1a65d - Browse repository at this point
Copy the full SHA 7e1a65dView commit details -
Configuration menu - View commit details
-
Copy full SHA for f5669eb - Browse repository at this point
Copy the full SHA f5669ebView commit details
Commits on Oct 17, 2019
-
Configuration menu - View commit details
-
Copy full SHA for bb5a652 - Browse repository at this point
Copy the full SHA bb5a652View commit details
Commits on Oct 21, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 0653694 - Browse repository at this point
Copy the full SHA 0653694View commit details -
Configuration menu - View commit details
-
Copy full SHA for 875bdd5 - Browse repository at this point
Copy the full SHA 875bdd5View commit details