Skip to content

Commit 295b419

Browse files
committed
not all functions implement Fn traits
1 parent f5c48f5 commit 295b419

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

src/changelog.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ Language changes in Rust 1.95.0
3636
- `Const blocks are no longer evaluated to determine if expressions involving fallible operations can implicitly be constant-promoted <https://github.com/rust-lang/rust/pull/150557>`_
3737
- `Make operational semantics of pattern matching independent of crate and module <https://github.com/rust-lang/rust/pull/150681>`_
3838

39+
FLS corrections
40+
---------------
41+
42+
Changed paragraph: :p:`fls_1941wid94hlg`
43+
44+
Fixed paragraph: :p:`fls_CSuxTkwR96j9`
45+
3946
Language changes in Rust 1.94.0
4047
-------------------------------
4148

src/types-and-traits.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -926,11 +926,10 @@ An :t:`unsafe function item type` is a :t:`function item type` where the related
926926
A :t:`function item type` is coercible to a :t:`function pointer type`.
927927

928928
:dp:`fls_1941wid94hlg`
929-
A :t:`function item type` implements the :std:`core::clone::Clone` :t:`trait`,
930-
the :std:`core::marker::Copy` :t:`trait`, the :std:`core::ops::Fn` :t:`trait`,
931-
the :std:`core::ops::FnMut` :t:`trait`, the :std:`core::ops::FnOnce` :t:`trait`,
932-
the :std:`core::marker::Send` :t:`trait`, and the :std:`core::marker::Sync`
933-
:t:`trait`.
929+
A :t:`function item type` implements the :std:`core::clone::Clone` :t:`trait`, the :std:`core::marker::Copy` :t:`trait`, the :std:`core::marker::Send` :t:`trait`, and the :std:`core::marker::Sync` :t:`trait`.
930+
931+
:dp:`fls_CSuxTkwR96j9`
932+
A :t:`function item type` implements the :std:`core::ops::Fn` :t:`trait`, the :std:`core::ops::FnMut` :t:`trait`, the :std:`core::ops::FnOnce` :t:`trait`, unless it is an :t:`unsafe function`, unless it has :t:`attribute` :c:`target_feature`, or unless it does not have a :t:`Rust ABI`.
934933

935934
.. _fls_3i4ou0dq64ny:
936935

0 commit comments

Comments
 (0)