Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rust-lang/rust
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f51bb4e4cf61520eb74830a27f1cb811dcafbd43
Choose a base ref
..
head repository: rust-lang/rust
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 118bb7416c4602562e57ccda94c7aeb8ae026bfd
Choose a head ref
Showing with 1 addition and 1 deletion.
  1. +1 −1 library/std/src/sys/pal/teeos/thread.rs
2 changes: 1 addition & 1 deletion library/std/src/sys/pal/teeos/thread.rs
Original file line number Diff line number Diff line change
@@ -56,7 +56,7 @@ impl Thread {
}
};

let ret = unsafe { libc::pthread_create(&mut native, &attr, thread_start, p as *mut _) };
let ret = libc::pthread_create(&mut native, &attr, thread_start, p as *mut _);
// Note: if the thread creation fails and this assert fails, then p will
// be leaked. However, an alternative design could cause double-free
// which is clearly worse.