Skip to content

Commit 953a71a

Browse files
GuillaumeGomeznnethercote
authored andcommitted
Allow disabling of auto and blanket trait impls retrieval in rustdoc when in parallel_compiler mode.
1 parent 7e855d5 commit 953a71a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/librustdoc/clean/utils.rs

+6
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,12 @@ pub(crate) fn get_auto_trait_and_blanket_impls(
470470
cx: &mut DocContext<'_>,
471471
item_def_id: DefId,
472472
) -> impl Iterator<Item = Item> {
473+
// FIXME: To be removed once `parallel_compiler` bugs are fixed!
474+
// More information in <https://github.com/rust-lang/rust/pull/106930>.
475+
if cfg!(parallel_compiler) {
476+
return vec![].into_iter().chain(vec![].into_iter());
477+
}
478+
473479
let auto_impls = cx
474480
.sess()
475481
.prof

0 commit comments

Comments
 (0)