diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-10-03 10:44:48 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-10-08 16:28:58 +1100 |
| commit | 2b57a785a917faa8a1c44414ed3d43e13e626f63 (patch) | |
| tree | 9a70153c577dbe9dda58c6dd2dfadfce76354364 /tests/rustdoc-js-std/parser-errors.js | |
| parent | 0293827e093b233eda3a403a5238c164200bfc98 (diff) | |
| download | rust-2b57a785a917faa8a1c44414ed3d43e13e626f63.tar.gz rust-2b57a785a917faa8a1c44414ed3d43e13e626f63.zip | |
Inline and remove `RegionConstraintCollector::into_infos_and_data`.
It's a weird method, and used weirdly: - It's on `RegionConstraintCollector` but operates on `RegionConstraintStorage`. So at both call sites we create a temporary `RegionConstraintCollector`, using `with_log`, to call it. - It `take`s just two of the six fields in `RegionConstraintStorage`. At one of the two call sites we unnecessarily clone the entire `RegionConstraintStorage` just to take those two fields. This commit just inlines and removes it. We no longer need to `take` the two fields, we can just use them directly.
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions
