about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2025-01-30 11:42:19 +0100
committerJosh Triplett <josh@joshtriplett.org>2025-01-30 11:48:26 +0100
commitfb1ad2fe02dc7d13b6a088b535bd8c293a8085be (patch)
tree39bbaab9cfe1514d3300152cdb6ebaeba68ebe9d /compiler/rustc_hir_analysis/src
parente6f12c8b7d8d5c821c32fb2739ea01d1d874c58a (diff)
downloadrust-fb1ad2fe02dc7d13b6a088b535bd8c293a8085be.tar.gz
rust-fb1ad2fe02dc7d13b6a088b535bd8c293a8085be.zip
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.
Diffstat (limited to 'compiler/rustc_hir_analysis/src')
0 files changed, 0 insertions, 0 deletions