rust/src/doc
Mazdak Farrokhzad aba84894d1
Rollup merge of #62330 - SimonSapin:no-drop-in-union-fields, r=RalfJung
Change untagged_unions to not allow union fields with drop

This is a rebase of #56440, massaged to solve merge conflicts and make the test suite pass.

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` (or similar).

The stable rule remains, that union fields must be `Copy`. We use the new rule for the `untagged_union` feature.

Tracking issue: https://github.com/rust-lang/rust/issues/55149
2019-10-21 22:00:45 +02:00
..
book@9bb8b16196 Update cargo, books 2019-10-16 06:43:44 -07:00
edition-guide@e58bc4ca10 Update books 2019-08-07 09:44:12 -07:00
embedded-book@5ca585c4a7 Update cargo, books 2019-09-04 08:35:52 -07:00
man
nomicon@5004ad30d6 Update cargo, books 2019-10-16 06:43:44 -07:00
reference@5b9d2fcefa Update reference 2019-10-06 14:45:02 -07:00
rust-by-example@0b111eaae3 Update cargo, books 2019-10-16 06:43:44 -07:00
rustc Rollup merge of #62330 - SimonSapin:no-drop-in-union-fields, r=RalfJung 2019-10-21 22:00:45 +02:00
rustc-guide@941968db2f update guide 2019-09-08 20:25:09 -05:00
rustdoc added rustdoc book documentation, improved behavior when unstable flag not present 2019-09-03 13:53:00 -07:00
unstable-book Auto merge of #64873 - popzxc:prettify-test-time, r=wesleywiser 2019-10-12 23:47:27 +00:00
complement-design-faq.md
complement-lang-faq.md
complement-project-faq.md
favicon.inc
footer.inc
full-toc.inc
grammar.md Remove legacy grammar 2019-09-30 07:46:10 +02:00
guide-crates.md
guide-error-handling.md
guide-ffi.md
guide-macros.md
guide-ownership.md
guide-plugins.md
guide-pointers.md
guide-strings.md
guide-tasks.md
guide-testing.md
guide-unsafe.md
guide.md
index.md
intro.md
not_found.md
redirect.inc
reference.md
robots.txt
rust.css
rust.md
rustc-ux-guidelines.md Deprecate using rustc_plugin without the rustc_driver dylib. 2019-08-20 00:21:32 +02:00
rustdoc.md
tutorial.md
version_info.html.template