]> git.lizzy.rs Git - rust.git/commitdiff
Fix rebase errors
authorMark Rousskov <mark.simulacrum@gmail.com>
Sun, 6 Nov 2022 22:38:47 +0000 (17:38 -0500)
committerMark Rousskov <mark.simulacrum@gmail.com>
Sun, 6 Nov 2022 22:38:47 +0000 (17:38 -0500)
library/core/src/ops/function.rs

index 8d4b0a7ccacdb68527c3b7128446af63e35e5e20..bcf0b8e37bca0e9f58696744af45696d3f64a7bf 100644 (file)
@@ -75,6 +75,7 @@
 )]
 #[fundamental] // so that regex can rely that `&str: !FnMut`
 #[must_use = "closures are lazy and do nothing unless called"]
+#[const_trait]
 pub trait Fn<Args>: FnMut<Args> {
     /// Performs the call operation.
     #[unstable(feature = "fn_traits", issue = "29625")]
@@ -244,6 +245,7 @@ pub trait Fn<Args: Tuple>: FnMut<Args> {
 )]
 #[fundamental] // so that regex can rely that `&str: !FnMut`
 #[must_use = "closures are lazy and do nothing unless called"]
+#[const_trait]
 pub trait FnMut<Args>: FnOnce<Args> {
     /// Performs the call operation.
     #[unstable(feature = "fn_traits", issue = "29625")]
@@ -413,6 +415,7 @@ pub trait FnMut<Args: Tuple>: FnOnce<Args> {
 )]
 #[fundamental] // so that regex can rely that `&str: !FnMut`
 #[must_use = "closures are lazy and do nothing unless called"]
+#[const_trait]
 pub trait FnOnce<Args> {
     /// The returned type after the call operator is used.
     #[lang = "fn_once_output"]