mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
57a7c8f577
The comment says "Find the smallest CGU that has exported symbols and put the dead function stubs in that CGU". But the code sorts the CGUs by size (smallest first) and then searches them in reverse order, which means it will find the *largest* CGU that has exported symbols. The erroneous code was introduced in #92142. This commit changes it to use a simpler search, avoiding the sort, and fixes the bug in the process. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
messages.ftl |