summary refs log tree commit diff
path: root/src/librustdoc/clean/simplify.rs
AgeCommit message (Collapse)AuthorLines
2022-05-21Remove `crate` visibility modifier in libs, testsJacob Pratt-2/+2
2022-03-04librustdoc: adopt let else in more placesest31-8/+2
2022-03-03make generic projection types print correctlyMichael Goulet-2/+2
2022-02-16Adopt let_else in even more placesest31-3/+1
2022-01-17Update term for use in more placeskadmin-5/+5
Replace use of `ty()` on term and use it in more places. This will allow more flexibility in the future, but slightly worried it allows items which are consts which only accept types.
2021-10-02Replace all uses of `path.res.def_id()` with `path.def_id()`Noah Lev-1/+1
2021-09-30Use `Path` instead of `Type` in `PolyTrait`Noah Lev-6/+2
The change to `impl Clean<Path> for hir::TraitRef<'_>` was necessary to fix a test failure for `src/test/rustdoc/trait-alias-mention.rs`. Here's why: The old code path was through `impl Clean<Type> for hir::TraitRef<'_>`, which called `resolve_type`, which in turn called `register_res`. Now, because `PolyTrait` uses a `Path` instead of a `Type`, the impl of `Clean<Path>` was being run, which did not call `register_res`, causing the trait alias to not be recorded in the `external_paths` cache.
2021-09-19Fix generics where bounds orderGuillaume Gomez-4/+6
2021-08-31Box `GenericArgs::Parenthesized.output`Noah Lev-2/+2
This reduces the size of `GenericArgs` from 104 bytes to 56 bytes, essentially reducing it by half. `GenericArgs` is one of the fields of `PathSegment`, so this should reduce the amount of memory allocated for `PathSegment`s in the cases where the generics are not for a `Fn`, `FnMut`, or `FnOnce` trait. I also added `static_assert_size!`s to `GenericArgs` and `PathSegment` to ensure they don't increase in size unexpectedly.
2021-08-13move Constness into TraitPredicateDeadbeef-1/+1
2021-06-18rustdoc: Render `for<'_>` lifetimes in front of where boundJustus K-9/+19
2021-01-16Review changesJack Huey-1/+1
2020-12-16Replace String with Symbol where possibleGuillaume Gomez-2/+3
2020-11-15Make all rustdoc functions and structs crate-privateJoshua Nelson-2/+2
This gives warnings about dead code.
2020-07-31fix rustdoc generic param orderBastian Kauschke-13/+0
2020-07-27introduce PredicateAtomBastian Kauschke-3/+1
2020-07-27this might be unqualified, but at least it's now quantifiedBastian Kauschke-1/+2
2020-07-27rustdocBastian Kauschke-6/+3
2020-05-20introduce newtype'd `Predicate<'tcx>`Bastian Kauschke-1/+1
2020-05-20rename `Predicate` to `PredicateKind`, introduce aliasBastian Kauschke-1/+1
2020-03-30rustc -> rustc_middle part 2Mazdak Farrokhzad-2/+2
2020-01-20Add `constness` field to `ty::Predicate::Trait`Dylan MacKenzie-1/+1
2020-01-05Remove rustc_hir reexports in rustc::hir.Mazdak Farrokhzad-1/+1
2019-12-22Format the worldMark Rousskov-43/+36
2019-08-28Add regression test for issue, apply suggestion to convert to assert_eqPaul Daniel Faria-1/+1
2019-08-27Simplify some code in rustdoc's simplifyPaul Daniel Faria-14/+5
2019-08-27Fix ICE in rustdoc when merging generic and where bounds in the case of an ↵Paul Daniel Faria-3/+3
Fn with an output Fixes #57180
2019-08-19Associated type bound for inlined impl Trait docShotaro Yamada-45/+51
2019-08-18Pre intern the `Self` parameter typeMatthew Jasper-1/+1
Use this to simplify the object safety code a bit.
2019-08-11Remove `is_self` and `has_self_ty` methodsMatthew Jasper-1/+3
2019-07-01Convert more usages overChris Gregory-1/+1
2019-06-05Addressed points raised in review.Niko Matsakis-1/+3
2019-03-10Make the rustc driver and interface demand drivenJohn Kåre Alsaker-2/+2
2019-02-23Transition librustdoc to 2018 editionHirokazu Hata-6/+6
2019-02-10rustc: doc commentsAlexander Regueiro-3/+3
2018-12-25Remove licensesMark Rousskov-10/+0
2018-12-07Various minor/cosmetic improvements to codeAlexander Regueiro-1/+1
2018-11-14Wrap some query results in `Lrc`.Nicholas Nethercote-2/+2
So that the frequent clones in `try_get` are cheaper. Fixes #54274.
2018-09-28rustc: keep a Span for each predicate in ty::GenericPredicates.Eduard-Mihai Burtescu-1/+1
2018-08-18Use the new Entry::or_default method where possible.Eduard-Mihai Burtescu-2/+2
2018-08-04Clean generic impls codeGuillaume Gomez-1/+1
2018-06-20Make GenericBound explicitvarkor-2/+2
2018-06-20Rename ParamBound(s) to GenericBound(s)varkor-1/+1
2018-06-20Use ParamBounds in WhereRegionPredicatevarkor-1/+1
2018-06-20Lift bounds into GenericParamvarkor-1/+1
2018-06-20Refactor generic parameters in rustdoc/cleanvarkor-2/+7
2018-06-20Rename "parameter" to "arg"varkor-1/+1
2018-06-20Rename PathParameter(s) to GenericArg(s)varkor-1/+1
2018-04-24Make Binder's field private and clean up its usageTyler Mandry-1/+1
2018-02-07rustdoc: Hide `-> ()` in cross crate inlined Fn* boundsOliver Middleton-1/+3