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:
authorYuki Okushi <jtitor@2k36.org>2021-04-28 16:59:06 +0900
committerGitHub <noreply@github.com>2021-04-28 16:59:06 +0900
commit3f89ca1a32b666ca5733850ef26af26d9dc27d2e (patch)
tree9217a1ff06a11005167bf77eea3c0425d86c7a45 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
parent537544b1061467ee4b74ef7f552fab3d513e5caf (diff)
parent41667e853489c54b6e7960871aaa124ce0a5437b (diff)
downloadrust-3f89ca1a32b666ca5733850ef26af26d9dc27d2e.tar.gz
rust-3f89ca1a32b666ca5733850ef26af26d9dc27d2e.zip
Rollup merge of #84529 - richkadel:issue-84180, r=tmandry
Improve coverage 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.

r? `@tmandry`
cc: `@wesleywiser`
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions