]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Auto merge of #65456 - estebank:trait-bound-borrow, r=matthewjasper
authorbors <bors@rust-lang.org>
Mon, 18 Nov 2019 00:05:38 +0000 (00:05 +0000)
committerbors <bors@rust-lang.org>
Mon, 18 Nov 2019 00:05:38 +0000 (00:05 +0000)
commit361791bb5fdd714bdc39f8af835f6468dd18331d
tree6eeebf53b94743a431cb0b901f6c14c7a7093948
parent0f0c640e0ee5a9ad365e78e3c62239b3d65b7045
parent2fe8371268b36193fa4dc8461341db90f4ec96b9
Auto merge of #65456 - estebank:trait-bound-borrow, r=matthewjasper

Suggest borrowing when it would satisfy an unmet trait bound

When there are multiple implementors for the same trait that is present
in an unmet binding, modify the E0277 error to refer to the parent
obligation and verify whether borrowing the argument being passed in
would satisfy the unmet bound. If it would, suggest it.

Fix #56368.