Skip to content

core::fmt::Show vs std::fmt::Show #15603

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
kud1ing opened this issue Jul 11, 2014 · 3 comments
Closed

core::fmt::Show vs std::fmt::Show #15603

kud1ing opened this issue Jul 11, 2014 · 3 comments

Comments

@kud1ing
Copy link

kud1ing commented Jul 11, 2014

The trait Show and its documentation seems pretty identical:

If there is a reason to have both, please point to each other and explain when to use which. CC @steveklabnik

If not, consider removing std::fmt::Show.

@huonw
Copy link
Member

huonw commented Jul 11, 2014

The std one is just a reexport of the core one, i.e. they're actually the same trait. Demonstration.

I think the solution here is just making the reexport relationships clearer (similar to #13414).

libstd is the crate that people should be using almost always; libcore is designed to the most fundamental code, with very few assumptions, suitable for use when writing operating systems etc.

@SimonSapin
Copy link
Contributor

Related to #15723

@kud1ing
Copy link
Author

kud1ing commented Aug 6, 2014

Closing this in favor of the more general/specific #15723

@kud1ing kud1ing closed this as completed Aug 6, 2014
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

3 participants