Commit Graph
1548 Commits
Author SHA1 Message Date
Karoy Lorentey ccf3d3a254 [BasicContainers] Use the new _checkInvariants feature in RigidSet tests
Additionally, add some more tests that exercise various hashing outcomes.
2026-03-10 23:06:05 -07:00
Karoy Lorentey 634a0ae766 [BasicContainers] Implement _checkInvariants on hashed containers 2026-03-10 23:04:49 -07:00
Karoy Lorentey 6ff1e8e636 Merge pull request #558 from swift-android-sdk/enable_android_sdk_checks
[CI] Enable Android testing
2026-03-09 18:59:39 -07:00
Marc Prud'hommeaux 417bcbc6e3 Disable RigidDequeCrashTests on Android due to lack of exit testing 2026-03-09 20:15:46 -04:00
Marc Prud'hommeaux ab483f1199 Merge branch 'apple:main' into enable_android_sdk_checks 2026-03-09 20:01:01 -04:00
Karoy Lorentey 41beccbd44 Merge pull request #598 from lorentey/remove-BorrowingSequence.first
[ContainersPreview] Remove BorrowingSequence.first
2026-03-09 16:40:18 -07:00
Karoy Lorentey 63030a3530 Merge pull request #599 from lorentey/generateNext-to-next
[ContainersPreview] Rename Producer.generateNext() to next()
2026-03-09 16:37:58 -07:00
Karoy Lorentey 9c1a633c98 Merge pull request #594 from apple/dependabot/github_actions/swiftlang/github-workflows/dot-github/workflows/swift_package_test.yml-0.0.8
Bump swiftlang/github-workflows/.github/workflows/swift_package_test.yml from 0.0.7 to 0.0.8
2026-03-09 16:35:38 -07:00
Karoy Lorentey b420b0d2b3 Merge pull request #597 from lorentey/fix-standalone-traits
[BasicContainers] Allow standalone use of the UnstableHashedContainers trait
2026-03-09 16:35:24 -07:00
Karoy Lorentey 3826fe76a8 [ContainersPreview] Rename Producer.generateNext() to next()
This better highlights the symmetry between it and the classic method on `IteratorProtocol`, and is also a nice usability win.
2026-03-09 16:22:24 -07:00
Karoy Lorentey 7d69e780ae Merge pull request #596 from lorentey/doc-fixes
Documentation updates for latest DocC
2026-03-09 16:15:09 -07:00
Karoy Lorentey 3b10b992bc [ContainersPreview] Remove BorrowingSequence.first
This property is unnecessary; it was just demonstrating an old problem. It clashes with the classic `Collection.first`, and that renders invocations of that ambiguous in code that uses Collection types that also have a BorrowingSequence conformance.
2026-03-09 16:11:56 -07:00
Karoy Lorentey de436301e5 [BasicContainers] Allow standalone use of the UnstableHashedContainers trait
Oops, I lost a change that allowed enabling the UnstableHashedContainers trait without also opting into UnstableContainersPreview. Reimplement this functionality.
2026-03-09 15:59:38 -07:00
Karoy Lorentey fcdacbbaa2 Merge pull request #595 from apple/dependabot/github_actions/swiftlang/github-workflows/dot-github/workflows/soundness.yml-0.0.8
Bump swiftlang/github-workflows/.github/workflows/soundness.yml from 0.0.7 to 0.0.8
2026-03-09 14:37:46 -07:00
Karoy Lorentey 79b2624b2c [doc] Fix link syntax in TrailingElementsModule 2026-03-09 14:31:54 -07:00
Karoy Lorentey 93a98ca26d [doc] Clean out stale documentation files in the Collections module 2026-03-09 14:15:17 -07:00
Karoy Lorentey 80878519f2 [doc] Fix most issues reported by docc
DocC keeps changing its link syntax. The latest iteration appears to have trouble dealing with `Self`-taking or `Self`-returning methods, so change our API to replace `Self` with a direct mention of the concrete type. ¯\\\_(ツ)\_/¯

That said, the new compiler also found a large number of mismatching parameter names, and that was really helpful.
2026-03-09 14:14:51 -07:00
Marc Prud'hommeaux 59a82ee1b0 Update pull_request.yml to use swiftlang/github-workflows version 0.0.8 2026-03-09 15:25:04 -04:00
Karoy Lorentey c29d1e9c4e [doc] Update to better link syntax 2026-03-09 12:04:43 -07:00
Marc Prud'hommeaux 0556a233e1 Merge branch 'apple:main' into enable_android_sdk_checks 2026-03-09 14:38:55 -04:00
Karoy Lorentey db3cc4bacb Merge pull request #593 from lorentey/enforce-dress-code
Enforce dress code for license headers
2026-03-09 10:10:19 -07:00
dependabot[bot] dc20489541 Bump swiftlang/github-workflows/.github/workflows/soundness.yml
Bumps [swiftlang/github-workflows/.github/workflows/soundness.yml](https://github.com/swiftlang/github-workflows) from 0.0.7 to 0.0.8.
- [Release notes](https://github.com/swiftlang/github-workflows/releases)
- [Commits](https://github.com/swiftlang/github-workflows/compare/0.0.7...0.0.8)

---
updated-dependencies:
- dependency-name: swiftlang/github-workflows/.github/workflows/soundness.yml
  dependency-version: 0.0.8
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-09 06:15:40 +00:00
dependabot[bot] 483fa04705 Bump swiftlang/github-workflows/.github/workflows/swift_package_test.yml
Bumps [swiftlang/github-workflows/.github/workflows/swift_package_test.yml](https://github.com/swiftlang/github-workflows) from 0.0.7 to 0.0.8.
- [Release notes](https://github.com/swiftlang/github-workflows/releases)
- [Commits](https://github.com/swiftlang/github-workflows/compare/0.0.7...0.0.8)

---
updated-dependencies:
- dependency-name: swiftlang/github-workflows/.github/workflows/swift_package_test.yml
  dependency-version: 0.0.8
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-09 06:15:38 +00:00
Karoy Lorentey 11443c0531 Enforce uniform license headers 2026-03-07 10:26:28 -08:00
Karoy Lorentey 2bd5793808 Set license header template and enable license enforcement 2026-03-07 10:26:27 -08:00
Karoy Lorentey 7631e2aaf7 Remove obsolete CI configuration files 2026-03-07 10:26:25 -08:00
Karoy Lorentey 7ad524e4e4 Merge pull request #592 from lorentey/floats-not-allowed-in-this-pool 2026-03-06 20:30:46 -08:00
Karoy Lorentey e4721c4b6b Merge pull request #591 from lorentey/update-readme
Add some decorative badges in the README
2026-03-06 18:48:05 -08:00
Karoy Lorentey ee9808c72f [Dequemodule, OrderedCollections] Avoid using floating point arithmetic 2026-03-06 18:19:16 -08:00
Karoy Lorentey ccf872ae97 Add some decorative badges in the README 2026-03-06 18:15:42 -08:00
Karoy Lorentey 8d9834a618 Merge pull request #590 from lorentey/prerelease-tasks
[BasicContainers] RigidArray: Correct spelling of replacement for deprecated method
1.4.0
2026-03-06 16:28:20 -08:00
Karoy Lorentey 94e8cabe4b [BasicContainers] RigidArray: Correct spelling of replacement for deprecated method 2026-03-06 16:10:48 -08:00
Karoy Lorentey d5711fea62 Merge pull request #589 from lorentey/prerelease-tasks
[BasicContainers] Avoid defining set/dictionary types unless UnstableHashedContainers is enabled
2026-03-06 12:07:23 -08:00
Karoy Lorentey 5605e14682 [BasicContainers] Avoid defining set/dictionary types unless UnstableHashedContainers is enabled 2026-03-06 11:17:39 -08:00
Karoy Lorentey 49d0082ece Merge pull request #588 from lorentey/prerelease-tasks
Working towards the 1.4.0 tag
2026-03-05 20:16:49 -08:00
Karoy Lorentey 1c69635852 Add SPDX-License-Identifier tags 2026-03-05 19:39:24 -08:00
Karoy Lorentey d4722f4f82 [tests] Adjust visibility of API checker protocols 2026-03-05 19:39:23 -08:00
Karoy Lorentey 11a49663d0 [Benchmarks] Update benchmarking sub-package
- Fix issues with the main package no longer exposing internal helper functions
- Move Rust benchmarks behind an EnableRustBenchmarks trait
- Allow traits to be enabled in `Utils/run-benchmarks.sh` through the BENCHMARK_TRAITS environment variable.
2026-03-05 19:39:22 -08:00
Karoy Lorentey d9b09ecde8 Update copyright dates 2026-03-05 19:39:20 -08:00
Karoy Lorentey 334dcb07d7 Merge pull request #587 from lorentey/update-readme
Update README for 1.4.0
2026-03-05 17:15:34 -08:00
Karoy Lorentey b29e7861b2 Update build configurations 2026-03-05 15:33:27 -08:00
Karoy Lorentey 214d75cb73 BorrowingSequence: estimatedCount ⟹ underestimatedCount
EstimatedCount is largely pointless. Knowing the exact count does enable a fast negative path for `elementsEqual`, but we can otherwise make do with just the (much simpler to understand/deal with) `underestimatedCount` that already exists on `Sequence`.
2026-03-05 15:33:27 -08:00
Karoy Lorentey 4160bcb98d [BasicContainers] RigidDictionary, UniqueDictionary: Add debugging methods 2026-03-05 15:33:25 -08:00
Karoy Lorentey cef50eee26 [BasicContainers] Fix incorrect wraparound implementation in hashed container insertions with NO_ROBIN_HOOD_HASHING 2026-03-05 15:30:10 -08:00
Karoy Lorentey 03fea65678 Update README 2026-03-05 14:27:32 -08:00
Karoy Lorentey ae4e6f850e Merge pull request #586 from lorentey/unstable-hashed-containers
[BasicContainers] Finalize requirements for hashed containers
2026-03-04 09:41:15 -08:00
Karoy Lorentey ffdc48e67e [BasicContainers] Finalize requirements for hashed containers
- UnstableNoncopyableKeys → UnstableHashedContainers
- Delete the GeneralizedEquatable and GeneralizedHashable protocols, replacing them with the standard generalizations in the 6.4 stdlib
- Require Swift 6.4 for {Rigid,Unique}{Set,Dictionary}.
2026-03-03 16:01:45 -08:00
Karoy Lorentey 01661b6694 Merge pull request #541 from apple/doc-basic-span-index-mutation
Include notes about index mutation in `span(after/before:)` (+ other doc fixes)
2026-03-02 16:56:35 -08:00
Nate Cook 54ca53612f Include notes about index mutation in span(after/before:)
The indexes passed to span(after:) and friends on UniqueArray
and RigidArray are modified before return. This adds notes
about the updated values to the method documentation, along
with a few other minor formatting changes (dropping smart
quotes, single-sentence abstracts).
2026-03-02 16:38:48 -08:00
Karoy Lorentey 7d6a6e3ec0 Merge pull request #585 from lorentey/fix-filename-casing
[BasicContainers] Fix spelling of a source file
2026-03-02 16:35:16 -08:00