diff options
| author | bors <bors@rust-lang.org> | 2021-09-19 04:34:16 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-09-19 04:34:16 +0000 |
| commit | 3bca7230ff1ec35db25f2547cf2e83a6f450e923 (patch) | |
| tree | c2a7e67b92c4fa16187323c4fbea9d133dfeee6d /compiler/rustc_codegen_llvm/src/llvm_util.rs | |
| parent | 10967a1dcc9847a6fa616e58a788efdf32cadf98 (diff) | |
| parent | 31cdd8cdd2a20dbdeae3d3f79d5f9080d431a87d (diff) | |
| download | rust-3bca7230ff1ec35db25f2547cf2e83a6f450e923.tar.gz rust-3bca7230ff1ec35db25f2547cf2e83a6f450e923.zip | |
Auto merge of #89028 - Aaron1011:coercion-cause, r=nagisa
Propagate coercion cause into `try_coerce` Currently, `coerce_inner` discards its `ObligationCause` when calling `try_coerce`. This interfers with other diagnostc improvements I'm working on, since we will lose the original span by the time the actual coercion occurs. Additionally, we now use the span of the trailing expression (rather than the span of the entire function) when performing a coercion in `check_return_expr`. This currently has no visible effect on any of the unit tests, but will unblock future diagnostic improvements.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions
