rust/compiler/rustc_mir
Yuki Okushi 3f89ca1a32
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`
2021-04-28 16:59:06 +09:00
..
src Rollup merge of #84529 - richkadel:issue-84180, r=tmandry 2021-04-28 16:59:06 +09:00
Cargo.toml bumped smallvec deps 2021-02-14 18:03:11 +03:00