about summary refs log tree commit diff
path: root/src/librustdoc/scrape_examples.rs
diff options
context:
space:
mode:
authorRémy Rakic <remy.rakic+github@gmail.com>2024-06-06 09:45:50 +0000
committerRémy Rakic <remy.rakic+github@gmail.com>2024-06-06 10:06:28 +0000
commit0a4176a8316332e37bd08741cc71a4773214941e (patch)
treeff764f6aaef390fe3f727cd04cc839f1abd5f919 /src/librustdoc/scrape_examples.rs
parent2b6a34273d820df4140a00984d38d40c745fb565 (diff)
downloadrust-0a4176a8316332e37bd08741cc71a4773214941e.tar.gz
rust-0a4176a8316332e37bd08741cc71a4773214941e.zip
Revert "Rollup merge of #124976 - petrochenkov:usedcrates, r=oli-obk"
This reverts commit eda4a35f365535af72118118a3597edf5a13c12d, reversing
changes made to eb6b35b5bcb3c2a594cb29cd478aeb2893f49d30.
Diffstat (limited to 'src/librustdoc/scrape_examples.rs')
-rw-r--r--src/librustdoc/scrape_examples.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/scrape_examples.rs b/src/librustdoc/scrape_examples.rs
index 64753a58a2b..e9b380fdeac 100644
--- a/src/librustdoc/scrape_examples.rs
+++ b/src/librustdoc/scrape_examples.rs
@@ -283,7 +283,7 @@ pub(crate) fn run(
         // Collect CrateIds corresponding to provided target crates
         // If two different versions of the crate in the dependency tree, then examples will be collected from both.
         let all_crates = tcx
-            .crates_including_speculative(())
+            .crates(())
             .iter()
             .chain([&LOCAL_CRATE])
             .map(|crate_num| (crate_num, tcx.crate_name(*crate_num)))