about summary refs log tree commit diff
path: root/src/librustdoc/clean
AgeCommit message (Collapse)AuthorLines
2022-08-28Remove Attrs type aliasGuillaume Gomez-8/+6
2022-08-27rustc_middle: Remove `Visibility::Invisible`Vadim Petrochenkov-5/+0
2022-08-25Fix missing cfg propagation for reexportsGuillaume Gomez-2/+27
2022-08-22Use `AttrVec` in more places.Nicholas Nethercote-2/+2
In some places we use `Vec<Attribute>` and some places we use `ThinVec<Attribute>` (a.k.a. `AttrVec`). This results in various points where we have to convert between `Vec` and `ThinVec`. This commit changes the places that use `Vec<Attribute>` to use `AttrVec`. A lot of this is mechanical and boring, but there are some interesting parts: - It adds a few new methods to `ThinVec`. - It implements `MapInPlace` for `ThinVec`, and introduces a macro to avoid the repetition of this trait for `Vec`, `SmallVec`, and `ThinVec`. Overall, it makes the code a little nicer, and has little effect on performance. But it is a precursor to removing `rustc_data_structures::thin_vec::ThinVec` and replacing it with `thin_vec::ThinVec`, which is implemented more efficiently.
2022-08-21Auto merge of #100645 - notriddle:notriddle/rustdoc-diet-plan, r=GuillaumeGomezbors-40/+42
rustdoc: strategic boxing to reduce the size of ItemKind and Type The `Type` change redesigns `QPath` to box the entire data structure instead of boxing `self_type` and the `trait_`. This reduces the size of several `ItemKind` variants, leaving `Impl` as the biggest variant. The `ItemKind` change boxes that variant's payload.
2022-08-17Remove `AttributesExt::other_attrs`.Nicholas Nethercote-6/+0
It's unused.
2022-08-16rustdoc: box ItemKind::TraitMichael Howell-5/+5
This reduces the memory consumption of ItemKind.
2022-08-16rustdoc: factor Type::QPath out into its own boxMichael Howell-35/+37
This reduces the size of Type.
2022-08-14Remove the Clean traitGuillaume Gomez-4/+0
2022-08-14remove Clean trait implementation for hir::VariantGuillaume Gomez-9/+7
2022-08-13Rollup merge of #100299 - compiler-errors:issue-100283, r=notriddleMichael Goulet-16/+7
make `clean::Item::span` return `Option` instead of dummy span Fixes #100283
2022-08-13make clean::Item::span return option instead of dummy spanMichael Goulet-16/+7
2022-08-13avoid cloning and then iteratingKaDiWa-2/+2
2022-08-12remove Clean trait implementation for hir::BareFnTyGuillaume Gomez-17/+18
2022-08-12remove Clean trait implementation for hir::PathSegmentGuillaume Gomez-8/+15
2022-08-11Rollup merge of #100391 - nnethercote:improve-size-assertions, r=lqdDylan DPC-9/+10
Improve size assertions r? `@lqd`
2022-08-10remove Clean trait implementation for hir::GenericArgsGuillaume Gomez-30/+38
2022-08-10remove Clean trait implementation for ty::AssocItemGuillaume Gomez-172/+175
2022-08-10Avoid repeating qualifiers on `static_assert_size` calls.Nicholas Nethercote-9/+10
Some of these don't need a `use` statement because there is already a `#[macro_use] extern crate rustc_data_structures` item in the crate.
2022-08-10Rollup merge of #100319 - GuillaumeGomez:rm-clean-impls-2, r=Dylan-DPCMatthias Krüger-105/+108
Remove more Clean trait implementations Follow-up of https://github.com/rust-lang/rust/pull/99638. r? ``@Dylan-DPC``
2022-08-09remove Clean trait implementation for ast::ModuleGuillaume Gomez-69/+62
2022-08-09Auto merge of #100304 - matthiaskrgr:rollup-gs56vlw, r=matthiaskrgrbors-58/+64
Rollup of 6 pull requests Successful merges: - #100163 (Refactor: remove an unnecessary string search) - #100212 (Remove more Clean trait implementations) - #100238 (Further improve error message for E0081) - #100268 (Add regression test for #79148) - #100294 (Update Duration::as_secs doc to point to as_secs_f64/32 for including fractional part) - #100303 (:arrow_up: rust-analyzer) Failed merges: - #100281 (Remove more Clean trait implementations) r? `@ghost` `@rustbot` modify labels: rollup
2022-08-09Rollup merge of #100212 - GuillaumeGomez:rm-clean-impls, r=Dylan-DPCMatthias Krüger-58/+64
Remove more Clean trait implementations Follow-up of https://github.com/rust-lang/rust/pull/99638. r? `@notriddle`
2022-08-09Auto merge of #100205 - cjgillot:noice-doc, r=camelidbors-10/+18
Avoid ICE in rustdoc when using `Fn` bounds Fixes https://github.com/rust-lang/rust/issues/100143
2022-08-08Synthetize a trait ref when none is available.Camille GILLOT-6/+12
2022-08-08remove Clean trait implementation for hir::GenericsGuillaume Gomez-68/+67
2022-08-08remove Clean trait implementation for hir::ImplItemGuillaume Gomez-39/+43
2022-08-07remove Clean trait implementation for ty::PredicateGuillaume Gomez-22/+23
2022-08-07remove Clean trait implementation for hir::WherePredicateGuillaume Gomez-36/+41
2022-08-06rustdoc: do not mark the contents of a skipped module as inlinedMichael Howell-21/+43
2022-08-06Avoid ICE in rustdoc.Camille GILLOT-5/+7
2022-08-06Rollup merge of #100193 - GuillaumeGomez:rm-clean-impls, r=notriddleMatthias Krüger-48/+42
Remove more Clean trait implementations Follow-up of https://github.com/rust-lang/rust/pull/99638. r? `@notriddle`
2022-08-06remove Clean trait implementation for hir::PolyTraitRefGuillaume Gomez-7/+1
2022-08-06remove Clean trait implementation for hir::GenericBoundGuillaume Gomez-41/+41
2022-08-05Rollup merge of #100166 - GuillaumeGomez:rm-clean-impls, r=Dylan-DPCDylan DPC-64/+65
Remove more Clean trait implementations Follow-up of https://github.com/rust-lang/rust/pull/99638. r? `@notriddle`
2022-08-05remove Clean trait implementation for hir::TraitItemGuillaume Gomez-51/+51
2022-08-05remove Clean trait implementation for hir::PolyTraitRefGuillaume Gomez-13/+14
2022-08-04rustdoc: use `collect()` instead of repeatedly pushing to boundsMichael Howell-12/+12
2022-08-04rustdoc: use `collect()` instead of repeatedly pushing to bindingsMichael Howell-5/+5
2022-08-04remove Clean trait implementation for hir::TraitRefGuillaume Gomez-8/+6
2022-08-04remove Clean trait implementation for hir::FnRetTyGuillaume Gomez-10/+5
2022-08-04Auto merge of #100120 - matthiaskrgr:rollup-g6ycykq, r=matthiaskrgrbors-1/+4
Rollup of 6 pull requests Successful merges: - #98771 (Add support for link-flavor rust-lld for iOS, tvOS and watchOS) - #98835 (relate `closure_substs.parent_substs()` to parent fn in NLL) - #99746 (Use `TraitEngine` in more places that don't specifically need `FulfillmentContext::new_in_snapshot`) - #99786 (Recover from C++ style `enum struct`) - #99795 (Delay a bug when failed to normalize trait ref during specialization) - #100029 (Prevent ICE for `doc_alias` on match arm, statement, expression) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-08-03Rollup merge of #100104 - GuillaumeGomez:rm-clean-impls, r=Dylan-DPCMatthias Krüger-42/+34
Remove more Clean trait implementations Follow-up of https://github.com/rust-lang/rust/pull/99638. r? ``@notriddle``
2022-08-03Rollup merge of #98835 - aliemjay:relate_closure_substs, r=nikomatsakisMatthias Krüger-1/+4
relate `closure_substs.parent_substs()` to parent fn in NLL Fixes #98589 The discrepancy between early- and late-bound lifetimes is because we map early-bound lifetimes into those found in the `closure_substs` while late-bound lifetimes are mapped into liberated free regions: https://github.com/rust-lang/rust/blob/5f98537eb7b5f42c246a52c550813c3cff336069/compiler/rustc_borrowck/src/universal_regions.rs#L255-L261 r? `@rust-lang/types`
2022-08-03Remove index from Region::EarlyBound.Camille GILLOT-1/+1
2022-08-03remove Clean trait implementation for hir::IsAutoGuillaume Gomez-9/+0
2022-08-03remove Clean trait implementation for ty::RegionGuillaume Gomez-33/+34
2022-08-03Rollup merge of #99738 - notriddle:notriddle/multiple-modules-w-same-name, ↵Dylan DPC-7/+12
r=camelid rustdoc: avoid inlining modules with duplicate names Fixes rust-lang/rust#99734
2022-08-02rustdoc: avoid inlining foreigns with duplicate namesMichael Howell-5/+7
2022-08-02Rollup merge of #100057 - GuillaumeGomez:rm-more-clean-impl, r=Dylan-DPCMatthias Krüger-34/+28
Remove more Clean trait implementations Follow-up of https://github.com/rust-lang/rust/pull/99638. r? ``@notriddle``