Skip to content

Commit b8e5582

Browse files
committed
Snapshots.
1 parent cc22cd6 commit b8e5582

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

Tests/AppTests/__Snapshots__/WebpageSnapshotTests/test_ReadyForSwift6Show.1.html

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,16 @@ <h1>
8383
<main>
8484
<div class="inner">
8585
<h2>Ready for Swift 6</h2>
86-
<p>The Swift 6 language mode prevents data-races at compile time. When you opt into Swift 6 mode, the compiler will produce errors when your code has a risk of concurrent access, turning hard-to-debug runtime failures into compiler errors.</p>
86+
<p>The Swift 6 language mode prevents data races at compile time. When you opt into Swift 6 mode, the compiler will produce errors when your code has a risk of concurrent access, turning hard-to-debug runtime failures into compiler errors.</p>
8787
<p>To track the progress of the Swift package ecosystem, the Swift Package Index is running regular package compatibility checks across all packages in the index.</p>
8888
<p>For help migrating your project's code, see the
8989
<a href="https://www.swift.org/migration/documentation/migrationguide/">Swift 6 language mode migration guide</a>.
9090
</p>
91-
<h3 id="total-zero-errors">Total packages with Swift 6 zero data-race safety errors</h3>
92-
<p>Packages with zero data-race safety compiler diagnostics during a successful build on at least one tested platform.</p>
91+
<h3 id="total-zero-errors">Total packages with Swift 6 zero data race safety errors</h3>
92+
<p>This chart shows packages with zero data race safety compiler diagnostics during a successful build on at least one tested platform.</p>
9393
<p>Couldn’t load chart data.</p>
94-
<h3 id="total-errors">Total Swift 6 data-race safety errors</h3>
95-
<p>The total number of all data-race safety diagnostics across
94+
<h3 id="total-errors">Total Swift 6 data race safety errors</h3>
95+
<p>This chart shows the total number of all data race safety diagnostics across
9696
<em>all</em> packages.
9797
</p>
9898
<p>Couldn’t load chart data.</p>
@@ -101,7 +101,7 @@ <h3 id="faq">Frequently asked questions</h3>
101101
<strong>Q: </strong>What is a “data race safety error”?
102102
</p>
103103
<p>
104-
<strong>A: </strong>Swift 6 introduces complete concurrency checking, a compiler feature that checks your code for data-race safety. The number of data race safety errors reflects how many issues the compiler detected relating to these concurrency or data-race checks. The total errors chart plots the total number of these errors summed across all packages.
104+
<strong>A: </strong>Swift 6 introduces complete concurrency checking, a compiler feature that checks your code for data race safety. The number of data race safety errors reflects how many issues the compiler detected relating to these concurrency or data race checks. The total errors chart plots the total number of these errors summed across all packages.
105105
</p>
106106
<hr class="minor"/>
107107
<p>
@@ -114,13 +114,21 @@ <h3 id="faq">Frequently asked questions</h3>
114114
<code>xcodebuild</code> to achieve this by enabling all data race safety checks in the compiler.
115115
</p>
116116
<hr class="minor"/>
117+
<p>
118+
<strong>Q: </strong>Are packages that show zero data race compiler diagnostics guaranteed to be safe from data race errors?
119+
</p>
120+
<p>
121+
<strong>A: </strong>No. We gather data on data race safety from Swift compiler diagnostics with “complete” concurrency checks enabled. We can’t tell if the diagnostics produce zero errors due to a genuine lack of data race safety errors or whether errors have been suppressed using techniques like
122+
<code>@unchecked Sendable</code>.
123+
</p>
124+
<hr class="minor"/>
117125
<p>
118126
<strong>Q: </strong>Why use
119127
<code>-strict-concurrency=complete</code> instead of
120128
<code>-swift-version 6</code>?
121129
</p>
122130
<p>
123-
<strong>A: </strong>Data-race safety diagnostics are determined in different stages of the compiler. For example, type checking produces some data-race safety errors, and others are diagnosed during control-flow analysis after code generation. If type checking produces errors, the compiler will not proceed to code generation, so testing with
131+
<strong>A: </strong>Data race safety diagnostics are determined in different stages of the compiler. For example, type checking produces some data race safety errors, and others are diagnosed during control-flow analysis after code generation. If type checking produces errors, the compiler will not proceed to code generation, so testing with
124132
<code>-swift-version 6</code> would show fewer errors than really exist across the package ecosystem.
125133
</p>
126134
<hr class="minor"/>

0 commit comments

Comments
 (0)