mirror of
https://gitee.com/openharmony/third_party_rust_proc-macro2
synced 2024-11-23 07:19:41 +00:00
Opt out -Zrustdoc-scrape-examples on docs.rs
I'd like a chance to audit all the code that rustdoc is inserting into the docs. Currently I am skeptical that showing proc-macro2's internal usages of APIs is a net benefit to the public documentation. I am also skeptical that quite so many examples are needed, and that they should be featured so prominently in comparison to handwritten docs. Lastly I wish there were a way to turn this behavior off on a more granular basis.
This commit is contained in:
parent
a83ad604b1
commit
6b9ee3dbf6
@ -37,6 +37,9 @@ span-locations = []
|
||||
# This feature no longer means anything.
|
||||
nightly = []
|
||||
|
||||
[lib]
|
||||
doc-scrape-examples = false
|
||||
|
||||
[workspace]
|
||||
members = ["benches/bench-libproc-macro", "tests/ui"]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user