diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-06-30 09:15:07 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-07-01 15:16:17 +1000 |
| commit | b94246693ac3ad95ee942ef77aed8e762474ddf7 (patch) | |
| tree | d27afa5382c5cff96278c01f0663ba90348bca42 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 78ec19ffe63e793d5241a729e23969623b85d9df (diff) | |
| download | rust-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/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
