rust/compiler
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
..
rustc
rustc_apfloat
rustc_arena
rustc_ast Auto merge of #84310 - RalfJung:const-fn-feature-flags, r=oli-obk 2021-04-24 23:16:03 +00:00
rustc_ast_lowering Lower async fn in traits. 2021-04-13 20:57:44 +02:00
rustc_ast_passes Auto merge of #84544 - RalfJung:const_fn_in_trait, r=oli-obk 2021-04-26 02:56:25 +00:00
rustc_ast_pretty
rustc_attr
rustc_builtin_macros builtin derive macros: fix error with const generics default 2021-04-16 16:29:11 +02:00
rustc_codegen_cranelift Add more SIMD math.h intrinsics 2021-04-14 15:25:06 -07:00
rustc_codegen_llvm Disable LLVM's new fptoint intrinsics on riscv64 2021-04-23 07:45:23 -07:00
rustc_codegen_ssa Auto merge of #84498 - workingjubilee:update-grab-bag, r=Mark-Simulacrum 2021-04-28 02:45:03 +00:00
rustc_data_structures Use latest crossbeam 2021-04-23 16:27:08 -07:00
rustc_driver
rustc_error_codes remove const_fn from some error_code descriptions 2021-04-25 12:19:06 +02:00
rustc_errors Rollup merge of #84235 - klensy:styled-buffer, r=lcnr 2021-04-25 23:15:10 +02:00
rustc_expand fix few typos 2021-04-19 15:57:08 +03:00
rustc_feature Auto merge of #84299 - lcnr:const-generics-defaults-name-res, r=varkor 2021-04-25 14:00:49 +00:00
rustc_fs_util
rustc_graphviz
rustc_hir Auto merge of #84299 - lcnr:const-generics-defaults-name-res, r=varkor 2021-04-25 14:00:49 +00:00
rustc_hir_pretty Handle pretty printing of else if let clauses 2021-04-23 13:29:18 -04:00
rustc_incremental
rustc_index fix sanitizer tests 2021-04-25 11:08:33 +02:00
rustc_infer Auto merge of #84310 - RalfJung:const-fn-feature-flags, r=oli-obk 2021-04-24 23:16:03 +00:00
rustc_interface Use tempfile 2021-04-23 15:33:57 -07:00
rustc_lexer Fix outdated crate names in compiler docs 2021-04-08 11:12:14 -05:00
rustc_lint fix few typos 2021-04-19 15:57:08 +03:00
rustc_lint_defs Typo 2021-04-20 09:30:28 -04:00
rustc_llvm RustWrapper: work around unification of diagnostic handlers 2021-04-22 15:46:47 -04:00
rustc_macros
rustc_metadata Rollup merge of #84450 - jyn514:missing-std, r=petrochenkov 2021-04-25 23:15:11 +02:00
rustc_middle move representability out of rustc_middle 2021-04-27 15:01:37 +02:00
rustc_mir Rollup merge of #84529 - richkadel:issue-84180, r=tmandry 2021-04-28 16:59:06 +09:00
rustc_mir_build Auto merge of #84310 - RalfJung:const-fn-feature-flags, r=oli-obk 2021-04-24 23:16:03 +00:00
rustc_parse fix few typos 2021-04-19 15:57:08 +03:00
rustc_parse_format
rustc_passes Auto merge of #84546 - CohenArthur:fix-liveness-typo, r=jyn514 2021-04-26 11:18:25 +00:00
rustc_plugin_impl
rustc_privacy fix few typos 2021-04-19 15:57:08 +03:00
rustc_query_impl Introduce CompileMonoItem DepNode 2021-04-12 13:58:12 +02:00
rustc_query_system fix feature use in rustc libs 2021-04-18 22:05:45 +02:00
rustc_resolve Auto merge of #84299 - lcnr:const-generics-defaults-name-res, r=varkor 2021-04-25 14:00:49 +00:00
rustc_save_analysis
rustc_serialize
rustc_session Rollup merge of #83519 - oli-obk:assign_shrink_your_normal_code, r=pnkfelix 2021-04-25 01:53:09 +09:00
rustc_span Auto merge of #84147 - cuviper:array-method-dispatch, r=nikomatsakis,m-ou-se 2021-04-25 07:26:49 +00:00
rustc_symbol_mangling
rustc_target Auto merge of #84310 - RalfJung:const-fn-feature-flags, r=oli-obk 2021-04-24 23:16:03 +00:00
rustc_trait_selection Rollup merge of #84343 - camsteffen:closure-tree, r=varkor 2021-04-22 18:14:32 +02:00
rustc_traits
rustc_ty_utils move representability out of rustc_middle 2021-04-27 15:01:37 +02:00
rustc_type_ir
rustc_typeck move representability out of rustc_middle 2021-04-27 15:01:37 +02:00