Skip to content

Commit 01a2a57

Browse files
Fix rebase errors
1 parent b3242f4 commit 01a2a57

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

library/core/src/ops/function.rs

+3
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ use crate::marker::Tuple;
7575
)]
7676
#[fundamental] // so that regex can rely that `&str: !FnMut`
7777
#[must_use = "closures are lazy and do nothing unless called"]
78+
#[const_trait]
7879
pub trait Fn<Args>: FnMut<Args> {
7980
/// Performs the call operation.
8081
#[unstable(feature = "fn_traits", issue = "29625")]
@@ -244,6 +245,7 @@ pub trait Fn<Args: Tuple>: FnMut<Args> {
244245
)]
245246
#[fundamental] // so that regex can rely that `&str: !FnMut`
246247
#[must_use = "closures are lazy and do nothing unless called"]
248+
#[const_trait]
247249
pub trait FnMut<Args>: FnOnce<Args> {
248250
/// Performs the call operation.
249251
#[unstable(feature = "fn_traits", issue = "29625")]
@@ -413,6 +415,7 @@ pub trait FnMut<Args: Tuple>: FnOnce<Args> {
413415
)]
414416
#[fundamental] // so that regex can rely that `&str: !FnMut`
415417
#[must_use = "closures are lazy and do nothing unless called"]
418+
#[const_trait]
416419
pub trait FnOnce<Args> {
417420
/// The returned type after the call operator is used.
418421
#[lang = "fn_once_output"]

0 commit comments

Comments
 (0)