summary refs log tree commit diff
path: root/src/librustdoc/clean
AgeCommit message (Collapse)AuthorLines
2018-06-18Auto merge of #51414 - oli-obk:impl_trait_type_def, r=pnkfelixbors-1/+8
Add existential type definitions Note: this does not allow creating named existential types, it just desugars `impl Trait` to a less (but still very) hacky version of actual `existential type` items. r? @nikomatsakis
2018-06-17Auto merge of #51382 - GuillaumeGomez:intra-link-lint, r=QuietMisdreavusbors-5/+17
Add lint for intra link resolution failure This PR is almost done, just remains this note: ``` note: requested on the command line with `-W intra-link-resolution-failure` ``` I have no idea why my lint is considered as being passed through command line and wasn't able to find where it was set. If anyone has an idea, it'd be very helpful! cc @QuietMisdreavus
2018-06-15process cross-crate glob re-exportsQuietMisdreavus-0/+24
2018-06-13Rename intra-doc lintGuillaume Gomez-3/+3
2018-06-13Update help message to escape square bracketsGuillaume Gomez-2/+2
2018-06-13Add help for intra-link lintGuillaume Gomez-3/+5
2018-06-11Fix extern prelude failure in rustdocGuillaume Gomez-1/+1
2018-06-09Add lint for intra link resolution failureGuillaume Gomez-5/+15
2018-06-08Rollup merge of #51391 - estebank:docspan, r=GuillaumeGomezMark Rousskov-16/+46
Use spans pointing at the inside of a rustdoc attribute Follow up to #51111. Point to the link in a rustdoc attribute where intralink resolution failed, instead of the full rustdoc attribute's span. r? @GuillaumeGomez cc @kennytm
2018-06-08Fix rustdocOliver Schneider-1/+8
2018-06-07Use `from_inner_byte_pos` for cleaner codeEsteban Küber-3/+4
2018-06-07Add existential type definitonsOliver Schneider-1/+1
2018-06-06When unable to sinthesize link span, fallback to previous behaviorEsteban Küber-20/+35
2018-06-06Use spans pointing at the inside of a rustdoc attributeEsteban Küber-16/+30
2018-06-04Few improvementsGuillaume Gomez-4/+3
2018-06-04Add doc keyword supportGuillaume Gomez-2/+63
2018-06-03Show which line the link is coming from.kennytm-7/+38
2018-06-03Point to the rustdoc attribute where intralink resolution failed.kennytm-8/+17
2018-06-01merge UNNECESSARY_EXTERN_CRATE and UNUSED_EXTERN_CRATESNiko Matsakis-1/+1
2018-05-26Use `Ident`s for fields in HIRVadim Petrochenkov-7/+7
2018-05-24Rollup merge of #51011 - QuietMisdreavus:duplicitous-macros, r=ollie27kennytm-0/+3
rustdoc: hide macro export statements from docs As mentioned in https://github.com/rust-lang/rust/issues/50647, rustdoc now prints both the import statement and the macro itself when re-exporting macros. This is a stopgap solution to clean up the std docs and get something small backported into beta. What this does: When rustdoc finds an export statement for a macro, instead of printing the export and bailing, now it will instead hide the export and bail. Until we can solve https://github.com/rust-lang/rust/issues/34843 or have a better way to find the attributes on an export statement when inlining macros, this will at least match the current behavior and clean up the re-export statements from the docs.
2018-05-23rustdoc: hide macro export statements from docsQuietMisdreavus-0/+3
2018-05-23Rollup merge of #50875 - QuietMisdreavus:short-features, r=GuillaumeGomezkennytm-22/+30
rustdoc: use "short form" doc(cfg) printing even when combined with other conditionals Fixes https://github.com/rust-lang/rust/issues/49334 The original "short form" printing was introduced when `target_feature` was added to the `doc(cfg)` handling. However, it didn't properly propagate the "short form" indicator if the cfg was a combination of multiple conditionals, so the linked issue happened. This changes the handling to use a bool in the original `Html` wrapper, rather than a separate wrapper struct that defers to the original one.
2018-05-21rustc: move TypeParamDef's fields into GenericParamDefKind::Type.Eduard-Mihai Burtescu-3/+3
2018-05-19rustc: introduce {ast,hir}::AnonConst to consolidate so-called "embedded ↵Eduard-Mihai Burtescu-5/+5
constants".
2018-05-18propagate "short form" into all Html printsQuietMisdreavus-22/+30
2018-05-18Auto merge of #50533 - GuillaumeGomez:rustdoc-prim-auto, r=QuietMisdreavusbors-16/+46
add auto-impl for primitive type Part of #50431. I have no clue how to test this though with the rustdoc test suite... r? @QuietMisdreavus
2018-05-16Fix rustdoc panic with `impl Trait` in type parametersShotaro Yamada-6/+29
2018-05-15Auto merge of #48523 - varkor:generics-ty-generalisations, r=nikomatsakisbors-78/+100
The Great Generics Generalisation: Ty Edition Part of the generic parameter refactoring effort, split off from https://github.com/rust-lang/rust/pull/48149. Contains the `ty`-relative refactoring. r? @eddyb
2018-05-15add auto-impl for primitive typeGuillaume Gomez-16/+46
2018-05-15Refactoring generic counting loopsvarkor-1/+5
2018-05-15Lift pure_wrt_drop to GenericParamDefvarkor-2/+2
2018-05-15Refactor generic params loopsvarkor-1/+1
2018-05-15Pull common parameters into GenericParamDefvarkor-18/+18
This leads to a lot of simplifications, as most code doesn't actually need to know about the specific lifetime/type data; rather, it's concerned with properties like name, index and def_id.
2018-05-15Inline get_typevarkor-5/+4
2018-05-15Use GenericParamCount instead of FxHashMapvarkor-16/+19
2018-05-15Correct variable renaming falloutvarkor-2/+2
2018-05-15Eliminate ty::Generics::types()varkor-5/+9
And with one final incanation, the specific kind iterators were banished from ty::Generics, never to be seen again!
2018-05-15Eliminate ty::Generics::lifetimes()varkor-4/+9
Begone lazy lifetime code!
2018-05-15Generalise more cases of explicit iteration of specific kindsvarkor-2/+2
2018-05-15Generalise cases of explicit iteration of specific kindsvarkor-39/+50
2018-05-15Rename TypeParameterDef -> TypeParamDef and RegionParameterDef -> RegionParamDefvarkor-3/+3
2018-05-15Rename GenericParam to GenericParamDefvarkor-18/+18
2018-05-15Prefer iterator to vecvarkor-2/+1
2018-05-15Consolidate ty::Genericsvarkor-31/+28
2018-05-15Rollup merge of #50691 - ollie27:rustdoc_pub_restricted, r=QuietMisdreavusGuillaume Gomez-3/+14
rustdoc: Add support for pub(restricted) This is useful when using `--document-private-items`. r? @QuietMisdreavus
2018-05-13Add a Rayon thread poolJohn Kåre Alsaker-2/+2
2018-05-12rustdoc: Add support for pub(restricted)Oliver Middleton-3/+14
2018-05-11Introduce ConstValue and use it instead of miri's Value for constant valuesJohn Kåre Alsaker-6/+3
2018-05-10Auto merge of #50395 - Zoxc:small-tys, r=michaelwoeristerbors-6/+6
Optimize layout of TypeVariants This makes references to `Slice` use thin pointers by storing the slice length in the slice itself. `GeneratorInterior` is replaced by storing the movability of generators in `TyGenerator` and the interior witness is stored in `GeneratorSubsts` (which is just a wrapper around `&'tcx Substs`, like `ClosureSubsts`). Finally the fields of `TypeAndMut` is stored inline in `TyRef`. These changes combine to reduce `TypeVariants` from 48 bytes to 24 bytes on x86_64. r? @michaelwoerister