rust/compiler/rustc_mir
Rich Kadel 41667e8534 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.
2021-04-24 17:27:24 -07:00
..
src Improve spans for chained function calls 2021-04-24 17:27:24 -07:00
Cargo.toml bumped smallvec deps 2021-02-14 18:03:11 +03:00