diff options
| author | Rob Shearman <rob@graphiant.com> | 2024-07-18 13:38:05 +0100 |
|---|---|---|
| committer | blyxyas <blyxyas@gmail.com> | 2024-10-01 22:19:42 +0200 |
| commit | c88cb08afc100a400cf8f0095bac5b83175b5791 (patch) | |
| tree | 395485dc9c14be2db8627290f048bbad927f934f /src/librustdoc/scrape_examples.rs | |
| parent | 71c7d445db57084549cde578d1fc1a80eeb5c81c (diff) | |
| download | rust-c88cb08afc100a400cf8f0095bac5b83175b5791.tar.gz rust-c88cb08afc100a400cf8f0095bac5b83175b5791.zip | |
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
Diffstat (limited to 'src/librustdoc/scrape_examples.rs')
0 files changed, 0 insertions, 0 deletions
