Rob Shearman c88cb08afc Fix mut_mutex_lock when reference not ultimately mutable
When there is are multiple references where one of the references
isn't mutable then this results in a false-positive for
`mut_mutex_lock` as it only checks the mutability of the first
reference level.

Fix this by using `peel_mid_ty_refs_is_mutable` which correctly
determines whether the reference is ultimately mutable and thus
whether `Mutex::get_lock()` can actually be used.

Fixes #9854
2024-10-01 22:19:42 +02:00
..
2024-09-22 20:52:15 +02:00
2024-09-22 20:52:15 +02:00
2024-09-25 13:48:15 -04:00
2024-09-09 17:05:31 +02:00
2024-09-22 20:52:15 +02:00
2024-09-22 20:52:15 +02:00
2024-09-22 20:52:15 +02:00
2024-09-09 17:05:31 +02:00
2024-09-09 17:05:31 +02:00
2024-09-09 17:05:31 +02:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-09 17:05:31 +02:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-09 17:05:31 +02:00
2024-09-09 17:05:31 +02:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:48:15 -04:00
2024-09-22 20:52:15 +02:00
2024-09-22 20:52:15 +02:00
2024-09-22 20:52:15 +02:00
2024-09-22 20:52:15 +02:00
2024-09-22 20:52:15 +02:00
2024-09-22 20:52:15 +02:00
2024-09-22 20:52:15 +02:00
2024-09-22 20:52:15 +02:00
2024-09-22 20:52:15 +02:00
2024-09-22 20:52:15 +02:00
2024-09-09 17:05:31 +02:00
2024-09-09 17:05:31 +02:00
2024-09-09 17:05:31 +02:00
2024-09-06 00:55:42 +02:00
2024-09-06 00:55:42 +02:00
2024-09-06 00:55:42 +02:00
2024-09-22 20:52:15 +02:00
2024-09-22 20:52:15 +02:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-09 17:05:31 +02:00
2024-09-09 17:05:31 +02:00
2024-09-22 20:52:15 +02:00
2024-09-22 20:52:15 +02:00
2024-09-22 20:52:15 +02:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-09 17:05:31 +02:00
2024-09-09 17:05:31 +02:00
2024-09-22 20:52:15 +02:00
2024-09-22 20:52:15 +02:00
2024-09-22 20:52:15 +02:00
2024-09-11 13:58:05 -03:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-09 17:05:31 +02:00
2024-09-25 13:52:12 -04:00
2024-09-09 17:05:31 +02:00
2024-09-22 20:52:15 +02:00
2024-09-22 20:52:15 +02:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-25 13:52:12 -04:00
2024-09-22 20:52:15 +02:00
2024-09-25 13:52:12 -04:00
2024-09-09 17:05:31 +02:00
2024-09-09 17:05:31 +02:00
2024-09-22 20:52:15 +02:00
2024-09-22 20:52:15 +02:00
2024-09-01 12:38:59 +02:00
2024-09-25 13:52:12 -04:00