You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* No change: tool attributes are not part of the FLS
37
+
38
+
* `Add \`unpredictable_function_pointer_comparisons\` lint to warn against function pointer comparisons <https://github.com/rust-lang/rust/pull/118833>`_
39
+
40
+
* No change: Lints are not part of the FLS
41
+
42
+
* `Lint on combining \`#[no_mangle]\` and \`#[export_name]\` attributes. <https://github.com/rust-lang/rust/pull/131558>`_
A :t:`closure expression` is an :t:`expression` that defines a
3722
3722
:t:`closure type` and constructs a value of that :t:`type`.
3723
3723
3724
+
:dp:`fls_My6pMgpeFCFg`
3725
+
An :t:`async closure expression` is a :t:`closure expression` subject to keyword ``async`` that defines an :t:`async closure type` and constructs a value of that :t:`type`.
3726
+
3724
3727
:dp:`fls_UgJgur0z6d4a`
3725
3728
The :t:`return type` of a :t:`closure type` is determined as follows:
3726
3729
@@ -3730,6 +3733,9 @@ The :t:`return type` of a :t:`closure type` is determined as follows:
3730
3733
* :dp:`fls_wLVeE6cNG8oa`
3731
3734
Otherwise the :t:`return type` is the :t:`type` of the :t:`closure body`.
3732
3735
3736
+
:dp:`fls_DSy7bPKGzyov`
3737
+
The :t:`return type` of an :t:`async closure type` is an :t:`anonymous return type` with a :std:`core::future::Future` :t:`trait bound` and a :t:`binding argument` for the ``Output`` :t:`associated type alias` with the actual :t:`return type` of the corresponding :t:`closure type`.
3738
+
3733
3739
:dp:`fls_srbl7ptknjyk`
3734
3740
A :t:`closure body` is a :t:`construct` that represents the executable portion
Copy file name to clipboardExpand all lines: src/glossary.rst
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -539,6 +539,27 @@ an asynchronous manner.
539
539
:dp:`fls_je689rormhd6`
540
540
See :s:`AsyncBlockExpression`.
541
541
542
+
.. _fls_oUdQnbW1MAFW:
543
+
544
+
async closure expression
545
+
^^^^^^^^^^^^^^^^^^^^^^^^
546
+
547
+
:dp:`fls_SxydbQPPX9Jw`
548
+
An :dt:`async closure expression` is a :t:`closure expression` subject to keyword ``async`` that defines an :t:`async closure type` and constructs a value of that :t:`type`.
549
+
550
+
:dp:`fls_JZsDFMg85a3u`
551
+
See :s:`ClosureExpression`.
552
+
553
+
.. _fls_Pq4ohvrMOi5p:
554
+
555
+
async closure type
556
+
^^^^^^^^^^^^^^^^^^
557
+
558
+
:dp:`fls_IT28HJaF8rnm`
559
+
An :dt:`async closure type` is a unique anonymous :t:`function type` that encapsulates
560
+
all :t:`[capture target]s` of a :t:`closure expression` producing a :std:`core::future::Future`.
0 commit comments