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

Replace cfg(dox) with cfg(doc) #920

Merged
merged 1 commit into from
Sep 29, 2020
Merged

Replace cfg(dox) with cfg(doc) #920

merged 1 commit into from
Sep 29, 2020

Conversation

jyn514
Copy link
Member

@jyn514 jyn514 commented Sep 29, 2020

dox has to be set explicitly, but doc is set whenever rustdoc runs.
This simplifies the doc process to cargo doc and means bootstrap can
stop passing --cfg dox when documenting crates (rust-lang/rust#77347).

`dox` has to be set explicitly, but `doc` is set whenever rustdoc runs.
This simplifies the doc process to `cargo doc` and means bootstrap can
stop passing `--cfg dox` when documenting crates.
@rust-highfive
Copy link

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Amanieu (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@Amanieu Amanieu merged commit 5dd309d into rust-lang:master Sep 29, 2020
@jyn514 jyn514 deleted the dox branch September 29, 2020 23:31
jyn514 added a commit to jyn514/stdarch that referenced this pull request Oct 1, 2020
This was changed from `cfg(dox)` to `cfg(doc)` in
rust-lang#920. `cfg(doc)` is incorrect
here; rustdoc sets `cfg(doctest)`, not `cfg(doc)` in doc-tests.

However, this piece of code isn't needed anyway: this code will only
ever be run as a doc-test, so it will never be compiled in.
Amanieu pushed a commit that referenced this pull request Oct 1, 2020
This was changed from `cfg(dox)` to `cfg(doc)` in
#920. `cfg(doc)` is incorrect
here; rustdoc sets `cfg(doctest)`, not `cfg(doc)` in doc-tests.

However, this piece of code isn't needed anyway: this code will only
ever be run as a doc-test, so it will never be compiled in.
jyn514 added a commit to jyn514/rust that referenced this pull request Oct 1, 2020
The primary purpose is to get the fixes from
rust-lang/stdarch#920
and rust-lang/stdarch#922.

The other changes included are
rust-lang/stdarch#917 and
rust-lang/stdarch#919.
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

Successfully merging this pull request may close these issues.

3 participants