rust/library/coretests/tests
Matthias Krüger 817720c9a9
Rollup merge of #138799 - joboet:extend-tuple, r=Mark-Simulacrum
core: simplify `Extend` for tuples

This is an alternative to https://github.com/rust-lang/rust/pull/137400. The current macro is incredibly complicated and introduces subtle bugs like calling the `extend_one` of the individual collections in backwards order. This PR drastically simplifies the macro by removing recursion and moving the specialization out of the macro. It also fixes the ordering issue described above (I've stolen the test of the new behaviour from https://github.com/rust-lang/rust/pull/137400). Additionally, the 1-tuple is now special-cased to allow taking advantage of the well-optimized `Extend` implementations of the individual collection.
2025-10-12 10:13:12 +02:00
..
async_iter Put all coretests in a separate crate 2025-01-26 10:26:36 +00:00
ffi Delegate <CStr as Debug> to ByteStr 2025-06-12 12:53:14 -04:00
floats Rollup merge of #146737 - RalfJung:f16-f128-miri, r=tgross35 2025-09-25 20:31:55 +10:00
fmt Auto merge of #145882 - m-ou-se:format-args-extend-1-arg, r=petrochenkov 2025-09-26 04:34:09 +00:00
hash Improve core::hash coverage 2025-09-12 13:54:15 -05:00
io Rollup merge of #142741 - a1phyr:fix_unsoundness, r=Mark-Simulacrum 2025-08-14 11:39:33 +02:00
iter Rollup merge of #138799 - joboet:extend-tuple, r=Mark-Simulacrum 2025-10-12 10:13:12 +02:00
net Recognise new IPv6 non-global range from RFC9602 2025-03-21 17:53:29 +11:00
num Rollup merge of #146487 - ferrocene:pvdrz/improve-num-coverage, r=joboet 2025-09-18 17:20:57 +02:00
ops moved simple test to coretests, introduced more fleshed out doctests for break_ok/continue_ok 2025-04-26 12:57:12 +02:00
panic updated line number in test 2025-08-02 17:34:59 -04:00
alloc.rs Improve core::alloc coverage 2025-09-12 10:49:52 -05:00
any.rs Add opaque TypeId handles for CTFE 2025-07-09 16:37:11 +00:00
array.rs Improve core::array coverage 2025-09-10 17:25:24 -05:00
ascii.rs Improve core::ascii coverage 2025-09-16 10:05:40 -05:00
ascii_char.rs Implement Extend<AsciiChar> for String 2025-02-08 16:51:04 -05:00
asserting.rs Put all coretests in a separate crate 2025-01-26 10:26:36 +00:00
atomic.rs Improve core::sync::atomic coverage 2025-09-16 10:26:52 -05:00
bool.rs Add methods for converting bool to Result<(), E> 2025-06-19 23:20:06 +02:00
bstr.rs Actually run the bstr test 2025-01-26 10:45:09 +00:00
cell.rs make RefCell unstably const 2025-06-25 17:06:49 -07:00
char.rs Improve core::char coverage 2025-09-12 11:22:07 -05:00
clone.rs Put all coretests in a separate crate 2025-01-26 10:26:36 +00:00
cmp.rs Constify Eq, Ord, PartialOrd 2025-09-12 12:39:31 +03:00
const_ptr.rs Put all coretests in a separate crate 2025-01-26 10:26:36 +00:00
convert.rs Clean up some resolved test regressions of const trait removals in std 2025-08-08 00:58:54 +09:00
error.rs Put all coretests in a separate crate 2025-01-26 10:26:36 +00:00
ffi.rs Put all coretests in a separate crate 2025-01-26 10:26:36 +00:00
future.rs Put all coretests in a separate crate 2025-01-26 10:26:36 +00:00
hint.rs Clarify panic-drop test for select_unpredictable 2025-08-30 13:01:32 +02:00
intrinsics.rs Put all coretests in a separate crate 2025-01-26 10:26:36 +00:00
lazy.rs Put all coretests in a separate crate 2025-01-26 10:26:36 +00:00
lib.rs unstably constify float mul_add methods 2025-09-24 15:21:31 -04:00
macros.rs Add regression test for matches! + non_exhaustive_omitted_patterns lint 2025-07-23 14:35:44 +02:00
manually_drop.rs Put all coretests in a separate crate 2025-01-26 10:26:36 +00:00
mem.rs Add core::mem::DropGuard 2025-07-28 12:12:40 +02:00
nonzero.rs Implement feature int_lowest_highest_one for integer and NonZero types 2025-08-18 18:59:44 +09:00
ops.rs Update library/coretests/tests/ops.rs 2025-09-10 16:50:45 -05:00
option.rs Clean up some resolved test regressions of const trait removals in std 2025-08-08 00:58:54 +09:00
panic.rs Put all coretests in a separate crate 2025-01-26 10:26:36 +00:00
pattern.rs Put all coretests in a separate crate 2025-01-26 10:26:36 +00:00
pin.rs Put pin!() tests in the right file. 2025-03-28 10:18:04 +01:00
pin_macro.rs update cfg(bootstrap) 2025-05-12 15:33:37 +02:00
ptr.rs Improve core::ptr coverage 2025-09-12 14:41:26 -05:00
result.rs Constify additional Result functions 2025-08-01 08:55:50 +03:00
simd.rs Put all coretests in a separate crate 2025-01-26 10:26:36 +00:00
slice.rs Consolidate panicking functions in slice/index.rs 2025-08-21 11:07:25 +01:00
str.rs tidy: Fix paths to coretests and alloctests 2025-04-05 12:15:49 -07:00
str_lossy.rs Put all coretests in a separate crate 2025-01-26 10:26:36 +00:00
task.rs Put all coretests in a separate crate 2025-01-26 10:26:36 +00:00
time.rs Add Duration::from_nanos_u128 2025-08-30 01:38:14 +03:00
tuple.rs Remove unnecessary parentheses in assert!s 2025-08-10 21:59:04 +00:00
unicode.rs Put all coretests in a separate crate 2025-01-26 10:26:36 +00:00
waker.rs Put all coretests in a separate crate 2025-01-26 10:26:36 +00:00
wtf8.rs Move WTF-8 code from std to core/alloc 2025-08-20 20:31:33 -04:00