Post

Reading the issue: "yeah yeah simple hashes can collide, obviously not an issue for the compiler on any real wor... I'M SORRY WHAT" > That includes collisions where both sides look like plausible source paths, not gibberish, e.g. data/baselines/table.rs will conflict with database/line/stable.rs.

github.commiscompilation via engineered StableSourceFileId hash collisions · Issue #164348 · rust-lang/rustrustc uses the Path hash code to identify files, and the Path hash implementation is particularly weak because it ignores separators. As of PR #127297, it tries to compensate by mixing the componen...

1 repost5 likes