diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-01-30 11:19:17 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-01-31 08:27:15 +1100 |
| commit | 969d9336ca934eaba0dc58b20d5d3ddf8d825c28 (patch) | |
| tree | dc3948b262ce47bfdf5e99d49f93d2c2a1b007b0 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 7be593e379e4d5737700b1a09887992caea7cf87 (diff) | |
| download | rust-969d9336ca934eaba0dc58b20d5d3ddf8d825c28.tar.gz rust-969d9336ca934eaba0dc58b20d5d3ddf8d825c28.zip | |
Remove unnecessary builders.
`delegation.rs` has three builders: `GenericsBuilder`, `PredicatesBuilder`, and `GenericArgsBuilder`. The first two builders have just two optional parameters, and the third one has zero. Each builder is used within a single function. The code is over-engineered. This commit removes the builders, replacing each with with a single `build_*` function. This makes the code shorter and simpler.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
