cstore_impl dependency format linkage sometimes unknown #65890
Labels
A-linkage
Area: linking into static, shared libraries and binaries
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
spawned off of #64872
The
match
input here (on line 245):rust/src/librustc_metadata/cstore_impl.rs
Lines 243 to 249 in 9285d40
sometimes returns
None
Its not yet clear to me under which scenarios that happens. But when it does happen, the dependency may be (re)exported from a static or a dynamic crate. This is probably a sign that the logic here needs to be revised in some way (assuming that the information in question is available somewhere in the data structures; otherwise, we'll need to try to add it).
In any case, this issue is to log the problem, so that I can link to it from any tests I encounter that were previously assuming that the
-Z share-generics
optimization would always fire in this scenario.The text was updated successfully, but these errors were encountered: