about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2022-06-30 09:15:07 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2022-07-01 15:16:17 +1000
commitb94246693ac3ad95ee942ef77aed8e762474ddf7 (patch)
treed27afa5382c5cff96278c01f0663ba90348bca42 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent78ec19ffe63e793d5241a729e23969623b85d9df (diff)
downloadrust-b94246693ac3ad95ee942ef77aed8e762474ddf7.tar.gz
rust-b94246693ac3ad95ee942ef77aed8e762474ddf7.zip
Simplify pointer handling.
The existing derive code allows for various possibilities that aren't
needed in practice, which complicates the code. There are only a few
auto-derived traits and new ones are unlikely, so this commit simplifies
things.

- `PtrTy` has been eliminated. The `Raw` variant was never used, and the
  lifetime for the `Borrowed` variant was always `None`. That left just
  the mutability field, which has been inlined as necessary.
- `MethodDef::explicit_self` was a confusing `Option<Option<PtrTy>>`.
  Indicating either `&self` or nothing. It's now a `bool`.
- `borrowed_self` is renamed as `self_ref`.
- `Ty::Ptr` is renamed to `Ty::Ref`.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions