about summary refs log tree commit diff
path: root/src/librustdoc/clean/auto_trait.rs
AgeCommit message (Collapse)AuthorLines
2025-06-10rustdoc: Refractor `clean_ty_generics`Alona Enraght-Moony-2/+2
2025-04-08clean code: remove Deref<Target=RegionKind> impl for Region and use `.kind()`xizheyin-2/+2
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
2025-03-26rustdoc: Rearrange `Item`/`ItemInner`.Nicholas Nethercote-4/+4
The `Item` struct is 48 bytes and contains a `Box<ItemInner>`; `ItemInner` is 104 bytes. This is an odd arrangement. Normally you'd have one of the following. - A single large struct, which avoids the allocation for the `Box`, but can result in lots of wasted space in unused parts of a container like `Vec<Item>`, `HashSet<Item>`, etc. - Or, something like `struct Item(Box<ItemInner>)`, which requires the `Box` allocation but gives a very small Item size, which is good for containers like `Vec<Item>`. `Item`/`ItemInner` currently gets the worst of both worlds: it always requires a `Box`, but `Item` is also pretty big and so wastes space in containers. It would make sense to push it in one direction or the other. #138916 showed that the first option is a regression for rustdoc, so this commit does the second option, which improves speed and reduces memory usage.
2025-03-15Squash fold into tyMichael Goulet-2/+1
2024-11-28uplift fold_regions to rustc_type_irlcnr-1/+2
2024-11-19rustdoc: yeet `TypingEnv::from_param_env`lcnr-6/+6
2024-11-19move `fn is_item_raw` to `TypingEnv`lcnr-1/+1
2024-10-24Remove associated type based effects logicMichael Goulet-1/+1
2024-09-30rustdoc: rewrite stability inheritance as a passLukas Markeffsky-0/+1
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-3/+3
2024-09-07rustdoc: use a single box to store Attributes and ItemKindMichael Howell-10/+12
2024-08-31Rollup merge of #129774 - nnethercote:rm-extern-crate-tracing-remainder, ↵Matthias Krüger-0/+1
r=GuillaumeGomez Remove `#[macro_use] extern crate tracing` from rustdoc and rustfmt A follow-up to #129767 and earlier PRs doing this for `rustc_*` crates. r? ```@GuillaumeGomez```
2024-08-30Remove `#[macro_use] extern crate tracing` from rustdoc.Nicholas Nethercote-0/+1
2024-08-29Fix clippy lintsGuillaume Gomez-1/+1
2024-07-29Reformat `use` declarations.Nicholas Nethercote-4/+2
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2024-05-30Rename HIR `TypeBinding` to `AssocItemConstraint` and related cleanupLeón Orell Valerian Liehr-2/+2
2024-05-17Rename Unsafe to SafetySantiago Pastorino-1/+1
2024-05-09Rename Generics::params to Generics::own_paramsMichael Goulet-2/+2
2024-04-08rustdoc: synthetic auto: filter out clauses from the implementor's ParamEnvLeón Orell Valerian Liehr-1/+1
not just the ones from the elaborated clauses.
2024-04-02rustdoc: synthetic auto trait impls: accept unresolved region vars for nowLeón Orell Valerian Liehr-1/+7
2024-04-02rustdoc: heavily simplify synthesis of auto trait implsLeón Orell Valerian Liehr-627/+320
2024-04-01rustdoc: synthetic impls: auto traits: Fx{Hash↦Index}{Map,Set}León Orell Valerian Liehr-118/+39
2024-02-20Expand weak alias types before collecting constrained and referenced late ↵León Orell Valerian Liehr-9/+8
bound regions
2024-02-15rustdoc: cross-crate re-exports: correctly render late-bound params in ↵León Orell Valerian Liehr-1/+1
source order even if early-bound params are present
2023-12-17use Vec for region constraintsAli MJ Al-Nasrawy-1/+1
2023-12-10remove redundant importssurechen-3/+1
detects redundant imports that can be eliminated. for #117772 : In order to facilitate review and modification, split the checking code and removing redundant imports code into two PR.
2023-11-14finish `RegionKind` renamelcnr-2/+2
- `ReFree` -> `ReLateParam` - `ReEarlyBound` -> `ReEarlyParam`
2023-11-13rename `ReLateBound` to `ReBound`lcnr-1/+1
other changes: - `Region::new_late_bound` -> `Region::new_bound` - `Region::is_late_bound` -> `Region::is_bound`
2023-10-03rustdoc: fix & clean up handling of cross-crate higher-ranked lifetimesLeón Orell Valerian Liehr-4/+3
2023-08-16Use more named format argsGuillaume Gomez-3/+3
2023-08-16Improve code readability by moving fmt args directly into the stringGuillaume Gomez-7/+7
2023-07-14refactor(rustc_middle): Substs -> GenericArgMahdi Dibaiee-1/+1
2023-06-26Migrate predicates_of and caller_bounds to ClauseMichael Goulet-6/+4
2023-06-19s/Clause/ClauseKindMichael Goulet-3/+3
2023-06-07rustdoc: re-elide cross-crate default trait object lifetime boundsLeón Orell Valerian Liehr-1/+1
2023-05-04IAT: Rustdoc integrationLeón Orell Valerian Liehr-1/+4
2023-05-04Auto merge of #110806 - WaffleLapkin:unmkI, r=lcnrbors-1/+1
Replace `tcx.mk_trait_ref` with `TraitRef::new` First step in implementing https://github.com/rust-lang/compiler-team/issues/616 r? `@lcnr`
2023-04-26Make some region folders a little stricter.Nicholas Nethercote-1/+3
Because certain regions cannot occur in them.
2023-04-25Use `ty::TraitRef::new` in rustdocMaybe Waffle-1/+1
2023-04-16Auto merge of #110405 - fee1-dead-contrib:rollup-9rkree6, r=fee1-deadbors-1/+1
Rollup of 4 pull requests Successful merges: - #110397 (Move some utils out of `rustc_const_eval`) - #110398 (use matches! macro in more places) - #110400 (more clippy fixes: clippy::{iter_cloned_collect, unwarp_or_else_defau…) - #110402 (Remove the loop in `Align::from_bytes`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2023-04-16more clippy fixes: clippy::{iter_cloned_collect, unwarp_or_else_default, ↵Matthias Krüger-1/+1
option_map_or_none}
2023-04-16Remove `TypeSuper{Foldable,Visitable}` impls for `Region`.Nicholas Nethercote-6/+5
These traits exist so that folders/visitors can recurse into types of interest: binders, types, regions, predicates, and consts. But `Region` is non-recursive and cannot contain other types of interest, so its methods in these traits are trivial. This commit inlines and removes those trivial methods.
2023-02-16remove bound_type_of query; make type_of return EarlyBinder; change type_of ↵Kyle Matsuda-1/+1
in metadata
2023-02-16change usages of type_of to bound_type_ofKyle Matsuda-1/+1
2023-02-13Rename folder traits' `tcx` method to `interner`Alan Egerton-1/+1
2023-02-13Make folding traits generic over the InternerAlan Egerton-1/+1
2023-01-15rustdoc: simplify some & ref erencesMatthias Krüger-9/+7
2022-12-12Round 2: make clean_middle_ty take a binderOli Scherer-1/+1
2022-12-12Round 1: add some binders (fails due to losing bound vars and then rebinding ↵Oli Scherer-1/+1
them with `Binder::dummy`)
2022-11-25Introduce PredicateKind::ClauseSantiago Pastorino-3/+5