about summary refs log tree commit diff
path: root/tests/codegen-llvm/integer-overflow.rs
diff options
context:
space:
mode:
authorConnor Tsui <connor.tsui20@gmail.com>2025-07-19 12:40:08 +0200
committerConnor Tsui <connor.tsui20@gmail.com>2025-08-09 08:16:51 +0200
commitd710a8e8d7c130ce7814f592b981b59d03bdacac (patch)
tree17c33c6d81c49dd9d3a03979df5b73b74523959f /tests/codegen-llvm/integer-overflow.rs
parent4c7749e8c8e50ad146da599eea3a250160c1bc2b (diff)
downloadrust-d710a8e8d7c130ce7814f592b981b59d03bdacac.tar.gz
rust-d710a8e8d7c130ce7814f592b981b59d03bdacac.zip
reorganize rwlock file
This commit is a purely cosmetic change to the documentation and
ordering of items in the `rwlock.rs` file, which will help discern the
actual difference between the `nonpoison` and `poison` variants of
`rwlock`.

List of changes (lots of small things):

- Clean up some of the existing field doc comments
- Add documentation for every field in struct definitions
- Consolidate related implementation blocks (1 implementation block per
  guard instead of 2)
- Use the lifetime name `'rwlock` instead of `'a`
- Reorder implementation blocks to be consistent across the entire file
  (follows the order `ReadGuard`, `WriteGuard`, `MappedReadGuard`,
  MappedWriteGuard`)
- Move simple trait implementations to the bottom of the file
- Rename the `poison` field in `MappedRwLockWriteGuard` to
  posion_guard`
- Cut off comments at 100 columns
- Update the documentation of `downgrade` to match stabilization PR #
  143191
Diffstat (limited to 'tests/codegen-llvm/integer-overflow.rs')
0 files changed, 0 insertions, 0 deletions