diff options
| author | bors <bors@rust-lang.org> | 2024-12-20 21:00:14 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-12-20 21:00:14 +0000 |
| commit | 5f23ef7d3f7a8c3e0ca5c4e1978829c0448a3686 (patch) | |
| tree | f09961843930f17b66d00271853fa5799bcb7426 /library/std/src/sys/pal/unix | |
| parent | bad2aa47219ae54d51d353e145d33d0a1792327d (diff) | |
| parent | 10a7405fdefddfc341e37b9a640e4a086cf8da27 (diff) | |
| download | rust-5f23ef7d3f7a8c3e0ca5c4e1978829c0448a3686.tar.gz rust-5f23ef7d3f7a8c3e0ca5c4e1978829c0448a3686.zip | |
Auto merge of #134582 - matthiaskrgr:rollup-i0oyqjw, r=matthiaskrgr
Rollup of 8 pull requests Successful merges: - #134556 ([tiny] fix missing ns units in bootstrap's benchmark rendering) - #134560 (mri: add track_caller to thread spawning methods for better backtraces) - #134561 (Reduce the amount of explicit FatalError.raise()) - #134562 (tests/codegen/asm: Remove uses of rustc_attrs and lang_items features by using minicore) - #134567 (Remove some dead code around import library generation) - #134570 (remove reference to dangling from slice::Iter) - #134573 (unimplement `PointerLike` for trait objects) - #134574 (next-solver: disable unnecessary hack) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'library/std/src/sys/pal/unix')
| -rw-r--r-- | library/std/src/sys/pal/unix/thread.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/sys/pal/unix/thread.rs b/library/std/src/sys/pal/unix/thread.rs index 131a6e81b1e..e360ba0f6d7 100644 --- a/library/std/src/sys/pal/unix/thread.rs +++ b/library/std/src/sys/pal/unix/thread.rs @@ -45,6 +45,7 @@ unsafe impl Sync for Thread {} impl Thread { // unsafe: see thread::Builder::spawn_unchecked for safety requirements + #[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces pub unsafe fn new(stack: usize, p: Box<dyn FnOnce()>) -> io::Result<Thread> { let p = Box::into_raw(Box::new(p)); let mut native: libc::pthread_t = mem::zeroed(); |
