Skip to content

Commit

Permalink
Auto merge of #123125 - gurry:122561-bad-note-non-zero-loop-iters-2, …
Browse files Browse the repository at this point in the history
…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
bors committed May 5, 2024
2 parents ea11296 + 52e4e54 commit ea99d87
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit ea99d87

Please sign in to comment.