Skip to content

std/extra: Two small bugfixes and one simplification - #8858

Closed
bluss wants to merge 3 commits into
rust-lang:masterfrom
bluss:small-bugs
Closed

std/extra: Two small bugfixes and one simplification#8858
bluss wants to merge 3 commits into
rust-lang:masterfrom
bluss:small-bugs

Conversation

@bluss

Copy link
Copy Markdown
Contributor

Fix a bug in s.slice_chars(a, b) that did not accept a == s.len().

Fix a bug in != defined for DList.

Also simplify NormalizationIterator to use the CharIterator directly instead of mimicing the iteration itself.

blake2-ppc added 3 commits August 29, 2013 17:11
Just to simplify and not have the iteration logic repeated in multiple places.
`s.slice_chars(a, b)` did not allow the case where `a == s.len()`, this
is a bug I introduced last time I touched the method; add a test for
this case.
@bluss

Copy link
Copy Markdown
ContributorAuthor

The normalization iter change and PR #8857 together clean up some of the string iteration in std::str so that no more manual iteration loops are left. The other PR is separate since its removal of functions might not go through.

@bluss

Copy link
Copy Markdown
ContributorAuthor

I'm so sorry, I won't rebase in this stupid way again. The first listed commit (Eq::ne) is in fact the tip of the branch.

bors added a commit that referenced this pull request Aug 30, 2013
Fix a bug in `s.slice_chars(a, b)` that did not accept `a == s.len()`.
Fix a bug in `!=` defined for DList.
Also simplify NormalizationIterator to use the CharIterator directly instead of mimicing the iteration itself.
@borsbors closed this Aug 30, 2013
U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
8858: Ignore macro import from `extern crate self` r=jonas-schievink a=ivan770
Closesrust-lang#8834
Co-authored-by: ivan770 <leshenko.ivan770@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.

2 participants

@bluss@bors