diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2025-01-30 20:47:09 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-30 20:47:09 +0100 |
| commit | 867317835d0255fcfadc7ee90717a0ff9cd9bae4 (patch) | |
| tree | b16e41a9fe403d8a62b26d6282922364e06f51ff /compiler/rustc_hir_analysis/src | |
| parent | 410442f61044ebc8b9dc7659748536e9418f138c (diff) | |
| parent | fb1ad2fe02dc7d13b6a088b535bd8c293a8085be (diff) | |
| download | rust-867317835d0255fcfadc7ee90717a0ff9cd9bae4.tar.gz rust-867317835d0255fcfadc7ee90717a0ff9cd9bae4.zip | |
Rollup merge of #136288 - joshtriplett:would-you-could-you-with-some-locks--would-you-could-you-in-some-docs, r=m-ou-se
Improve documentation for file locking Add notes to each method stating that locks get dropped on close. Clarify the return values of the try methods: they're only defined if the lock is held via a *different* file handle/descriptor. That goes along with the documentation that calling them while holding a lock via the *same* file handle/descriptor may deadlock. Document the behavior of unlock if no lock is held. r? `@m-ou-se` (Documentation changes requested in https://github.com/rust-lang/rust/issues/130994 .)
Diffstat (limited to 'compiler/rustc_hir_analysis/src')
0 files changed, 0 insertions, 0 deletions
