Skip to content
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

Expand no_builtins documentation #542

Open
ehuss opened this issue Mar 16, 2019 · 1 comment
Open

Expand no_builtins documentation #542

ehuss opened this issue Mar 16, 2019 · 1 comment
Labels
A-attributes Area: Attributes

Comments

@ehuss
Copy link
Contributor

ehuss commented Mar 16, 2019

Should there be more documentation explaining what the no_builtins attribute does?

I gather it disables LLVM builtin functions, but it's not clear to me what it uses instead. Does it use libc? Does it fail to compile?

I suspect it's not worth documenting the list of builtins, but maybe some examples would be helpful. Perhaps along with some indication why it would be used?

When enabled, it also prevents the crate from participating in LTO.

Some of this seems like implementation details, so I'm not sure what should be documented. I think optimization or backend codegen details should probably be kept in The rustc Book, so maybe it could be documented there, and just have a link to it from the reference?

@ehuss ehuss added the A-attributes Area: Attributes label Mar 16, 2019
@Centril
Copy link
Contributor

Centril commented Mar 17, 2019

Dumping: https://github.com/rust-lang/rust/search?q=no_builtins&unscoped_q=no_builtins

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-attributes Area: Attributes
Projects
None yet
Development

No branches or pull requests

2 participants