about summary refs log tree commit diff
path: root/src/test/rustdoc-ui/coverage/json.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-03-03 16:38:02 +0000
committerbors <bors@rust-lang.org>2020-03-03 16:38:02 +0000
commit3c5b1b7d63f55ac96fc7cd06df01e0f0e4f49d47 (patch)
treee65b06d3793a85cf652ee6886c54f08e98ada822 /src/test/rustdoc-ui/coverage/json.rs
parentb135c739fb542d2c78e30f3e945ff3e528942190 (diff)
parent44dba79124c73585812fa781e425c8a0644c01ad (diff)
downloadrust-3c5b1b7d63f55ac96fc7cd06df01e0f0e4f49d47.tar.gz
rust-3c5b1b7d63f55ac96fc7cd06df01e0f0e4f49d47.zip
Auto merge of #69371 - tmiasko:weak-lang-cycle, r=alexcrichton
Improve linking of crates with circular dependencies

Previously, the code responsible for handling the cycles between crates
introduces through weak lang items, would keep a set of missing language
items:

* extending it with items missing from the current crate,
* removing items provided by the current crate,
* grouping the crates when the set changed from non-empty back to empty.

This could produce incorrect results, if a lang item was missing from a
crate that comes after the crate that provides it (in the loop iteration
order). In that case the grouping would not take place.

The changes here address this specific failure scenario by keeping track
of two separate sets of crates. Those that are required to link successfully,
and those that are available for linking.

Verified using test case from #69368.
Diffstat (limited to 'src/test/rustdoc-ui/coverage/json.rs')
0 files changed, 0 insertions, 0 deletions