rust/src/tools
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
..
build-manifest Make git commit info optional and per-package in channel manifests 2017-09-05 19:38:28 +02:00
cargo@33250c48b4 rustbuild: Switch back to using hard links 2017-09-09 21:14:44 -07:00
cargotest Run tests for the cargo submodule in tree 2017-04-24 08:08:40 -07:00
clippy@2544458559 Resync clippy to v0.0.156 2017-09-03 14:33:28 -07:00
compiletest compiletest: Change Config comments to doc comments 2017-08-28 13:35:53 +02:00
error_index_generator Build rustdoc on-demand. 2017-07-27 05:51:22 -06:00
linkchecker Merge crate collections into alloc 2017-06-13 23:37:34 -07:00
remote-test-client Add a disabled builder for aarch64 emulated tests 2017-07-24 16:24:52 -07:00
remote-test-server Add remote device testing support 2017-05-04 12:43:22 +02:00
rls@52d48656f9 bump rls 2017-09-16 15:53:02 +00:00
rust-installer@adea17e1b2 rustbuild: Switch back to using hard links 2017-09-09 21:14:44 -07:00
rustbook update mdbook 2017-09-11 11:56:35 -04:00
rustdoc Cargotest needs only one rustdoc.exe to exist on Windows 2017-08-13 05:15:44 +05:00
tidy Disable the new Hasher tests on Emscripten. 2017-09-12 17:28:07 +08:00
unstable-book-gen Sort entries of SUMMARY.md alphabetically 2017-06-18 23:26:39 +02:00