Skip to content

more work on the iterator module - #5955

Merged
bors merged 7 commits into
rust-lang:incomingfrom
thestinger:iterator
Apr 19, 2013
Merged

more work on the iterator module#5955
bors merged 7 commits into
rust-lang:incomingfrom
thestinger:iterator

Conversation

@thestinger

Copy link
Copy Markdown
Contributor

No description provided.

@borsbors closed this Apr 19, 2013
@bors
bors merged commit a2e5350 into rust-lang:incomingApr 19, 2013
U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
5955: Remove merge import code duplication r=jonas-schievink a=Veykril
This removes the code duplication caused by rust-lang#5935, this also allows the assist to merge imports that have equal visibility and prevents merges of unequal visibility. This PR also fixes an iteration mistake in the mentioned PR:
Turns out I made a mistake when writing the `segment_iter` function, I was assuming that the `children` of a path will just be the segments, which is obviously not the case. This also brings insertion order of shorter paths in line with how `rustfmt` orders them.
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Sign up for freeto 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.

3 participants

@thestinger@bors@huonw