about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2020-02-22 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2020-03-03 13:11:19 +0100
commit3ab596514a34cf3f5ef75ec4ac9ddf2f0b4d268f (patch)
tree0fda33f41303d506e29c0646fc6910b115493e84 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parent9381e8178b49636d4604e4ec0f1263960691c958 (diff)
downloadrust-3ab596514a34cf3f5ef75ec4ac9ddf2f0b4d268f.tar.gz
rust-3ab596514a34cf3f5ef75ec4ac9ddf2f0b4d268f.zip
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/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions