-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Use SliceIndex for str's Index/IndexMut impls #55683
Conversation
This was missed by accident when the initial implementation landed! Closes rust-lang#55603
@bors: try Seems ripe for a crater run |
Use SliceIndex for str's Index/IndexMut impls This was missed by accident when the initial implementation landed! Closes #55603
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
☀️ Test successful - status-travis |
This did expose an issue with the on unimplemented message we have on SliceIndex: https://github.com/rust-lang/rust/blob/master/src/libcore/slice/mod.rs#L2372. Specifically, strings can't be indexed, just subsliced. This was already a problem since str::get uses SliceIndex currently. Is there better phrasing we can use there, or should we just get rid of the attribute? |
@craterbot run start=master#e6c5cf923489f4aed6c9e36a170fab9b6179d8da end=try#32bb15d09bdec52daf41ad57d2d6c192d7c7a4e9 mode=check-only |
👌 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
🚧 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
🎉 Experiment
|
An impressive zero actual regressions! R=me with passing travis |
This is unfortunate but since the trait is used by both slices and strings it was already inaccurate.
I went ahead and just removed the custom on_unimplemented attribute for now :( |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
@sfackler Looks like CI here is failing, can you take a look? |
Ping from triage @sfackler: It looks like your PR is failing on travis. |
Ping from triage @sfackler ! |
Ping from triage @sfackler: It looks like this PR hasn't received any updates in a while, so I'm closing it per out guidelines. Thank you for your contributions and please feel free to re-open in the future. |
This was missed by accident when the initial implementation landed!
Closes #55603