Files
rust/compiler
Jacob Pratt e7ef07a523 Rollup merge of #141690 - Patrick-6:intercept-mutex, r=m-ou-se
Add `rustc_diagnostic_item` to `sys::Mutex` methods

For an ongoing project for adding a concurrency model checker to Miri we need to be able to intercept locking/unlocking operations on standard library mutexes.

This PR adds diagnostic items to the relevant calls `lock`, `try_lock` and `unlock` for the `sys::Mutex` implementation on the targets we care about.
This PR also makes the internals of `pthread::Mutex` less public, to reduce the chance of anyone locking/unlocking a mutex without going through the intercepted methods.

r? ``@RalfJung``
2025-05-29 04:49:47 +02:00
..
2025-05-27 11:14:47 +00:00
2025-05-27 14:11:14 +03:00
2025-05-27 14:11:14 +03:00
2025-05-22 11:55:22 +10:00
2025-05-12 15:33:37 +02:00
2025-04-15 10:44:28 -04:00
2025-05-27 11:14:47 +00:00
2025-05-12 15:33:37 +02:00
2025-05-27 11:14:45 +00:00
2025-05-27 11:14:45 +00:00
2025-05-24 15:06:53 +08:00
2025-05-27 11:14:47 +00:00