about summary refs log tree commit diff
path: root/src/liballoc_jemalloc
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2017-09-01 09:24:02 -0700
committerAlex Crichton <alex@alexcrichton.com>2017-09-05 07:47:27 -0700
commit0cdc58a1bc6ea5ce9ba11c21bfd6d5b85b3efc87 (patch)
tree739a1228f50ecb3fe062fdf4764a6c1f3847f113 /src/liballoc_jemalloc
parent9a231961d59135c7dc41d9b94ffe43ecc9bbd8cb (diff)
downloadrust-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