-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Features/nerf unused string fns #14414
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
Conversation
Thanks for doing this. The |
Yup, thats my plan. I'll get it together tonight.
|
ok, so I'm making good progress on this, however just as FUD that seems worth raising, having to do "foobar".to_string() everywhere seems weird and confusing. We should look seriously at how to fix this. |
ok, patches updated. Ignore the commits, if the diff looks OK I'll rebase them into something mergable. |
Seems ok, but yeah, maybe it would be nice to have a few more opinions on the |
I also think that we need to reconcile the I believe that the name |
I don't see why to_str wouldn't be the way you get a String, and we could name it to_string. |
OK, this is enough to be actionable. Its going to be another monstrous pain
|
BTW, any removed functions/methods should be not removed right now, but marked with The stdlibs should still be updated to avoid the old functions, but keeping a dummy implementation like the following is good: #[deprecated = "use `.to_string`"]
fn to_owned(&self) -> String { self.to_string() } (This includes |
I think this should be good to go now. I rebased on master, and deprecated instead of removing those string functions. |
[breaking-change]
The travis failure is relevant. |
Yup, fixed some but not all (I botched the rebase) Will ping when its green
|
This includes a bunch of places where |
[breaking-change]
This was missed in 5530745
|
confirmed tests pass locally. r? |
…alexcrichton This should block on #14323
Fix missing comment annotations in the clippy book changelog: none
This should block on #14323