Skip to content

Use ThinVec more in the AST #104754

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Feb 21, 2023
Prev Previous commit
Next Next commit
Allow disabling of auto and blanket trait impls retrieval in rustdoc …
…when in parallel_compiler mode.
GuillaumeGomez authored and nnethercote committed Feb 21, 2023
commit 953a71a328195c55b38e2e3450c461add8bcc099
6 changes: 6 additions & 0 deletions src/librustdoc/clean/utils.rs
Original file line number Diff line number Diff line change
@@ -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