Uh oh!
There was an error while loading. Please reload this page.
Split core/str/mod.rs to smaller files - #76325
Conversation
@rustbot modify labels: +S-waiting-on-review |
jonas-schievink
commented
Sep 11, 2020
r? @KodrAus |
bors
commented
Sep 20, 2020
☔ The latest upstream changes (presumably #76964) made this pull request unmergeable. Please resolve the merge conflicts. Note that reviewers usually do not review pull requests until merge conflicts are resolved! Once you resolve the conflicts, you should change the labels applied by bors to indicate that your PR is ready for review. Post this as a comment to change the labels: |
tesuji
commented
Sep 20, 2020
Rebased. |
bors
commented
Sep 26, 2020
☔ The latest upstream changes (presumably #77201) made this pull request unmergeable. Please resolve the merge conflicts. Note that reviewers usually do not review pull requests until merge conflicts are resolved! Once you resolve the conflicts, you should change the labels applied by bors to indicate that your PR is ready for review. Post this as a comment to change the labels: |
Also move FromStr trait
tesuji
commented
Sep 26, 2020
Rebased. |
varkor
commented
Sep 30, 2020
@rust-lang/libs: is there someone who could review this PR? It bitrots quite quickly. @bors p=100 |
Amanieu
commented
Sep 30, 2020
@bors r+ Also I learned something new about git today! |
bors
commented
Sep 30, 2020
📌 Commit dce7248 has been approved by |
bors
commented
Sep 30, 2020
bors
commented
Oct 1, 2020
☀️ Test successful - checks-actions, checks-azure |
bjorn3
commented
Oct 1, 2020
This caused a 26.6% reduction on clap-rs-debug incr-patched: println. https://perf.rust-lang.org/compare.html?start=ef663a8a48ea6b98b43cbfaefd99316b36b16825&end=9bb55dc8642d811d66a7599812009cc063577e00&stat=instructions:u |
tesuji
commented
Oct 1, 2020
It also regresses wall-time and some max-rss tests: https://perf.rust-lang.org/compare.html?start=ef663a8a48ea6b98b43cbfaefd99316b36b16825&end=9bb55dc8642d811d66a7599812009cc063577e00&stat=wall-time I don't think we could do anything to improve it. |
SimonSapin
commented
Oct 1, 2020
@bjorn3 Is that number really due to this PR? It looks like that benchmark has been oscillating between two results, recently: |
bjorn3
commented
Oct 1, 2020
Ah, ok. |
| pub trait FromStr: Sized { | ||
| /// The associated error which can be returned from parsing. | ||
| #[stable(feature = "rust1", since = "1.0.0")] | ||
| type Err; |
There was a problem hiding this comment.
i think this was supposed to be type Error, is it possible to change this?
There was a problem hiding this comment.
You are 9.5 years too late to change this.
There was a problem hiding this comment.
To elaborate: It was already type Err before this PR. #21718 which stabilized FromStr introduced type Err.

Note for reviewer:
I split
core/str/mod.rsto these modules:converts: Contains helper functions to convert from bytes to str.error: For error structs like Utf8Error.iter: For iterators of many str methods.traits: For indexing operations and build in traits on str.validations: For functions validating utf8 --- This name is awkward, maybe utf8.rs is better.