Skip to content

Commit 41886e3

Browse files
committed
LibraryEvolution: @discardableResult instead of @warn_unused_result.
Long live SE-0047.
1 parent 7f0ef7e commit 41886e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/LibraryEvolution.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ The following changes are permitted:
288288
source-breaking change`.
289289
- The ``@noreturn`` attribute may be added to a function. ``@noreturn`` is a
290290
`versioned attribute`.
291-
- The ``@warn_unused_result`` and ``@warn_unqualified_access`` attributes may
291+
- The ``@discardableResult`` and ``@warn_unqualified_access`` attributes may
292292
be added to a function without any additional versioning information.
293293

294294
No other changes are permitted; the following are particularly of note:
@@ -908,7 +908,7 @@ There are very few safe changes to make to protocols:
908908
is permitted.
909909
- Reordering generic requirements is permitted (but not the generic parameters
910910
themselves).
911-
- The ``@warn_unused_result`` and ``@warn_unqualified_access`` attributes may
911+
- The ``@discardableResult`` and ``@warn_unqualified_access`` attributes may
912912
be added to a function requirement without any additional versioning
913913
information.
914914

@@ -1058,7 +1058,7 @@ top-level functions, but the potential for overrides complicates things a little
10581058
- The ``@noreturn`` attribute may be added to a public method only if it is
10591059
``final`` or the class is not publicly subclassable. ``@noreturn`` is a
10601060
`versioned attribute`.
1061-
- The ``@warn_unused_result`` and ``@warn_unqualified_access`` attributes may
1061+
- The ``@discardableResult`` and ``@warn_unqualified_access`` attributes may
10621062
be added to a method without any additional versioning information.
10631063

10641064
Class and instance methods may be marked ``@inlineable``, with the same

0 commit comments

Comments
 (0)