Skip to content

Should IntoStr trait be renamed to IntoString? #15606

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

Closed
jasonthompson opened this issue Jul 11, 2014 · 4 comments
Closed

Should IntoStr trait be renamed to IntoString? #15606

jasonthompson opened this issue Jul 11, 2014 · 4 comments

Comments

@jasonthompson
Copy link
Contributor

re #15493 and #15046

-IntoStr/into_str was renamed to IntoStr/into_string. Should the trait be renamed to IntoString?

-Also, shouldn't the file libstd/to_str.rs be renamed to libstd/to_string.rs.

I'm happy to do fix the first point--I did a quick search through src and IntoStr is only used in a few other files. But I'm not sure what kind of issues renaming the file would create.

@aturon
Copy link
Member

aturon commented Jul 11, 2014

Yes, IntoStr and into_str should be renamed to IntoString and into_string.

Instead of renaming the to_str.rs file and module, I would rather move the module into collections::string. I would also like to move std::from_str into the core::str module. (Some of the impls in the module would have to move elsewhere.)

@alexcrichton Do you see any reason not to do the above?

@alexcrichton
Copy link
Member

Sounds good to me! Moving from_str into core may be difficult because of some of the impls for primitives like floats, but other than that it shouldn't be so bad.

@jasonthompson
Copy link
Contributor Author

I'll take a whack at moving the module into collections::string.

@steveklabnik
Copy link
Member

These traits are all gone now.

bors added a commit to rust-lang-ci/rust that referenced this issue Sep 18, 2023
…eykril

fix: Fix lens location "above_whole_item" breaking lenses

Fixes rust-lang/rust-analyzer#15602
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants