about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/reference-shrink.js
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-06-07 09:24:37 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2023-06-07 10:27:00 +1000
commit8dbb3475b93a15cbd64e9b726a775ee2b31328a6 (patch)
treeb3a4efc960cb8fc9748e8e684f3bd3d074c91eac /tests/rustdoc-js-std/reference-shrink.js
parentfe3b6465654d8d73f9ddd45faf02971614f5780b (diff)
downloadrust-8dbb3475b93a15cbd64e9b726a775ee2b31328a6.tar.gz
rust-8dbb3475b93a15cbd64e9b726a775ee2b31328a6.zip
Split loop in `place_inlined_mono_item`.
This loop is doing two different things. For inlined items, it's adding
them to the CGU. For all items, it's recording them in
`mono_item_placements`.

This commit splits it into two separate loops. This avoids putting root
mono items into `reachable`, and removes the low-value check that
`roots` doesn't contain inlined mono items.
Diffstat (limited to 'tests/rustdoc-js-std/reference-shrink.js')
0 files changed, 0 insertions, 0 deletions