rust/src/test
bors ae8efdc87d Auto merge of #43017 - durka:stabilize-const-invocation, r=eddyb
Individualize feature gates for const fn invocation

This PR changes the meaning of `#![feature(const_fn)]` so it is only required to declare a const fn but not to call one. Based on discussion at #24111. I was hoping we could have an FCP here in order to move that conversation forward.

This sets the stage for future stabilization of the constness of several functions in the standard library (listed below), so could someone please tag the lang team for review.

- `std::cell`
    - `Cell::new`
    - `RefCell::new`
    - `UnsafeCell::new`
- `std::mem`
    - `size_of`
    - `align_of`
- `std::ptr`
    - `null`
    - `null_mut`
- `std::sync`
    - `atomic`
        - `Atomic{Bool,Ptr,Isize,Usize}::new`
    - `once`
        - `Once::new`
- primitives
    - `{integer}::min_value`
    - `{integer}::max_value`

Some other functions are const but they are also unstable or hidden, e.g. `Unique::new` so they don't have to be considered at this time.

After this stabilization, the following `*_INIT` constants in the standard library can be deprecated. I wasn't sure whether to include those deprecations in the current PR.

- `std::sync`
    - `atomic`
        - `ATOMIC_{BOOL,ISIZE,USIZE}_INIT`
    - `once`
        - `ONCE_INIT`
2017-09-16 17:02:17 +00:00
..
codegen add test for not optimized pow with constant power 2017-09-02 19:10:00 +03:00
codegen-units Adapt cgu-partitioning tests to pre-trans symbol internalization. 2017-07-13 13:29:25 +02:00
compile-fail change #![feature(const_fn)] to specific gates 2017-09-16 15:53:02 +00:00
compile-fail-fulldeps change #![feature(const_fn)] to specific gates 2017-09-16 15:53:02 +00:00
debuginfo change #![feature(const_fn)] to specific gates 2017-09-16 15:53:02 +00:00
incremental Ignore failing tests harder 2017-09-05 07:37:28 -07:00
mir-opt Test case illustrating some destruction code extent stuff. 2017-09-13 12:55:03 +02:00
parse-fail Auto merge of #43716 - MaloJaffre:_-in-literals, r=petrochenkov 2017-09-12 01:25:23 +00:00
pretty Use rvalue promotion to 'static instead of static items. 2017-09-10 11:20:27 +03:00
run-fail Relaxed error pattern, and add test for SystemTime as well. 2017-09-10 12:35:47 +08:00
run-fail-fulldeps Implement a file-path remapping feature in support of debuginfo and reproducible builds. 2017-04-26 15:44:02 +02:00
run-make rustc: Remove Session::dep_graph 2017-09-14 10:40:50 -07:00
run-pass Auto merge of #43017 - durka:stabilize-const-invocation, r=eddyb 2017-09-16 17:02:17 +00:00
run-pass-fulldeps Remove the cstore reference from Session in order to prepare encapsulating CrateStore access in tcx. 2017-09-12 07:19:06 -07:00
run-pass-valgrind change #![feature(const_fn)] to specific gates 2017-09-16 15:53:02 +00:00
rustdoc Fix rendering of const keyword for functions 2017-09-12 21:55:24 +02:00
ui Auto merge of #43017 - durka:stabilize-const-invocation, r=eddyb 2017-09-16 17:02:17 +00:00
ui-fulldeps Initial diagnostic API for proc-macros. 2017-08-28 02:58:22 -07:00
COMPILER_TESTS.md Merge ui/README.md into COMPILER_TESTS.md and describe how custom UI normalization works. 2017-07-11 16:57:53 +08:00