Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add an iterator size hint #7274

Merged
merged 3 commits into from
Jun 23, 2013
Merged

add an iterator size hint #7274

merged 3 commits into from
Jun 23, 2013

Conversation

thestinger
Copy link
Contributor

I ran into a weird lifetime bug blocking updating the collect method to use FromIterator, but everything here works fine.

@huonw huonw mentioned this pull request Jun 22, 2013
@thestinger thestinger closed this Jun 22, 2013
@thestinger thestinger reopened this Jun 22, 2013
also adds an implementation for the vector iterators
This is able to take advantage of the lower bound from the size hint.
I removed the `static-method-test.rs` test because it was heavily based
on `BaseIter` and there are plenty of other more complex uses of static
methods anyway.
bors added a commit that referenced this pull request Jun 23, 2013
I ran into a weird lifetime bug blocking updating the `collect` method to use `FromIterator`, but everything here works fine.
@bors bors closed this Jun 23, 2013
@bors bors merged commit d2e9912 into rust-lang:master Jun 23, 2013
@thestinger thestinger deleted the size_hint branch June 24, 2013 06:27
flip1995 pushed a commit to flip1995/rust that referenced this pull request Feb 24, 2022
Migrate `dbg_macro` to late pass

changelog: Make `dbg_macro` work with crate level attributes and inside macro calls

One down for rust-lang#6610, fixes rust-lang#7275

Also fixes rust-lang#7274, and adds parenthesis around the suggestion for `dbg!(1, 2, 3)` as it expands to a tuple
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