Skip to content

core::write! is unusable. #18491

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
cgaebel opened this issue Oct 31, 2014 · 5 comments
Closed

core::write! is unusable. #18491

cgaebel opened this issue Oct 31, 2014 · 5 comments

Comments

@cgaebel
Copy link
Contributor

cgaebel commented Oct 31, 2014

core::write! expands to use std::fmt::Arguments::new, which isn't available with no_std. That kinda defeats the point of libcore.

@sfackler
Copy link
Member

You can work around it with

mod std {
    pub use core::fmt;
}

@cgaebel
Copy link
Contributor Author

cgaebel commented Oct 31, 2014

Thanks.

@aturon
Copy link
Member

aturon commented Oct 31, 2014

cc @alexcrichton

@alexcrichton
Copy link
Member

It's fine for the libcore definition to be wired to core::foo and then the libstd definition to be wired to std::foo as a fix for the interim.

@steveklabnik
Copy link
Member

I believe this was fixed by #18578, please let me know if I'm wrong.

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

5 participants