]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #39913 - nikomatsakis:inference-error, r=pnkfelix
authorCorey Farwell <coreyf@rwell.org>
Mon, 20 Feb 2017 17:42:53 +0000 (12:42 -0500)
committerGitHub <noreply@github.com>
Mon, 20 Feb 2017 17:42:53 +0000 (12:42 -0500)
commit8918ceb67aeb2e8d319e8481ad51f56dd8550f87
tree883f02d4d9e7263265b96650e2129d61e0b52ef7
parent5b7c5563855123ab094db99d42ccab5f26dbccdf
parent75da4b663ef3111f846e8fa5a9f3b3baaf92b4a3
Rollup merge of #39913 - nikomatsakis:inference-error, r=pnkfelix

Report full details of inference errors

When the old suggestion machinery was removed by @brson in https://github.com/rust-lang/rust/pull/37057, it was not completely removed. There was a bit of code that had the job of going through errors and finding those for which suggestions were applicable, and it remained, causing us not to emit the full details of such errors.  This PR removes that.

I've also added various lifetime tests to the UI test suite (so you can also see the before/after there). I have some concrete thoughts on how to improve these cases and am planning on writing those up in some mentoring issues (@CengizIO has expressed interest in working on those changes, so I plan to work with him on it, at least to start).

cc @jonathandturner