Skip to content

syntax/rustc: Improve error message for misuse of for loop - #4606

Closed
catamorphism wants to merge 1 commit into
rust-lang:incomingfrom
catamorphism:issue-3651
Closed

syntax/rustc: Improve error message for misuse of for loop#4606
catamorphism wants to merge 1 commit into
rust-lang:incomingfrom
catamorphism:issue-3651

Conversation

@catamorphism

Copy link
Copy Markdown
Contributor

r? @brson As per #3651, print out a clearer error message when a for gets
used with the wrong type of iterator. Also fix spans on for loop
bodies, and suppress some more derived errors.

As per rust-lang#3651, print out a clearer error message when a `for` gets
used with the wrong type of iterator. Also fix spans on `for` loop
bodies, and suppress some more derived errors.
@brson

brson commented Jan 24, 2013

Copy link
Copy Markdown
Contributor

r+

@catamorphism

Copy link
Copy Markdown
Contributor Author

Thanks! Merged 5b64c79

RalfJung added a commit to RalfJung/rust that referenced this pull request Oct 13, 2025
alloc_addresses: track more explicitly whether we are in charge of generating addresses
U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
9117: Allow expand-macro to be invoked anywhere inside a macro call r=Veykril a=Veykril

I don't really see a reason to only limit this to the name-ref of a macro.
bors r+
Closes rust-lang#4606

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
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