rust/compiler
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
..
rustc use jemallocator in rustc/rustdoc 2021-04-04 14:10:26 -07:00
rustc_apfloat
rustc_arena
rustc_ast Auto merge of #84334 - klensy:typo-compiler, r=jyn514 2021-04-20 00:16:45 +00:00
rustc_ast_lowering Lower async fn in traits. 2021-04-13 20:57:44 +02:00
rustc_ast_passes Auto merge of #83722 - jyn514:stable-help, r=estebank 2021-04-24 02:25:54 +00:00
rustc_ast_pretty Use AnonConst for asm! constants 2021-04-06 12:35:41 +01:00
rustc_attr Allow specifying alignment for functions 2021-04-05 17:36:51 -04:00
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 #84339 - alexcrichton:llvm-fptoint-sat, r=nagisa 2021-04-23 18:35:49 +00:00
rustc_data_structures Use arrayvec 0.7, drop smallvec 0.6 2021-04-21 22:39:08 -07:00
rustc_driver Rollup merge of #83895 - eggyal:issue-83883, r=jyn514 2021-04-06 17:42:31 +02:00
rustc_error_codes Auto merge of #83729 - JohnTitor:issue-43913, r=estebank 2021-04-23 23:44:49 +00:00
rustc_errors fix few typos 2021-04-19 15:57:08 +03:00
rustc_expand fix few typos 2021-04-19 15:57:08 +03:00
rustc_feature Auto merge of #84091 - tmiasko:check-attrs-sym, r=davidtwco 2021-04-19 18:05:44 +00:00
rustc_fs_util
rustc_graphviz
rustc_hir Update comment on PrimTy::name_str 2021-04-22 23:32:48 -04:00
rustc_hir_pretty Use AnonConst for asm! constants 2021-04-06 12:35:41 +01:00
rustc_incremental Also profile finishing the encoding. 2021-03-30 18:10:08 +02:00
rustc_index Use arrayvec 0.7, drop smallvec 0.6 2021-04-21 22:39:08 -07:00
rustc_infer fix few typos 2021-04-19 15:57:08 +03:00
rustc_interface Track -C link-dead-code during incremental compilation 2021-04-15 15:05:26 -04: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 fix few typos 2021-04-19 15:57:08 +03: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 #83820 - petrochenkov:nolinkargs, r=nagisa 2021-04-05 00:24:33 +02:00
rustc_middle Rollup merge of #84343 - camsteffen:closure-tree, r=varkor 2021-04-22 18:14:32 +02:00
rustc_mir Improve spans for chained function calls 2021-04-24 17:27:24 -07:00
rustc_mir_build Auto merge of #84295 - richkadel:continue-coverage, r=tmandry 2021-04-20 03:08:24 +00:00
rustc_parse fix few typos 2021-04-19 15:57:08 +03:00
rustc_parse_format
rustc_passes Rollup merge of #84343 - camsteffen:closure-tree, r=varkor 2021-04-22 18:14:32 +02: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 outdated crate names in compiler docs 2021-04-08 11:12:14 -05:00
rustc_resolve Auto merge of #83729 - JohnTitor:issue-43913, r=estebank 2021-04-23 23:44:49 +00:00
rustc_save_analysis Remove hir::CrateItem. 2021-03-30 20:31:06 +02:00
rustc_serialize
rustc_session Rollup merge of #84436 - jyn514:private, r=petrochenkov 2021-04-24 12:17:04 +09:00
rustc_span Auto merge of #84339 - alexcrichton:llvm-fptoint-sat, r=nagisa 2021-04-23 18:35:49 +00:00
rustc_symbol_mangling Rollup merge of #80525 - devsnek:wasm64, r=nagisa 2021-04-05 00:24:23 +02:00
rustc_target Auto merge of #84334 - klensy:typo-compiler, r=jyn514 2021-04-20 00:16:45 +00:00
rustc_trait_selection Rollup merge of #84343 - camsteffen:closure-tree, r=varkor 2021-04-22 18:14:32 +02:00
rustc_traits Auto merge of #83207 - oli-obk:valtree2, r=lcnr 2021-04-02 10:28:12 +00:00
rustc_ty_utils resolve conflicts 2021-04-05 22:58:11 +08:00
rustc_type_ir Remove nightly features in rustc_type_ir 2021-04-03 10:00:09 +02:00
rustc_typeck Rollup merge of #84404 - tmiasko:intrinsics-in-coercion-lub, r=Mark-Simulacrum 2021-04-22 18:14:42 +02:00