]> git.lizzy.rs Git - rust.git/blobdiff - library/core/src/const_closure.rs
Revert "Implement allow-by-default multiple_supertrait_upcastable lint"
[rust.git] / library / core / src / const_closure.rs
index 9e9c02093be203d208845880537a6d4a3288c654..97900a4862f5653fc49c537fdc95c3690d71d9a0 100644 (file)
@@ -1,4 +1,5 @@
 use crate::marker::Destruct;
+use crate::marker::Tuple;
 
 /// Struct representing a closure with mutably borrowed data.
 ///
@@ -45,7 +46,7 @@ pub(crate) const fn new<ClosureArguments, ClosureReturnValue>(
 macro_rules! impl_fn_mut_tuple {
     ($($var:ident)*) => {
         #[allow(unused_parens)]
-        impl<'a, $($var,)* ClosureArguments, Function, ClosureReturnValue> const
+        impl<'a, $($var,)* ClosureArguments: Tuple, Function, ClosureReturnValue> const
             FnOnce<ClosureArguments> for ConstFnMutClosure<($(&'a mut $var),*), Function>
         where
             Function: ~const Fn(($(&mut $var),*), ClosureArguments) -> ClosureReturnValue+ ~const Destruct,
@@ -57,7 +58,7 @@ extern "rust-call" fn call_once(mut self, args: ClosureArguments) -> Self::Outpu
             }
         }
         #[allow(unused_parens)]
-        impl<'a, $($var,)* ClosureArguments, Function, ClosureReturnValue> const
+        impl<'a, $($var,)* ClosureArguments: Tuple, Function, ClosureReturnValue> const
             FnMut<ClosureArguments> for ConstFnMutClosure<($(&'a mut $var),*), Function>
         where
             Function: ~const Fn(($(&mut $var),*), ClosureArguments)-> ClosureReturnValue,