about summary refs log tree commit diff
path: root/tests/ui/recursion/issue-26548-recursion-via-normalize.stderr
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-07-20 20:34:06 +0000
committerbors <bors@rust-lang.org>2023-07-20 20:34:06 +0000
commit399b068235ceea440540539b3bfd1aeb82214a28 (patch)
tree4c30e3f873d2ce6a23a93e28296c5ee658a24f67 /tests/ui/recursion/issue-26548-recursion-via-normalize.stderr
parent1554942cdc0099e081d5cd673d45f8a09cfd0eb0 (diff)
parent1f02c75718706d6180f9b25f55aa50f1b4ce75e1 (diff)
downloadrust-399b068235ceea440540539b3bfd1aeb82214a28.tar.gz
rust-399b068235ceea440540539b3bfd1aeb82214a28.zip
Auto merge of #113856 - WaffleLapkin:vtablin', r=oli-obk
Refactor vtable encoding and optimize it for the case of multiple marker traits

This PR does two things
- Refactor `prepare_vtable_segments` (this was motivated by the other change, `prepare_vtable_segments` was quite hard to understand and while trying to edit it I've refactored it)
  - Mostly remove `loop`s labeled `break`s/`continue`s whenever there is a simpler solution
  - Also use `?`
- Make vtable format a bit more efficient wrt to marker traits
  - See the tests for an example

Fixes https://github.com/rust-lang/rust/issues/113840
cc `@crlf0710`

----

Review wise it's probably best to review each commit individually, as then it's more clear why the refactoring is correct.

I can split the last two commits (which change behavior) into a separate PR if it makes reviewing easier
Diffstat (limited to 'tests/ui/recursion/issue-26548-recursion-via-normalize.stderr')
0 files changed, 0 insertions, 0 deletions