about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
diff options
context:
space:
mode:
authorRich Kadel <richkadel@google.com>2021-04-24 13:55:10 -0700
committerRich Kadel <richkadel@google.com>2021-04-24 17:27:24 -0700
commit41667e853489c54b6e7960871aaa124ce0a5437b (patch)
tree45cf5b74b0d4c978b5632faf184c8692c022ff3d /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
parent2b68027841af952d624a5ce509834237f8eda7e3 (diff)
downloadrust-41667e853489c54b6e7960871aaa124ce0a5437b.tar.gz
rust-41667e853489c54b6e7960871aaa124ce0a5437b.zip
Improve spans for chained function calls
Fixes: #84180

For chained function calls separated by the `?` try operator, the
function call following the try operator produced a MIR `Call` span that
matched the span of the first call. The `?` try operator started a new
span, so the second call got no span.

It turns out the MIR `Call` terminator has a `func` `Operand`
for the `Constant` representing the function name, and the function
name's Span can be used to reset the starting position of the span.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions