diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2017-09-01 09:24:02 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2017-09-05 07:47:27 -0700 |
| commit | 0cdc58a1bc6ea5ce9ba11c21bfd6d5b85b3efc87 (patch) | |
| tree | 739a1228f50ecb3fe062fdf4764a6c1f3847f113 /src/liballoc_jemalloc | |
| parent | 9a231961d59135c7dc41d9b94ffe43ecc9bbd8cb (diff) | |
| download | rust-0cdc58a1bc6ea5ce9ba11c21bfd6d5b85b3efc87.tar.gz rust-0cdc58a1bc6ea5ce9ba11c21bfd6d5b85b3efc87.zip | |
rustc: Store InternedString in `DefPathData`
Previously a `Symbol` was stored there, but this ended up causing hash collisions in situations that otherwise shouldn't have a hash collision. Only the symbol's string value was hashed, but it was possible for distinct symbols to have the same string value, fooling various calcuations into thinking that these paths *didn't* need disambiguating data when in fact they did! By storing `InternedString` instead we're hopefully triggering all the exising logic to disambiguate paths with same-name `Symbol` but actually distinct locations.
Diffstat (limited to 'src/liballoc_jemalloc')
0 files changed, 0 insertions, 0 deletions
