Guillaume Lessard
b61089961a
[test] remove functions deferred from SE-0525
2026-05-12 15:24:13 -07:00
Guillaume Lessard
cb85c226c0
[StdlibUnittest] rename .requireCapability to .require
2026-05-07 15:30:25 -07:00
Guillaume Lessard
a2c9886d62
[test] replace wasi-based skips with feature-based requirements
2026-05-07 13:20:40 -07:00
Guillaume Lessard
5aed20039d
[stdlib] rename append(elementCount:…)
...
Argument label `elementCount` becomes `upTo`.
2026-05-02 05:48:12 -07:00
Guillaume Lessard
b030553b89
[test] fix two tests for wasi
2026-05-02 05:48:11 -07:00
Guillaume Lessard
79f20b20e2
Update test/stdlib/Span/OutputRawSpanTests.swift
2026-05-02 05:48:10 -07:00
Guillaume Lessard
5007cf2bd8
[stdlib] consistency fixes
2026-05-02 05:48:09 -07:00
Guillaume Lessard
e30a692e7d
[test] SE-0525 additions to OutputRawSpan
2026-05-02 05:48:08 -07:00
Guillaume Lessard
a61701237f
[test] SE-0525 additions to MutableRawSpan
2026-05-02 05:47:48 -07:00
Guillaume Lessard
25a75244bc
[test] SE-0525 additions to RawSpan
2026-05-02 05:47:17 -07:00
Guillaume Lessard
8215fc336a
[test] SE-0525 addition to OutputSpan
2026-05-02 05:47:17 -07:00
Guillaume Lessard
66bf01916b
[test] SE-0525 additions to MutableSpan
2026-05-02 05:47:16 -07:00
Guillaume Lessard
020af45f93
[test] SE-0525 additions to Span
2026-05-02 05:47:16 -07:00
Guillaume Lessard
070c664c0c
[test] basic test for safe loading API
2026-05-02 05:46:28 -07:00
Nate Cook
856b205170
De-underscore the BorrowingSequence protocols ( #87483 )
...
This replaces #87114 , aligning the `BorrowingSequence` protocols and
related types to the Swift Evolution proposal, and without included
reparenting of `Sequence`.
2026-03-04 07:13:20 -06:00
Kavon Farvardin
0ae044a555
Stdlib: switch to SuppressedAssociatedTypesWithDefaults
...
Ever since `_BorrowingSequence` and friends landed in the standard library,
it's introduced a primary associated type that is suppressed. Since the mangling
of generic signatures is different depending on whether you're using
`SuppressedAssociatedTypes` and the `-WithDefaults` version, we should introduce
it with the new mangling in-place. It's also source breaking to make this switch
happen later on, since defaults will get assumed where they were not before.
rdar://170650908
2026-02-18 21:14:39 -08:00
Nate Cook
d5a3d28442
Create minimal _BorrowingSequence and iterator protocols
2026-02-10 15:36:00 +00:00
Guillaume Lessard
881d5078ba
[test] fix [Mutable]Span.withUnsafe[Mutable]BufferPointer
2026-01-28 15:51:06 -08:00
Guillaume Lessard
5682ba3d28
[test] OutputSpan.wUMBP
2026-01-28 14:47:36 -08:00
Guillaume Lessard
8f1f7ddbec
Merge pull request #86718 from glessard/rdar168561707-outputrawspan-storeBytes-safety
...
[stdlib] mark `OutputRawSpan.storeBytes()` with `@unsafe`
2026-01-23 11:14:22 -08:00
Guillaume Lessard
c0d164bc2e
[test] modify test for strict memory safety
2026-01-21 17:43:29 -08:00
Guillaume Lessard
56f11c1dbd
Merge pull request #86571 from glessard/rdar155660454-array-plus-outputspan-followups
...
[stdlib] followup to #83657
2026-01-20 15:50:31 -08:00
Guillaume Lessard
482cebc9a5
[test] explicitly test invalid negative parameter values
2026-01-14 16:53:37 -08:00
Guillaume Lessard
e334d9c1de
Merge pull request #83657 from glessard/rdar155660454-array-plus-outputspan
...
[stdlib, SE-0485] Array functions with OutputSpan
2026-01-14 14:30:05 -08:00
Guillaume Lessard
58b0e565f0
[stdlib] preserve items appended until a thrown error
2026-01-13 15:00:49 -08:00
Guillaume Lessard
ad8dec0e16
[test] update test expectations
2026-01-09 18:21:18 -08:00
Guillaume Lessard
6b0c233042
[stdlib] simplifications
2025-12-27 19:05:15 -08:00
Guillaume Lessard
aed35825f9
[test] OutputSpan-mediated init() and append() functions
2025-12-27 19:05:15 -08:00
Ben Rimmington
b27c90b8b8
[SE-0494] isTriviallyIdentical(to:) [memory regions] ( #84998 )
...
Add `isTriviallyIdentical(to:)` methods to:
* `Span`
* `RawSpan`
* `UTF8Span`
* `UnsafeBufferPointer`
* `UnsafeMutableBufferPointer`
* `UnsafeRawBufferPointer`
* `UnsafeMutableRawBufferPointer`
Part of issue swiftlang/swift#84991 .
2025-12-08 19:32:26 -08:00
Jai
d9383e6aa5
Fix crash when accessing span of empty InlineArray ( #85268 )
...
Fix crash when creating a Span from an empty InlineArray whose storage
is only byte-aligned. #85265 .
---------
Co-authored-by: Guillaume Lessard <glessard@tffenterprises.com >
2025-11-04 10:15:24 -05:00
Ryan Mansfield
4cc2940619
Add frontend option -verbose-asm to emit verbose assembly.
...
This enables the option by default to aid readability with
-emit-assembly.
2025-10-08 16:01:13 -04:00
Guillaume Lessard
0828ec920b
[test] Span family Sendability
2025-09-23 15:40:33 -07:00
Guillaume Lessard
073d545267
[test] Sendability of MutableSpan
2025-09-23 15:27:16 -07:00
Guillaume Lessard
42337d3724
[test] removeAll() from an empty OutputSpan
2025-08-15 17:24:06 -07:00
Stephen Canon
ee9b38ca22
Use an explicit unsigned comparison for span index checks ( #83150 )
...
LLVM ought to be able to do this transformation for us, but it currently fails to do so. We can code around it easily enough. https://github.com/swiftlang/swift/pull/83172 has a better long-term fix.
2025-07-21 16:06:17 -04:00
Guillaume Lessard
b72c4422b8
Merge pull request #81637 from glessard/rdar147780495-OutputSpan-updates
...
[SE-0485] OutputSpan and OutputRawSpan
2025-07-17 14:14:52 -07:00
Guillaume Lessard
2e0c0fea7c
[test] OutputRawSpan tests
2025-07-16 17:15:27 -07:00
Guillaume Lessard
2689ef31e1
Merge pull request #82959 from glessard/rdar155474776-extracting
...
[stdlib] Implementation for SE-0488
2025-07-15 13:59:00 -07:00
Guillaume Lessard
51eebe1836
[test] fix test of InlineArray initializer
2025-07-14 23:04:49 -07:00
Guillaume Lessard
fa87b3b944
[stdlib] remove bulk-update from MutableRawSpan per SE-0485
2025-07-14 23:04:49 -07:00
Guillaume Lessard
923a6e5292
[stdlib] remove bulk-update from MutableSpan per SE-0485
2025-07-14 23:04:48 -07:00
Guillaume Lessard
97a0bd743a
[stdlib] rename MutableRawSpan.extracting functions
2025-07-14 23:04:48 -07:00
Guillaume Lessard
6439a32997
[stdlib] rename MutableSpan.extracting functions
2025-07-14 23:04:48 -07:00
Guillaume Lessard
5f5e6b68c9
[stdlib] make OutputSpan changes from SE-0485
2025-07-14 23:04:47 -07:00
Guillaume Lessard
5895a64d52
[test] simplify OutputSpan-InlineArray test
2025-07-14 23:04:47 -07:00
Guillaume Lessard
733a261b28
[stdlib] InlineArray consumed by OutputSpan
2025-07-14 23:04:46 -07:00
Guillaume Lessard
1d776a6b06
[stdlib] in-place initializer for InlineArray
2025-07-14 23:04:46 -07:00
Guillaume Lessard
f50ae1b499
[test] OutputSpan tests
2025-07-14 23:04:46 -07:00
Guillaume Lessard
1e3d26f8a6
[stdlib] rename RawSpan.extracting functions
2025-07-09 17:36:35 -07:00
Guillaume Lessard
dd833569e0
[stdlib] rename Span.extracting functions
2025-07-09 17:25:27 -07:00