diff options
| author | bors <bors@rust-lang.org> | 2024-12-17 21:34:13 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-12-17 21:34:13 +0000 |
| commit | 7e6bf003f396aeea510577b4e925d1d95c12ff53 (patch) | |
| tree | 58986bb86721d206438e84fb09c3c52f910bc66e /src/librustdoc | |
| parent | a4cb3c831823d9baa56c3d90514b75b2660116fa (diff) | |
| parent | 62a21038ec15198a035dd5dd56e95fd40bf0e734 (diff) | |
| download | rust-7e6bf003f396aeea510577b4e925d1d95c12ff53.tar.gz rust-7e6bf003f396aeea510577b4e925d1d95c12ff53.zip | |
Auto merge of #134376 - jdonszelmann:fix-rustdoc-perf, r=jieyouxu
Try to fix perf regression in rustdoc after hir attributes Slight performance regression introduced in #131808 r? `@jieyouxu`
Diffstat (limited to 'src/librustdoc')
| -rw-r--r-- | src/librustdoc/clean/types.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/clean/types.rs b/src/librustdoc/clean/types.rs index 0918a90d04b..64d99b1d226 100644 --- a/src/librustdoc/clean/types.rs +++ b/src/librustdoc/clean/types.rs @@ -1150,7 +1150,7 @@ pub struct RenderedLink { #[derive(Clone, Debug, Default)] pub(crate) struct Attributes { pub(crate) doc_strings: Vec<DocFragment>, - pub(crate) other_attrs: Vec<hir::Attribute>, + pub(crate) other_attrs: ThinVec<hir::Attribute>, } impl Attributes { |
