]> git.lizzy.rs Git - rust.git/commit
Point at argument instead of call for their obligations
authorEsteban Kuber <esteban@kuber.com.ar>
Tue, 7 Sep 2021 07:42:44 +0000 (07:42 +0000)
committerEsteban Kuber <esteban@kuber.com.ar>
Thu, 16 Sep 2021 12:12:27 +0000 (12:12 +0000)
commit284a8a9ce7dd1a1d83d461f442435182547e6e67
tree963ba3dbb55796e54c4f6694af2d746ab388c6d2
parent2b5ddf36fdc784106b3a064d93dd054c32b1f10f
Point at argument instead of call for their obligations

When an obligation is introduced by a specific `fn` argument, point at
the argument instead of the `fn` call if the obligation fails to be
fulfilled.
compiler/rustc_typeck/src/check/fn_ctxt/_impl.rs
compiler/rustc_typeck/src/check/fn_ctxt/checks.rs
src/test/ui/associated-types/associated-types-path-2.stderr
src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-62529-1.stderr
src/test/ui/issues/issue-60218.stderr
src/test/ui/unsized/unsized3.rs
src/test/ui/unsized/unsized3.stderr