-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Fix up documentation around no_std #34838
Conversation
I wonder if we can also make sure these is all plastered with "zomg this is unstable"? Documenting things like symbol names makes me a little queasy as I don't want anyone relying on that ever basically |
# #[no_mangle] pub extern fn rust_eh_register_frames () {} | ||
# #[no_mangle] pub extern fn rust_eh_unregister_frames () {} | ||
# // fn main() {} tricked you, rustdoc! | ||
// These functions and traits are used by the compiler, but not |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No traits here though?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops, this was just the previous text.
So, the book part is explicitly in "unstable rust", but making it more clear in libcore's docs is something I can do! |
Ok! Sounds good to me, looks like travis failure is legit though:
r=me other than that though |
1. Fix the sections in the book to have the correct signatures. I've also marked them as `ignore`; there's no way to set the `no_std` feature for libc, so it pulls in the stdlib, so this wasn't even testing the actual thing it was testing. Better to just ignore. 2. Correcting libcore's docs for factual inaccuracy, and add a note about language items. Fixes rust-lang#33677
Whoops, I was checking as I wrote it, but missed it in the end. Should be good now, let's see what travis says. |
@bors: rollup |
Fix up documentation around no_std 1. Fix the sections in the book to have the correct signatures. I've also marked them as `ignore`; there's no way to set the `no_std` feature for libc, so it pulls in the stdlib, so this wasn't even testing the actual thing it was testing. Better to just ignore. 2. Correcting libcore's docs for factual inaccuracy, and add a note about language items. Fixes rust-lang#33677 r? @alexcrichton
also marked them as
ignore
; there's no way to set theno_std
feature for libc, so it pulls in the stdlib, so this wasn't even
testing the actual thing it was testing. Better to just ignore.
about language items.
Fixes #33677
r? @alexcrichton