Skip to content

Commit 9b9708a

Browse files
Merge pull request #2 from oliver-giersch/unchecked_thread_spawning_fixes
remove unnecessary lifetime bounds
2 parents a52b474 + bf9dc98 commit 9b9708a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/thread/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -392,8 +392,8 @@ impl Builder {
392392

393393
/// FIXME: Doc
394394
#[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
395+
pub unsafe fn spawn_unchecked<F, T>(self, f: F) -> io::Result<JoinHandle<T>> where
396+
F: FnOnce() -> T, F: Send, T: Send
397397
{
398398
let Builder { name, stack_size } = self;
399399

0 commit comments

Comments
 (0)