mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
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
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user