rust/library/core/src
Matthias Krüger ba990ae8af
Rollup merge of #128150 - BoxyUwU:std_only_sized_const_params, r=workingjubilee
Stop using `unsized_const_parameters` in core/std

`feature(unsized_const_parameters)` is an incomplete feature and should not be used by core/std as it makes it can make it significantly harder to evolve the feature. It also just generally opens the possibility of introducing bugs on stable through std's backdoor.

The only usage of this feature in std is the `simd_shuffle_intrinsic` added in #119213. It doesn't seem to be used anywhere as far as I can tell so it is removed in this PR. All tests and codegen logic etc have been kept however.

r? `@workingjubilee`
2024-07-26 00:57:22 +02:00
..
alloc size_of_val_raw: for length 0 this is safe to call 2024-07-10 18:01:06 +02:00
array Replace MaybeUninit::uninit_array() with array repeat expression. 2024-06-24 10:23:50 -07:00
ascii implement Default for AsciiChar 2024-02-13 12:04:44 +01:00
async_iter Hide async_gen_internals from standard library documentation 2024-04-05 18:54:38 -07:00
cell Rename lazy_cell_consume to lazy_cell_into_inner 2024-07-11 03:16:45 -04:00
char Use #[rustfmt::skip] on some use groups to prevent reordering. 2024-07-19 13:26:48 +10:00
cmp Use generic NonZero everywhere in core. 2024-02-22 15:17:33 +01:00
convert Re-add From<f16> for f64 2024-05-04 22:56:35 +01:00
ffi CStr: derive PartialEq, Eq; add test for Ord 2024-07-25 14:18:40 +03:00
fmt Avoid ref when using format! for perf 2024-07-19 12:23:49 -04:00
future Add tracking issue to async_drop API 2024-06-17 17:20:13 +03:00
hash Optimize SipHash by reordering compress instructions 2024-07-01 22:36:40 +00:00
intrinsics Stop using unsized_const_parameters in core/std 2024-07-25 19:47:21 +01:00
io Remove bound checks from BorrowedBuf and BorrowedCursor methods 2024-04-15 10:29:43 +02:00
iter doc: Suggest str::repeat over iter::repeat().take().collect() 2024-07-14 00:51:08 +00:00
macros Rollup merge of #126096 - c410-f3r:tests-tests-tests, r=jhpratt 2024-06-06 14:46:25 -07:00
mem Rollup merge of #126152 - RalfJung:size_of_val_raw, r=saethlin 2024-07-24 18:00:35 +02:00
net Update ip_addr.rs 2024-06-30 14:54:05 -04:00
num Rollup merge of #126042 - davidzeng0:master, r=Amanieu 2024-07-24 22:22:15 +02:00
ops Gate AsyncFn* under async_closure feature 2024-07-23 19:56:06 -04:00
panic Stabilize PanicInfo::message() and PanicMessage 2024-06-20 14:06:33 +03:00
prelude Avoid comments that describe multiple use items. 2024-07-17 08:02:46 +10:00
ptr ptr::metadata: update comment on vtable_ptr work-around 2024-07-17 13:56:25 +02:00
range add new_range_api for RFC 3550 2024-07-05 16:33:58 -06:00
slice Rollup merge of #126770 - wr7:master, r=Amanieu 2024-07-24 05:05:31 +02:00
str Rollup merge of #127481 - a1phyr:pattern_gat, r=Amanieu 2024-07-24 05:05:32 +02:00
sync Stabilize atomic_bool_fetch_not 2024-07-01 14:14:22 +02:00
task Rollup merge of #128046 - GrigorenkoPV:90435, r=tgross35 2024-07-24 22:22:17 +02:00
unicode Use #[rustfmt::skip] on some use groups to prevent reordering. 2024-07-19 13:26:48 +10:00
any.rs Print TypeId as hex for debugging 2024-06-30 13:36:44 -04:00
arch.rs Rust is a proper name: rust → Rust 2024-03-07 07:49:22 +01:00
ascii.rs Improve escape methods. 2024-05-09 17:04:30 +02:00
asserting.rs [RFC 2011] Library code 2022-05-22 07:18:32 -03:00
bool.rs core is now compilable 2023-04-16 07:20:26 +00:00
borrow.rs Suggest borrowing on fn argument that is impl AsRef 2024-05-09 23:25:31 +00:00
cell.rs replace version placeholder 2024-06-11 16:52:02 +02:00
clone.rs chore: remove duplicate words 2024-07-02 11:25:31 +08:00
cmp.rs Remove feature(effects) from the standard library 2024-06-21 09:23:24 +00:00
default.rs Improve dead code analysis 2024-07-04 22:05:00 +08:00
error.md Mention core's PanicInfo in error.md. 2024-06-11 15:47:00 +02:00
error.rs Fix some #[cfg_attr(not(doc), repr(..))] 2024-07-22 01:10:06 +03:00
escape.rs Remove feature(effects) from the standard library 2024-06-21 09:23:24 +00:00
hint.rs chore: remove repeat words 2024-07-04 14:56:08 +08:00
internal_macros.rs Revert "Rollup merge of #125362 - joboet:tait_hack, r=Nilstrieb" 2024-06-12 08:47:49 +00:00
intrinsics.rs Document safety of a few intrinsics 2024-07-04 14:04:11 -07:00
lib.miri.rs add 'x.py miri', and make it work for 'library/{core,alloc,std}' 2024-04-03 20:27:20 +02:00
lib.rs Stop using unsized_const_parameters in core/std 2024-07-25 19:47:21 +01:00
marker.rs Stop using unsized_const_parameters in core/std 2024-07-25 19:47:21 +01:00
option.rs Start using #[diagnostic::do_not_recommend] in the standard library 2024-07-22 07:29:59 +02:00
panic.rs Stabilize PanicInfo::message() and PanicMessage 2024-06-20 14:06:33 +03:00
panicking.rs Rename std::panic::PanicInfo to PanicHookInfo. 2024-06-11 15:47:00 +02:00
pat.rs Add pattern types to parser 2024-04-08 11:57:17 +00:00
pin.rs Fix typo in docs for std::pin 2024-06-07 12:18:43 -07:00
primitive.rs library/core/src/primitive.rs: small doc fix 2024-07-23 23:11:26 +03:00
primitive_docs.rs Rollup merge of #125043 - RalfJung:ref-type-safety-invariant, r=scottmcm 2024-05-22 23:41:11 +02:00
range.rs add new_range_api for RFC 3550 2024-07-05 16:33:58 -06:00
result.rs Start using #[diagnostic::do_not_recommend] in the standard library 2024-07-22 07:29:59 +02:00
time.rs Stabilize duration_abs_diff 2024-06-29 21:03:12 +02:00
tuple.rs Split part of adt_const_params into unsized_const_params 2024-07-17 11:01:29 +01:00
ub_checks.rs export assert_unsafe_precondition macro for std-internal use 2024-04-22 19:02:37 +02:00
unit.rs Import the 2021 prelude in the core crate 2024-03-25 13:12:06 -07:00