rust/src/librustc
Ulrik Sverdrup 2f0c821be9 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.
2019-10-11 10:43:54 +02:00
..
benches Remove licenses 2018-12-25 21:08:33 -07:00
dep_graph self-profiling: Add events for everything except trait selection. 2019-10-09 13:40:44 +02:00
hir Auto merge of #65077 - estebank:mut-trait-expected, r=nikomatsakis 2019-10-10 04:07:02 +00:00
ich syntax: Split ast::Attribute into container and inner parts 2019-09-30 22:36:25 +03:00
infer Auto merge of #64939 - nnethercote:snapshot-cleanups, r=nikomatsakis 2019-10-10 00:19:29 +00:00
lint Warn if include macro fails to include entire file 2019-10-07 19:47:53 -04:00
middle Address review comments. 2019-10-07 12:01:56 +08:00
mir Auto merge of #65089 - nnethercote:optimize-integral-pattern-matching, r=Mark-Simulacrum 2019-10-06 12:50:47 +00:00
query Remove HIR based const qualification 2019-09-30 19:56:49 +01:00
session Auto merge of #59546 - sfanxiang:interminable-ub, r=nagisa 2019-10-10 15:40:39 +00:00
traits Auto merge of #65077 - estebank:mut-trait-expected, r=nikomatsakis 2019-10-10 04:07:02 +00:00
ty Change untagged_unions to not allow union fields with drop 2019-10-11 10:43:54 +02:00
util Remove -Zprofile-queries 2019-10-03 21:34:27 -04:00
arena.rs remove indexed_vec re-export from rustc_data_structures 2019-09-29 16:48:31 +00:00
build.rs Remove licenses 2018-12-25 21:08:33 -07:00
Cargo.toml Change untagged_unions to not allow union fields with drop 2019-10-11 10:43:54 +02:00
error_codes.rs Rollup merge of #65037 - anp:track-caller, r=oli-obk 2019-10-09 05:31:35 +02:00
lib.rs Rollup merge of #65105 - Mark-Simulacrum:split-librustc, r=nikomatsakis 2019-10-05 21:55:00 -07:00
macros.rs Switch over all StableHash impls to new format 2019-09-28 11:47:36 -04:00
README.md rustc-guide has moved 2018-11-26 15:03:13 -06:00
tests.rs librustc: Unconfigure tests during normal build 2019-08-02 01:59:01 +03:00

For more information about how rustc works, see the rustc guide.