Skip to content

Commit 7836aff

Browse files
authored
Merge pull request #80504 from daveyc123/doccForDiagnostics
Prepare diagnostics docs for docc generation
2 parents b77fdb6 + cd53f96 commit 7836aff

File tree

4 files changed

+16
-7
lines changed

4 files changed

+16
-7
lines changed

userdocs/diagnostics/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.docc-build

userdocs/diagnostics/async-caller-execution.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
# `AsyncCallerExecution`
22

3-
Proposed in [SE-0461], this feature changes the behavior of nonisolated async
3+
This feature changes the behavior of nonisolated async
44
functions to run on the actor to which the caller is isolated (if any) by
55
default, and provides an explicit way to express the execution semantics for
6-
these functions:
6+
these functions.
7+
8+
This feature was proposed in [SE-0461](https://github.com/swiftlang/swift-evolution/blob/main/proposals/0461-async-function-isolation.md)
9+
710
* The `@execution(concurrent)` attribute specifies that a function must always
811
switch off of an actor to run.
912
This is the default behavior without `AsyncCallerExecution`.
1013
* The `@execution(caller)` attribute specifies that a function must always
1114
run on the caller's actor.
1215
This is the default behavior with `AsyncCallerExecution`.
13-
14-
[SE-0461]: https://github.com/swiftlang/swift-evolution/blob/main/proposals/0461-async-function-isolation.md

userdocs/diagnostics/diagnostics.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Swift Compiler Diagnostics
2+
3+
@Metadata {
4+
@TechnologyRoot
5+
}
6+
7+
Documentation on diagnostics emitted by the compiler.

userdocs/diagnostics/existential-any.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# `ExistentialAny`
22

33
This diagnostic group includes errors and warnings pertaining to the `any` type
4-
syntax proposed in [SE-0335].
4+
syntax.
5+
6+
This syntax was proposed in [SE-0335](https://github.com/swiftlang/swift-evolution/blob/main/proposals/0335-existential-any.md).
57
`any` syntax draws a line between constraint types and existential or boxed
68
types.
79

@@ -20,5 +22,3 @@ func sillyFunction(collection: Collection) { // error
2022
// ...
2123
}
2224
```
23-
24-
[SE-0335]: https://github.com/swiftlang/swift-evolution/blob/main/proposals/0335-existential-any.md

0 commit comments

Comments
 (0)