Evan Wilde
506d128487
Fix Bootstrap: UTF8EncoddingError
...
The pass that annotated control-flow positions unreachable after an
infinite loop was migrated to pure Swift in PR 79186
(https://github.com/swiftlang/swift/pull/79186 ). As a result, the
C++-only bootstrap compiler is unable to determine that the
code-location is unreachable. Placing a fatalError after the infinite
while loop.
Fixes: rdar://149568740
(cherry picked from commit 783c969e10 )
2025-04-20 09:06:38 -07:00
Guillaume Lessard
ea57dd93a0
[stdlib] work around autoclosure issues
...
- The move-only checker has issues with the existence of autoclosures.
- These `borrowing` accessors are within the purview of the move-only checker.
2025-04-18 10:45:00 -07:00
Guillaume Lessard
4ae1ad744d
Revert "[temporary] disable small-string support"
...
This reverts commit ea44ff9fc9 .
2025-04-18 10:44:59 -07:00
Michael Ilseman
393c24ddd7
UTF8Span ( #78531 ) ( #80890 )
...
Add support for UTF8Span
Also, refactor validation and grapheme breaking
2025-04-18 10:01:15 -04:00
Meghana Gupta
c22acc530e
[6.2] Revert #79707
...
Revert "Merge pull request #79707 from DougGregor/transparent-integer-conversions"
This reverts commit 9c2c4ea07f , reversing
changes made to 829e03c104 .
2025-04-11 10:57:14 -07:00
Guillaume Lessard
cb390140d6
[stdlib] correct MutableRawSpan sizing
2025-04-10 10:31:18 -07:00
Guillaume Lessard
53b6b45bda
[stdlib] update lifetime annotation syntax
2025-04-10 10:31:18 -07:00
Guillaume Lessard
77431f5217
[stdlib] add MutableSpan.mutableBytes
2025-04-10 10:31:05 -07:00
Meghana Gupta
0c5edc5222
Update stdlib
2025-04-09 10:19:11 -07:00
Guillaume Lessard
79fb06faf3
[stdlib] update lifetime annotation syntax
2025-04-09 09:56:06 -07:00
Guillaume Lessard
f931d296a2
[stdlib] add InlineArray.mutableSpan
2025-04-09 09:56:06 -07:00
Guillaume Lessard
b90a6fcb41
[stdlib] add CollectionOfOne.mutableSpan
2025-04-09 09:56:06 -07:00
Doug Gregor
06c0efbce6
[stdlib] Reinstate AllowUnsafeAttribute experimental feature on libraries
...
We need this so that older compilers can handle the .swiftinterface
files we generate. It's unnecessary for newer compilers and can be
removed later.
Fixes rdar://148529962.
(cherry picked from commit 0100104ff7 )
2025-04-04 15:18:25 -07:00
Guillaume Lessard
7dd029c372
Revert "[temporary] disable spans over inline elements"
...
This reverts commit e5c7dfc430 .
2025-04-04 14:50:51 -07:00
Allan Shortlidge
14e0eed88f
stdlib: Address unreachable code warnings.
2025-04-03 10:19:46 -07:00
Allan Shortlidge
d32310fb76
stdlib: Address new #StrictMemorySafety warnings.
2025-04-03 10:18:39 -07:00
Alejandro Alonso
06937d89a6
[stdlib] Update availability of EnumeratedSequence collection conformance ( #80471 )
2025-04-03 14:48:05 +01:00
Guillaume Lessard
aedb869c69
Merge pull request #80116 from glessard/rdar137710901-utf8view-span-notsmol
...
[SE-0456] Span properties over utf8 views
2025-04-03 01:02:14 -07:00
Guillaume Lessard
7539366c46
[stdlib] rename internal and private symbols
2025-04-02 17:53:13 -07:00
Guillaume Lessard
278f76b666
[stdlib] remove a repetition
2025-04-02 17:53:13 -07:00
Guillaume Lessard
5eab44651d
[stdlib] document performance limitations on String’s span
2025-04-02 17:53:13 -07:00
Guillaume Lessard
f3a01663ac
[stdlib] document limitations for Substring’s span
2025-04-02 17:53:13 -07:00
Guillaume Lessard
bde7a1871c
[stdlib] harden bounds checking in Substring’s span
2025-04-02 17:53:12 -07:00
Guillaume Lessard
0bbec0c6d8
[stdlib] a less public association key
...
- with tweaks in associated object code
2025-04-02 17:53:12 -07:00
Guillaume Lessard
0976b61ecc
Apply suggestions from code review
...
Co-authored-by: Karoy Lorentey <klorentey@apple.com >
2025-04-02 17:53:12 -07:00
Guillaume Lessard
ea44ff9fc9
[temporary] disable small-string support
2025-04-02 17:53:12 -07:00
eeckstein
6c0b7782f5
Merge pull request #80404 from eeckstein/optimize-floating-point
...
Optimizer: add some floating point optimizations
2025-04-02 13:06:25 +02:00
David Smith
f800fdf3d2
Adopt indirect tagged strings ( #80425 )
...
Fixes rdar://142991821
2025-04-01 12:53:29 -07:00
Erik Eckstein
3f6f163598
stdlib: annotate some floating point functions with "optimize.sil.inline.constant.arguments"
2025-04-01 18:12:45 +02:00
Kuba (Brecka) Mracek
a1cdd336f0
Merge pull request #80420 from kubamracek/embedded-drop-mach-apple
...
[embedded] Stop using -D__APPLE__ and -D__MACH__
2025-04-01 06:25:44 -07:00
Allan Shortlidge
d2e8edfc93
stdlib: Address StrictMemorySafety warnings in Span related code.
2025-03-31 16:45:08 -07:00
Allan Shortlidge
dbd3d40c07
stdlib: Address StrictMemorySafety warnings in KeyPath related code.
2025-03-31 16:45:08 -07:00
Allan Shortlidge
60e66f3613
stdlib: Address StrictMemorySafety warnings in String related code.
2025-03-31 16:45:08 -07:00
Allan Shortlidge
b3038e6d81
stdlib: Address StrictMemorySafety warnings in Set related code.
2025-03-31 16:45:08 -07:00
Allan Shortlidge
87db90c0da
stdlib: Address StrictMemorySafety warnings in Dictionary related code.
2025-03-31 16:45:08 -07:00
Allan Shortlidge
322443d91d
stdlib: Address StrictMemorySafety warnings in Array related code.
2025-03-31 16:43:01 -07:00
Kuba Mracek
6d71f45101
[embedded] Stop using -D__APPLE__ and -D__MACH__
2025-03-31 15:07:11 -07:00
Guillaume Lessard
e3234f8ae2
[stdlib] a better pointer as associated object id
2025-03-31 12:05:50 -07:00
Guillaume Lessard
6059be4bca
[stdlib] simplify spans of bridged substrings
2025-03-31 12:05:50 -07:00
Guillaume Lessard
85a9be6a1b
[stdlib] spans over bridged Substring instances
2025-03-31 12:05:50 -07:00
Guillaume Lessard
9ae58c992b
[stdlib] span properties for bridged String instances
2025-03-31 12:05:50 -07:00
Guillaume Lessard
af0aa94c18
[stdlib] lazy-eager bridging for non-UTF8 NSString instances
2025-03-31 12:05:50 -07:00
Guillaume Lessard
a061425aae
[stdlib] add storage property to Substring.UTF8View
2025-03-31 12:05:50 -07:00
Guillaume Lessard
3015bf522d
[stdlib] add storage property to String.UTF8View
2025-03-31 12:05:50 -07:00
Guillaume Lessard
c9b1ab8c42
Merge pull request #79650 from glessard/rdar138440979-MutableSpan
...
[SE-0467] MutableSpan, with mutableSpan properties to Array, ArraySlice and ContiguousArray.
2025-03-28 17:59:47 -07:00
Alex Martini
0bd4ee3ca6
Merge pull request #80359 from amartini51/doc_fixes
...
Documentation fixes
2025-03-28 15:33:40 -07:00
Doug Gregor
fd24d29055
Merge pull request #80357 from DougGregor/strict-safety-improvements
...
Strict safety improvements
2025-03-28 11:58:44 -07:00
Doug Gregor
b2f0ce44cc
Remove a use of @safe @unsafe from the standard library
2025-03-27 22:05:21 -07:00
Karoy Lorentey
5583e6916c
Merge pull request #73258 from lorentey/you-cannot-escape-optionals
...
[stdlib] Generalize some constructs for non-escapable types
2025-03-27 20:02:00 -07:00
Guillaume Lessard
abf29e7433
[stdlib] adjust MutableSpan’s element constraint
2025-03-27 17:19:15 -07:00