Allow disabling of auto and blanket trait impls retrieval in rustdoc when in parallel_compiler mode.
This commit is contained in:
parent
7e855d5f31
commit
953a71a328
1 changed files with 6 additions and 0 deletions
|
@ -470,6 +470,12 @@ pub(crate) fn get_auto_trait_and_blanket_impls(
|
||||||
cx: &mut DocContext<'_>,
|
cx: &mut DocContext<'_>,
|
||||||
item_def_id: DefId,
|
item_def_id: DefId,
|
||||||
) -> impl Iterator<Item = Item> {
|
) -> 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
|
let auto_impls = cx
|
||||||
.sess()
|
.sess()
|
||||||
.prof
|
.prof
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue