Doug Gregor
457eb4cc64
[Strict memory safety] Update standard library for nested safe/unsafe types
...
Use this to mark a few internal types @safe now that it works properly.
2025-04-19 19:54:32 -07:00
Alejandro Alonso
f9f640b141
Sendablize the standard library
...
oops dont add this flag
no more nonisolated
2024-03-05 15:02:09 -08:00
Ben Cohen
e9d4687e31
De-underscore @frozen, apply it to structs ( #24185 )
...
* De-underscore @frozen for enums
* Add @frozen for structs, deprecate @_fixed_layout for them
* Switch usage from _fixed_layout to frozen
2019-05-30 17:55:37 -07:00
Karoy Lorentey
84d8cedaae
[stdlib] _SetBuilder, _DictionaryBuilder: Assume target has enough capacity
...
The compiled code included unnecessary references to resize().
2018-10-05 12:33:25 +01:00
Karoy Lorentey
c3bc84e680
[stdlib] Set, Dictionary: __consuming/__owned audit
...
Add __consuming and __owned to Set and Dictionary members where applicable.
Ignore compiler intrinsics for casting for now — their ARC behavior is covered by unit tests that need to be updated.
2018-09-24 13:46:40 +01:00
Karoy Lorentey
e9186000d0
[stdlib][NFC] Break Set/Dictionary implementation into smaller files
...
This has long been overdue; splitting the Dictionary.swift/Set.swift monoliths makes for a far less confusing editing experience.
2018-09-23 01:38:37 +01:00