From 6b9ee3dbf69d3a089d8a42b5f99a2c285609919b Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 18 Dec 2022 09:30:26 -0800 Subject: [PATCH] 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. --- Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index adba8ff..1145edd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"]