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

rollup #8190

Closed
wants to merge 10 commits into from
Closed

rollup #8190

wants to merge 10 commits into from

Conversation

thestinger
Copy link
Contributor

No description provided.

blake2-ppc and others added 9 commits August 1, 2013 16:54
Convert some internally used functions to use a external iterators.

Change all uses of remaining internal iterators to use `do` expr
.intersection(), .union() etc methods in trait std::container::Set use
internal iters. Remove these methods from the trait.

I reported issue #8154 for the reinstatement of iterator-based set algebra
methods to the Set trait.

For bitv and treemap, that lack Iterator implementations of set
operations, preserve them as methods directly on the types themselves.

For HashSet, these methods are replaced by the present .union_iter()
etc.
Change all users of old-style for with internal iterators to using
`do`-loops.

The code in stackwalk.rs does not actually implement the
looping protocol (no break on return false).

The code in gc.rs does not use loop breaks, nor does any code using it.

We remove the capacity to break from the loops in std::gc and implement
the walks using `do { .. }` expressions.

No behavior change.
Change the former repetition::

    for 5.times { }

to::

    do 5.times { }

.times() cannot be broken with `break` or `return` anymore; for those
cases, use a numerical range loop instead.
This is just to aid the transistion to the new `for` loop, by
pointing at each location where the old one occurs.
bors added a commit that referenced this pull request Aug 1, 2013
@bors bors closed this Aug 1, 2013
@Centril Centril added the rollup A PR which is a rollup label Oct 2, 2019
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jan 13, 2022
…ip1995

Stop using `in_band_lifetimes`

Per rust-lang#91867

changelog: none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rollup A PR which is a rollup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants