about summary refs log tree commit diff
path: root/compiler/rustc_feature
AgeCommit message (Collapse)AuthorLines
2020-10-05Add `#![feature(const_fn_impl)]`Dylan MacKenzie-0/+3
2020-10-05Rollup merge of #77439 - varkor:min_const_generics-tests, r=lcnr,estebankDylan DPC-1/+1
Fix missing diagnostic span for `impl Trait` with const generics, and add various tests for `min_const_generics` and `const_generics` Closes https://github.com/rust-lang/rust/issues/61410. Adds `min_const_generics` tests for: - https://github.com/rust-lang/rust/issues/73727 - https://github.com/rust-lang/rust/issues/72293 - https://github.com/rust-lang/rust/issues/67375 - https://github.com/rust-lang/rust/issues/75153 - https://github.com/rust-lang/rust/issues/71922 - https://github.com/rust-lang/rust/issues/69913 - https://github.com/rust-lang/rust/issues/67945 - https://github.com/rust-lang/rust/issues/69239 Adds `const_generics` tests for: - https://github.com/rust-lang/rust/issues/67375 - https://github.com/rust-lang/rust/issues/75153 - https://github.com/rust-lang/rust/issues/71922 - https://github.com/rust-lang/rust/issues/69913 - https://github.com/rust-lang/rust/issues/67945 - https://github.com/rust-lang/rust/issues/69239 (I only added separate `min_const_generics` and `const_generics` tests if they were handled differently by the two features.) We need to figure out how to deduplicate when `const_generics` is stabilised, but we can discuss that later. For now, we should be checking neither feature breaks, so require regression tests for both. I've given them identical names when I've added both, which should make it easier to spot them later. r? @lcnr
2020-10-03Replace "non trivial" with "non-trivial"varkor-1/+1
2020-10-02Implement Make `handle_alloc_error` default to panic (for no_std + liballoc)Harald Hoyer-0/+3
Related: https://github.com/rust-lang/rust/issues/66741 Guarded with `#![feature(default_alloc_error_handler)]` a default `alloc_error_handler` is called, if a custom allocator is used and no other custom `#[alloc_error_handler]` is defined. The panic message does not contain the size anymore, because it would pull in the fmt machinery, which would blow up the code size significantly.
2020-10-02Rollup merge of #76851 - fusion-engineering-forks:fixme-nonzero, r=petrochenkovYuki Okushi-17/+20
Fix 'FIXME' about using NonZeroU32 instead of u32. It was blocked by #58732 (const fn NonZeroU32::new), which is fixed now.
2020-10-01Add note about possible future improvementMara Bos-0/+2
Co-authored-by: David Tolnay <dtolnay@gmail.com>
2020-09-30Add support for cmse_nonsecure_entry attributeHugues de Valon-0/+5
This patch adds support for the LLVM cmse_nonsecure_entry attribute. This is a target-dependent attribute that only has sense for the thumbv8m Rust targets. You can find more information about this attribute here: https://developer.arm.com/documentation/ecm0359818/latest/ Signed-off-by: Hugues de Valon <hugues.devalon@arm.com>
2020-09-27Remove `rustc_allow_const_fn_ptr`Dylan MacKenzie-1/+0
This was a hack to work around the lack of an escape hatch for the "min `const fn`" checks in const-stable functions. Now that we have co-opted `allow_internal_unstable` for this purpose, we no longer need the bespoke attribute.
2020-09-27Add a feature gate for basic function pointer use in `const fn`Dylan MacKenzie-0/+3
2020-09-25Use proper issue for `const_fn_floating_point_arithmetic`Dylan MacKenzie-1/+1
2020-09-25Add `const_fn_floating_point_arithmetic`Dylan MacKenzie-0/+3
2020-09-21Add cfg(target_has_atomic_equal_alignment).Mara Bos-0/+5
This is needed for Atomic::from_mut.
2020-09-20Remove MMX from RustMateusz MikuĊ‚a-1/+0
2020-09-17Fix 'FIXME' about using NonZeroU32 instead of u32.Mara Bos-17/+18
It was blocked by #58732 (const fn NonZeroU32::new), which is fixed now.
2020-09-15Stabilize move_ref_patternAmjad Alsharafi-4/+3
2020-09-14Stabilize doc_alias featureGuillaume Gomez-3/+2
2020-09-10fix tidy, small cleanupBastian Kauschke-1/+1
2020-09-10implement `const_evaluatable_checked` feature MVPBastian Kauschke-1/+5
2020-09-04Implementation of incompatible features errorAmjad Alsharafi-1/+6
If two features are defined as incompatible, using them together would result in an error
2020-09-01driver: replace `lazy_static` by `SyncLazy` from stdmarmeladema-8/+9
2020-09-01feature: replace `lazy_static` by `SyncLazy` from stdmarmeladema-12/+12
2020-08-30mv compiler to compiler/mark-0/+1763