about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-02-12 14:01:13 +0000
committerbors <bors@rust-lang.org>2022-02-12 14:01:13 +0000
commit9c3a3e3d5bd65fd534336101a06f7b11396c3208 (patch)
tree35eee2e993e3a03d52ca18e23600052c30aa8032 /compiler/rustc_codegen_llvm/src
parentf8f175199e8db959cf25f1582157ca89ecf6210a (diff)
parent1d21ce723cfbadb711eab1cf21df28a1636b7230 (diff)
downloadrust-9c3a3e3d5bd65fd534336101a06f7b11396c3208.tar.gz
rust-9c3a3e3d5bd65fd534336101a06f7b11396c3208.zip
Auto merge of #93697 - the8472:fix-windows-path-hash, r=Mark-Simulacrum
Fix hashing for windows paths containing a CurDir component

* the logic only checked for / but not for \
* verbatim paths shouldn't skip items at all since they don't get normalized
* the extra branches get optimized out on unix since is_sep_byte is a trivial comparison and is_verbatim is always-false
* tests lacked windows coverage for these cases

That lead to equal paths not having equal hashes and to unnecessary collisions.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions