We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a52b474 + bf9dc98 commit 9b9708aCopy full SHA for 9b9708a
src/libstd/thread/mod.rs
@@ -392,8 +392,8 @@ impl Builder {
392
393
/// FIXME: Doc
394
#[unstable(feature = "thread_spawn_unchecked", issue = "0")]
395
- pub unsafe fn spawn_unchecked<'a, F, T>(self, f: F) -> io::Result<JoinHandle<T>> where
396
- F: FnOnce() -> T, F: Send + 'a, T: Send + 'a
+ pub unsafe fn spawn_unchecked<F, T>(self, f: F) -> io::Result<JoinHandle<T>> where
+ F: FnOnce() -> T, F: Send, T: Send
397
{
398
let Builder { name, stack_size } = self;
399
0 commit comments