Skip to content

Conversation

@catamorphism
Copy link
Contributor

If a do-block body has the wrong type, or a for-loop body has a
non-() type, suggest that the user might have meant the other one.

As per #2817

r? @brson

If a do-block body has the wrong type, or a for-loop body has a
non-() type, suggest that the user might have meant the other one.

As per rust-lang#2817
@brson
Copy link
Contributor

brson commented Dec 8, 2012

r+, though I'd like to know your thoughts about the criteria for the check.

@catamorphism
Copy link
Contributor Author

Sure, that seems reasonable. I was trying to not do any more than I was testing for. I changed the check, added a few more test cases, and merged it.

RalfJung added a commit to RalfJung/rust that referenced this pull request Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants