about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorTyson Nottingham <tgnottingham@gmail.com>2020-09-01 21:50:07 -0700
committerTyson Nottingham <tgnottingham@gmail.com>2020-11-04 01:37:18 -0800
commitb71e627b26a5ef932c9e1c10813a500a70211810 (patch)
tree16c8f36b19bdb04f5fae3626a5d9d9a4ccfa6562 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent0dce3f606e05cffab7361c132a399d3550ab0df8 (diff)
downloadrust-b71e627b26a5ef932c9e1c10813a500a70211810.tar.gz
rust-b71e627b26a5ef932c9e1c10813a500a70211810.zip
incr-comp: hash span end line/column
Hash both the length and the end location (line/column) of a span. If we
hash only the length, for example, then two otherwise equal spans with
different end locations will have the same hash. This can cause a
problem during incremental compilation wherein a previous result for a
query that depends on the end location of a span will be incorrectly
reused when the end location of the span it depends on has changed. A
similar analysis applies if some query depends specifically on the
length of the span, but we only hash the end location. So hash both.

Fix #46744, fix #59954, fix #63161, fix #73640, fix #73967, fix #74890, fix #75900
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions