summary refs log tree commit diff
path: root/src/librustdoc/clean
AgeCommit message (Collapse)AuthorLines
2019-12-10Remove tidy commentGuillaume Gomez-2/+0
2019-12-09Remove useless commentGuillaume Gomez-2/+0
2019-12-09Move RegionTarget and RegionDeps where they into clean/auto_traitGuillaume Gomez-14/+16
2019-12-09Remove unused importsGuillaume Gomez-10/+7
2019-12-09Fix usage of variants in clean/utilsGuillaume Gomez-7/+7
2019-12-09Make utils module publicGuillaume Gomez-19/+19
2019-12-09Fix missing importsGuillaume Gomez-1/+25
2019-12-09Remove functions from clean/mod.rsGuillaume Gomez-567/+0
2019-12-09Move clean functions to another fileGuillaume Gomez-0/+568
2019-12-08Auto merge of #66984 - GuillaumeGomez:move-clean-types, r=kinnisonbors-1534/+1558
Move clean types into their own file This PR is just about moving clean types into their own files to make the code more clear and keep all `Clean` trait implementations on their own. r? @kinnison
2019-12-07Rollup merge of #66959 - GuillaumeGomez:cfg-duplicates, r=eddybYuki Okushi-0/+6
Remove potential cfgs duplicates Fixes https://github.com/rust-lang/rust/issues/66921. Before going any further (the issue seems to be linked to metadata as far as I can tell). Do you think this is the good place to do it or should it be done before? r? @eddyb
2019-12-04Remove unused constantGuillaume Gomez-2/+0
2019-12-04Make Lifetime struct field publicGuillaume Gomez-1/+1
2019-12-04Make some formatting improvementsGuillaume Gomez-11/+4
2019-12-04Make some private methods publicGuillaume Gomez-7/+7
2019-12-04fixup clean/types.rs importsGuillaume Gomez-48/+26
2019-12-04remove code that doesn't belong in clean/types.rsGuillaume Gomez-2975/+0
2019-12-04Remove potential cfgs duplicatesGuillaume Gomez-0/+6
2019-12-03remove code that doesn't belong in clean/mod.rs anymoreGuillaume Gomez-1534/+13
2019-12-03Create new types.rs fileGuillaume Gomez-0/+4551
2019-12-02syntax: Use `ast::MacArgs` for macro definitionsVadim Petrochenkov-1/+1
2019-11-30Rollup merge of #66895 - Centril:rustc_feature, r=oli-obkMazdak Farrokhzad-1/+1
Feature gating *declarations* => new crate `rustc_feature` This PR moves the data-oriented parts of feature gating into its own crate, `rustc_feature`. The parts consist of some data types as well as `accepted`, `active`, `removed`, and `builtin_attrs`. Feature gate checking itself remains in `syntax::feature_gate::check`. The parts which define how to emit feature gate errors could probably be moved to `rustc_errors` or to the new `rustc_session` crate introduced in #66878. The visitor itself could probably be moved as a pass in `rustc_passes` depending on how the dependency edges work out. The PR also contains some drive-by cleanup of feature gate checking. As such, the PR probably best read commit-by-commit. r? @oli-obk cc @petrochenkov cc @Mark-Simulacrum
2019-11-30introduce crate rustc_feature and move active, accepted, and removed to itMazdak Farrokhzad-1/+1
2019-11-28rustc_metadata: Merge `cstore.rs` into `creader.rs`Vadim Petrochenkov-1/+1
2019-11-12Rename in librustdoc.Camille GILLOT-3/+3
2019-11-12Rollup merge of #66299 - rossmacarthur:fix-41260-avoid-issue-0, r=varkorYuki Okushi-2/+3
support issue = "none" in unstable attributes This works towards fixing #41260. This PR allows the use of `issue = "none"` in unstable attributes and makes changes to internally store the issue number as an `Option<NonZeroU32>`. For example: ```rust #[unstable(feature = "unstable_test_feature", issue = "none")] fn unstable_issue_none() {} ``` It was not made optional because feedback seen here #60860 suggested that people might forget the issue field if it was optional. I could not remove the current uses of `issue = "0"` (of which there are a lot) because the stage 0 compiler expects the old syntax. Once this is available in the stage 0 compiler we can replace all uses of `"0"` with `"none"` and no longer allow `"0"`. This is my first time contributing, so I'm not sure what the protocol is with two-part things like this, so some guidance would be appreciated. r? @varkor
2019-11-11support issue = "none" in unstable attributesRoss MacArthur-2/+3
- Use `Option<NonZeroU32>` to represent issue numbers.
2019-11-10Merge hir::Mutability into ast::Mutability.Camille GILLOT-2/+2
2019-11-08hir::MethodSig -> hir::FnSigMazdak Farrokhzad-1/+1
2019-11-07move syntax::parse::lexer::comments -> syntax::util::commentsMazdak Farrokhzad-1/+1
2019-11-07Rollup merge of #59789 - eddyb:typeck-reverts, r=nikomatsakisMazdak Farrokhzad-9/+10
Revert two unapproved changes to rustc_typeck. There was a breakdown in process (https://github.com/rust-lang/rust/pull/59004#issuecomment-477600735, https://github.com/rust-lang/rust/pull/58894#discussion_r272795560) and two changes were made to `rustc_typeck`'s "collect" queries, for rustdoc, that were neither needed *nor* correct. I'm reverting them here, and will fix up rustdoc *somehow*, if necessary. cc @rust-lang/compiler How do we ensure this doesn't happen again? r? @nikomatsakis or @oli-obk
2019-11-06Make doc comments cheaper with `AttrKind`.Nicholas Nethercote-23/+24
`AttrKind` is a new type with two variants, `Normal` and `DocComment`. It's a big performance win (over 10% in some cases) because `DocComment` lets doc comments (which are common) be represented very cheaply. `Attribute` gets some new helper methods to ease the transition: - `has_name()`: check if the attribute name matches a single `Symbol`; for `DocComment` variants it succeeds if the symbol is `sym::doc`. - `is_doc_comment()`: check if it has a `DocComment` kind. - `{get,unwrap}_normal_item()`: extract the item from a `Normal` variant; panic otherwise. Fixes #60935.
2019-11-03Revert "Greatly improve generics handling in rustdoc search"Eduard-Mihai Burtescu-9/+10
This reverts commit 64382f4b78bdca6bea1dd06e4a1039646b04ae93.
2019-11-02Simplify various `Symbol` use points.Nicholas Nethercote-2/+2
Including removing a bunch of unnecessary `.as_str()` calls, and a bunch of unnecessary sigils.
2019-11-02Convert `x.as_str().to_string()` to `x.to_string()` where possible.Nicholas Nethercote-1/+1
2019-10-27rustc, rustc_passes: don't depend on syntax_expand.Mazdak Farrokhzad-3/+3
This is done by moving some data definitions to syntax::expand.
2019-10-26Auto merge of #65167 - hermitcore:rusty-hermit, r=alexcrichtonbors-0/+1
Redesign the interface to the unikernel HermitCore We are developing the unikernel HermitCore, where the kernel is written in Rust and is already part of the Rust Standard Library. The interface between the standard library and the kernel based on a small C library. With this pull request, we remove completely the dependency to C and use lld as linker. Currently, the kernel will be linked to the application as static library, which is published at https://github.com/hermitcore/libhermit-rs. We don’t longer support the C interface to the kernel. Consequently, we remove this part from the Rust Standard Library.
2019-10-25Rollup merge of #65789 - Centril:with-desugared-doc, r=davidtwcoMazdak Farrokhzad-2/+26
move Attribute::with_desugared_doc to librustdoc From https://github.com/rust-lang/rust/pull/65324. r? @varkor
2019-10-25with_desugared_doc: correctly refer to `attr` instead of `self`Mazdak Farrokhzad-2/+2
Co-Authored-By: David Wood <Q0KPU0H1YOEPHRY1R2SN5B5RL@david.davidtw.co>
2019-10-25Merge branch 'master' into rusty-hermit, resolve conflictsStefan Lankes-11/+3
2019-10-25move Attribute::with_desugared_doc to librustdocMazdak Farrokhzad-2/+26
2019-10-24Turn crate store into a resolver outputVadim Petrochenkov-2/+2
2019-10-23Rollup merge of #65657 - nnethercote:rm-InternedString-properly, r=eddybMazdak Farrokhzad-9/+1
Remove `InternedString` This PR removes `InternedString` by converting all occurrences to `Symbol`. There are a handful of places that need to use the symbol chars instead of the symbol index, e.g. for stable sorting; local conversions `LocalInternedString` is used in those places. r? @eddyb
2019-10-22Merge branch 'master' into rusty-hermitStefan Lankes-4/+3
2019-10-21Remove many unnecessary trait derivations.Nicholas Nethercote-4/+3
2019-10-21Remove unnecessary `impl Clean<String> for InternedString`.Nicholas Nethercote-8/+0
2019-10-21Convert some `InternedString`s to `Symbols`.Nicholas Nethercote-1/+1
This avoids the needs for various conversions, and makes the code slightly faster, because `Symbol` comparisons and hashing is faster.
2019-10-20Merge branch 'master' into rusty-hermitStefan Lankes-24/+23
2019-10-18Rollup merge of #65535 - eddyb:sliced-predicates, r=nikomatsakisTyler Mandry-14/+13
rustc: arena-allocate the slice in `ty::GenericsPredicate`, not the whole struct. While rebasing #59789 I noticed we can do this now. However, it doesn't help much without changing `inferred_outlives_of` to the same type, which I might try next.
2019-10-18rustc: arena-allocate the slice in `ty::GenericsPredicate`, not the whole ↵Eduard-Mihai Burtescu-14/+13
struct.