about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-02-14 02:41:20 +0100
committerGitHub <noreply@github.com>2019-02-14 02:41:20 +0100
commit4ad3cf25330a239cf66c150dadb9efe7b4126973 (patch)
treef01d6ee8047017928f0fea21ffd535d667c353b3 /src/rustllvm/RustWrapper.cpp
parentb6ed20648421bcb1d6da1392597dd67e978f2a11 (diff)
parent802c897eb3c95e6643bd4e2cd85052786458e3d8 (diff)
downloadrust-4ad3cf25330a239cf66c150dadb9efe7b4126973.tar.gz
rust-4ad3cf25330a239cf66c150dadb9efe7b4126973.zip
Rollup merge of #58267 - estebank:match-arms, r=matthewjasper
Tweak "incompatible match arms" error

- Point at the body expression of the match arm with the type error.
- Point at the prior match arms explicitly stating the evaluated type.
- Point at the entire match expr in a secondary span, instead of primary.
- For type errors in the first match arm, the cause is outside of the
  match, treat as implicit block error to give a more appropriate error.

Fix #46776, fix #57206.
CC #24157, #38234.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions