diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2020-12-07 17:44:40 -0500 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2021-01-23 15:41:17 -0500 |
| commit | 3540f9396aff85110277af03b68b3303f3a8b7d3 (patch) | |
| tree | 5d497b506bb534dcadec15a5d792ca1cda9d81b0 /compiler/rustc_codegen_llvm/src | |
| parent | 4d0dd02ee07bddad9136f95c9f7846ebf3eb3fc5 (diff) | |
| download | rust-3540f9396aff85110277af03b68b3303f3a8b7d3.tar.gz rust-3540f9396aff85110277af03b68b3303f3a8b7d3.zip | |
Add disambiugator to ExpnData
Due to macro expansion, its possible to end up with two distinct `ExpnId`s that have the same `ExpnData` contents. This violates the contract of `HashStable`, since two unequal `ExpnId`s will end up with equal `Fingerprint`s. This commit adds a `disambiguator` field to `ExpnData`, which is used to force two otherwise-equivalent `ExpnData`s to be distinct.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
