about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorAaron Hill <aa1ronham@gmail.com>2021-09-16 16:53:40 -0500
committerAaron Hill <aa1ronham@gmail.com>2021-09-16 16:53:40 -0500
commit31cdd8cdd2a20dbdeae3d3f79d5f9080d431a87d (patch)
tree9260a4e81a536bd0a81f0c0e156c3e3aa660b2af /compiler/rustc_codegen_llvm/src/llvm_util.rs
parent237bb5e0088782945d2c3146e4907e3a5e9c7c2c (diff)
downloadrust-31cdd8cdd2a20dbdeae3d3f79d5f9080d431a87d.tar.gz
rust-31cdd8cdd2a20dbdeae3d3f79d5f9080d431a87d.zip
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