diff options
| author | Boxy <rust@boxyuwu.dev> | 2025-08-06 13:51:50 +0100 |
|---|---|---|
| committer | Boxy <rust@boxyuwu.dev> | 2025-08-06 16:55:50 +0100 |
| commit | 7bc34622f037fedf3cf15c4a6beea1b40494cb2f (patch) | |
| tree | cef0c0a6a0bb035a176c63b6ac53e5b335cd6390 /library/core/src/ops/function.rs | |
| parent | 351e4bd1066a9d89b4d9f06c628ba0733c1850b5 (diff) | |
| download | rust-7bc34622f037fedf3cf15c4a6beea1b40494cb2f.tar.gz rust-7bc34622f037fedf3cf15c4a6beea1b40494cb2f.zip | |
tidy
Diffstat (limited to 'library/core/src/ops/function.rs')
| -rw-r--r-- | library/core/src/ops/function.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/library/core/src/ops/function.rs b/library/core/src/ops/function.rs index efc751a094d..ad46e52a475 100644 --- a/library/core/src/ops/function.rs +++ b/library/core/src/ops/function.rs @@ -260,7 +260,7 @@ mod impls { #[rustc_const_unstable(feature = "const_trait_impl", issue = "143874")] impl<A: Tuple, F: ?Sized> const Fn<A> for &F where - F: ~const Fn<A>, + F: [const] Fn<A>, { extern "rust-call" fn call(&self, args: A) -> F::Output { (**self).call(args) @@ -271,7 +271,7 @@ mod impls { #[rustc_const_unstable(feature = "const_trait_impl", issue = "143874")] impl<A: Tuple, F: ?Sized> const FnMut<A> for &F where - F: ~const Fn<A>, + F: [const] Fn<A>, { extern "rust-call" fn call_mut(&mut self, args: A) -> F::Output { (**self).call(args) @@ -282,7 +282,7 @@ mod impls { #[rustc_const_unstable(feature = "const_trait_impl", issue = "143874")] impl<A: Tuple, F: ?Sized> const FnOnce<A> for &F where - F: ~const Fn<A>, + F: [const] Fn<A>, { type Output = F::Output; @@ -295,7 +295,7 @@ mod impls { #[rustc_const_unstable(feature = "const_trait_impl", issue = "143874")] impl<A: Tuple, F: ?Sized> const FnMut<A> for &mut F where - F: ~const FnMut<A>, + F: [const] FnMut<A>, { extern "rust-call" fn call_mut(&mut self, args: A) -> F::Output { (*self).call_mut(args) @@ -306,7 +306,7 @@ mod impls { #[rustc_const_unstable(feature = "const_trait_impl", issue = "143874")] impl<A: Tuple, F: ?Sized> const FnOnce<A> for &mut F where - F: ~const FnMut<A>, + F: [const] FnMut<A>, { type Output = F::Output; extern "rust-call" fn call_once(self, args: A) -> F::Output { |
