-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesA-metadataArea: Crate metadataArea: Crate metadata
Description
If you have code that links the same crate multiple times, the metadata loader may record several copies of the same crate in its crate list, e.g.
extern mod std(vers = "0.4");
extern std;
This could have potentially bad effects. It has already resulted a mysterious situation that caused all the crate hashes to change because of a spurious 'use'. I can imagine it also could cause types to not resolve if referenced from different mount points.
I believe that the metadata loader does make some effort to do this but it isn't sufficient.
Metadata
Metadata
Assignees
Labels
A-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesA-metadataArea: Crate metadataArea: Crate metadata