]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #84014 - estebank:cool-bears-hot-tip, r=varkor
authorDylan DPC <dylan.dpc@gmail.com>
Sun, 11 Apr 2021 23:04:04 +0000 (01:04 +0200)
committerGitHub <noreply@github.com>
Sun, 11 Apr 2021 23:04:04 +0000 (01:04 +0200)
commitc905e9d0ca7fc21c5b723f66d6eb4a36ec29d730
tree687df080ec62a1835c18d5de3d903c36a48e0554
parentb6780b3a20ad9f482911119eee84b0ad5a495af6
parentbb502c488915253a261f837cce7a920bf49a1666
Rollup merge of #84014 - estebank:cool-bears-hot-tip, r=varkor

Improve trait/impl method discrepancy errors

* Use more accurate spans
* Clean up some code by removing previous hack
* Provide structured suggestions

Structured suggestions are particularly useful for cases where arbitrary self types are used, like in custom `Future`s, because the way to write `self: Pin<&mut Self>` is not necessarily self-evident when first encountered.