-
Notifications
You must be signed in to change notification settings - Fork 3
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
Portability of documentation #8
Comments
This would required teaching the compiler to do "all simultaneous" (i.e. combinations of cfg'd code) name resolution, and maybe type checking too. It's a big change, but I think it's a worthwhile one to do eventually. That change, once implemented, would also trivially allow us to extend the portability lint to cover all cases, as came up in the RFC thread and on the call. It's a long way off, but once we reach that point I'd also like to use an |
Since when does Rust have epics? |
This is basically a duplicate of rust-lang/rust#1998. |
Note the way rustdoc does this is specifically by not doing name resolution or type checking (rust-lang/rust#73566, rust-lang/rust#75127). Having combinations of cfg'd code is incompatible with either of those two (rust-lang/rfcs#2963 (comment)), and I don't see how could work even in theory. |
Yes, nothing about the kludge is specific to |
rustdoc
currently generates documentation only for a singletarget/configuration. When using conditional compilation, some functionality
can go missing or can appear depending on the options chosen. For example,
atomics of different sizes in
core
.There is currently a rustdoc
kludge to generate Windows and
Unix documentation for
std
at the same time. Can something like this beextended to work for conditional compilation generally?
The text was updated successfully, but these errors were encountered: