Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #123125 - gurry:122561-bad-note-non-zero-loop-iters-2, …
…r=estebank Remove suggestion about iteration count in coerce Fixes #122561 The iteration count-centric suggestion was implemented in PR #100094, but it was based on the wrong assumption that the type mismatch error depends on the number of times the loop iterates. As it turns out, that is not true (see this comment for details: rust-lang/rust#122679 (comment)) This PR attempts to remedy the situation by changing the suggestion from the one centered on iteration count to a simple suggestion to add a return value. It should also fix #100285 by simply making it redundant.
- Loading branch information