Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
trans: Disambiguate generic instance symbol names by instantiating cr…
…ate. Two crates will often instantiate the same generic functions. Since we don't make any attempt to re-use these instances cross-crate, we would run into symbol conflicts for anything with external linkage. In order to avoid this, this commit makes the compiler incorporate the ID of the instantiating crate into the symbol hash. This way equal generic instances will have different symbols names when used in different crates.
- Loading branch information