summary refs log tree commit diff
path: root/src/librustdoc/clean
AgeCommit message (Collapse)AuthorLines
2019-06-26remove unused derives and variantsAndy Russell-58/+55
2019-06-20rustdoc: generate implementors for all auto traitsSimonas Kazlauskas-71/+3
Previously we would only generate a list of synthetic implementations for two well known traits – Send and Sync. With this patch all the auto traits known to rustc are considered. This includes such traits like Unpin and user’s own traits. Sadly the implementation still iterates through the list of crate items and checks them against the traits, which for non-std crates containing their own auto-traits will still not include types defined in std/core. It is an improvement nontheless.
2019-06-19rustc: disallow cloning HIR nodes.Eduard-Mihai Burtescu-53/+40
2019-06-19rustc: replace `GenericArgs::with_generic_args` hack with a plain getter.Eduard-Mihai Burtescu-3/+4
2019-06-18syntax: Factor out common fields from `SyntaxExtension` variantsVadim Petrochenkov-9/+3
2019-06-17remove _by_hir_id if there is no NodeId counterpartljedrz-7/+7
2019-06-14Unify all uses of 'gcx and 'tcx.Eduard-Mihai Burtescu-14/+14
2019-06-12rustc: replace `TyCtxt<'tcx, 'gcx, 'tcx>` with `TyCtxt<'gcx, 'tcx>`.Eduard-Mihai Burtescu-7/+7
2019-06-12Fix fallout from `deny(unused_lifetimes)`.Eduard-Mihai Burtescu-2/+2
2019-06-12rustc: replace `TyCtxt<'a, 'gcx, 'tcx>` with `TyCtxt<'tcx, 'gcx, 'tcx>`.Eduard-Mihai Burtescu-5/+5
2019-06-11Auto merge of #61741 - Centril:rollup-fgro5kz, r=Centrilbors-1/+1
Rollup of 11 pull requests Successful merges: - #61518 (Add loops to doc list of things not stable in const fn) - #61526 (move some tests into subfolders) - #61550 (Windows 10 SDK is also required now.) - #61606 (Remove some legacy proc macro flavors) - #61652 (Mention slice patterns in array) - #61686 (librustc_errors: Add some more documentation) - #61698 (typeck: Fix const generic in repeat param ICE.) - #61707 (Azure: retry failed awscli installs) - #61715 (make sure make_ascii_lowercase actually leaves upper-case non-ASCII characters alone) - #61724 (core: use memcmp optimization for 128 bit integer slices) - #61726 (Use `for_each` in `Iterator::partition`) Failed merges: r? @ghost
2019-06-11rustdoc: deny(unused_lifetimes).Eduard-Mihai Burtescu-6/+6
2019-06-10syntax: Rename variants of `SyntaxExtension` for consistencyVadim Petrochenkov-1/+1
2019-06-07Fix slice const generic length displayGuillaume Gomez-1/+4
2019-06-05Addressed points raised in review.Niko Matsakis-13/+53
2019-06-05Addressed points raised in review.Alexander Regueiro-1/+1
2019-06-05Implemented for traits (associated type definitions).Alexander Regueiro-1/+4
2019-06-05Aggregation of drive-by cosmetic changes.Alexander Regueiro-10/+10
2019-06-03rustc: remove `HirId` from `ArgSource::AsyncFn`David Wood-2/+1
This commit removes the `HirId` from `ArgSource::AsyncFn`, relying on the fact that only `simple_ident` is used in each of the locations that previously took the original pattern from the `ArgSource::AsyncFn`.
2019-06-03rustc: async fn drop order lowering in HIRDavid Wood-1/+2
This commit re-implements the async fn drop order lowering changes so that it all takes place in HIR lowering, building atop the work done by `@eddyb` to refactor `Res::Upvar`. Previously, this types involved in the lowering were constructed in libsyntax as they had to be used during name resolution and HIR lowering. This was awful because none of that logic should have existed in libsyntax. This commit also changes `ArgSource` to keep a `HirId` to the original argument pattern rather than a cloned copy of the pattern.
2019-05-28Use proper const printing in rustdocvarkor-4/+1
2019-05-26Rename "Associated*" to "Assoc*"Andrew Xu-16/+16
We are going to uniform the terminology of all associated items. Methods that may or may not have `self` are called "associated functions". Because `AssociatedFn` is a bit long, we rename `Associated` to `Assoc`.
2019-05-25Don't use `ty::Const` without immediately interningOliver Scherer-2/+6
2019-05-25Reuse the pretty printing architecture for printing of constantsOliver Scherer-2/+1
2019-05-23Update GenericPredicates queriesJohn Kåre Alsaker-4/+5
2019-05-23Update item_childrenJohn Kåre Alsaker-1/+1
2019-05-22Simplify use of keyword symbolsVadim Petrochenkov-10/+7
2019-05-22Rollup merge of #61003 - nnethercote:rm-InternedString-PartialEq-impls, ↵Mazdak Farrokhzad-1/+1
r=petrochenkov Remove impls for `InternedString`/string equality. `Symbol` received the same treatment in #60630. Also, we can derive `PartialEq` for `InternedString`. r? @petrochenkov
2019-05-21Move `edition` outside the hygiene lock and avoid accessing itJohn Kåre Alsaker-8/+8
2019-05-21Remove impls for `InternedString`/string equality.Nicholas Nethercote-1/+1
`Symbol` received the same treatment in #60630. Also, we can derive `PartialEq` for `InternedString`.
2019-05-20Rollup merge of #60908 - GuillaumeGomez:errors, r=oli-obkMazdak Farrokhzad-0/+7
Fix lints handling in rustdoc Part of #60664: now lints are handled just like any other lints you would setup in rustc. Still remains to handle `missing code examples` and `missing_docs` as part of the same group. r? @oli-obk
2019-05-18Fix display of const generics in rustdocGuillaume Gomez-1/+4
2019-05-18Fix lints handling in rustdocGuillaume Gomez-0/+7
2019-05-17Avoid unnecessary interning in `Ident::from_str()` calls.Nicholas Nethercote-2/+3
A lot of these static symbols are pre-interned.
2019-05-13Remove bitrig support from rustMarcel Hellwig-1/+0
2019-05-13Remove the equality operation between `Symbol` and strings.Nicholas Nethercote-4/+4
And also the equality between `Path` and strings, because `Path` is made up of `Symbol`s.
2019-05-13Pass a `Symbol` to `check_name`, `emit_feature_err`, and related functions.Nicholas Nethercote-30/+32
2019-05-11Address comments + Fix testsVadim Petrochenkov-0/+2
2019-05-11Simplify conversions between tokens and semantic literalsVadim Petrochenkov-14/+10
2019-05-11Eliminate `comments::Literal`Vadim Petrochenkov-8/+8
2019-05-06Ignore const parameters when constructing type bounds in rustdocvarkor-3/+1
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-05-03rustc: rename hir::def::Def to Res (short for "resolution").Eduard-Mihai Burtescu-88/+87
2019-05-03rustc: use DefKind instead of Def, where possible.Eduard-Mihai Burtescu-19/+12
2019-05-03rustc: factor most DefId-containing variants out of Def and into DefKind.Eduard-Mihai Burtescu-52/+72
2019-05-01Auto merge of #60137 - eddyb:rustdoc-rm-def-ctor-hax, r=petrochenkovbors-486/+156
rustdoc: remove def_ctor hack. ~~No longer necessary since we have `describe_def`.~~ Turns out `def_ctor` was used in conjunction with abusing `tcx.type_of(def_id)` working on both type definitions and `impl`s (specifically, of builtin types), but also reimplementing a lot of the logic that `Clean` already provides on `Ty` / `ty::TraitRef`. The first commit now does the minimal refactor to keep it working, while the second commit contains the rest of the refactor I started (parts of which I'm not sure we need to keep).
2019-04-30Rollup merge of #60344 - Aaron1011:fix/tower-hyper, r=eddybMazdak Farrokhzad-0/+1
Don't try to render auto-trait bounds with any inference variables Previously, we checked if the target of a projection type was itself an inference variable. However, for Rustdoc rendering purposes, there's no distinction between an inference variable ('_') and a type containing one (e.g. (MyStruct<u8, _>)) - we don't want to render either of them. Fixes #60269 Due to the complexity of the original bug, which spans three different crates (hyper, tower-hyper, and tower), I have been unable to create a minimized reproduction for the issue.
2019-04-30rustdoc: refactor(?) synthetic impl building.Eduard-Mihai Burtescu-140/+79
2019-04-30rustdoc: remove def_ctor hack.Eduard-Mihai Burtescu-387/+118
2019-04-28Fix lint findings in librustdocflip1995-5/+5
2019-04-28Fix lint findings in librustcflip1995-1/+1