rust/src/test
bors 39e9516532 Auto merge of #51990 - oli-obk:unstable_union, r=nikomatsakis
Place unions, pointer casts and pointer derefs behind extra feature gates

To ensure we don't stabilize these things together with const fn stabilization (or any other stabilization)

This PR moves union field accesses inside `const fn` behind a feature gate. It was possible without a feature gate before, but since `const fn` was behind a feature gate we can do this change.

While "dereferencing raw pointers" and "casting raw pointers to usize" were hard errors before this PR, one could work around them by abusing unions:

```rust
// deref
union Foo<T> {
    x: &'static T,
    y: *const T,
}
const FOO: u32 = unsafe { *Foo { y: 42 as *const T }.x };

// as usize cast
union Bar<T> {
    x: usize,
    y: *const T,
}
const BAR: usize = unsafe { Bar { y: &1u8 }.x };
```

r? @eddyb

cc @nikomatsakis
2018-08-07 13:14:37 +00:00
..
auxiliary
codegen Auto merge of #51007 - AstralSorcerer:master, r=nagisa 2018-08-07 02:12:35 +00:00
codegen-units Revert "Adapt codegen-unit tests to new CGU naming scheme." 2018-07-16 08:58:15 +02:00
compile-fail Add feature gate checks 2018-08-07 14:41:33 +02:00
compile-fail-fulldeps Fix run-pass-fulldeps tests 2018-08-05 15:54:49 +01:00
debuginfo Fix test/debuginfo 2018-08-05 15:54:49 +01:00
incremental rustc: Use link_section, not wasm_custom_section 2018-07-16 09:40:45 -07:00
incremental-fulldeps
mir-opt patch up mir-opt tests 2018-07-26 15:12:04 +03:00
parse-fail Implement 2015 vs 2018 ? kleene op + test 2018-07-23 21:54:43 -05:00
pretty fix expected output of pretty/cast-lt and issue-4264 tests 2018-07-12 01:19:27 +02:00
run-fail Convert unknown_features lint into an error 2018-08-05 15:54:49 +01:00
run-fail-fulldeps
run-make Fix WASM tests 2018-08-05 22:48:49 +01:00
run-make-fulldeps Auto merge of #51007 - AstralSorcerer:master, r=nagisa 2018-08-07 02:12:35 +00:00
run-pass Rollup merge of #53093 - 0e4ef622:issue-52169-fix, r=petrochenkov 2018-08-07 16:55:43 +08:00
run-pass-fulldeps Auto merge of #51007 - AstralSorcerer:master, r=nagisa 2018-08-07 02:12:35 +00:00
run-pass-valgrind Convert unknown_features lint into an error 2018-08-05 15:54:49 +01:00
rustdoc Auto merge of #52644 - varkor:lib-feature-gate-2, r=withoutboats 2018-08-06 16:58:27 +00:00
rustdoc-js Update stdsimd to undo an accidental stabilization 2018-07-20 22:34:09 -07:00
rustdoc-ui Rollup merge of #52835 - GuillaumeGomez:ice-rustdoc-links, r=eddyb 2018-08-01 21:46:27 +02:00
rustfix Removed various update-reference and update-all-references scripts 2018-06-13 18:15:50 -04:00
ui Fix tidy 2018-08-07 14:41:33 +02:00
ui-fulldeps Auto merge of #52841 - petrochenkov:premacro, r=alexcrichton 2018-08-02 21:39:14 +00:00
COMPILER_TESTS.md