Files
rust/compiler
bors e30b68353f Auto merge of #88552 - nbdd0121:vtable, r=nagisa
Stop allocating vtable entries for non-object-safe methods

Current a vtable entry is allocated for all associated fns, even if the method is not object-safe: https://godbolt.org/z/h7vx6f35T

As a result, each vtable for `Iterator`' currently consumes 74 `usize`s. This PR stops allocating vtable entries for those methods, reducing vtable size of each `Iterator` vtable to 7 `usize`s.

Note that this PR introduces will cause more invocations of `is_vtable_safe_method`. So a perf run might be needed. If result isn't favorable then we might need to query-ify `is_vtable_safe_method`.
2021-09-05 18:55:32 +00:00
..
2021-09-03 23:36:22 +02:00
2021-08-30 20:17:45 -05:00
2021-08-30 22:18:55 -07:00
2021-08-30 20:18:39 -05:00
2021-08-27 16:21:25 -07:00
2021-09-02 10:18:08 +01:00