Skip to content

Commit 82eb5b9

Browse files
authored
Merge pull request #3008 from DougGregor/some-category-footnotes
Generalize categoryFootnotes to work on any sequence
2 parents b9ae3b7 + 50ca735 commit 82eb5b9

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/workflows/pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
name: Soundness
1313
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main
1414
with:
15-
api_breakage_check_allowlist_path: "Release Notes/api-breakages.txt"
15+
api_breakage_check_allowlist_path: "api-breakages.txt"
1616
docs_check_additional_arguments: "--disable-parameters-and-returns-validation"
1717
verify_source_code:
1818
name: Validate generated code

Sources/SwiftDiagnostics/DiagnosticsFormatter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ public struct DiagnosticsFormatter {
367367
/// - leadingText: text that is prefixed to the list of categories when
368368
/// there is at least one category to print.
369369
public func categoryFootnotes(
370-
_ categories: [DiagnosticCategory],
370+
_ categories: some Sequence<DiagnosticCategory>,
371371
leadingText: String = "\n"
372372
) -> String {
373373
let categoriesInOrder = categories.compactMap { category in

api-breakages.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
6.2
22
---
3+
API breakage: func DiagnosticsFormatter.categoryFootnotes(_:leadingText:) has parameter 0 type change from [SwiftDiagnostics.DiagnosticCategory] to some Swift.Sequence<SwiftDiagnostics.DiagnosticCategory>

0 commit comments

Comments
 (0)