rust/library/core/src
Matthias Krüger 32062b4b8e
Rollup merge of #131384 - saethlin:precondition-tests, r=ibraheemdev
Update precondition tests (especially for zero-size access to null)

I don't much like the current way I've updated the precondition check helpers, but I couldn't come up with anything better. Ideas welcome.

I've organized `tests/ui/precondition-checks` mostly with one file per function that has `assert_unsafe_precondition` in it, with revisions that check each precondition. The important new test is `tests/ui/precondition-checks/zero-size-null.rs`.
2024-10-14 17:06:36 +02:00
..
alloc Fixing rustDoc for LayoutError. 2024-10-10 16:18:56 -04:00
array Stabilize const_option 2024-10-12 17:07:13 -04:00
ascii Add more precondition check tests 2024-10-09 19:34:27 -04:00
async_iter Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
cell stabilize const_cell_into_inner 2024-09-28 11:29:02 +02:00
char Stabilise 'const_char_encode_utf8'; 2024-10-10 16:33:27 +02:00
clone CloneToUninit: use a private specialization trait 2024-07-29 20:44:43 +03:00
cmp Use generic NonZero everywhere in core. 2024-02-22 15:17:33 +01:00
convert Fix doc nits 2024-07-26 13:26:33 +01:00
ffi Use &raw in the standard library 2024-09-25 17:03:20 -07:00
fmt Rollup merge of #131109 - tgross35:stabilize-debug_more_non_exhaustive, r=joboet 2024-10-11 16:53:47 -05:00
future Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
hash Reformat use declarations. 2024-07-29 08:26:52 +10:00
intrinsics grammar fix 2024-10-06 20:37:10 +03:00
io Fix doc nits 2024-07-26 13:26:33 +01:00
iter Rollup merge of #130827 - fmease:library-mv-obj-save-dyn-compat, r=ibraheemdev 2024-10-09 23:03:47 +02:00
macros [cfg_match] Generalize inputs 2024-09-13 15:00:33 -03:00
mem Rollup merge of #131274 - workingjubilee:stabilize-the-one-that-got-away, r=scottmcm 2024-10-14 06:04:27 +02:00
net Rollup merge of #131616 - RalfJung:const_ip, r=tgross35 2024-10-14 06:04:29 +02:00
num move f16/f128 const fn under f16/f128 feature gate 2024-10-05 10:13:18 +02:00
ops Rollup merge of #130827 - fmease:library-mv-obj-save-dyn-compat, r=ibraheemdev 2024-10-09 23:03:47 +02:00
panic Rename doctest attribute standalone-crate into standalone_crate for coherency 2024-09-29 13:01:41 +02:00
prelude Avoid comments that describe multiple use items. 2024-07-17 08:02:46 +10:00
ptr Rollup merge of #131384 - saethlin:precondition-tests, r=ibraheemdev 2024-10-14 17:06:36 +02:00
range Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
slice Rollup merge of #131384 - saethlin:precondition-tests, r=ibraheemdev 2024-10-14 17:06:36 +02:00
str library: Stabilize const_str_as_mut 2024-10-02 14:09:19 -07:00
sync Rollup merge of #130972 - RalfJung:const_cell_into_inner, r=dtolnay 2024-09-29 20:17:36 +02:00
task Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
unicode switch unicode-data back to 'static' 2024-10-13 11:53:06 +02:00
any.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
arch.rs add a bootstrap variant of naked_asm 2024-09-26 09:54:00 +02:00
ascii.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
asserting.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
bool.rs [Clippy] Swap filter_map_bool_then to use diagnostic item instead of path 2024-09-19 13:13:42 +01:00
borrow.rs Suggest borrowing on fn argument that is impl AsRef 2024-05-09 23:25:31 +00:00
cell.rs Rollup merge of #130827 - fmease:library-mv-obj-save-dyn-compat, r=ibraheemdev 2024-10-09 23:03:47 +02:00
clone.rs update cfgs 2024-09-05 17:24:01 +01:00
cmp.rs Remove duplicate section 2024-09-29 09:32:03 +02:00
default.rs update cfgs 2024-09-05 17:24:01 +01:00
error.md Mention core's PanicInfo in error.md. 2024-06-11 15:47:00 +02:00
error.rs Library: Rename "object safe" to "dyn compatible" 2024-10-09 18:48:29 +02:00
escape.rs Optimize escape_ascii 2024-10-09 17:17:50 -04:00
hint.rs add extra linebreaks so rustdoc can identify the first sentence 2024-09-01 14:22:50 -07:00
internal_macros.rs Fix doc nits 2024-07-26 13:26:33 +01:00
intrinsics.rs Rollup merge of #131384 - saethlin:precondition-tests, r=ibraheemdev 2024-10-14 17:06:36 +02: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 Rollup merge of #131616 - RalfJung:const_ip, r=tgross35 2024-10-14 06:04:29 +02:00
marker.rs Library: Rename "object safe" to "dyn compatible" 2024-10-09 18:48:29 +02:00
option.rs Stabilize const_option 2024-10-12 17:07:13 -04:00
panic.rs simplify abort_unwind 2024-09-15 14:27:24 -04:00
panicking.rs Auto merge of #129491 - StackOverflowExcept1on:master, r=m-ou-se 2024-09-18 11:57:31 +00:00
pat.rs Add tracking issue to core-pattern-type 2024-08-07 20:43:05 -04:00
pin.rs Stabilize Pin::as_deref_mut 2024-10-08 15:00:15 -05:00
primitive.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
primitive_docs.rs Add docs about slicing slices at the ends 2024-10-08 00:23:53 +02:00
random.rs random: add tracking issue, address other comments 2024-09-23 10:36:16 +02:00
range.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
result.rs stabilize const_result 2024-10-11 18:34:28 +02:00
time.rs Stabilize const_option 2024-10-12 17:07:13 -04:00
tuple.rs update cfgs 2024-09-05 17:24:01 +01:00
ub_checks.rs Clean up is_aligned_and_not_null 2024-10-09 19:34:27 -04:00
unit.rs Import the 2021 prelude in the core crate 2024-03-25 13:12:06 -07:00