Allow disabling of auto and blanket trait impls retrieval in rustdoc when in parallel_compiler mode.

This commit is contained in:
Guillaume Gomez 2023-02-21 10:03:31 +11:00 committed by Nicholas Nethercote
parent 7e855d5f31
commit 953a71a328

View File

@ -470,6 +470,12 @@ pub(crate) fn get_auto_trait_and_blanket_impls(
cx: &mut DocContext<'_>,
item_def_id: DefId,
) -> impl Iterator<Item = Item> {
// FIXME: To be removed once `parallel_compiler` bugs are fixed!
// More information in <https://github.com/rust-lang/rust/pull/106930>.
if cfg!(parallel_compiler) {
return vec![].into_iter().chain(vec![].into_iter());
}
let auto_impls = cx
.sess()
.prof